Release 6.71.0
· 2 min read
In this release:
Connectors
- We've "undeprecated" the usage of static connector type names, such as
OrthogonalConnector.type. Where previously we'd deprecated these in favour of string constants (such asCONNECTOR_TYPE_ORTHOGONAL), we - and some licensees - have found that in some situations using the string constant causes a tree shaker to leave the connector code out. This was particularly prevalent in Angular apps. We recommend now using the static type names, even if you're not using Angular.
Adhoc Layouts
- The
adHocLayoutmethod of the Surface now clears the geometry of all the edges in the canvas, because edited edge paths are intrinsically linked to the position of their source and target vertices, and theadHocLayoutmethod can arbitrarily move any vertex.
Angular integration
- We added optional
dataandurlinputs to thejsplumb-surfacecomponent in the Angular integration. You can now do things like this in your templates:
<jsplumb-surface [toolkitParams]="toolkitParams"
[renderParams]="renderParams"
[view]="view"
url="/assets/dataset.json"></jsplumb-surface>
or
<jsplumb-surface [toolkitParams]="toolkitParams"
[renderParams]="renderParams"
[view]="view"
[data]="data"></jsplumb-surface>
instead of having to declare a @ViewChild and load the data afterwards.
Further reading
- Read about JsPlumb's comprehensive Angular integration here: https://angular.jsplumbtoolkit.com/
- Read about JsPlumb's connector types here: https://docs.jsplumbtoolkit.com/toolkit/7.x/lib/connectors
Start a free trial
Get in touch!
If you'd like to discuss any of the ideas/concepts in this article we'd love to hear from you - drop us a line at hello@jsplumbtoolkit.com.