Preparing search index...
The search index is not available
libpag
libpag
core/web-mask
WebMask
Class WebMask
Hierarchy
WebMask
WebMask
Index
Methods
create
fill
Path
fill
Text
stroke
Text
clear
update
on
Destroy
get
Line
Cap
get
Line
Join
Constructors
constructor
Properties
canvas
context
Methods
Static
create
create
(
width
:
number
, height
:
number
)
:
WebMask
Parameters
width:
number
height:
number
Returns
WebMask
fill
Path
fill
Path
(
path
:
Path2D
, fillType
:
ctor
)
:
void
Parameters
path:
Path2D
fillType:
ctor
Returns
void
fill
Text
fill
Text
(
webFont
:
WebFont
, texts
:
Vector
<
string
>
, positions
:
Vector
<
Point
>
, matrixWasmIns
:
any
)
:
void
Parameters
webFont:
WebFont
texts:
Vector
<
string
>
positions:
Vector
<
Point
>
matrixWasmIns:
any
Returns
void
stroke
Text
stroke
Text
(
webFont
:
WebFont
, stroke
:
{
width
:
number
;
cap
:
ctor
;
join
:
ctor
;
miterLimit
:
number
;
}
, texts
:
Vector
<
string
>
, positions
:
Vector
<
Point
>
, matrixWasmIns
:
any
)
:
void
Parameters
webFont:
WebFont
stroke:
{
width
:
number
;
cap
:
ctor
;
join
:
ctor
;
miterLimit
:
number
;
}
width
:
number
cap
:
ctor
join
:
ctor
miter
Limit
:
number
texts:
Vector
<
string
>
positions:
Vector
<
Point
>
matrixWasmIns:
any
Returns
void
clear
clear
(
)
:
void
Returns
void
update
update
(
GL
:
EmscriptenGL
)
:
void
Parameters
GL:
EmscriptenGL
Returns
void
on
Destroy
on
Destroy
(
)
:
void
Returns
void
Static
Private
get
Line
Cap
get
Line
Cap
(
cap
:
ctor
)
:
CanvasLineCap
Parameters
cap:
ctor
Returns
CanvasLineCap
Static
Private
get
Line
Join
get
Line
Join
(
join
:
ctor
)
:
CanvasLineJoin
Parameters
join:
ctor
Returns
CanvasLineJoin
Constructors
constructor
new
Web
Mask
(
canvas
:
HTMLCanvasElement
|
OffscreenCanvas
, width
:
number
, height
:
number
)
:
WebMask
Parameters
canvas:
HTMLCanvasElement
|
OffscreenCanvas
width:
number
height:
number
Returns
WebMask
Properties
Protected
canvas
canvas
:
HTMLCanvasElement
|
OffscreenCanvas
Private
context
context
:
OffscreenCanvasRenderingContext2D
|
CanvasRenderingContext2D
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
Web
Mask
create
constructor
fill
Path
fill
Text
stroke
Text
clear
update
on
Destroy
canvas
get
Line
Cap
get
Line
Join
context
Generated using
TypeDoc