rete-connection-path-plugin
packageBuilt-in transformers, defining the auxiliary points for the path.
Classic transformer. Returns four points: start, auxiliary start, auxiliary end, end.
tsclassic(options: { curvature: number, vertical: boolean }): Transformer
Parameter | Type | Description |
---|---|---|
options | { curvature: number, vertical: boolean } | Options |
Returns Transformer
Four points
Linear transformer. Returns the same points.
tslinear(): Transformer
Throws Error if number of points is not equal to 2
Returns Transformer
Two points
Connection path plugin. Allows to customize connection path and arrow.
tsclass ConnectionPathPlugin<Schemes extends BaseSchemes, K extends unknown>
Parameter | Extends | Description |
---|---|---|
Schemes | BaseSchemes | |
K | unknown |
Extends Scope<never, RenderProduces<Schemes>, ...Area2DInherited<Schemes, K>>
Listens connectionpath
rendered
tsconstructor(props: Props<Schemes>): ConnectionPathPlugin<Schemes, K>
Parameter | Type | Description |
---|---|---|
props | Props<Schemes> | Connection path plugin props |
Returns ConnectionPathPlugin<Schemes, K>
Connection path plugin props
tstype Props<Schemes extends BaseSchemes> = { arrow: Function; curve: Function; transformer: Function; };
Parameter | Extends | Description |
---|---|---|
Schemes | BaseSchemes |