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.
classic(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.
linear(): 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.
class 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
constructor(props: Props<Schemes>): ConnectionPathPlugin<Schemes, K>
| Parameter | Type | Description | 
|---|---|---|
| props | Props<Schemes> | Connection path plugin props | 
Returns ConnectionPathPlugin<Schemes, K>
Connection path plugin props
type Props<Schemes extends BaseSchemes> = {
  arrow: Function;
  curve: Function;
  transformer: Function;
};
| Parameter | Extends | Description | 
|---|---|---|
| Schemes | BaseSchemes |