import type { CanvasAxisAlignedSegment, SegmentLayoutInformation } from "@hylimo/diagram-common"; import type { VNode } from "snabbdom"; import { SCanvasConnectionSegment } from "./sCanvasConnectionSegment.js"; import type { LinearAnimatable } from "../../features/animation/model.js"; import type { SCanvasConnection } from "./sCanvasConnection.js"; /** * CanvasAxisAlignedSegment model element */ export declare class SCanvasAxisAlignedSegment extends SCanvasConnectionSegment implements CanvasAxisAlignedSegment, LinearAnimatable { type: typeof CanvasAxisAlignedSegment.TYPE; readonly animatedFields: Set; /** * Values betweeen 0 and 1: * The position on the x-axis where the vertical segment starts. * 0 being the start of the horizontal segment and 1 being the end. * Values between -1 and 0: * The position on the y-axis where the horizontal segment starts. * 0 being the end of the vertical segment and -1 being the start */ pos: number; get dependencies(): string[]; generateControlViewElements(model: Readonly, layout: SegmentLayoutInformation, index: number): VNode[]; /** * Generates a vertical control line * * @param model the parent canvas connection * @param x the x position of the line * @param y1 the y start position of the line * @param y2 the y end position of the line * @param index the index of the segment * @param segmentIndex the index of the part of the segment * @returns the generated line */ private generateVerticalControlLine; /** * Generates a horizontal control line * * @param model the parent canvas connection * @param y the y position of the line * @param x1 the x start position of the line * @param x2 the x end position of the line * @param index the index of the segment * @param segmentIndex the index of the part of the segment * @returns the generated line */ private generateHorizontalControlLine; canSplitSegment(): boolean; } //# sourceMappingURL=sCanvasAxisAlignedSegment.d.ts.map