maxGraph/packages/ts-example
Thomas Bouffard f58ec67e5f
refactor: simplify the code of `ts-example` (#255)
Replicate the improvements done in the `maxgraph-integration-examples`
repository:
- introduce function to simplify the main file
- Remove out dated comments
- Simplify the code and use "type" imports when possible
2023-11-16 11:53:47 +01:00
..
src refactor: simplify the code of `ts-example` (#255) 2023-11-16 11:53:47 +01:00
README.md ts-example: restore the rounded shape in the custom rectangle 2022-09-24 11:16:26 +02:00
favicon.svg chore: improve the configuration to build the npm package (#87) 2022-07-05 08:08:25 +02:00
index.html chore: improve the configuration to build the npm package (#87) 2022-07-05 08:08:25 +02:00
package.json chore: review private property in package.json files (#244) 2023-09-15 12:31:22 +02:00
tsconfig.json chore(tsconfig): add base tsconfig.json 2022-10-23 10:33:45 +03:00
vite.config.js refactor: improve examples in README and ts-example (#223) 2023-07-10 07:07:19 +02:00

README.md

TypeScript project using the maxGraph npm package

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 generate-esm.

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.