import { CurveFactoryLineOnly } from 'd3-shape'; import { BaseSchemes, Scope } from 'rete'; import { Area2DInherited } from 'rete-area-plugin'; import * as Transformers from './transformers'; import { Position, Transformer } from './types'; export { Transformers }; type RenderProduces = { type: 'connectionpath'; data: { payload: Schemes['Connection']; path?: string; points: Position[]; }; }; /** * Connection path plugin props */ export type Props = { /** The transformer function that defines auxiliary points for the path. Default: `Transformers.classic({})` */ transformer?: ((connection: Schemes['Connection']) => Transformer); /** The curve factory function that defines the shape of the path. Default: `curveBundle.beta(0.9)` */ curve?: ((connection: Schemes['Connection']) => CurveFactoryLineOnly); /** Customize/enable arrow. Allows to change arrow color (default: `steelblue`) and marker (default: `M-5,-10 L-5,10 L20,0 z)` */ arrow?: (connection: Schemes['Connection']) => boolean | { color?: string; marker?: string; }; }; /** * Connection path plugin. Allows to customize connection path and arrow. * @listens connectionpath * @listens rendered */ export declare class ConnectionPathPlugin extends Scope, ...Area2DInherited]> { private props?; /** * @constructor * @param props Connection path plugin props */ constructor(props?: Props | undefined); arrows: Map; transforms: Map; setParent(scope: Scope, Area2DInherited>): void; private getArrowData; private updateArrow; } //# sourceMappingURL=index.d.ts.map