If you're coming from 2.x, you should first checkout the 2.x -> 5.x migration docs, and then the 5.x -> 6.x migration docs.
Migration from 6.x to 7.x
The list of breaking changes between 6.x and 7.x is:
- The
SegmentedConnectorhas been renamed toStraightConnector. Wherever your app usesSegmentedConnector.typeyou'll need to update the code. Note, though, that this newStraightConnectoris the default connector, so if you currently useSegmentedConnectorwithout any config options you can simply remove that code.
We do not expect any change in functionality for apps that either currently use the default connector or that specify Straight as the connector type, as the new Straight connector is a drop-in replacement for the original Straight connector, when it has only a single segment.
-
Support for the
ORTHOGONAL_CONNECTOR_RECALC_STRATEGY_LEGACYrecalculation strategy was removed, having been previously deprecated.ORTHOGONAL_CONNECTOR_RECALC_STRATEGY_MODERNandOrthogonalRecalcStrategywere also both removed, being no longer necessary. -
The original
StraightConnectorhas been renamed toLegacyStraightConnector, and is now deprecated. -
marginwas removed fromStateMachineandBezierconnectors. Use the pre-existinggapoption instead. -
The CSS classes added to groups that are a drag target or the current hover target for other groups or nodes being dragged have changed from
jtk-drag-activeandjtk-drag-hovertojtk-vertex-drag-activeandjtk-vertex-drag-hover. This is to distinguish them from the active/hover classes used when dragging edges. -
The
initializeSegmentedConnectorEditorsmethod was renamed toinitializeStraightConnectorEditors -
The CSS classes related to the previous segmented connector editor have been renamed, eg. where we'd have
.jtk-segmented-segment-delete, for example, we now have.jtk-straight-segment-delete. -
The contents of the
jsplumbtoolkit-connector-editors.cssstylesheet was folded in tojsplumbtoolkit.cssandjsplumbtoolkit-connector-editors.csswas removed. -
The contents of the
jsplumbtoolkit-edge-type-picker.cssstylesheet was folded in tojsplumbtoolkit.cssandjsplumbtoolkit-edge-type-picker.csswas removed. -
The contents of the
jsplumbtoolkit-dialogs.cssstylesheet was folded in tojsplumbtoolkit.cssandjsplumbtoolkit-dialogs.csswas removed. -
The contents of the
jsplumbtoolkit-browser-ui-plugin-background.cssstylesheet was folded in tojsplumbtoolkit.cssandjsplumbtoolkit-browser-ui-plugin-background.csswas removed. -
The contents of the
jsplumbtoolkit-controls.cssstylesheet was folded in tojsplumbtoolkit.cssandjsplumbtoolkit-controls.csswas removed. -
The
ExportControlsComponentconstructor has changed - the third argument is now options instead of a ShapeLibrary. if you need to pass in a shape library you can do it inside the options, but it should not be necessary as the component gets the shape library from the surface you pass in.