12345678910111213141516171819202122232425262728293031323334 |
- import { SCanvasView, SPainter, SPoint } from "@persagy-web/draw/lib";
- import { SGraphScene } from "./SGraphScene";
- import { SGraphItem } from "./SGraphItem";
- import { SColor } from "@persagy-web/draw";
- export declare class SGraphView extends SCanvasView {
- private _scene;
- get scene(): SGraphScene | null;
- set scene(v: SGraphScene | null);
- backgroundColor: SColor;
- rotate: number;
- constructor(id: string);
- saveSceneSvg(name: string, width: number, height: number): void;
- sceneSvgData(width: number, height: number): string;
- fitSceneToView(): void;
- fitSelectedToView(): void;
- fitItemToView(itemList: SGraphItem[]): void;
- mapFromScene(x: number, y: number): SPoint;
- mapFromScene(pos: SPoint): SPoint;
- mapToScene(x: number, y: number): SPoint;
- mapToScene(pos: SPoint): SPoint;
- saveImageSize(name: string, type: string, width: number, height: number): void;
- protected onDraw(painter: SPainter): void;
- protected drawBackground(painter: SPainter): void;
- protected drawForeground(painter: SPainter): void;
- protected onDoubleClick(event: MouseEvent): void;
- protected onMouseDown(event: MouseEvent): void;
- protected onMouseMove(event: MouseEvent): void;
- protected onMouseUp(event: MouseEvent): void;
- protected onContextMenu(event: MouseEvent): void;
- protected onKeyDown(event: KeyboardEvent): void;
- protected onKeyUp(event: KeyboardEvent): void;
- private fitRectToSize;
- private toSceneMotionEvent;
- }
|