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
Interested in the concepts discussed in this article? JsPlumb is now in maintenance mode, but the good news is that we've released a bigger and better library - VisuallyJs. If you can do it in JsPlumb you can do it more easily in VisuallyJs.

To read more about VisuallyJs, check out the home page, or if you want to get started on a trial right now, head over to the trial page at https://visuallyjs.com/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.