GoJS 2.1.6 Released

Changes for 2.1.6

  • The release/go-module.js file now exports every class, so that you can import only specific classes, instead of go . For example: import { Diagram, Node, Link, Point, Shape, TextBlock } from ... .
  • Added a sample demonstrating generating a PDF file for a Diagram, in the projects/pdf subdirectory. The sample is at minimalPDF.
  • Fix for AnimationTriggers erroneously starting when dragging and dropping Parts from another Diagram or Palette.
  • Fix for LinkingTool not deselecting other parts when a new link is created.

For previous releases, see: GoJS 2.1.5 Released

import { Diagram, Node, Link, Point, Shape, TextBlock } from …
It is good, but from what? from ‘gojs’ ? Does it reduce the size of bundle js file?

From that module.

Whether or not code is removed in your build process depends on the tools that you use. The most popular tools do not do a good job in that regards.

Thank you walter ,
I did below,
import { Diagram, Node, Link, Point, Shape, TextBlock } from ‘gojs/release/go-module’;
This works but size is not changed, I use webpack.