Home Reference Source
import CanvasManager from './ui/components/canvas/canvasmanager.js'
public class | source

CanvasManager

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public
public
public
public set
public get

mode: *

public
Private Members
private
private

_contexts: *[]

private

_curContextIdx: number

private

Method Summary

Public Methods
public

addContext(c: *)

public

blur()

public
public
public

focus()

public
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:

NameTypeAttributeDescription
c *

public blur() source

public currentCanvas(): * source

Return:

*

public currentContext(): * source

Return:

*

public focus() source

public getCanvasUiBar(): * source

Return:

*

public menu(el: *) source

Params:

NameTypeAttributeDescription
el *

public popOut() source

public screenShot(cb: *, mimeType: string, quality: number) source

Params:

NameTypeAttributeDescription
cb *
mimeType string
  • optional
  • default: image/png
quality number
  • optional
  • default: 1

public setCurrentCanvas(canv: *) source

Params:

NameTypeAttributeDescription
canv *

public setSize(w: *, h: *) source

Params:

NameTypeAttributeDescription
w *
h *

public updateCanvasUi() source