GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - maxGraph/maxgraph-integration-examples: Demonstrate how to integrate maxGraph in projects.

BranchesTags
Open more actions menu

Latest commit

 

History

208 Commits
208 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
projects
projects
 
 
.gitignore
.gitignore
 
 
.nvmrc
.nvmrc
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build-all-examples.bash
build-all-examples.bash
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

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 declared in the .nvmrc file (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

Build the "shared" package:

  • this package is used in all projects, so it must be built first.
  • for more details, see its dedicated README.

NOTE: if you want to build all examples at once, you can run

./build-all-examples.bash

Available projects

  • TypeScript with Farm
  • TypeScript with Lit
  • TypeScript with Parcel
  • TypeScript with Rollup
  • TypeScript with Rsbuild
  • TypeScript with SvelteKit
  • TypeScript with ViteJs

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.

Release

The versioning in this repository follow the versioning of maxGraph. For example, version 0.5.0 uses maxGraph 0.5.0.

So, prior releasing a new version of this version, the maxGraph version must have been updated:

  • Dependencies in this repository are automatically updated by Dependabot, so you can trigger a new Dependabot run or wait for the next scheduled Dependabot run for this update to take place.
  • Validate that the examples work: use the artifact built by GitHub Actions to test the various applications locally.

Once maxGraph has been updated, the release can be done by running the release workflow which:

  • creates the Git tag
  • publishes a GitHub release including the automatically generated release notes.

About

Demonstrate how to integrate maxGraph in projects.

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

Topics

diagramexampleshacktoberfesttypescript

Resources

Readme
MIT license
Activity
Custom properties

Stars

18 stars

Watchers

1 watching

Forks

3 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.