Interface: IPaintImageModule
Table of contents
Methods
Methods
image
▸ image(ui
, attrName
, paint
, boxBounds
, firstUse
): ILeafPaint
Parameters
Name | Type |
---|---|
ui | IUI |
attrName | string |
paint | IImagePaint |
boxBounds | IBoundsData |
firstUse | boolean |
Returns
Defined in
ui/packages/interface/src/module/IPaint.ts:28
checkImage
▸ checkImage(ui
, canvas
, paint
, allowPaint?
): boolean
Parameters
Name | Type |
---|---|
ui | IUI |
canvas | ILeaferCanvas |
paint | ILeafPaint |
allowPaint? | boolean |
Returns
boolean
Defined in
ui/packages/interface/src/module/IPaint.ts:29
createPattern
▸ createPattern(ui
, paint
, pixelRatio
): boolean
Parameters
Name | Type |
---|---|
ui | IUI |
paint | ILeafPaint |
pixelRatio | number |
Returns
boolean
Defined in
ui/packages/interface/src/module/IPaint.ts:30
recycleImage
▸ recycleImage(attrName
, data
): IBooleanMap
Parameters
Name | Type |
---|---|
attrName | IPaintAttr |
data | IUIData |
Returns
Defined in
ui/packages/interface/src/module/IPaint.ts:31
createData
▸ createData(leafPaint
, image
, paint
, box
): void
Parameters
Name | Type |
---|---|
leafPaint | ILeafPaint |
image | ILeaferImage |
paint | IImagePaint |
box | IBoundsData |
Returns
void
Defined in
ui/packages/interface/src/module/IPaint.ts:33
getPatternData
▸ getPatternData(paint
, box
, image
): ILeafPaintPatternData
Parameters
Name | Type |
---|---|
paint | IImagePaint |
box | IBoundsData |
image | ILeaferImage |
Returns
Defined in
ui/packages/interface/src/module/IPaint.ts:34
fillOrFitMode
▸ fillOrFitMode(data
, box
, x
, y
, scaleX
, scaleY
, rotation
): void
Parameters
Name | Type |
---|---|
data | ILeafPaintPatternData |
box | IBoundsData |
x | number |
y | number |
scaleX | number |
scaleY | number |
rotation | number |
Returns
void
Defined in
ui/packages/interface/src/module/IPaint.ts:35
clipMode
▸ clipMode(data
, box
, x
, y
, scaleX
, scaleY
, rotation
): void
Parameters
Name | Type |
---|---|
data | ILeafPaintPatternData |
box | IBoundsData |
x | number |
y | number |
scaleX | number |
scaleY | number |
rotation | number |
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
Name | Type |
---|---|
data | ILeafPaintPatternData |
box | IBoundsData |
width | number |
height | number |
x | number |
y | number |
scaleX | number |
scaleY | number |
rotation | number |
around | IAround |
Returns
void