UNPKG

@rxflow/manhattan

Version:

Manhattan routing algorithm for ReactFlow - generates orthogonal paths with obstacle avoidance

27 lines 733 B
import type { InternalNode } from '../options'; /** * Node dimensions interface */ export interface NodeDimensions { width: number; height: number; } /** * Get node dimensions following ReactFlow's internal logic * Priority: measured > direct property > initialWidth/Height > 0 * * @param node - ReactFlow internal node * @returns Node dimensions with width and height */ export declare function getNodeDimensions(node: InternalNode): NodeDimensions; /** * Get node absolute position from internals * * @param node - ReactFlow internal node * @returns Absolute position { x, y } */ export declare function getNodePosition(node: InternalNode): { x: number; y: number; }; //# sourceMappingURL=node.d.ts.map