indaco / maxgraph-integration-examples

Demonstrate how to integrate maxgraph in projects.

Home Page:https://maxgraph.github.io/maxgraph-integration-examples/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

maxGraph integration examples

Demonstrate how to integrate maxGraph in projects.

⏩ Find the live demo at https://maxgraph.github.io/maxgraph-integration-examples/

Getting started

Setup

Ensure you are using Node 18 (this is the tested version, it may work with other versions without guarantee)

If you are using nvm, run

nvm use

If the Node version is not installed, nvm will state how to install the required version.

Install dependencies by running

npm install

Available projects

Use the maxGraph development version

Note: the maxGraph development version is tested in a GitHub Workflow that uses the procedure explained below.

Build maxGraph locally:

  • from the maxGraph project root, run: npm install
  • then, from the packages/core folder, run: npm pack
  • the packages/core folder or the generated packages/core/maxgraph-core-***.tgz file are now ready for use in an external project

In this folder where you clone the maxgraph-integration-examples project, go to the folder of the example you want to use. Then you can use one of the following solution

  • with npm link: npm link <path_to_locally_installed_maxgraph>/packages/core: create a soft link to the maxgraph local folder. Repack of maxgraph is automatically available in the examples
  • alternative: npm install <path_to_locally_installed_maxgraph>/packages/core/maxgraph-core-0.1.0.tgz. This changes the package.json file. You must run this command again each time you rebuild the maxgraph npm package.

About

Demonstrate how to integrate maxgraph in projects.

https://maxgraph.github.io/maxgraph-integration-examples/

License:MIT License


Languages

Language:TypeScript 61.3%Language:Svelte 12.1%Language:CSS 11.5%Language:HTML 10.5%Language:JavaScript 4.6%