Skip to content

Interface: IPaintModule

Table of contents

Methods

Methods

compute

compute(attrName, ui): void

Parameters

NameType
attrNameIPaintAttr
uiIUI

Returns

void

Defined in

ui/packages/interface/src/module/IPaint.ts:10


fill

fill(fill, ui, canvas): void

Parameters

NameType
fillstring
uiIUI
canvasILeaferCanvas

Returns

void

Defined in

ui/packages/interface/src/module/IPaint.ts:12


fills

fills(fills, ui, canvas): void

Parameters

NameType
fillsILeafPaint[]
uiIUI
canvasILeaferCanvas

Returns

void

Defined in

ui/packages/interface/src/module/IPaint.ts:13


fillText

fillText(ui, canvas): void

Parameters

NameType
uiIUI
canvasILeaferCanvas

Returns

void

Defined in

ui/packages/interface/src/module/IPaint.ts:15


stroke

stroke(stroke, ui, canvas): void

Parameters

NameType
strokestring
uiIUI
canvasILeaferCanvas

Returns

void

Defined in

ui/packages/interface/src/module/IPaint.ts:17


strokes

strokes(strokes, ui, canvas): void

Parameters

NameType
strokesILeafPaint[]
uiIUI
canvasILeaferCanvas

Returns

void

Defined in

ui/packages/interface/src/module/IPaint.ts:18


strokeText

strokeText(stroke, ui, canvas): void

Parameters

NameType
strokestring | ILeafPaint[]
uiIUI
canvasILeaferCanvas

Returns

void

Defined in

ui/packages/interface/src/module/IPaint.ts:20


drawTextStroke

drawTextStroke(ui, canvas): void

Parameters

NameType
uiIUI
canvasILeaferCanvas

Returns

void

Defined in

ui/packages/interface/src/module/IPaint.ts:21


shape

shape(ui, current, renderOptions): ICachedShape

Parameters

NameType
uiIUI
currentILeaferCanvas
renderOptionsIRenderOptions

Returns

ICachedShape

Defined in

ui/packages/interface/src/module/IPaint.ts:23

Released under the MIT License.