import { Layer } from './layer'; import { PipelineDimension } from '../pipeline'; import { EditorStateChangeEvent, EditorStateConfigEntity, PlaygroundConfigEntity } from './config'; import { PlaygroundDrag } from '../utils'; /** * 基础层,控制画布缩放/滚动等操作 */ export declare class PlaygroundLayer extends Layer { id: string; protected playgroundConfigEntity: PlaygroundConfigEntity; protected editorStateConfig: EditorStateConfigEntity; readonly loadingNode: HTMLDivElement; private cancelStateListen?; private lastShortcutState?; private currentGesture?; private startGrabScroll; private size?; private changeState?; onReady(): void; keydownEvent: (keyboard: KeyboardEvent) => void; onStateChanged(e: EditorStateChangeEvent): void; protected grabDragger: PlaygroundDrag; protected isGrab(): boolean; createGesture(): void; /** * 监听resize * @param size */ onResize(size: PipelineDimension): void; updateSizeWithRulerConfig(): void; protected handleScrollEvent(event: WheelEvent): void; /** * 监听滚动事件 * @param event */ protected handleWheelEvent(event: WheelEvent): void; draw(): void; } //# sourceMappingURL=playground-layer.d.ts.map