Initial commit
This commit is contained in:
32
node_modules/konva/cmj/Canvas.d.ts
generated
vendored
Normal file
32
node_modules/konva/cmj/Canvas.d.ts
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
import { Context } from './Context';
|
||||
interface ICanvasConfig {
|
||||
width?: number;
|
||||
height?: number;
|
||||
pixelRatio?: number;
|
||||
}
|
||||
export declare class Canvas {
|
||||
pixelRatio: number;
|
||||
_canvas: HTMLCanvasElement;
|
||||
context: Context;
|
||||
width: number;
|
||||
height: number;
|
||||
isCache: boolean;
|
||||
constructor(config: ICanvasConfig);
|
||||
getContext(): Context;
|
||||
getPixelRatio(): number;
|
||||
setPixelRatio(pixelRatio: any): void;
|
||||
setWidth(width: any): void;
|
||||
setHeight(height: any): void;
|
||||
getWidth(): number;
|
||||
getHeight(): number;
|
||||
setSize(width: any, height: any): void;
|
||||
toDataURL(mimeType: any, quality: any): string;
|
||||
}
|
||||
export declare class SceneCanvas extends Canvas {
|
||||
constructor(config?: ICanvasConfig);
|
||||
}
|
||||
export declare class HitCanvas extends Canvas {
|
||||
hitCanvas: boolean;
|
||||
constructor(config?: ICanvasConfig);
|
||||
}
|
||||
export {};
|
||||
Reference in New Issue
Block a user