Skip to content

Latest commit

 

History

History
 
 

ts-example-without-defaults

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Integrate maxGraph without defaults in a vanilla TypeScript project built with Vite

Demonstrate how to integrate maxGraph without using defaults:

  • plugins
  • styles
  • shapes
  • perimeters
  • connectors
  • markers

Note: This example should be kept in sync with the js-example-without-defaults example.

Initialized from https://github.com/vitejs/vite/tree/v2.9.8/packages/create-vite/template-vanilla-ts

Setup

Initialize all packages

From the repository root, run npm install.

Build maxgraph@core

From the packages/core directory, run npm run build.

Run

Run npm run dev and go to http://localhost:5173/

If you want to bundle the application, run npm run build and then run npm run preview to access to a preview of the bundle application.