Skip to content

Class: CanvasData โ€‹

Hierarchy โ€‹

Implements โ€‹

Table of contents โ€‹

Constructors โ€‹

Properties โ€‹

Accessors โ€‹

Methods โ€‹

Constructors โ€‹

constructor โ€‹

โ€ข new CanvasData(leaf): CanvasData

Parameters โ€‹

NameType
leafILeaf

Returns โ€‹

CanvasData

Inherited from โ€‹

RectData.constructor

Defined in โ€‹

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

Properties โ€‹

__input โ€‹

โ€ข __input: IObject

Implementation of โ€‹

ICanvasData.__input

Inherited from โ€‹

RectData.__input

Defined in โ€‹

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


__middle โ€‹

โ€ข __middle: IObject

Implementation of โ€‹

ICanvasData.__middle

Inherited from โ€‹

RectData.__middle

Defined in โ€‹

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


__single โ€‹

โ€ข __single: boolean

Implementation of โ€‹

ICanvasData.__single

Inherited from โ€‹

RectData.__single

Defined in โ€‹

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


__naturalWidth โ€‹

โ€ข Optional __naturalWidth: number

Implementation of โ€‹

ICanvasData.__naturalWidth

Inherited from โ€‹

RectData.__naturalWidth

Defined in โ€‹

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


__naturalHeight โ€‹

โ€ข Optional __naturalHeight: number

Implementation of โ€‹

ICanvasData.__naturalHeight

Inherited from โ€‹

RectData.__naturalHeight

Defined in โ€‹

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


__pathForRender โ€‹

โ€ข Optional __pathForRender: IPathCommandData

Implementation of โ€‹

ICanvasData.__pathForRender

Inherited from โ€‹

RectData.__pathForRender

Defined in โ€‹

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


__leaf โ€‹

โ€ข __leaf: IUI

Implementation of โ€‹

ICanvasData.__leaf

Inherited from โ€‹

RectData.__leaf

Defined in โ€‹

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


__blendLayer โ€‹

โ€ข Optional __blendLayer: boolean

Implementation of โ€‹

ICanvasData.__blendLayer

Inherited from โ€‹

RectData.__blendLayer

Defined in โ€‹

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


__isFills โ€‹

โ€ข Optional __isFills: boolean

Implementation of โ€‹

ICanvasData.__isFills

Inherited from โ€‹

RectData.__isFills

Defined in โ€‹

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


__isStrokes โ€‹

โ€ข Optional __isStrokes: boolean

Implementation of โ€‹

ICanvasData.__isStrokes

Inherited from โ€‹

RectData.__isStrokes

Defined in โ€‹

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


__pixelFill โ€‹

โ€ข Optional __pixelFill: boolean

Implementation of โ€‹

ICanvasData.__pixelFill

Inherited from โ€‹

RectData.__pixelFill

Defined in โ€‹

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


__pixelStroke โ€‹

โ€ข Optional __pixelStroke: boolean

Implementation of โ€‹

ICanvasData.__pixelStroke

Inherited from โ€‹

RectData.__pixelStroke

Defined in โ€‹

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


__needComputePaint โ€‹

โ€ข __needComputePaint: boolean

Implementation of โ€‹

ICanvasData.__needComputePaint

Inherited from โ€‹

RectData.__needComputePaint

Defined in โ€‹

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


_visible โ€‹

โ€ข Protected Optional _visible: boolean

Inherited from โ€‹

RectData._visible

Defined in โ€‹

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


_width โ€‹

โ€ข Protected Optional _width: number

Inherited from โ€‹

RectData._width

Defined in โ€‹

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


_height โ€‹

โ€ข Protected Optional _height: number

Inherited from โ€‹

RectData._height

Defined in โ€‹

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


_fill โ€‹

โ€ข Protected Optional _fill: IValue

Inherited from โ€‹

RectData._fill

Defined in โ€‹

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


_stroke โ€‹

โ€ข Protected Optional _stroke: IValue

Inherited from โ€‹

RectData._stroke

Defined in โ€‹

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


_path โ€‹

โ€ข Protected _path: IPathCommandData

Inherited from โ€‹

RectData._path

Defined in โ€‹

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


_shadow โ€‹

โ€ข Protected Optional _shadow: IValue

Inherited from โ€‹

RectData._shadow

Defined in โ€‹

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


_innerShadow โ€‹

โ€ข Protected Optional _innerShadow: IValue

Inherited from โ€‹

RectData._innerShadow

Defined in โ€‹

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

Accessors โ€‹

__useNaturalRatio โ€‹

โ€ข get __useNaturalRatio(): boolean

Returns โ€‹

boolean

Implementation of โ€‹

ICanvasData.__useNaturalRatio

Inherited from โ€‹

RectData.__useNaturalRatio

Defined in โ€‹

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


__isLinePath โ€‹

โ€ข get __isLinePath(): boolean

Returns โ€‹

boolean

Implementation of โ€‹

ICanvasData.__isLinePath

Inherited from โ€‹

RectData.__isLinePath

Defined in โ€‹

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


__blendMode โ€‹

โ€ข get __blendMode(): string

Returns โ€‹

string

Implementation of โ€‹

ICanvasData.__blendMode

Inherited from โ€‹

RectData.__blendMode

Defined in โ€‹

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


__isCanvas โ€‹

โ€ข get __isCanvas(): boolean

Returns โ€‹

boolean

Implementation of โ€‹

ICanvasData.__isCanvas

Defined in โ€‹

ui/packages/display-module/data/src/CanvasData.ts:8


__drawAfterFill โ€‹

โ€ข get __drawAfterFill(): boolean

Returns โ€‹

boolean

Implementation of โ€‹

ICanvasData.__drawAfterFill

Defined in โ€‹

ui/packages/display-module/data/src/CanvasData.ts:9


__boxStroke โ€‹

โ€ข get __boxStroke(): boolean

Returns โ€‹

boolean

Implementation of โ€‹

ICanvasData.__boxStroke

Inherited from โ€‹

RectData.__boxStroke

Defined in โ€‹

ui/packages/display-module/data/src/RectData.ts:7


scale โ€‹

โ€ข get scale(): number | IPointData

Returns โ€‹

number | IPointData

Implementation of โ€‹

ICanvasData.scale

Inherited from โ€‹

RectData.scale

Defined in โ€‹

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


__strokeWidth โ€‹

โ€ข get __strokeWidth(): number

Returns โ€‹

number

Implementation of โ€‹

ICanvasData.__strokeWidth

Inherited from โ€‹

RectData.__strokeWidth

Defined in โ€‹

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


__hasStroke โ€‹

โ€ข get __hasStroke(): boolean

Returns โ€‹

boolean

Implementation of โ€‹

ICanvasData.__hasStroke

Inherited from โ€‹

RectData.__hasStroke

Defined in โ€‹

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


__clipAfterFill โ€‹

โ€ข get __clipAfterFill(): boolean

Returns โ€‹

boolean

Implementation of โ€‹

ICanvasData.__clipAfterFill

Inherited from โ€‹

RectData.__clipAfterFill

Defined in โ€‹

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


__autoWidth โ€‹

โ€ข get __autoWidth(): boolean

Returns โ€‹

boolean

Implementation of โ€‹

ICanvasData.__autoWidth

Inherited from โ€‹

RectData.__autoWidth

Defined in โ€‹

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


__autoHeight โ€‹

โ€ข get __autoHeight(): boolean

Returns โ€‹

boolean

Implementation of โ€‹

ICanvasData.__autoHeight

Inherited from โ€‹

RectData.__autoHeight

Defined in โ€‹

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


__autoSide โ€‹

โ€ข get __autoSide(): boolean

Returns โ€‹

boolean

Implementation of โ€‹

ICanvasData.__autoSide

Inherited from โ€‹

RectData.__autoSide

Defined in โ€‹

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


__autoSize โ€‹

โ€ข get __autoSize(): boolean

Returns โ€‹

boolean

Implementation of โ€‹

ICanvasData.__autoSize

Inherited from โ€‹

RectData.__autoSize

Defined in โ€‹

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

Methods โ€‹

__get โ€‹

โ–ธ __get(name): any

Parameters โ€‹

NameType
namestring

Returns โ€‹

any

Implementation of โ€‹

ICanvasData.__get

Inherited from โ€‹

RectData.__get

Defined in โ€‹

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


__getData โ€‹

โ–ธ __getData(): IObject

Returns โ€‹

IObject

Implementation of โ€‹

ICanvasData.__getData

Inherited from โ€‹

RectData.__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 โ€‹

ICanvasData.__setInput

Inherited from โ€‹

RectData.__setInput

Defined in โ€‹

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


__getInput โ€‹

โ–ธ __getInput(name): any

Parameters โ€‹

NameType
namestring

Returns โ€‹

any

Implementation of โ€‹

ICanvasData.__getInput

Inherited from โ€‹

RectData.__getInput

Defined in โ€‹

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


__removeInput โ€‹

โ–ธ __removeInput(name): void

Parameters โ€‹

NameType
namestring

Returns โ€‹

void

Implementation of โ€‹

ICanvasData.__removeInput

Inherited from โ€‹

RectData.__removeInput

Defined in โ€‹

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


__setMiddle โ€‹

โ–ธ __setMiddle(name, value): void

Parameters โ€‹

NameType
namestring
valueany

Returns โ€‹

void

Implementation of โ€‹

ICanvasData.__setMiddle

Inherited from โ€‹

RectData.__setMiddle

Defined in โ€‹

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


__getMiddle โ€‹

โ–ธ __getMiddle(name): any

Parameters โ€‹

NameType
namestring

Returns โ€‹

any

Implementation of โ€‹

ICanvasData.__getMiddle

Inherited from โ€‹

RectData.__getMiddle

Defined in โ€‹

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


__checkSingle โ€‹

โ–ธ __checkSingle(): void

Returns โ€‹

void

Implementation of โ€‹

ICanvasData.__checkSingle

Inherited from โ€‹

RectData.__checkSingle

Defined in โ€‹

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


__removeNaturalSize โ€‹

โ–ธ __removeNaturalSize(): void

Returns โ€‹

void

Implementation of โ€‹

ICanvasData.__removeNaturalSize

Inherited from โ€‹

RectData.__removeNaturalSize

Defined in โ€‹

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


destroy โ€‹

โ–ธ destroy(): void

Returns โ€‹

void

Implementation of โ€‹

ICanvasData.destroy

Inherited from โ€‹

RectData.destroy

Defined in โ€‹

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


__getInputData โ€‹

โ–ธ __getInputData(names?, options?): IObject

Parameters โ€‹

NameType
names?string[] | IObject
options?IJSONOptions

Returns โ€‹

IObject

Implementation of โ€‹

ICanvasData.__getInputData

Overrides โ€‹

RectData.__getInputData

Defined in โ€‹

ui/packages/display-module/data/src/CanvasData.ts:11


setVisible โ€‹

โ–ธ setVisible(value): void

Parameters โ€‹

NameType
valueboolean

Returns โ€‹

void

Inherited from โ€‹

RectData.setVisible

Defined in โ€‹

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


setWidth โ€‹

โ–ธ setWidth(value): void

Parameters โ€‹

NameType
valuenumber

Returns โ€‹

void

Inherited from โ€‹

RectData.setWidth

Defined in โ€‹

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


setHeight โ€‹

โ–ธ setHeight(value): void

Parameters โ€‹

NameType
valuenumber

Returns โ€‹

void

Inherited from โ€‹

RectData.setHeight

Defined in โ€‹

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


setFill โ€‹

โ–ธ setFill(value): void

Parameters โ€‹

NameType
valueIValue

Returns โ€‹

void

Inherited from โ€‹

RectData.setFill

Defined in โ€‹

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


setStroke โ€‹

โ–ธ setStroke(value): void

Parameters โ€‹

NameType
valueIValue

Returns โ€‹

void

Inherited from โ€‹

RectData.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 โ€‹

RectData.setPath

Defined in โ€‹

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


setShadow โ€‹

โ–ธ setShadow(value): void

Parameters โ€‹

NameType
valueIValue

Returns โ€‹

void

Inherited from โ€‹

RectData.setShadow

Defined in โ€‹

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


setInnerShadow โ€‹

โ–ธ setInnerShadow(value): void

Parameters โ€‹

NameType
valueIValue

Returns โ€‹

void

Inherited from โ€‹

RectData.setInnerShadow

Defined in โ€‹

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


__computePaint โ€‹

โ–ธ __computePaint(): void

Returns โ€‹

void

Implementation of โ€‹

ICanvasData.__computePaint

Inherited from โ€‹

RectData.__computePaint

Defined in โ€‹

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

Released under the MIT License.