Skip to content

Interface: ILeafData ​

Hierarchy ​

Implemented by ​

Table of contents ​

Properties ​

Methods ​

Properties ​

__leaf ​

• __leaf: ILeaf

Inherited from ​

IDataProcessor.__leaf

Defined in ​

src/leafer/packages/interface/src/data/ILeafData.ts:6


__input ​

• __input: IObject

Inherited from ​

IDataProcessor.__input

Defined in ​

src/leafer/packages/interface/src/data/ILeafData.ts:7


__middle ​

• __middle: IObject

Inherited from ​

IDataProcessor.__middle

Defined in ​

src/leafer/packages/interface/src/data/ILeafData.ts:8


__single ​

• Optional __single: boolean

Defined in ​

src/leafer/packages/interface/src/data/ILeafData.ts:30


__hasMultiPaint ​

• Optional Readonly __hasMultiPaint: boolean

Defined in ​

src/leafer/packages/interface/src/data/ILeafData.ts:31


__willDestroy ​

• Optional __willDestroy: boolean

Defined in ​

src/leafer/packages/interface/src/data/ILeafData.ts:32


id ​

• Optional id: string

Inherited from ​

ILeafComputedData.id

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:331


name ​

• Optional name: string

Inherited from ​

ILeafComputedData.name

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:332


className ​

• Optional className: string

Inherited from ​

ILeafComputedData.className

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:333


blendMode ​

• Optional blendMode: IBlendMode

Inherited from ​

ILeafComputedData.blendMode

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:335


opacity ​

• Optional opacity: number

Inherited from ​

ILeafComputedData.opacity

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:336


visible ​

• Optional visible: boolean | 0

Inherited from ​

ILeafComputedData.visible

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:337


selected ​

• Optional selected: boolean

Inherited from ​

ILeafComputedData.selected

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:338


disabled ​

• Optional disabled: boolean

Inherited from ​

ILeafComputedData.disabled

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:339


locked ​

• Optional locked: boolean

Inherited from ​

ILeafComputedData.locked

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:340


zIndex ​

• Optional zIndex: number

Inherited from ​

ILeafComputedData.zIndex

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:341


dim ​

• Optional dim: number | boolean

Inherited from ​

ILeafComputedData.dim

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:343


dimskip ​

• Optional dimskip: boolean

Inherited from ​

ILeafComputedData.dimskip

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:344


bright ​

• Optional bright: boolean

Inherited from ​

ILeafComputedData.bright

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:345


mask ​

• Optional mask: boolean | IMaskType

Inherited from ​

ILeafComputedData.mask

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:347


eraser ​

• Optional eraser: boolean | IEraserType

Inherited from ​

ILeafComputedData.eraser

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:348


filter ​

• Optional filter: IFilter[]

Inherited from ​

ILeafComputedData.filter

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:349


complex ​

• Optional complex: boolean

Inherited from ​

ILeafComputedData.complex

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:350


x ​

• Optional x: number

Inherited from ​

ILeafComputedData.x

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:353


y ​

• Optional y: number

Inherited from ​

ILeafComputedData.y

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:354


width ​

• Optional width: number

Inherited from ​

ILeafComputedData.width

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:355


height ​

• Optional height: number

Inherited from ​

ILeafComputedData.height

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:356


scaleX ​

• Optional scaleX: number

Inherited from ​

ILeafComputedData.scaleX

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:357


scaleY ​

• Optional scaleY: number

Inherited from ​

ILeafComputedData.scaleY

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:358


scaleFixed ​

• Optional scaleFixed: IScaleFixed

Inherited from ​

ILeafComputedData.scaleFixed

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:359


rotation ​

• Optional rotation: number

Inherited from ​

ILeafComputedData.rotation

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:360


skewX ​

• Optional skewX: number

Inherited from ​

ILeafComputedData.skewX

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:361


skewY ​

• Optional skewY: number

Inherited from ​

ILeafComputedData.skewY

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:362


offsetX ​

• Optional offsetX: number

Inherited from ​

ILeafComputedData.offsetX

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:364


offsetY ​

• Optional offsetY: number

Inherited from ​

ILeafComputedData.offsetY

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:365


scrollX ​

• Optional scrollX: number

Inherited from ​

ILeafComputedData.scrollX

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:366


scrollY ​

• Optional scrollY: number

Inherited from ​

ILeafComputedData.scrollY

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:367


origin ​

• Optional origin: IUnitPointData | IDirection

Inherited from ​

ILeafComputedData.origin

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:369


around ​

• Optional around: IUnitPointData | IDirection

Inherited from ​

ILeafComputedData.around

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:370


lazy ​

• Optional lazy: boolean

Inherited from ​

ILeafComputedData.lazy

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:372


pixelRatio ​

• Optional pixelRatio: number

Inherited from ​

ILeafComputedData.pixelRatio

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:373


renderSpread ​

• Optional renderSpread: IFourNumber

Inherited from ​

ILeafComputedData.renderSpread

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:375


path ​

• Optional path: IPathCommandData

Inherited from ​

ILeafComputedData.path

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:377


windingRule ​

• Optional windingRule: IWindingRule

Inherited from ​

ILeafComputedData.windingRule

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:378


closed ​

• Optional closed: boolean

Inherited from ​

ILeafComputedData.closed

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:379


flow ​

• Optional flow: IFlowType

Inherited from ​

ILeafComputedData.flow

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:382


padding ​

• Optional padding: IFourNumber

Inherited from ​

ILeafComputedData.padding

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:383


gap ​

• Optional gap: IGap | IPointGap

Inherited from ​

ILeafComputedData.gap

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:384


flowAlign ​

• Optional flowAlign: IFlowAxisAlign | IFlowAlign

Inherited from ​

ILeafComputedData.flowAlign

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:385


flowWrap ​

• Optional flowWrap: IFlowWrap

Inherited from ​

ILeafComputedData.flowWrap

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:386


itemBox ​

• Optional itemBox: IFlowBoxType

Inherited from ​

ILeafComputedData.itemBox

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:387


inFlow ​

• Optional inFlow: boolean

Inherited from ​

ILeafComputedData.inFlow

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:389


autoWidth ​

• Optional autoWidth: IAutoSize

Inherited from ​

ILeafComputedData.autoWidth

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:390


autoHeight ​

• Optional autoHeight: IAutoSize

Inherited from ​

ILeafComputedData.autoHeight

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:391


lockRatio ​

• Optional lockRatio: boolean

Inherited from ​

ILeafComputedData.lockRatio

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:392


autoBox ​

• Optional autoBox: IAutoBoxData | IConstraint

Inherited from ​

ILeafComputedData.autoBox

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:393


widthRange ​

• Optional widthRange: IRangeSize

Inherited from ​

ILeafComputedData.widthRange

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:395


heightRange ​

• Optional heightRange: IRangeSize

Inherited from ​

ILeafComputedData.heightRange

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:396


draggable ​

• Optional draggable: boolean | IAxis

Inherited from ​

ILeafComputedData.draggable

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:399


dragBounds ​

• Optional dragBounds: "parent" | IBoundsData

Inherited from ​

ILeafComputedData.dragBounds

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:400


dragBoundsType ​

• Optional dragBoundsType: IDragBoundsType

Inherited from ​

ILeafComputedData.dragBoundsType

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:401


editable ​

• Optional editable: boolean

Inherited from ​

ILeafComputedData.editable

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:403


hittable ​

• Optional hittable: boolean

Inherited from ​

ILeafComputedData.hittable

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:405


hitFill ​

• Optional hitFill: IHitType

Inherited from ​

ILeafComputedData.hitFill

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:406


hitStroke ​

• Optional hitStroke: IHitType

Inherited from ​

ILeafComputedData.hitStroke

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:407


hitBox ​

• Optional hitBox: boolean

Inherited from ​

ILeafComputedData.hitBox

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:408


hitChildren ​

• Optional hitChildren: boolean

Inherited from ​

ILeafComputedData.hitChildren

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:409


hitSelf ​

• Optional hitSelf: boolean

Inherited from ​

ILeafComputedData.hitSelf

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:410


hitRadius ​

• Optional hitRadius: number

Inherited from ​

ILeafComputedData.hitRadius

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:411


button ​

• Optional button: boolean

Inherited from ​

ILeafComputedData.button

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:413


cursor ​

• Optional cursor: ICursorType | ICursorType[]

Inherited from ​

ILeafComputedData.cursor

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:414


motionPath ​

• Optional motionPath: boolean

Inherited from ​

ILeafComputedData.motionPath

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:416


motionPrecision ​

• Optional motionPrecision: number

Inherited from ​

ILeafComputedData.motionPrecision

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:417


motion ​

• Optional motion: number | IUnitData

Inherited from ​

ILeafComputedData.motion

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:419


motionRotation ​

• Optional motionRotation: number | boolean

Inherited from ​

ILeafComputedData.motionRotation

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:420


normalStyle ​

• Optional normalStyle: IObject

Inherited from ​

ILeafComputedData.normalStyle

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:422


data ​

• Optional data: IObject

Inherited from ​

ILeafComputedData.data

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:425


__childBranchNumber ​

• Optional __childBranchNumber: number

Inherited from ​

ILeafComputedData.__childBranchNumber

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:428


__complex ​

• Optional __complex: boolean

Inherited from ​

ILeafComputedData.__complex

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:429


__complexData ​

• Optional __complexData: ILeafComplexCachedData

Inherited from ​

ILeafComputedData.__complexData

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:430


__naturalWidth ​

• Optional __naturalWidth: number

Inherited from ​

ILeafComputedData.__naturalWidth

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:432


__naturalHeight ​

• Optional __naturalHeight: number

Inherited from ​

ILeafComputedData.__naturalHeight

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:433


__autoWidth ​

• Optional Readonly __autoWidth: boolean

Inherited from ​

ILeafComputedData.__autoWidth

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:435


__autoHeight ​

• Optional Readonly __autoHeight: boolean

Inherited from ​

ILeafComputedData.__autoHeight

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:436


__autoSide ​

• Optional Readonly __autoSide: boolean

Inherited from ​

ILeafComputedData.__autoSide

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:437


__autoSize ​

• Optional Readonly __autoSize: boolean

Inherited from ​

ILeafComputedData.__autoSize

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:438


__useNaturalRatio ​

• Readonly __useNaturalRatio: boolean

Inherited from ​

ILeafComputedData.__useNaturalRatio

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:440


__isLinePath ​

• Readonly __isLinePath: boolean

Inherited from ​

ILeafComputedData.__isLinePath

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:441


__blendMode ​

• Readonly __blendMode: string

Inherited from ​

ILeafComputedData.__blendMode

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:442


__useStroke ​

• Optional __useStroke: boolean

Inherited from ​

ILeafComputedData.__useStroke

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:444


__useArrow ​

• Optional __useArrow: boolean

Inherited from ​

ILeafComputedData.__useArrow

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:445


__useEffect ​

• Optional __useEffect: boolean

Inherited from ​

ILeafComputedData.__useEffect

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:446


__usePathBox ​

• Optional __usePathBox: boolean

Inherited from ​

ILeafComputedData.__usePathBox

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:447


__useDim ​

• Optional __useDim: boolean

Inherited from ​

ILeafComputedData.__useDim

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:448


__pathInputed ​

• Optional __pathInputed: number

Inherited from ​

ILeafComputedData.__pathInputed

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:450


__pathForRender ​

• Optional __pathForRender: IPathCommandData

Inherited from ​

ILeafComputedData.__pathForRender

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:451


__path2DForRender ​

• Optional __path2DForRender: IPath2D

Inherited from ​

ILeafComputedData.__path2DForRender

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:452


__startArrowPath ​

• Optional __startArrowPath: IArrowPathData

Inherited from ​

ILeafComputedData.__startArrowPath

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:454


__endArrowPath ​

• Optional __endArrowPath: IArrowPathData

Inherited from ​

ILeafComputedData.__endArrowPath

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:455


__pathForMotion ​

• Optional __pathForMotion: IMotionPathData

Inherited from ​

ILeafComputedData.__pathForMotion

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:456


__clipAfterFill ​

• Optional __clipAfterFill: boolean

Inherited from ​

ILeafComputedData.__clipAfterFill

Defined in ​

src/leafer/packages/interface/src/display/ILeaf.ts:458

Methods ​

__get ​

â–¸ __get(name): any

Parameters ​

NameType
namestring

Returns ​

any

Inherited from ​

IDataProcessor.__get

Defined in ​

src/leafer/packages/interface/src/data/ILeafData.ts:10


__getData ​

â–¸ __getData(): IObject

Returns ​

IObject

Inherited from ​

IDataProcessor.__getData

Defined in ​

src/leafer/packages/interface/src/data/ILeafData.ts:11


__setInput ​

â–¸ __setInput(name, value): void

Parameters ​

NameType
namestring
valueany

Returns ​

void

Inherited from ​

IDataProcessor.__setInput

Defined in ​

src/leafer/packages/interface/src/data/ILeafData.ts:13


__getInput ​

â–¸ __getInput(name): any

Parameters ​

NameType
namestring

Returns ​

any

Inherited from ​

IDataProcessor.__getInput

Defined in ​

src/leafer/packages/interface/src/data/ILeafData.ts:14


__removeInput ​

â–¸ __removeInput(name): void

Parameters ​

NameType
namestring

Returns ​

void

Inherited from ​

IDataProcessor.__removeInput

Defined in ​

src/leafer/packages/interface/src/data/ILeafData.ts:15


__getInputData ​

â–¸ __getInputData(names?, options?): IObject

Parameters ​

NameType
names?string[] | IObject
options?IJSONOptions

Returns ​

IObject

Inherited from ​

IDataProcessor.__getInputData

Defined in ​

src/leafer/packages/interface/src/data/ILeafData.ts:16


__setMiddle ​

â–¸ __setMiddle(name, value): void

Parameters ​

NameType
namestring
valueany

Returns ​

void

Inherited from ​

IDataProcessor.__setMiddle

Defined in ​

src/leafer/packages/interface/src/data/ILeafData.ts:18


__getMiddle ​

â–¸ __getMiddle(name): any

Parameters ​

NameType
namestring

Returns ​

any

Inherited from ​

IDataProcessor.__getMiddle

Defined in ​

src/leafer/packages/interface/src/data/ILeafData.ts:19


destroy ​

â–¸ destroy(): void

Returns ​

void

Inherited from ​

IDataProcessor.destroy

Defined in ​

src/leafer/packages/interface/src/data/ILeafData.ts:21


__checkSingle ​

â–¸ __checkSingle(): void

Returns ​

void

Defined in ​

src/leafer/packages/interface/src/data/ILeafData.ts:33


__removeNaturalSize ​

â–¸ __removeNaturalSize(): void

Returns ​

void

Defined in ​

src/leafer/packages/interface/src/data/ILeafData.ts:34

Released under the MIT License.