stalkerg / monstergraph

monstergraph is a fully client side JavaScript diagramming library
Apache License 2.0
5 stars 2 forks source link

Should I be able to import monstergraph from typescript? #4

Open ronnyek opened 6 years ago

ronnyek commented 6 years ago

Ok, so I read they info about your target audience and how its gonna work (with the svelte framework). Should I be able to build this and take the resulting monstergraph.js and just import {monsterGraph} from ''?

stalkerg commented 6 years ago

Yep, for example if you build ES6 module you can make just:

import {
  mxClient,
  mxUtils,
  mxConstants,
  mxGraph,
  mxRubberband,
  mxEvent,
  mxGraphHandler
} from monstergraph; 

Maybe, I should check this case but it's should work out of box.