Skip to content

Class: LeafData ​

Hierarchy ​

Implements ​

Table of contents ​

Constructors ​

Properties ​

Accessors ​

Methods ​

Constructors ​

constructor ​

• new LeafData(leaf): LeafData

Parameters ​

NameType
leafILeaf

Returns ​

LeafData

Defined in ​

src/leafer/packages/display-module/data/src/LeafData.ts:36

Properties ​

__leaf ​

• __leaf: ILeaf

Implementation of ​

ILeafData.__leaf

Defined in ​

src/leafer/packages/display-module/data/src/LeafData.ts:7


__input ​

• __input: IObject

Implementation of ​

ILeafData.__input

Defined in ​

src/leafer/packages/display-module/data/src/LeafData.ts:8


__middle ​

• __middle: IObject

Implementation of ​

ILeafData.__middle

Defined in ​

src/leafer/packages/display-module/data/src/LeafData.ts:9


__single ​

• __single: boolean

Implementation of ​

ILeafData.__single

Defined in ​

src/leafer/packages/display-module/data/src/LeafData.ts:11


__naturalWidth ​

• Optional __naturalWidth: number

Implementation of ​

ILeafData.__naturalWidth

Defined in ​

src/leafer/packages/display-module/data/src/LeafData.ts:13


__naturalHeight ​

• Optional __naturalHeight: number

Implementation of ​

ILeafData.__naturalHeight

Defined in ​

src/leafer/packages/display-module/data/src/LeafData.ts:14


__pathForRender ​

• Optional __pathForRender: IPathCommandData

Implementation of ​

ILeafData.__pathForRender

Defined in ​

src/leafer/packages/display-module/data/src/LeafData.ts:16


__useStroke ​

• Optional __useStroke: boolean

Implementation of ​

ILeafData.__useStroke

Defined in ​

src/leafer/packages/display-module/data/src/LeafData.ts:18

Accessors ​

__useNaturalRatio ​

• get __useNaturalRatio(): boolean

Returns ​

boolean

Implementation of ​

ILeafData.__useNaturalRatio

Defined in ​

src/leafer/packages/display-module/data/src/LeafData.ts:19


__isLinePath ​

• get __isLinePath(): boolean

Returns ​

boolean

Implementation of ​

ILeafData.__isLinePath

Defined in ​

src/leafer/packages/display-module/data/src/LeafData.ts:21


__usePathBox ​

• get __usePathBox(): boolean

Returns ​

boolean

Implementation of ​

ILeafData.__usePathBox

Defined in ​

src/leafer/packages/display-module/data/src/LeafData.ts:26


__blendMode ​

• get __blendMode(): string

Returns ​

string

Implementation of ​

ILeafData.__blendMode

Defined in ​

src/leafer/packages/display-module/data/src/LeafData.ts:30

Methods ​

__get ​

â–¸ __get(name): any

Parameters ​

NameType
namestring

Returns ​

any

Implementation of ​

ILeafData.__get

Defined in ​

src/leafer/packages/display-module/data/src/LeafData.ts:40


__getData ​

â–¸ __getData(): IObject

Returns ​

IObject

Implementation of ​

ILeafData.__getData

Defined in ​

src/leafer/packages/display-module/data/src/LeafData.ts:48


__setInput ​

â–¸ __setInput(name, value): void

Parameters ​

NameType
namestring
valueany

Returns ​

void

Implementation of ​

ILeafData.__setInput

Defined in ​

src/leafer/packages/display-module/data/src/LeafData.ts:60


__getInput ​

â–¸ __getInput(name): any

Parameters ​

NameType
namestring

Returns ​

any

Implementation of ​

ILeafData.__getInput

Defined in ​

src/leafer/packages/display-module/data/src/LeafData.ts:65


__removeInput ​

â–¸ __removeInput(name): void

Parameters ​

NameType
namestring

Returns ​

void

Implementation of ​

ILeafData.__removeInput

Defined in ​

src/leafer/packages/display-module/data/src/LeafData.ts:76


__getInputData ​

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

Parameters ​

NameType
names?string[] | IObject
options?IJSONOptions

Returns ​

IObject

Implementation of ​

ILeafData.__getInputData

Defined in ​

src/leafer/packages/display-module/data/src/LeafData.ts:80


__setMiddle ​

â–¸ __setMiddle(name, value): void

Parameters ​

NameType
namestring
valueany

Returns ​

void

Implementation of ​

ILeafData.__setMiddle

Defined in ​

src/leafer/packages/display-module/data/src/LeafData.ts:120


__getMiddle ​

â–¸ __getMiddle(name): any

Parameters ​

NameType
namestring

Returns ​

any

Implementation of ​

ILeafData.__getMiddle

Defined in ​

src/leafer/packages/display-module/data/src/LeafData.ts:125


__checkSingle ​

â–¸ __checkSingle(): void

Returns ​

void

Implementation of ​

ILeafData.__checkSingle

Defined in ​

src/leafer/packages/display-module/data/src/LeafData.ts:129


__removeNaturalSize ​

â–¸ __removeNaturalSize(): void

Returns ​

void

Implementation of ​

ILeafData.__removeNaturalSize

Defined in ​

src/leafer/packages/display-module/data/src/LeafData.ts:143


destroy ​

â–¸ destroy(): void

Returns ​

void

Implementation of ​

ILeafData.destroy

Defined in ​

src/leafer/packages/display-module/data/src/LeafData.ts:147

Released under the MIT License.