Skip to content

Class: UIData ​

Hierarchy ​

Implements ​

Table of contents ​

Constructors ​

Properties ​

Accessors ​

Methods ​

Constructors ​

constructor ​

• new UIData(leaf): UIData

Parameters ​

NameType
leafILeaf

Returns ​

UIData

Inherited from ​

LeafData.constructor

Defined in ​

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

Properties ​

__input ​

• __input: IObject

Implementation of ​

IUIData.__input

Inherited from ​

LeafData.__input

Defined in ​

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


__middle ​

• __middle: IObject

Implementation of ​

IUIData.__middle

Inherited from ​

LeafData.__middle

Defined in ​

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


__single ​

• __single: boolean

Implementation of ​

IUIData.__single

Inherited from ​

LeafData.__single

Defined in ​

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


__naturalWidth ​

• Optional __naturalWidth: number

Implementation of ​

IUIData.__naturalWidth

Inherited from ​

LeafData.__naturalWidth

Defined in ​

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


__naturalHeight ​

• Optional __naturalHeight: number

Implementation of ​

IUIData.__naturalHeight

Inherited from ​

LeafData.__naturalHeight

Defined in ​

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


__pathInputed ​

• Optional __pathInputed: number

Implementation of ​

IUIData.__pathInputed

Inherited from ​

LeafData.__pathInputed

Defined in ​

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


__pathForRender ​

• Optional __pathForRender: IPathCommandData

Implementation of ​

IUIData.__pathForRender

Inherited from ​

LeafData.__pathForRender

Defined in ​

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


__leaf ​

• __leaf: IUI

Implementation of ​

IUIData.__leaf

Overrides ​

LeafData.__leaf

Defined in ​

ui/packages/display-module/data/src/UIData.ts:13


__blendLayer ​

• Optional __blendLayer: boolean

Implementation of ​

IUIData.__blendLayer

Defined in ​

ui/packages/display-module/data/src/UIData.ts:15


__isFills ​

• Optional __isFills: boolean

Implementation of ​

IUIData.__isFills

Defined in ​

ui/packages/display-module/data/src/UIData.ts:17


__isStrokes ​

• Optional __isStrokes: boolean

Implementation of ​

IUIData.__isStrokes

Defined in ​

ui/packages/display-module/data/src/UIData.ts:18


__pixelFill ​

• Optional __pixelFill: boolean

Implementation of ​

IUIData.__pixelFill

Defined in ​

ui/packages/display-module/data/src/UIData.ts:32


__pixelStroke ​

• Optional __pixelStroke: boolean

Implementation of ​

IUIData.__pixelStroke

Defined in ​

ui/packages/display-module/data/src/UIData.ts:33


__needComputePaint ​

• __needComputePaint: boolean

Implementation of ​

IUIData.__needComputePaint

Defined in ​

ui/packages/display-module/data/src/UIData.ts:35


_visible ​

• Protected Optional _visible: boolean

Defined in ​

ui/packages/display-module/data/src/UIData.ts:37


_width ​

• Protected Optional _width: number

Defined in ​

ui/packages/display-module/data/src/UIData.ts:39


_height ​

• Protected Optional _height: number

Defined in ​

ui/packages/display-module/data/src/UIData.ts:40


_fill ​

• Protected Optional _fill: IValue

Defined in ​

ui/packages/display-module/data/src/UIData.ts:42


_stroke ​

• Protected Optional _stroke: IValue

Defined in ​

ui/packages/display-module/data/src/UIData.ts:43


_path ​

• Protected _path: IPathCommandData

Defined in ​

ui/packages/display-module/data/src/UIData.ts:45


_shadow ​

• Protected Optional _shadow: IValue

Defined in ​

ui/packages/display-module/data/src/UIData.ts:47


_innerShadow ​

• Protected Optional _innerShadow: IValue

Defined in ​

ui/packages/display-module/data/src/UIData.ts:48

Accessors ​

__useNaturalRatio ​

• get __useNaturalRatio(): boolean

Returns ​

boolean

Implementation of ​

IUIData.__useNaturalRatio

Inherited from ​

LeafData.__useNaturalRatio

Defined in ​

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


__isLinePath ​

• get __isLinePath(): boolean

Returns ​

boolean

Implementation of ​

IUIData.__isLinePath

Inherited from ​

LeafData.__isLinePath

Defined in ​

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


__blendMode ​

• get __blendMode(): string

Returns ​

string

Implementation of ​

IUIData.__blendMode

Inherited from ​

LeafData.__blendMode

Defined in ​

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


__strokeWidth ​

• get __strokeWidth(): number

Returns ​

number

Implementation of ​

IUIData.__strokeWidth

Defined in ​

ui/packages/display-module/data/src/UIData.ts:20


__autoWidth ​

• get __autoWidth(): boolean

Returns ​

boolean

Implementation of ​

IUIData.__autoWidth

Defined in ​

ui/packages/display-module/data/src/UIData.ts:50


__autoHeight ​

• get __autoHeight(): boolean

Returns ​

boolean

Implementation of ​

IUIData.__autoHeight

Defined in ​

ui/packages/display-module/data/src/UIData.ts:51


__autoSide ​

• get __autoSide(): boolean

Returns ​

boolean

Implementation of ​

IUIData.__autoSide

Defined in ​

ui/packages/display-module/data/src/UIData.ts:52


__autoSize ​

• get __autoSize(): boolean

Returns ​

boolean

Implementation of ​

IUIData.__autoSize

Defined in ​

ui/packages/display-module/data/src/UIData.ts:53

Methods ​

__get ​

▸ __get(name): any

Parameters ​

NameType
namestring

Returns ​

any

Implementation of ​

IUIData.__get

Inherited from ​

LeafData.__get

Defined in ​

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


__getData ​

▸ __getData(): IObject

Returns ​

IObject

Implementation of ​

IUIData.__getData

Inherited from ​

LeafData.__getData

Defined in ​

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


__setInput ​

▸ __setInput(name, value): void

Parameters ​

NameType
namestring
valueany

Returns ​

void

Implementation of ​

IUIData.__setInput

Inherited from ​

LeafData.__setInput

Defined in ​

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


__getInput ​

▸ __getInput(name): any

Parameters ​

NameType
namestring

Returns ​

any

Implementation of ​

IUIData.__getInput

Inherited from ​

LeafData.__getInput

Defined in ​

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


__removeInput ​

▸ __removeInput(name): void

Parameters ​

NameType
namestring

Returns ​

void

Implementation of ​

IUIData.__removeInput

Inherited from ​

LeafData.__removeInput

Defined in ​

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


__getInputData ​

▸ __getInputData(names?, options?): IObject

Parameters ​

NameType
names?string[] | IObject
options?IJSONOptions

Returns ​

IObject

Implementation of ​

IUIData.__getInputData

Inherited from ​

LeafData.__getInputData

Defined in ​

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


__setMiddle ​

▸ __setMiddle(name, value): void

Parameters ​

NameType
namestring
valueany

Returns ​

void

Implementation of ​

IUIData.__setMiddle

Inherited from ​

LeafData.__setMiddle

Defined in ​

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


__getMiddle ​

▸ __getMiddle(name): any

Parameters ​

NameType
namestring

Returns ​

any

Implementation of ​

IUIData.__getMiddle

Inherited from ​

LeafData.__getMiddle

Defined in ​

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


__checkSingle ​

▸ __checkSingle(): void

Returns ​

void

Implementation of ​

IUIData.__checkSingle

Inherited from ​

LeafData.__checkSingle

Defined in ​

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


__removeNaturalSize ​

▸ __removeNaturalSize(): void

Returns ​

void

Implementation of ​

IUIData.__removeNaturalSize

Inherited from ​

LeafData.__removeNaturalSize

Defined in ​

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


destroy ​

▸ destroy(): void

Returns ​

void

Implementation of ​

IUIData.destroy

Inherited from ​

LeafData.destroy

Defined in ​

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


setVisible ​

▸ setVisible(value): void

Parameters ​

NameType
valueboolean

Returns ​

void

Defined in ​

ui/packages/display-module/data/src/UIData.ts:55


setWidth ​

▸ setWidth(value): void

Parameters ​

NameType
valuenumber

Returns ​

void

Defined in ​

ui/packages/display-module/data/src/UIData.ts:60


setHeight ​

▸ setHeight(value): void

Parameters ​

NameType
valuenumber

Returns ​

void

Defined in ​

ui/packages/display-module/data/src/UIData.ts:70


setFill ​

▸ setFill(value): void

Parameters ​

NameType
valueIValue

Returns ​

void

Defined in ​

ui/packages/display-module/data/src/UIData.ts:81


setStroke ​

▸ setStroke(value): void

Parameters ​

NameType
valueIValue

Returns ​

void

Defined in ​

ui/packages/display-module/data/src/UIData.ts:99


setPath ​

▸ setPath(value): void

Parameters ​

NameType
valuestring | IPathCommandData

Returns ​

void

Defined in ​

ui/packages/display-module/data/src/UIData.ts:117


setShadow ​

▸ setShadow(value): void

Parameters ​

NameType
valueIValue

Returns ​

void

Defined in ​

ui/packages/display-module/data/src/UIData.ts:128


setInnerShadow ​

▸ setInnerShadow(value): void

Parameters ​

NameType
valueIValue

Returns ​

void

Defined in ​

ui/packages/display-module/data/src/UIData.ts:140


__computePaint ​

▸ __computePaint(): void

Returns ​

void

Implementation of ​

IUIData.__computePaint

Defined in ​

ui/packages/display-module/data/src/UIData.ts:154

Released under the MIT License.