Skip to content

Interface: IPaintImageModule

Table of contents

Methods

Methods

image

image(ui, attrName, paint, boxBounds, firstUse): ILeafPaint

Parameters

NameType
uiIUI
attrNamestring
paintIImagePaint
boxBoundsIBoundsData
firstUseboolean

Returns

ILeafPaint

Defined in

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


checkImage

checkImage(ui, canvas, paint, allowPaint?): boolean

Parameters

NameType
uiIUI
canvasILeaferCanvas
paintILeafPaint
allowPaint?boolean

Returns

boolean

Defined in

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


createPattern

createPattern(ui, paint, pixelRatio): boolean

Parameters

NameType
uiIUI
paintILeafPaint
pixelRationumber

Returns

boolean

Defined in

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


recycleImage

recycleImage(attrName, data): IBooleanMap

Parameters

NameType
attrNameIPaintAttr
dataIUIData

Returns

IBooleanMap

Defined in

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


createData

createData(leafPaint, image, paint, box): void

Parameters

NameType
leafPaintILeafPaint
imageILeaferImage
paintIImagePaint
boxIBoundsData

Returns

void

Defined in

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


getPatternData

getPatternData(paint, box, image): ILeafPaintPatternData

Parameters

NameType
paintIImagePaint
boxIBoundsData
imageILeaferImage

Returns

ILeafPaintPatternData

Defined in

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


fillOrFitMode

fillOrFitMode(data, box, x, y, scaleX, scaleY, rotation): void

Parameters

NameType
dataILeafPaintPatternData
boxIBoundsData
xnumber
ynumber
scaleXnumber
scaleYnumber
rotationnumber

Returns

void

Defined in

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


clipMode

clipMode(data, box, x, y, scaleX, scaleY, rotation): void

Parameters

NameType
dataILeafPaintPatternData
boxIBoundsData
xnumber
ynumber
scaleXnumber
scaleYnumber
rotationnumber

Returns

void

Defined in

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


repeatMode

repeatMode(data, box, width, height, x, y, scaleX, scaleY, rotation, around): void

Parameters

NameType
dataILeafPaintPatternData
boxIBoundsData
widthnumber
heightnumber
xnumber
ynumber
scaleXnumber
scaleYnumber
rotationnumber
aroundIAround

Returns

void

Defined in

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

Released under the MIT License.