Routes links by applying patterns of segment and turn sequences and accepting them when resulting paths do not cross nodes.
Namespace: MindFusion.Diagramming
File: PatternRouter.js
SyntaxJavaScript
Copy Code
|
|---|
// class |
RemarksYou can add custom patterns to the patterns property, or replace the standard patterns altogether. Patterns are defined using RoutePattern and RouteStep objects.
ExampleThe following code defines a Z-like link route that will be accepted if it does not cross obstacle nodes, nor passes by them within minimumDistance.
JavaScript
Copy Code
|
|---|
var rightZigzag = new RoutePattern(); |
Inheritance HierarchyMindFusion.Diagramming.Router
MindFusion.Diagramming.PatternRouter
See Also