Skip to content

Interface: IPaintGradientModule

Table of contents

Methods

Methods

linearGradient

linearGradient(paint, box): ILeafPaint

Parameters

NameType
paintIGradientPaint
boxIBoundsData

Returns

ILeafPaint

Defined in

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


radialGradient

radialGradient(paint, box): ILeafPaint

Parameters

NameType
paintIGradientPaint
boxIBoundsData

Returns

ILeafPaint

Defined in

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


conicGradient

conicGradient(paint, box): ILeafPaint

Parameters

NameType
paintIGradientPaint
boxIBoundsData

Returns

ILeafPaint

Defined in

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


getTransform

getTransform(box, from, to, stretch, rotate90): IMatrixData

Parameters

NameType
boxIBoundsData
fromIPointData
toIPointData
stretchnumber
rotate90boolean

Returns

IMatrixData

Defined in

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

Released under the MIT License.