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

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

Properties

__leaf

__leaf: ILeaf

Implementation of

ILeafData.__leaf

Defined in

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


__input

__input: IObject

Implementation of

ILeafData.__input

Defined in

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


__middle

__middle: IObject

Implementation of

ILeafData.__middle

Defined in

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


__single

__single: boolean

Implementation of

ILeafData.__single

Defined in

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


__naturalWidth

Optional __naturalWidth: number

Implementation of

ILeafData.__naturalWidth

Defined in

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


__naturalHeight

Optional __naturalHeight: number

Implementation of

ILeafData.__naturalHeight

Defined in

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


__pathForRender

Optional __pathForRender: IPathCommandData

Implementation of

ILeafData.__pathForRender

Defined in

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

Accessors

__useNaturalRatio

get __useNaturalRatio(): boolean

Returns

boolean

Implementation of

ILeafData.__useNaturalRatio

Defined in

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


__isLinePath

get __isLinePath(): boolean

Returns

boolean

Implementation of

ILeafData.__isLinePath

Defined in

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


__blendMode

get __blendMode(): string

Returns

string

Implementation of

ILeafData.__blendMode

Defined in

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

Methods

__get

__get(name): any

Parameters

NameType
namestring

Returns

any

Implementation of

ILeafData.__get

Defined in

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


__getData

__getData(): IObject

Returns

IObject

Implementation of

ILeafData.__getData

Defined in

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


__setInput

__setInput(name, value): void

Parameters

NameType
namestring
valueany

Returns

void

Implementation of

ILeafData.__setInput

Defined in

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


__getInput

__getInput(name): any

Parameters

NameType
namestring

Returns

any

Implementation of

ILeafData.__getInput

Defined in

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


__removeInput

__removeInput(name): void

Parameters

NameType
namestring

Returns

void

Implementation of

ILeafData.__removeInput

Defined in

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


__getInputData

__getInputData(names?, options?): IObject

Parameters

NameType
names?string[] | IObject
options?IJSONOptions

Returns

IObject

Implementation of

ILeafData.__getInputData

Defined in

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


__setMiddle

__setMiddle(name, value): void

Parameters

NameType
namestring
valueany

Returns

void

Implementation of

ILeafData.__setMiddle

Defined in

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


__getMiddle

__getMiddle(name): any

Parameters

NameType
namestring

Returns

any

Implementation of

ILeafData.__getMiddle

Defined in

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


__checkSingle

__checkSingle(): void

Returns

void

Implementation of

ILeafData.__checkSingle

Defined in

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


__removeNaturalSize

__removeNaturalSize(): void

Returns

void

Implementation of

ILeafData.__removeNaturalSize

Defined in

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


destroy

destroy(): void

Returns

void

Implementation of

ILeafData.destroy

Defined in

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

Released under the MIT License.