Search
Diagramming

The Scripts/esm folder from distribution contains ES6 code that lets you import JsDiagram classes from respective modules, which are also available as scoped @mindfusion/diagramming package on npm. There are also ES5-compatible scripts located in Scripts/umd folder, which are transpiled from ES6 code, and whose classes are exposed as members of global MindFusion namespace object.

The Reference section of this help file lists the classes under namespaces (i.e. ES5 compatible hierarchy) whose names you can easily translate to scoped module names when coding for ES6. E.g. if a class is listed under MindFusion.Graphs namespace, you can import it from respective @mindfusion/graphs package.