Skip to content

Migration guide v1.9.0

Florian Dupuy edited this page Jan 15, 2021 · 1 revision

CSS changes

In this release the generation of the SVG file has been reconsidered and deeply changed. The SVG now contains the diagram without any styling attributes, which all are in external CSS files. To that end:

  • The DiagramStyleProvider now provides the style class to apply to the nodes and edges instead of providing the styling attributes themselves.
  • The components can also provide their own styling class if provided in the components.xml file.
  • The external CSS file names are provided by the DiagramStyleProvider It is possible to have the CSS within the SVG file to have a self-sufficient file thanks to the LayoutParamer used. You need to use LayoutParameter.setCssInternal(true). The corresponding CSS files are included in the SVG thanks to their URL provided by DiagramStyleProvider.getCssUrls().

Method extendFeeders renamed

In this release Graph.extendFeeders() method has been renamed to Graph.insertFictitiousNodesAtFeeders().