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:30

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


__pathForRender ​

• Optional __pathForRender: IPathCommandData

Implementation of ​

IUIData.__pathForRender

Inherited from ​

LeafData.__pathForRender

Defined in ​

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


__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:17


__isFills ​

• Optional __isFills: boolean

Implementation of ​

IUIData.__isFills

Defined in ​

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


__isStrokes ​

• Optional __isStrokes: boolean

Implementation of ​

IUIData.__isStrokes

Defined in ​

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


__pixelFill ​

• Optional __pixelFill: boolean

Implementation of ​

IUIData.__pixelFill

Defined in ​

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


__pixelStroke ​

• Optional __pixelStroke: boolean

Implementation of ​

IUIData.__pixelStroke

Defined in ​

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


__needComputePaint ​

• __needComputePaint: boolean

Implementation of ​

IUIData.__needComputePaint

Defined in ​

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


_visible ​

• Protected Optional _visible: boolean

Defined in ​

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


_width ​

• Protected Optional _width: number

Defined in ​

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


_height ​

• Protected Optional _height: number

Defined in ​

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


_fill ​

• Protected Optional _fill: IValue

Defined in ​

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


_stroke ​

• Protected Optional _stroke: IValue

Defined in ​

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


_path ​

• Protected _path: IPathCommandData

Defined in ​

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


_shadow ​

• Protected Optional _shadow: IValue

Defined in ​

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


_innerShadow ​

• Protected Optional _innerShadow: IValue

Defined in ​

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

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:17


__isLinePath ​

• get __isLinePath(): boolean

Returns ​

boolean

Implementation of ​

IUIData.__isLinePath

Inherited from ​

LeafData.__isLinePath

Defined in ​

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


__blendMode ​

• get __blendMode(): string

Returns ​

string

Implementation of ​

IUIData.__blendMode

Inherited from ​

LeafData.__blendMode

Defined in ​

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


scale ​

• get scale(): number | IPointData

Returns ​

number | IPointData

Implementation of ​

IUIData.scale

Defined in ​

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


__strokeWidth ​

• get __strokeWidth(): number

Returns ​

number

Implementation of ​

IUIData.__strokeWidth

Defined in ​

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


__hasStroke ​

• get __hasStroke(): boolean

Returns ​

boolean

Implementation of ​

IUIData.__hasStroke

Defined in ​

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


__hasMultiPaint ​

• get __hasMultiPaint(): boolean

Returns ​

boolean

Implementation of ​

IUIData.__hasMultiPaint

Defined in ​

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


__clipAfterFill ​

• get __clipAfterFill(): boolean

Returns ​

boolean

Implementation of ​

IUIData.__clipAfterFill

Defined in ​

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


__autoWidth ​

• get __autoWidth(): boolean

Returns ​

boolean

Implementation of ​

IUIData.__autoWidth

Defined in ​

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


__autoHeight ​

• get __autoHeight(): boolean

Returns ​

boolean

Implementation of ​

IUIData.__autoHeight

Defined in ​

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


__autoSide ​

• get __autoSide(): boolean

Returns ​

boolean

Implementation of ​

IUIData.__autoSide

Defined in ​

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


__autoSize ​

• get __autoSize(): boolean

Returns ​

boolean

Implementation of ​

IUIData.__autoSize

Defined in ​

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

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:34


__getData ​

▸ __getData(): IObject

Returns ​

IObject

Implementation of ​

IUIData.__getData

Inherited from ​

LeafData.__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 ​

IUIData.__setInput

Inherited from ​

LeafData.__setInput

Defined in ​

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


__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:59


__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:70


__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:74


__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:114


__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:119


__checkSingle ​

▸ __checkSingle(): void

Returns ​

void

Implementation of ​

IUIData.__checkSingle

Inherited from ​

LeafData.__checkSingle

Defined in ​

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


__removeNaturalSize ​

▸ __removeNaturalSize(): void

Returns ​

void

Implementation of ​

IUIData.__removeNaturalSize

Inherited from ​

LeafData.__removeNaturalSize

Defined in ​

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


destroy ​

▸ destroy(): void

Returns ​

void

Implementation of ​

IUIData.destroy

Inherited from ​

LeafData.destroy

Defined in ​

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


setVisible ​

▸ setVisible(value): void

Parameters ​

NameType
valueboolean

Returns ​

void

Defined in ​

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


setWidth ​

▸ setWidth(value): void

Parameters ​

NameType
valuenumber

Returns ​

void

Defined in ​

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


setHeight ​

▸ setHeight(value): void

Parameters ​

NameType
valuenumber

Returns ​

void

Defined in ​

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


setFill ​

▸ setFill(value): void

Parameters ​

NameType
valueIValue

Returns ​

void

Defined in ​

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


setStroke ​

▸ setStroke(value): void

Parameters ​

NameType
valueIValue

Returns ​

void

Defined in ​

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


setPath ​

▸ setPath(value): void

Parameters ​

NameType
valuestring | IPathCommandData | IPathCommandObject[]

Returns ​

void

Defined in ​

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


setShadow ​

▸ setShadow(value): void

Parameters ​

NameType
valueIValue

Returns ​

void

Defined in ​

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


setInnerShadow ​

▸ setInnerShadow(value): void

Parameters ​

NameType
valueIValue

Returns ​

void

Defined in ​

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


__computePaint ​

▸ __computePaint(): void

Returns ​

void

Implementation of ​

IUIData.__computePaint

Defined in ​

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

Released under the MIT License.