/** * Horizontal-first bend geometry helpers for multi-segment connectors. * OOXML preset paths keep x as the primary axis regardless of aspect ratio; * transform flips reverse the endpoints when the shape is mirrored. */ /** Segment counts implied by the `bentConnector*` / `curvedConnector*` preset names. */ export type ElbowSegments = 3 | 4 | 5; /** One `(x, y)` waypoint. */ export type ElbowPoint = readonly [number, number]; /** One cubic-Bezier segment: a single control point (used twice) and an end point. */ export interface ElbowCurveSegment { control: ElbowPoint; end: ElbowPoint; } /** * OOXML bent and curved connector presets are authored horizontal-first. * Their orientation is controlled by transform flips, not box aspect ratio. */ export declare function isHorizontalPrimaryAxis(_width: number, _height: number): boolean; /** * Compute the bend waypoints (including the two endpoints) for a * `segments`-segment orthogonal elbow between `(startX,startY)` and * `(endX,endY)`, honouring `adj1`/`adj2`/`adj3` fractions (already * normalised to 0..1 by `getConnectorAdjustment`). * * Segment counts mirror the OOXML presets: * - `3` (`bentConnector3`, Z-shape): one bend line, positioned by `adj1`. * - `4` (`bentConnector4`): a staircase through `adj1` (primary axis) and * `adj2` (secondary axis). * - `5` (`bentConnector5`): a staircase with two primary-axis bend lines * (`adj1`, `adj3`) joined by one secondary-axis crossing (`adj2`). */ export declare function elbowWaypoints(startX: number, startY: number, endX: number, endY: number, width: number, height: number, segments: ElbowSegments, adj1: number, adj2: number, adj3: number): ElbowPoint[]; /** * Compute the cubic-Bezier segments (control point used twice, plus an end * point) for a `segments`-segment smooth elbow, mirroring * {@link elbowWaypoints}'s fixed axis and adjustment handling. `segments` * yields `segments - 1` curve segments. */ export declare function elbowCurveSegments(startX: number, startY: number, endX: number, endY: number, width: number, height: number, segments: ElbowSegments, adj1: number, adj2: number, adj3: number): ElbowCurveSegment[]; //# sourceMappingURL=connector-elbow-geometry.d.ts.map