import type { FullObject, ExecutableAbstractFunctionExpression } from "@hylimo/core"; import type { Size, Point, Element } from "@hylimo/diagram-common"; import type { LayoutElement, SizeConstraints } from "../../layoutElement.js"; import type { Layout } from "../../engine/layout.js"; import { EditableCanvasContentLayoutConfig } from "./editableCanvasContentLayoutConfig.js"; /** * Layout config for canvas element */ export declare class CanvasElementLayoutConfig extends EditableCanvasContentLayoutConfig { isLayoutContent: boolean; type: string; idGroup: string; constructor(); measure(layout: Layout, element: LayoutElement, constraints: SizeConstraints): Size; layout(layout: Layout, element: LayoutElement, position: Point, size: Size, id: string): Element[]; getChildren(element: LayoutElement): FullObject[]; /** * Extracts the position from the element * If the element has a pos field, the position is extracted. * * @param layout the layout engine * @param element the element from which the position should be extracted * @returns the extracted position */ private extractPos; createPrototype(): ExecutableAbstractFunctionExpression; } //# sourceMappingURL=canvasElementLayoutConfig.d.ts.map