import type { VNode } from "snabbdom"; import type { IView, IViewArgs, RenderingContext } from "sprotty"; import type { SCanvasConnection } from "../../model/canvas/sCanvasConnection.js"; import { EditableCanvasContentView } from "./editableCanvasContentView.js"; import type { KeyState } from "../../features/key-state/keyState.js"; /** * IView that represents a CanvasConnection */ export declare class CanvasConnectionView extends EditableCanvasContentView implements IView { /** * The key state used to determine if the shift key is pressed */ protected readonly keyState: KeyState; render(model: Readonly, context: RenderingContext, _args?: IViewArgs | undefined): VNode | undefined; /** * Renders the path of the connection * Renders a visisble path and an invisible path for selection * * @param model the model of the connection * @param path the path string * @returns the rendered path elements */ private renderConnectionPath; /** * Renders the path segment and child control elements if necessary * * @param model the model of the connection * @param endPos the end position ignoring the markers * @returns the path string and the child control elements */ private renderPathAndControlElements; /** * Renders the marker at the start and end of the connection * * @param model the model of the connection * @param segments the segments of the connection * @param context rendering context * @returns the new start and end pos of the connection (without the markers), and the childMarkers */ private renderMarkers; /** * Renders a marker * * @param marker the marker to render * @param markerLayout required information for rendering * @param position the position of the marker * @param context rendering context * @returns the rendered marker */ private renderMarker; /** * Renders a preview point for splitting a segment of the connection * * @param model the model of the connection * @returns the rendered preview point if available */ private renderSplitSegmentPreview; /** * Renders a preview point * * @param point the position of the preview point * @param model the model of the connection * @returns the rendered preview point */ private renderPreviewPoint; } //# sourceMappingURL=canvasConnectionView.d.ts.map