Preparing search index...
The search index is not available
libpag
libpag
core/global-canvas
GlobalCanvas
Class GlobalCanvas
Hierarchy
GlobalCanvas
Index
Constructors
constructor
Methods
retain
release
set
Canvas
Size
Accessors
canvas
gl
Context
Properties
_canvas
_gl
Context
width
height
retain
Count
Constructors
constructor
new
Global
Canvas
(
)
:
GlobalCanvas
Returns
GlobalCanvas
Methods
retain
retain
(
)
:
void
Returns
void
release
release
(
)
:
void
Returns
void
set
Canvas
Size
set
Canvas
Size
(
width
?:
number
, height
?:
number
)
:
void
Parameters
width:
number
= DEFAULT_CANVAS_SIZE
height:
number
= DEFAULT_CANVAS_SIZE
Returns
void
Accessors
canvas
get
canvas
(
)
:
null
|
HTMLCanvasElement
|
OffscreenCanvas
Returns
null
|
HTMLCanvasElement
|
OffscreenCanvas
gl
Context
get
glContext
(
)
:
null
|
BackendContext
Returns
null
|
BackendContext
Properties
Private
_canvas
_canvas
:
null
|
HTMLCanvasElement
|
OffscreenCanvas
= null
Private
_gl
Context
_gl
Context
:
null
|
BackendContext
= null
Private
width
width
:
number
= DEFAULT_CANVAS_SIZE
Private
height
height
:
number
= DEFAULT_CANVAS_SIZE
Private
retain
Count
retain
Count
:
number
= 0
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
libpag
binding
constant
core/backend-
context
core/bitmap-
image
core/global-
canvas
core/matrix
core/render-
canvas
core/scaler-
context
core/video-
reader
core/web-
mask
interfaces
pag-
composition
pag-
file
pag-
font
pag-
image-
layer
pag-
image
pag-
layer
pag-
module
pag-
player
pag-
solid-
layer
pag-
surface
pag-
text-
layer
pag-
view
pag
tgfx
types
utils/buffer
utils/canvas
utils/clock
utils/common
utils/decorators
utils/event-
manager
utils/font-
family
utils/measure-
text
utils/mixin
utils/queue
utils/type-
utils
utils/ua
utils/video-
listener
wechat/array-
buffer-
image
wechat/babel
wechat/binding
wechat/canvas
wechat/constant
wechat/file-
utils
wechat/interfaces
wechat/pag-
file
wechat/pag-
font
wechat/pag-
image
wechat/pag-
view
wechat/pag
wechat/scaler-
context
wechat/tgfx
wechat/video-
reader
wechat/web-
mask
worker/client
worker/events
worker/pag-
file
worker/pag-
image
worker/pag-
view
worker/utils
worker/video-
reader
worker/worker
Global
Canvas
constructor
retain
release
canvas
gl
Context
set
Canvas
Size
_canvas
_gl
Context
width
height
retain
Count
Generated using
TypeDoc