CanvasManager
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
CANVASMODE_FULLSCREEN: number |
|
public |
CANVASMODE_NORMAL: number |
|
public |
CANVASMODE_PATCHBG: number |
|
public |
CANVASMODE_POPOUT: number |
|
public set |
|
|
public get |
mode: * |
|
public |
subWindow: * |
Private Members | ||
private |
_canvasMode: * |
|
private |
_contexts: *[] |
|
private |
_curContextIdx: number |
|
private |
_menuEle: * |
Method Summary
Public Methods | ||
public |
addContext(c: *) |
|
public |
blur() |
|
public |
currentCanvas(): * |
|
public |
currentContext(): * |
|
public |
focus() |
|
public |
getCanvasUiBar(): * |
|
public |
menu(el: *) |
|
public |
popOut() |
|
public |
screenShot(cb: *, mimeType: string, quality: number) |
|
public |
setCurrentCanvas(canv: *) |
|
public |
setSize(w: *, h: *) |
|
public |
|
Public Constructors
public constructor() source
Public Members
public CANVASMODE_FULLSCREEN: number source
public CANVASMODE_NORMAL: number source
public CANVASMODE_PATCHBG: number source
public CANVASMODE_POPOUT: number source
public set mode source
public get mode: * source
public subWindow: * source
Private Members
private _canvasMode: * source
private _contexts: *[] source
private _curContextIdx: number source
private _menuEle: * source
Public Methods
public addContext(c: *) source
Params:
Name | Type | Attribute | Description |
c | * |
public blur() source
public focus() source
public menu(el: *) source
Params:
Name | Type | Attribute | Description |
el | * |
public popOut() source
public screenShot(cb: *, mimeType: string, quality: number) source
Params:
Name | Type | Attribute | Description |
cb | * | ||
mimeType | string |
|
|
quality | number |
|
public setCurrentCanvas(canv: *) source
Params:
Name | Type | Attribute | Description |
canv | * |
public setSize(w: *, h: *) source
Params:
Name | Type | Attribute | Description |
w | * | ||
h | * |