import { IPoint, InteractionEvent, InteractionManager, Point, Renderer } from "pixi.js"; import { DDiagramCanvasBase, DDiagramCanvasBaseOptions, DThemeDiagramCanvasBase } from "./d-diagram-canvas-base"; import { EShape } from "./shape/e-shape"; import { EShapeActionValue } from "./shape/action/e-shape-action-value"; import { EShapeActionRuntime } from "./shape/action/e-shape-action-runtime"; import { DDiagramDataMapper } from "./d-diagram-data-mapper"; import { EShapeRuntime } from "./shape/e-shape-runtime"; import { EShapeDataValue } from "./shape/e-shape-data-value"; import { EShapeDataValueType } from "./shape/e-shape-data-value-type"; import { EShapeContainer } from "./shape/e-shape-container"; import { DDiagramCanvasData } from "./d-diagram-canvas-data"; import { DDiagramCanvasShape } from "./d-diagram-canvas-shape"; import { DDiagramCanvasTicker } from "./d-diagram-canvas-ticker"; export interface DDiagramCanvasOptions extends DDiagramCanvasBaseOptions { } export interface DThemeDiagramCanvas extends DThemeDiagramCanvasBase { } export declare class DDiagramCanvas = DDiagramCanvasOptions> extends DDiagramCanvasBase { protected static WORK_DBLCLICK?: Point; protected _data: DDiagramCanvasData; protected _shape: DDiagramCanvasShape; protected _ticker: DDiagramCanvasTicker; protected _actionables: EShape[]; protected _overed?: EShape | null; protected _downed?: EShape | null; protected _downeds: Set; protected _updateBound: () => void; constructor(options: OPTIONS); get data(): DDiagramCanvasData; get shape(): DDiagramCanvasShape; get ticker(): DDiagramCanvasTicker; initialize(shapes: EShape[], mapper?: DDiagramDataMapper | null): void; protected initialize_(shapes: EShape[], dataShape: EShape | null, containerShape: EShape | null, mapper: DDiagramDataMapper | null | undefined, formatters: Map unknown>>, initializers: Map unknown>>, actionValueToRuntime: Map, canvasTicker: DDiagramCanvasTicker, canvasShape: DDiagramCanvasShape, canvasData: DDiagramCanvasData, actionables: EShape[]): void; protected initData(shape: EShape, dataShape: EShape | null, containerShape: EShape | null, mapper: DDiagramDataMapper | null | undefined, formatters: Map unknown>>, initializers: Map unknown>>, canvasTicker: DDiagramCanvasTicker, canvasData: DDiagramCanvasData): void; protected initDataValue(value: EShapeDataValue, shape: EShape, dataShape: EShape | null, containerShape: EShape | null, mapper: DDiagramDataMapper | null | undefined, formatters: Map unknown>>, initializers: Map unknown>>, canvasData: DDiagramCanvasData): void; protected initDataTicker(value: EShapeDataValue, initializers: Map unknown>>, canvasTicker: DDiagramCanvasTicker): void; protected initDataExtension(value: EShapeDataValue, canvasData: DDiagramCanvasData): void; protected initActions(shape: EShape, shapeRuntime: EShapeRuntime, valueToRuntime: Map): void; protected calcFormatter(value: EShapeDataValue, format: string, initial: string): (value: unknown) => unknown; protected calcInitial(value: EShapeDataValue, initial: string): () => unknown; protected toInitial(value: EShapeDataValue): string; protected toInitializer(value: EShapeDataValue): () => unknown; protected onDestroy(): void; hitTestInteractives(global: IPoint): EShape | null; onShapeMove(e: InteractionEvent): boolean; protected toShapeCursor(target: EShape | null): string; protected toShapeTitle(target: EShape | null): string; protected onShapeOut(e: InteractionEvent, target?: EShape | EShapeContainer | null, except?: EShape | null): void; protected onShapeOver(e: InteractionEvent, target?: EShape | EShapeContainer | null, except?: EShape | null): void; onShapeDown(e: InteractionEvent): boolean; onShapeUp(e: InteractionEvent): boolean; onShapeCancel(e: InteractionEvent): boolean; onShapeClick(e: InteractionEvent): boolean; onShapeDblClick(e: MouseEvent | TouchEvent, interactionManager: InteractionManager): boolean; onShapeRightClick(e: InteractionEvent): boolean; onShapeRightDown(e: InteractionEvent): boolean; onShapeRightUp(e: InteractionEvent): boolean; onShapeRightCancel(e: InteractionEvent): boolean; update(): void; onRender(renderer: Renderer): void; protected getType(): string; }