Skip to content

Class: RobotData ​

Hierarchy ​

Table of contents ​

Constructors ​

Properties ​

Accessors ​

Methods ​

Constructors ​

constructor ​

• new RobotData(leaf): RobotData

Parameters ​

NameType
leafILeaf

Returns ​

RobotData

Inherited from ​

UIData.constructor

Defined in ​

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

Properties ​

_robot ​

• Protected _robot: IRobotKeyframe | IRobotKeyframe[]

Defined in ​

in/packages/robot/src/data/RobotData.ts:9


_action ​

• Protected _action: string

Defined in ​

in/packages/robot/src/data/RobotData.ts:10


__input ​

• __input: IObject

Inherited from ​

UIData.__input

Defined in ​

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


__middle ​

• __middle: IObject

Inherited from ​

UIData.__middle

Defined in ​

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


__single ​

• __single: boolean

Inherited from ​

UIData.__single

Defined in ​

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


__naturalWidth ​

• Optional __naturalWidth: number

Inherited from ​

UIData.__naturalWidth

Defined in ​

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


__naturalHeight ​

• Optional __naturalHeight: number

Inherited from ​

UIData.__naturalHeight

Defined in ​

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


__pathForRender ​

• Optional __pathForRender: IPathCommandData

Inherited from ​

UIData.__pathForRender

Defined in ​

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


__leaf ​

• __leaf: IUI

Inherited from ​

UIData.__leaf

Defined in ​

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


__blendLayer ​

• Optional __blendLayer: boolean

Inherited from ​

UIData.__blendLayer

Defined in ​

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


__isFills ​

• Optional __isFills: boolean

Inherited from ​

UIData.__isFills

Defined in ​

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


__isStrokes ​

• Optional __isStrokes: boolean

Inherited from ​

UIData.__isStrokes

Defined in ​

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


__pixelFill ​

• Optional __pixelFill: boolean

Inherited from ​

UIData.__pixelFill

Defined in ​

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


__pixelStroke ​

• Optional __pixelStroke: boolean

Inherited from ​

UIData.__pixelStroke

Defined in ​

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


__needComputePaint ​

• __needComputePaint: boolean

Inherited from ​

UIData.__needComputePaint

Defined in ​

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


_visible ​

• Protected Optional _visible: boolean

Inherited from ​

UIData._visible

Defined in ​

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


_width ​

• Protected Optional _width: number

Inherited from ​

UIData._width

Defined in ​

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


_height ​

• Protected Optional _height: number

Inherited from ​

UIData._height

Defined in ​

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


_fill ​

• Protected Optional _fill: IValue

Inherited from ​

UIData._fill

Defined in ​

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


_stroke ​

• Protected Optional _stroke: IValue

Inherited from ​

UIData._stroke

Defined in ​

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


_path ​

• Protected _path: IPathCommandData

Inherited from ​

UIData._path

Defined in ​

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


_shadow ​

• Protected Optional _shadow: IValue

Inherited from ​

UIData._shadow

Defined in ​

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


_innerShadow ​

• Protected Optional _innerShadow: IValue

Inherited from ​

UIData._innerShadow

Defined in ​

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

Accessors ​

__drawAfterFill ​

• get __drawAfterFill(): boolean

Returns ​

boolean

Defined in ​

in/packages/robot/src/data/RobotData.ts:7


__useNaturalRatio ​

• get __useNaturalRatio(): boolean

Returns ​

boolean

Inherited from ​

UIData.__useNaturalRatio

Defined in ​

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


__isLinePath ​

• get __isLinePath(): boolean

Returns ​

boolean

Inherited from ​

UIData.__isLinePath

Defined in ​

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


__blendMode ​

• get __blendMode(): string

Returns ​

string

Inherited from ​

UIData.__blendMode

Defined in ​

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


scale ​

• get scale(): number | IPointData

Returns ​

number | IPointData

Inherited from ​

UIData.scale

Defined in ​

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


__strokeWidth ​

• get __strokeWidth(): number

Returns ​

number

Inherited from ​

UIData.__strokeWidth

Defined in ​

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


__hasStroke ​

• get __hasStroke(): boolean

Returns ​

boolean

Inherited from ​

UIData.__hasStroke

Defined in ​

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


__clipAfterFill ​

• get __clipAfterFill(): boolean

Returns ​

boolean

Inherited from ​

UIData.__clipAfterFill

Defined in ​

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


__autoWidth ​

• get __autoWidth(): boolean

Returns ​

boolean

Inherited from ​

UIData.__autoWidth

Defined in ​

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


__autoHeight ​

• get __autoHeight(): boolean

Returns ​

boolean

Inherited from ​

UIData.__autoHeight

Defined in ​

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


__autoSide ​

• get __autoSide(): boolean

Returns ​

boolean

Inherited from ​

UIData.__autoSide

Defined in ​

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


__autoSize ​

• get __autoSize(): boolean

Returns ​

boolean

Inherited from ​

UIData.__autoSize

Defined in ​

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

Methods ​

setRobot ​

▸ setRobot(value): void

Parameters ​

NameType
valueIRobotKeyframe | IRobotKeyframe[]

Returns ​

void

Defined in ​

in/packages/robot/src/data/RobotData.ts:12


setAction ​

▸ setAction(value): void

Parameters ​

NameType
valuestring

Returns ​

void

Defined in ​

in/packages/robot/src/data/RobotData.ts:17


__get ​

▸ __get(name): any

Parameters ​

NameType
namestring

Returns ​

any

Inherited from ​

UIData.__get

Defined in ​

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


__getData ​

▸ __getData(): IObject

Returns ​

IObject

Inherited from ​

UIData.__getData

Defined in ​

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


__setInput ​

▸ __setInput(name, value): void

Parameters ​

NameType
namestring
valueany

Returns ​

void

Inherited from ​

UIData.__setInput

Defined in ​

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


__getInput ​

▸ __getInput(name): any

Parameters ​

NameType
namestring

Returns ​

any

Inherited from ​

UIData.__getInput

Defined in ​

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


__removeInput ​

▸ __removeInput(name): void

Parameters ​

NameType
namestring

Returns ​

void

Inherited from ​

UIData.__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

Inherited from ​

UIData.__getInputData

Defined in ​

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


__setMiddle ​

▸ __setMiddle(name, value): void

Parameters ​

NameType
namestring
valueany

Returns ​

void

Inherited from ​

UIData.__setMiddle

Defined in ​

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


__getMiddle ​

▸ __getMiddle(name): any

Parameters ​

NameType
namestring

Returns ​

any

Inherited from ​

UIData.__getMiddle

Defined in ​

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


__checkSingle ​

▸ __checkSingle(): void

Returns ​

void

Inherited from ​

UIData.__checkSingle

Defined in ​

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


__removeNaturalSize ​

▸ __removeNaturalSize(): void

Returns ​

void

Inherited from ​

UIData.__removeNaturalSize

Defined in ​

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


destroy ​

▸ destroy(): void

Returns ​

void

Inherited from ​

UIData.destroy

Defined in ​

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


setVisible ​

▸ setVisible(value): void

Parameters ​

NameType
valueboolean

Returns ​

void

Inherited from ​

UIData.setVisible

Defined in ​

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


setWidth ​

▸ setWidth(value): void

Parameters ​

NameType
valuenumber

Returns ​

void

Inherited from ​

UIData.setWidth

Defined in ​

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


setHeight ​

▸ setHeight(value): void

Parameters ​

NameType
valuenumber

Returns ​

void

Inherited from ​

UIData.setHeight

Defined in ​

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


setFill ​

▸ setFill(value): void

Parameters ​

NameType
valueIValue

Returns ​

void

Inherited from ​

UIData.setFill

Defined in ​

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


setStroke ​

▸ setStroke(value): void

Parameters ​

NameType
valueIValue

Returns ​

void

Inherited from ​

UIData.setStroke

Defined in ​

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


setPath ​

▸ setPath(value): void

Parameters ​

NameType
valuestring | IPathCommandData | IPathCommandObject[]

Returns ​

void

Inherited from ​

UIData.setPath

Defined in ​

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


setShadow ​

▸ setShadow(value): void

Parameters ​

NameType
valueIValue

Returns ​

void

Inherited from ​

UIData.setShadow

Defined in ​

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


setInnerShadow ​

▸ setInnerShadow(value): void

Parameters ​

NameType
valueIValue

Returns ​

void

Inherited from ​

UIData.setInnerShadow

Defined in ​

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


__computePaint ​

▸ __computePaint(): void

Returns ​

void

Inherited from ​

UIData.__computePaint

Defined in ​

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

Released under the MIT License.