Search
Preparing search index...
The search index is not available
ffxiv-raid-sketch
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Sketch
Class Sketch
画布
Hierarchy
Sketch
Index
Constructors
constructor
Properties
canvas
ctx
layer
options
Methods
append
To
render
size
unit
Object literals
default
Options
Constructors
constructor
new
Sketch
(
options
?:
Partial
<
ISketchOptions
>
)
:
Sketch
Parameters
Default value
options:
Partial
<
ISketchOptions
>
= {}
Returns
Sketch
Properties
canvas
canvas
:
HTMLCanvasElement
|
null
ctx
ctx
:
CanvasRenderingContext2D
|
null
layer
layer
:
Layer
options
options
:
ISketchOptions
Methods
append
To
append
To
(
element
:
HTMLElement
)
:
this
将 Canvas 添加到 ...
Parameters
element:
HTMLElement
Returns
this
render
render
(
)
:
this
渲染
不需要主动调用,任何操作都后都会发起渲染请求
Returns
this
size
size
(
w
:
number
, h
?:
number
)
:
this
设置画布尺寸
Parameters
w:
number
宽度
Optional
h:
number
高度
Returns
this
unit
unit
(
value
:
number
)
:
this
设置基数
Parameters
value:
number
推荐是画布宽度或高度的 1%
Returns
this
Object literals
Static
default
Options
default
Options
:
object
canvas
canvas
:
null
= null
h
h
:
number
= 600
unit
unit
:
number
= 6
w
w
:
number
= 600
Globals
Sketch
constructor
canvas
ctx
layer
options
append
To
render
size
unit
default
Options
画布