Preparing search index...
The search index is not available
@tencent/libpag
@tencent/libpag
core/global-canvas
GlobalCanvas
Class GlobalCanvas
Hierarchy
GlobalCanvas
Index
Constructors
constructor
Properties
_canvas
_gl
Context
width
height
retain
Count
Accessors
canvas
gl
Context
Methods
retain
release
set
Canvas
Size
Constructors
constructor
new
Global
Canvas
(
)
:
GlobalCanvas
Returns
GlobalCanvas
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
Accessors
canvas
get
canvas
(
)
:
null
|
HTMLCanvasElement
|
OffscreenCanvas
Returns
null
|
HTMLCanvasElement
|
OffscreenCanvas
gl
Context
get
glContext
(
)
:
null
|
BackendContext
Returns
null
|
BackendContext
Methods
retain
retain
(
)
:
void
Returns
void
release
release
(
)
:
void
Returns
void
set
Canvas
Size
set
Canvas
Size
(
width
?
,
height
?
)
:
void
Parameters
width
:
number
= DEFAULT_CANVAS_SIZE
height
:
number
= DEFAULT_CANVAS_SIZE
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
_canvas
_gl
Context
width
height
retain
Count
canvas
gl
Context
retain
release
set
Canvas
Size
@tencent/libpag
binding
constant
core/backend-
context
core/global-
canvas
Global
Canvas
core/matrix
core/render-
canvas
core/video-
reader
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
types
utils/canvas
utils/clock
utils/common
utils/decorators
utils/event-
manager
utils/mixin
utils/polyfills
utils/queue
utils/type-
utils
utils/ua
utils/video-
listener
wechat/babel
wechat/binding
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/video-
reader
worker/client
worker/events
worker/pag-
file
worker/pag-
image
worker/pag-
view
worker/utils
worker/video-
reader
worker/worker
Generated using
TypeDoc