Skip to content

Interface: ILeafData ​

Hierarchy ​

Implemented by ​

Table of contents ​

Properties ​

Methods ​

Properties ​

__leaf ​

• __leaf: ILeaf

Inherited from ​

IDataProcessor.__leaf

Defined in ​

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


__input ​

• __input: IObject

Inherited from ​

IDataProcessor.__input

Defined in ​

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


__middle ​

• __middle: IObject

Inherited from ​

IDataProcessor.__middle

Defined in ​

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


__single ​

• Optional __single: boolean

Defined in ​

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


__hasMultiPaint ​

• Optional Readonly __hasMultiPaint: boolean

Defined in ​

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


id ​

• Optional id: string

Inherited from ​

ILeafComputedData.id

Defined in ​

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


name ​

• Optional name: string

Inherited from ​

ILeafComputedData.name

Defined in ​

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


className ​

• Optional className: string

Inherited from ​

ILeafComputedData.className

Defined in ​

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


blendMode ​

• Optional blendMode: IBlendMode

Inherited from ​

ILeafComputedData.blendMode

Defined in ​

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


opacity ​

• Optional opacity: number

Inherited from ​

ILeafComputedData.opacity

Defined in ​

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


visible ​

• Optional visible: boolean | 0

Inherited from ​

ILeafComputedData.visible

Defined in ​

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


selected ​

• Optional selected: boolean

Inherited from ​

ILeafComputedData.selected

Defined in ​

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


disabled ​

• Optional disabled: boolean

Inherited from ​

ILeafComputedData.disabled

Defined in ​

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


locked ​

• Optional locked: boolean

Inherited from ​

ILeafComputedData.locked

Defined in ​

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


zIndex ​

• Optional zIndex: number

Inherited from ​

ILeafComputedData.zIndex

Defined in ​

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


mask ​

• Optional mask: boolean | IMaskType

Inherited from ​

ILeafComputedData.mask

Defined in ​

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


eraser ​

• Optional eraser: boolean | IEraserType

Inherited from ​

ILeafComputedData.eraser

Defined in ​

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


x ​

• Optional x: number

Inherited from ​

ILeafComputedData.x

Defined in ​

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


y ​

• Optional y: number

Inherited from ​

ILeafComputedData.y

Defined in ​

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


width ​

• Optional width: number

Inherited from ​

ILeafComputedData.width

Defined in ​

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


height ​

• Optional height: number

Inherited from ​

ILeafComputedData.height

Defined in ​

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


scaleX ​

• Optional scaleX: number

Inherited from ​

ILeafComputedData.scaleX

Defined in ​

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


scaleY ​

• Optional scaleY: number

Inherited from ​

ILeafComputedData.scaleY

Defined in ​

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


rotation ​

• Optional rotation: number

Inherited from ​

ILeafComputedData.rotation

Defined in ​

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


skewX ​

• Optional skewX: number

Inherited from ​

ILeafComputedData.skewX

Defined in ​

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


skewY ​

• Optional skewY: number

Inherited from ​

ILeafComputedData.skewY

Defined in ​

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


offsetX ​

• Optional offsetX: number

Inherited from ​

ILeafComputedData.offsetX

Defined in ​

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


offsetY ​

• Optional offsetY: number

Inherited from ​

ILeafComputedData.offsetY

Defined in ​

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


scrollX ​

• Optional scrollX: number

Inherited from ​

ILeafComputedData.scrollX

Defined in ​

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


scrollY ​

• Optional scrollY: number

Inherited from ​

ILeafComputedData.scrollY

Defined in ​

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


origin ​

• Optional origin: IUnitPointData | IDirection

Inherited from ​

ILeafComputedData.origin

Defined in ​

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


around ​

• Optional around: IUnitPointData | IDirection

Inherited from ​

ILeafComputedData.around

Defined in ​

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


lazy ​

• Optional lazy: boolean

Inherited from ​

ILeafComputedData.lazy

Defined in ​

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


pixelRatio ​

• Optional pixelRatio: number

Inherited from ​

ILeafComputedData.pixelRatio

Defined in ​

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


path ​

• Optional path: IPathCommandData

Inherited from ​

ILeafComputedData.path

Defined in ​

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


windingRule ​

• Optional windingRule: IWindingRule

Inherited from ​

ILeafComputedData.windingRule

Defined in ​

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


closed ​

• Optional closed: boolean

Inherited from ​

ILeafComputedData.closed

Defined in ​

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


flow ​

• Optional flow: IFlowType

Inherited from ​

ILeafComputedData.flow

Defined in ​

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


padding ​

• Optional padding: IFourNumber

Inherited from ​

ILeafComputedData.padding

Defined in ​

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


gap ​

• Optional gap: IGap | IPointGap

Inherited from ​

ILeafComputedData.gap

Defined in ​

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


flowAlign ​

• Optional flowAlign: IFlowAxisAlign | IFlowAlign

Inherited from ​

ILeafComputedData.flowAlign

Defined in ​

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


flowWrap ​

• Optional flowWrap: IFlowWrap

Inherited from ​

ILeafComputedData.flowWrap

Defined in ​

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


itemBox ​

• Optional itemBox: IFlowBoxType

Inherited from ​

ILeafComputedData.itemBox

Defined in ​

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


inFlow ​

• Optional inFlow: boolean

Inherited from ​

ILeafComputedData.inFlow

Defined in ​

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


autoWidth ​

• Optional autoWidth: IAutoSize

Inherited from ​

ILeafComputedData.autoWidth

Defined in ​

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


autoHeight ​

• Optional autoHeight: IAutoSize

Inherited from ​

ILeafComputedData.autoHeight

Defined in ​

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


lockRatio ​

• Optional lockRatio: boolean

Inherited from ​

ILeafComputedData.lockRatio

Defined in ​

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


autoBox ​

• Optional autoBox: IAutoBoxData | IConstraint

Inherited from ​

ILeafComputedData.autoBox

Defined in ​

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


widthRange ​

• Optional widthRange: IRangeSize

Inherited from ​

ILeafComputedData.widthRange

Defined in ​

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


heightRange ​

• Optional heightRange: IRangeSize

Inherited from ​

ILeafComputedData.heightRange

Defined in ​

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


draggable ​

• Optional draggable: boolean | IAxis

Inherited from ​

ILeafComputedData.draggable

Defined in ​

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


dragBounds ​

• Optional dragBounds: "parent" | IBoundsData

Inherited from ​

ILeafComputedData.dragBounds

Defined in ​

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


editable ​

• Optional editable: boolean

Inherited from ​

ILeafComputedData.editable

Defined in ​

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


hittable ​

• Optional hittable: boolean

Inherited from ​

ILeafComputedData.hittable

Defined in ​

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


hitFill ​

• Optional hitFill: IHitType

Inherited from ​

ILeafComputedData.hitFill

Defined in ​

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


hitStroke ​

• Optional hitStroke: IHitType

Inherited from ​

ILeafComputedData.hitStroke

Defined in ​

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


hitBox ​

• Optional hitBox: boolean

Inherited from ​

ILeafComputedData.hitBox

Defined in ​

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


hitChildren ​

• Optional hitChildren: boolean

Inherited from ​

ILeafComputedData.hitChildren

Defined in ​

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


hitSelf ​

• Optional hitSelf: boolean

Inherited from ​

ILeafComputedData.hitSelf

Defined in ​

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


hitRadius ​

• Optional hitRadius: number

Inherited from ​

ILeafComputedData.hitRadius

Defined in ​

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


button ​

• Optional button: boolean

Inherited from ​

ILeafComputedData.button

Defined in ​

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


cursor ​

• Optional cursor: ICursorType | ICursorType[]

Inherited from ​

ILeafComputedData.cursor

Defined in ​

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


motionPath ​

• Optional motionPath: boolean

Inherited from ​

ILeafComputedData.motionPath

Defined in ​

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


motionPrecision ​

• Optional motionPrecision: number

Inherited from ​

ILeafComputedData.motionPrecision

Defined in ​

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


motion ​

• Optional motion: number | IUnitData

Inherited from ​

ILeafComputedData.motion

Defined in ​

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


motionRotation ​

• Optional motionRotation: number | boolean

Inherited from ​

ILeafComputedData.motionRotation

Defined in ​

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


normalStyle ​

• Optional normalStyle: IObject

Inherited from ​

ILeafComputedData.normalStyle

Defined in ​

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


data ​

• Optional data: IObject

Inherited from ​

ILeafComputedData.data

Defined in ​

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


__childBranchNumber ​

• Optional __childBranchNumber: number

Inherited from ​

ILeafComputedData.__childBranchNumber

Defined in ​

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


__complex ​

• Optional __complex: boolean

Inherited from ​

ILeafComputedData.__complex

Defined in ​

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


__naturalWidth ​

• Optional __naturalWidth: number

Inherited from ​

ILeafComputedData.__naturalWidth

Defined in ​

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


__naturalHeight ​

• Optional __naturalHeight: number

Inherited from ​

ILeafComputedData.__naturalHeight

Defined in ​

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


__autoWidth ​

• Optional Readonly __autoWidth: boolean

Inherited from ​

ILeafComputedData.__autoWidth

Defined in ​

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


__autoHeight ​

• Optional Readonly __autoHeight: boolean

Inherited from ​

ILeafComputedData.__autoHeight

Defined in ​

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


__autoSide ​

• Optional Readonly __autoSide: boolean

Inherited from ​

ILeafComputedData.__autoSide

Defined in ​

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


__autoSize ​

• Optional Readonly __autoSize: boolean

Inherited from ​

ILeafComputedData.__autoSize

Defined in ​

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


__useNaturalRatio ​

• Readonly __useNaturalRatio: boolean

Inherited from ​

ILeafComputedData.__useNaturalRatio

Defined in ​

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


__isLinePath ​

• Readonly __isLinePath: boolean

Inherited from ​

ILeafComputedData.__isLinePath

Defined in ​

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


__blendMode ​

• Readonly __blendMode: string

Inherited from ​

ILeafComputedData.__blendMode

Defined in ​

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


__useArrow ​

• Optional __useArrow: boolean

Inherited from ​

ILeafComputedData.__useArrow

Defined in ​

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


__useEffect ​

• Optional __useEffect: boolean

Inherited from ​

ILeafComputedData.__useEffect

Defined in ​

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


__pathInputed ​

• Optional __pathInputed: number

Inherited from ​

ILeafComputedData.__pathInputed

Defined in ​

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


__pathForRender ​

• Optional __pathForRender: IPathCommandData

Inherited from ​

ILeafComputedData.__pathForRender

Defined in ​

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


__path2DForRender ​

• Optional __path2DForRender: IPath2D

Inherited from ​

ILeafComputedData.__path2DForRender

Defined in ​

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


__pathForArrow ​

• Optional __pathForArrow: IPathCommandData

Inherited from ​

ILeafComputedData.__pathForArrow

Defined in ​

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


__pathForMotion ​

• Optional __pathForMotion: IMotionPathData

Inherited from ​

ILeafComputedData.__pathForMotion

Defined in ​

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

Methods ​

__get ​

▸ __get(name): any

Parameters ​

NameType
namestring

Returns ​

any

Inherited from ​

IDataProcessor.__get

Defined in ​

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


__getData ​

▸ __getData(): IObject

Returns ​

IObject

Inherited from ​

IDataProcessor.__getData

Defined in ​

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 ​

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


__getInput ​

▸ __getInput(name): any

Parameters ​

NameType
namestring

Returns ​

any

Inherited from ​

IDataProcessor.__getInput

Defined in ​

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


__removeInput ​

▸ __removeInput(name): void

Parameters ​

NameType
namestring

Returns ​

void

Inherited from ​

IDataProcessor.__removeInput

Defined in ​

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 ​

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 ​

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


__getMiddle ​

▸ __getMiddle(name): any

Parameters ​

NameType
namestring

Returns ​

any

Inherited from ​

IDataProcessor.__getMiddle

Defined in ​

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


destroy ​

▸ destroy(): void

Returns ​

void

Inherited from ​

IDataProcessor.destroy

Defined in ​

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


__checkSingle ​

▸ __checkSingle(): void

Returns ​

void

Defined in ​

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


__removeNaturalSize ​

▸ __removeNaturalSize(): void

Returns ​

void

Defined in ​

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

Released under the MIT License.