import type { VNode } from "snabbdom"; import type { SCanvasElement } from "../../model/canvas/sCanvasElement.js"; import type { SCanvasConnection } from "../../model/canvas/sCanvasConnection.js"; import type { TransactionStateProvider } from "../../features/transaction/transactionStateProvider.js"; import type { ToolTypeProvider } from "../../features/toolbox/toolState.js"; import type { DiagramStateProvider } from "../../features/diagram-state/diagramStateProvider.js"; /** * Base class for CanvasElementView and CanvasConnectionView */ export declare abstract class EditableCanvasContentView { /** * The class name for the create connection UI elements */ static readonly CREATE_CONNECTION_CLASS = "create-connection-target"; /** * The transaction state provider */ protected transactionStateProvider: TransactionStateProvider; /** * The tool type provider to determine the current tool type */ protected readonly toolTypeProvider: ToolTypeProvider; /** * The diagram state provider */ protected readonly diagramStateProvider: DiagramStateProvider; /** * Renders the create connection preview * * @param model the SRoot model * @returns the rendered create connection preview */ protected renderCreateConnection(model: Readonly): VNode | undefined; /** * Renders the start symbol for the create connection preview * Consists of a point on the outline and an arrow pointing in the direction of the connection * * @param model the canvas content model * @param preview the connection creation preview * @returns the rendered start symbol */ private renderCreateConnectionStartSymbol; /** * Renders the create connection outline * * @param preview the connection creation preview * @returns the rendered create connection outline */ private renderCreateConnectionOutline; } //# sourceMappingURL=editableCanvasContentView.d.ts.map