main
Last change
on this file 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
|
Rev | Line | |
---|
[d565449] | 1 | import { Context } from './Context.js';
|
---|
| 2 | interface ICanvasConfig {
|
---|
| 3 | width?: number;
|
---|
| 4 | height?: number;
|
---|
| 5 | pixelRatio?: number;
|
---|
| 6 | willReadFrequently?: boolean;
|
---|
| 7 | }
|
---|
| 8 | export 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 | }
|
---|
| 26 | export declare class SceneCanvas extends Canvas {
|
---|
| 27 | constructor(config?: ICanvasConfig);
|
---|
| 28 | }
|
---|
| 29 | export declare class HitCanvas extends Canvas {
|
---|
| 30 | hitCanvas: boolean;
|
---|
| 31 | constructor(config?: ICanvasConfig);
|
---|
| 32 | }
|
---|
| 33 | export {};
|
---|
Note:
See
TracBrowser
for help on using the repository browser.