Skip to content

Class: PolygonBoxData ​

Hierarchy ​

Implements ​

Table of contents ​

Constructors ​

Properties ​

Accessors ​

Methods ​

Constructors ​

constructor ​

• new PolygonBoxData(leaf): PolygonBoxData

Parameters ​

NameType
leafILeaf

Returns ​

PolygonBoxData

Inherited from ​

BoxData.constructor

Defined in ​

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

Properties ​

__input ​

• __input: IObject

Implementation of ​

IPolygonBoxData.__input

Inherited from ​

BoxData.__input

Defined in ​

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


__middle ​

• __middle: IObject

Implementation of ​

IPolygonBoxData.__middle

Inherited from ​

BoxData.__middle

Defined in ​

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


__single ​

• __single: boolean

Implementation of ​

IPolygonBoxData.__single

Inherited from ​

BoxData.__single

Defined in ​

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


__naturalWidth ​

• Optional __naturalWidth: number

Implementation of ​

IPolygonBoxData.__naturalWidth

Inherited from ​

BoxData.__naturalWidth

Defined in ​

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


__naturalHeight ​

• Optional __naturalHeight: number

Implementation of ​

IPolygonBoxData.__naturalHeight

Inherited from ​

BoxData.__naturalHeight

Defined in ​

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


__pathForRender ​

• Optional __pathForRender: IPathCommandData

Implementation of ​

IPolygonBoxData.__pathForRender

Inherited from ​

BoxData.__pathForRender

Defined in ​

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


__useStroke ​

• Optional __useStroke: boolean

Implementation of ​

IPolygonBoxData.__useStroke

Inherited from ​

BoxData.__useStroke

Defined in ​

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


__leaf ​

• __leaf: IUI

Implementation of ​

IPolygonBoxData.__leaf

Inherited from ​

BoxData.__leaf

Defined in ​

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


__blendLayer ​

• Optional __blendLayer: boolean

Implementation of ​

IPolygonBoxData.__blendLayer

Inherited from ​

BoxData.__blendLayer

Defined in ​

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


__isFills ​

• Optional __isFills: boolean

Implementation of ​

IPolygonBoxData.__isFills

Inherited from ​

BoxData.__isFills

Defined in ​

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


__isStrokes ​

• Optional __isStrokes: boolean

Implementation of ​

IPolygonBoxData.__isStrokes

Inherited from ​

BoxData.__isStrokes

Defined in ​

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


__hasMultiStrokeStyle ​

• Optional __hasMultiStrokeStyle: number

Implementation of ​

IPolygonBoxData.__hasMultiStrokeStyle

Inherited from ​

BoxData.__hasMultiStrokeStyle

Defined in ​

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


__isAlphaPixelFill ​

• Optional __isAlphaPixelFill: boolean

Implementation of ​

IPolygonBoxData.__isAlphaPixelFill

Inherited from ​

BoxData.__isAlphaPixelFill

Defined in ​

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


__isAlphaPixelStroke ​

• Optional __isAlphaPixelStroke: boolean

Implementation of ​

IPolygonBoxData.__isAlphaPixelStroke

Inherited from ​

BoxData.__isAlphaPixelStroke

Defined in ​

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


__isTransparentFill ​

• Optional __isTransparentFill: boolean

Implementation of ​

IPolygonBoxData.__isTransparentFill

Inherited from ​

BoxData.__isTransparentFill

Defined in ​

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


__isTransparentStroke ​

• Optional __isTransparentStroke: boolean

Implementation of ​

IPolygonBoxData.__isTransparentStroke

Inherited from ​

BoxData.__isTransparentStroke

Defined in ​

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


__needComputePaint ​

• __needComputePaint: boolean

Implementation of ​

IPolygonBoxData.__needComputePaint

Inherited from ​

BoxData.__needComputePaint

Defined in ​

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


_visible ​

• Protected Optional _visible: boolean

Inherited from ​

BoxData._visible

Defined in ​

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


_width ​

• Protected Optional _width: number

Inherited from ​

BoxData._width

Defined in ​

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


_height ​

• Protected Optional _height: number

Inherited from ​

BoxData._height

Defined in ​

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


_fill ​

• Protected Optional _fill: IValue

Inherited from ​

BoxData._fill

Defined in ​

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


_stroke ​

• Protected Optional _stroke: IValue

Inherited from ​

BoxData._stroke

Defined in ​

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


_path ​

• Protected _path: IPathCommandData

Inherited from ​

BoxData._path

Defined in ​

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


_shadow ​

• Protected Optional _shadow: IValue

Inherited from ​

BoxData._shadow

Defined in ​

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


_innerShadow ​

• Protected Optional _innerShadow: IValue

Inherited from ​

BoxData._innerShadow

Defined in ​

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

Accessors ​

__usePathBox ​

• get __usePathBox(): boolean

Returns ​

boolean

Implementation of ​

IPolygonBoxData.__usePathBox

Overrides ​

BoxData.__usePathBox

Defined in ​

src/in/packages/box/src/data/PolygonBoxData.ts:7


__useNaturalRatio ​

• get __useNaturalRatio(): boolean

Returns ​

boolean

Implementation of ​

IPolygonBoxData.__useNaturalRatio

Inherited from ​

BoxData.__useNaturalRatio

Defined in ​

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


__isLinePath ​

• get __isLinePath(): boolean

Returns ​

boolean

Implementation of ​

IPolygonBoxData.__isLinePath

Inherited from ​

BoxData.__isLinePath

Defined in ​

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


__blendMode ​

• get __blendMode(): string

Returns ​

string

Implementation of ​

IPolygonBoxData.__blendMode

Inherited from ​

BoxData.__blendMode

Defined in ​

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


__boxStroke ​

• get __boxStroke(): boolean

Returns ​

boolean

Implementation of ​

IPolygonBoxData.__boxStroke

Inherited from ​

BoxData.__boxStroke

Defined in ​

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


__drawAfterFill ​

• get __drawAfterFill(): boolean

Returns ​

boolean

Implementation of ​

IPolygonBoxData.__drawAfterFill

Inherited from ​

BoxData.__drawAfterFill

Defined in ​

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


__clipAfterFill ​

• get __clipAfterFill(): boolean

Returns ​

boolean

Implementation of ​

IPolygonBoxData.__clipAfterFill

Inherited from ​

BoxData.__clipAfterFill

Defined in ​

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


scale ​

• get scale(): number | IPointData

Returns ​

number | IPointData

Implementation of ​

IPolygonBoxData.scale

Inherited from ​

BoxData.scale

Defined in ​

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


__strokeWidth ​

• get __strokeWidth(): number

Returns ​

number

Implementation of ​

IPolygonBoxData.__strokeWidth

Inherited from ​

BoxData.__strokeWidth

Defined in ​

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


__maxStrokeWidth ​

• get __maxStrokeWidth(): number

Returns ​

number

Implementation of ​

IPolygonBoxData.__maxStrokeWidth

Inherited from ​

BoxData.__maxStrokeWidth

Defined in ​

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


__hasMultiPaint ​

• get __hasMultiPaint(): boolean

Returns ​

boolean

Implementation of ​

IPolygonBoxData.__hasMultiPaint

Inherited from ​

BoxData.__hasMultiPaint

Defined in ​

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


__hasSurface ​

• get __hasSurface(): boolean

Returns ​

boolean

Implementation of ​

IPolygonBoxData.__hasSurface

Inherited from ​

BoxData.__hasSurface

Defined in ​

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


__autoWidth ​

• get __autoWidth(): boolean

Returns ​

boolean

Implementation of ​

IPolygonBoxData.__autoWidth

Inherited from ​

BoxData.__autoWidth

Defined in ​

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


__autoHeight ​

• get __autoHeight(): boolean

Returns ​

boolean

Implementation of ​

IPolygonBoxData.__autoHeight

Inherited from ​

BoxData.__autoHeight

Defined in ​

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


__autoSide ​

• get __autoSide(): boolean

Returns ​

boolean

Implementation of ​

IPolygonBoxData.__autoSide

Inherited from ​

BoxData.__autoSide

Defined in ​

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


__autoSize ​

• get __autoSize(): boolean

Returns ​

boolean

Implementation of ​

IPolygonBoxData.__autoSize

Inherited from ​

BoxData.__autoSize

Defined in ​

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

Methods ​

__get ​

â–¸ __get(name): any

Parameters ​

NameType
namestring

Returns ​

any

Implementation of ​

IPolygonBoxData.__get

Inherited from ​

BoxData.__get

Defined in ​

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


__getData ​

â–¸ __getData(): IObject

Returns ​

IObject

Implementation of ​

IPolygonBoxData.__getData

Inherited from ​

BoxData.__getData

Defined in ​

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


__setInput ​

â–¸ __setInput(name, value): void

Parameters ​

NameType
namestring
valueany

Returns ​

void

Implementation of ​

IPolygonBoxData.__setInput

Inherited from ​

BoxData.__setInput

Defined in ​

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


__getInput ​

â–¸ __getInput(name): any

Parameters ​

NameType
namestring

Returns ​

any

Implementation of ​

IPolygonBoxData.__getInput

Inherited from ​

BoxData.__getInput

Defined in ​

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


__removeInput ​

â–¸ __removeInput(name): void

Parameters ​

NameType
namestring

Returns ​

void

Implementation of ​

IPolygonBoxData.__removeInput

Inherited from ​

BoxData.__removeInput

Defined in ​

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


__getInputData ​

â–¸ __getInputData(names?, options?): IObject

Parameters ​

NameType
names?string[] | IObject
options?IJSONOptions

Returns ​

IObject

Implementation of ​

IPolygonBoxData.__getInputData

Inherited from ​

BoxData.__getInputData

Defined in ​

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


__setMiddle ​

â–¸ __setMiddle(name, value): void

Parameters ​

NameType
namestring
valueany

Returns ​

void

Implementation of ​

IPolygonBoxData.__setMiddle

Inherited from ​

BoxData.__setMiddle

Defined in ​

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


__getMiddle ​

â–¸ __getMiddle(name): any

Parameters ​

NameType
namestring

Returns ​

any

Implementation of ​

IPolygonBoxData.__getMiddle

Inherited from ​

BoxData.__getMiddle

Defined in ​

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


__checkSingle ​

â–¸ __checkSingle(): void

Returns ​

void

Implementation of ​

IPolygonBoxData.__checkSingle

Inherited from ​

BoxData.__checkSingle

Defined in ​

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


__removeNaturalSize ​

â–¸ __removeNaturalSize(): void

Returns ​

void

Implementation of ​

IPolygonBoxData.__removeNaturalSize

Inherited from ​

BoxData.__removeNaturalSize

Defined in ​

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


destroy ​

â–¸ destroy(): void

Returns ​

void

Implementation of ​

IPolygonBoxData.destroy

Inherited from ​

BoxData.destroy

Defined in ​

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


setVisible ​

â–¸ setVisible(value): void

Parameters ​

NameType
valueboolean

Returns ​

void

Inherited from ​

BoxData.setVisible

Defined in ​

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


setWidth ​

â–¸ setWidth(value): void

Parameters ​

NameType
valuenumber

Returns ​

void

Inherited from ​

BoxData.setWidth

Defined in ​

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


setHeight ​

â–¸ setHeight(value): void

Parameters ​

NameType
valuenumber

Returns ​

void

Inherited from ​

BoxData.setHeight

Defined in ​

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


setFill ​

â–¸ setFill(value): void

Parameters ​

NameType
valueIValue

Returns ​

void

Inherited from ​

BoxData.setFill

Defined in ​

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


setStroke ​

â–¸ setStroke(value): void

Parameters ​

NameType
valueIValue

Returns ​

void

Inherited from ​

BoxData.setStroke

Defined in ​

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


setPath ​

â–¸ setPath(value): void

Parameters ​

NameType
valuestring | IPathCommandData | IPathCommandNode[] | IPathCommandObject[]

Returns ​

void

Inherited from ​

BoxData.setPath

Defined in ​

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


setShadow ​

â–¸ setShadow(value): void

Parameters ​

NameType
valueIValue

Returns ​

void

Inherited from ​

BoxData.setShadow

Defined in ​

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


setInnerShadow ​

â–¸ setInnerShadow(value): void

Parameters ​

NameType
valueIValue

Returns ​

void

Inherited from ​

BoxData.setInnerShadow

Defined in ​

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


setFilter ​

â–¸ setFilter(value): void

Parameters ​

NameType
valueIValue

Returns ​

void

Inherited from ​

BoxData.setFilter

Defined in ​

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


__computePaint ​

â–¸ __computePaint(): void

Returns ​

void

Implementation of ​

IPolygonBoxData.__computePaint

Inherited from ​

BoxData.__computePaint

Defined in ​

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


__getRealStrokeWidth ​

â–¸ __getRealStrokeWidth(childStyle?): number

Parameters ​

NameType
childStyle?IStrokeComputedStyle

Returns ​

number

Implementation of ​

IPolygonBoxData.__getRealStrokeWidth

Inherited from ​

BoxData.__getRealStrokeWidth

Defined in ​

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


__setPaint ​

â–¸ __setPaint(attrName, value): void

Parameters ​

NameType
attrName"fill" | "stroke"
valueIValue

Returns ​

void

Implementation of ​

IPolygonBoxData.__setPaint

Inherited from ​

BoxData.__setPaint

Defined in ​

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


__removePaint ​

â–¸ __removePaint(attrName, removeInput?): void

Parameters ​

NameType
attrName"fill" | "stroke"
removeInput?boolean

Returns ​

void

Implementation of ​

IPolygonBoxData.__removePaint

Inherited from ​

BoxData.__removePaint

Defined in ​

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

Released under the MIT License.