Interface: IPaintModule
Table of contents
Methods
Methods
compute
▸ compute(attrName
, ui
): void
Parameters
Name | Type |
---|---|
attrName | IPaintAttr |
ui | IUI |
Returns
void
Defined in
ui/packages/interface/src/module/IPaint.ts:10
fill
▸ fill(fill
, ui
, canvas
): void
Parameters
Name | Type |
---|---|
fill | string |
ui | IUI |
canvas | ILeaferCanvas |
Returns
void
Defined in
ui/packages/interface/src/module/IPaint.ts:12
fills
▸ fills(fills
, ui
, canvas
): void
Parameters
Name | Type |
---|---|
fills | ILeafPaint [] |
ui | IUI |
canvas | ILeaferCanvas |
Returns
void
Defined in
ui/packages/interface/src/module/IPaint.ts:13
fillText
▸ fillText(ui
, canvas
): void
Parameters
Name | Type |
---|---|
ui | IUI |
canvas | ILeaferCanvas |
Returns
void
Defined in
ui/packages/interface/src/module/IPaint.ts:15
stroke
▸ stroke(stroke
, ui
, canvas
): void
Parameters
Name | Type |
---|---|
stroke | string |
ui | IUI |
canvas | ILeaferCanvas |
Returns
void
Defined in
ui/packages/interface/src/module/IPaint.ts:17
strokes
▸ strokes(strokes
, ui
, canvas
): void
Parameters
Name | Type |
---|---|
strokes | ILeafPaint [] |
ui | IUI |
canvas | ILeaferCanvas |
Returns
void
Defined in
ui/packages/interface/src/module/IPaint.ts:18
strokeText
▸ strokeText(stroke
, ui
, canvas
): void
Parameters
Name | Type |
---|---|
stroke | string | ILeafPaint [] |
ui | IUI |
canvas | ILeaferCanvas |
Returns
void
Defined in
ui/packages/interface/src/module/IPaint.ts:20
drawTextStroke
▸ drawTextStroke(ui
, canvas
): void
Parameters
Name | Type |
---|---|
ui | IUI |
canvas | ILeaferCanvas |
Returns
void
Defined in
ui/packages/interface/src/module/IPaint.ts:21
shape
▸ shape(ui
, current
, renderOptions
): ICachedShape
Parameters
Name | Type |
---|---|
ui | IUI |
current | ILeaferCanvas |
renderOptions | IRenderOptions |