M3D / M3D / Shapes / ModelBoardBrush
Class: ModelBoardBrush
Memberof
M3D.Shapes
Description
看板画笔
Hierarchy
-
↳
ModelBoardBrush
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new ModelBoardBrush(): ModelBoardBrush
Returns
Description
构造函数
Inherited from
Properties
updateContentCallBack
• updateContentCallBack: (param
: any
) => void
Type declaration
▸ (param
): void
Parameters
Name | Type |
---|---|
param | any |
Returns
void
Inherited from
Methods
clearShape2D
▸ clearShape2D(): void
Returns
void
Description
清空2D对象
Inherited from
draw
▸ draw(): void
Returns
void
Description
绘制
Overrides
drawBackground
▸ drawBackground(context
, shape2D
): void
Parameters
Name | Type |
---|---|
context | CanvasRenderingContext2D |
shape2D | Shape2D |
Returns
void
Description
绘制背景
Inherited from
drawContent
▸ drawContent(context
, shape2D
): void
Parameters
Name | Type |
---|---|
context | CanvasRenderingContext2D |
shape2D | Shape2D |
Returns
void
Description
绘制文本内容
Inherited from
getCanvas
▸ getCanvas(): HTMLCanvasElement
Returns
HTMLCanvasElement
Description
获取Canvas
Inherited from
setShape2D
▸ setShape2D(shape2D
): void
Parameters
Name | Type |
---|---|
shape2D | Shape2D |
Returns
void
Description
设置Shape2D