source: imaps-frontend/node_modules/konva/lib/Canvas.d.ts@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 907 bytes
Line 
1import { Context } from './Context.js';
2interface ICanvasConfig {
3 width?: number;
4 height?: number;
5 pixelRatio?: number;
6 willReadFrequently?: boolean;
7}
8export declare class Canvas {
9 pixelRatio: number;
10 _canvas: HTMLCanvasElement;
11 context: Context;
12 width: number;
13 height: number;
14 isCache: boolean;
15 constructor(config: ICanvasConfig);
16 getContext(): Context;
17 getPixelRatio(): number;
18 setPixelRatio(pixelRatio: any): void;
19 setWidth(width: any): void;
20 setHeight(height: any): void;
21 getWidth(): number;
22 getHeight(): number;
23 setSize(width: any, height: any): void;
24 toDataURL(mimeType: any, quality: any): string;
25}
26export declare class SceneCanvas extends Canvas {
27 constructor(config?: ICanvasConfig);
28}
29export declare class HitCanvas extends Canvas {
30 hitCanvas: boolean;
31 constructor(config?: ICanvasConfig);
32}
33export {};
Note: See TracBrowser for help on using the repository browser.