Skip to content

Class: ImageBoxData โ€‹

Hierarchy โ€‹

Implements โ€‹

Table of contents โ€‹

Constructors โ€‹

Properties โ€‹

Accessors โ€‹

Methods โ€‹

Constructors โ€‹

constructor โ€‹

โ€ข new ImageBoxData(leaf): ImageBoxData

Parameters โ€‹

NameType
leafILeaf

Returns โ€‹

ImageBoxData

Inherited from โ€‹

BoxData.constructor

Defined in โ€‹

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

Properties โ€‹

__leaf โ€‹

โ€ข __leaf: IImage

Implementation of โ€‹

IImageBoxData.__leaf

Overrides โ€‹

BoxData.__leaf

Defined in โ€‹

src/in/packages/box/src/data/ImageBoxData.ts:6


_url โ€‹

โ€ข Protected _url: string

Defined in โ€‹

src/in/packages/box/src/data/ImageBoxData.ts:10


__input โ€‹

โ€ข __input: IObject

Implementation of โ€‹

IImageBoxData.__input

Inherited from โ€‹

BoxData.__input

Defined in โ€‹

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


__middle โ€‹

โ€ข __middle: IObject

Implementation of โ€‹

IImageBoxData.__middle

Inherited from โ€‹

BoxData.__middle

Defined in โ€‹

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


__single โ€‹

โ€ข __single: boolean

Implementation of โ€‹

IImageBoxData.__single

Inherited from โ€‹

BoxData.__single

Defined in โ€‹

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


__naturalWidth โ€‹

โ€ข Optional __naturalWidth: number

Implementation of โ€‹

IImageBoxData.__naturalWidth

Inherited from โ€‹

BoxData.__naturalWidth

Defined in โ€‹

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


__naturalHeight โ€‹

โ€ข Optional __naturalHeight: number

Implementation of โ€‹

IImageBoxData.__naturalHeight

Inherited from โ€‹

BoxData.__naturalHeight

Defined in โ€‹

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


__pathForRender โ€‹

โ€ข Optional __pathForRender: IPathCommandData

Implementation of โ€‹

IImageBoxData.__pathForRender

Inherited from โ€‹

BoxData.__pathForRender

Defined in โ€‹

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


__useStroke โ€‹

โ€ข Optional __useStroke: boolean

Implementation of โ€‹

IImageBoxData.__useStroke

Inherited from โ€‹

BoxData.__useStroke

Defined in โ€‹

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


__blendLayer โ€‹

โ€ข Optional __blendLayer: boolean

Implementation of โ€‹

IImageBoxData.__blendLayer

Inherited from โ€‹

BoxData.__blendLayer

Defined in โ€‹

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


__isFills โ€‹

โ€ข Optional __isFills: boolean

Implementation of โ€‹

IImageBoxData.__isFills

Inherited from โ€‹

BoxData.__isFills

Defined in โ€‹

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


__isStrokes โ€‹

โ€ข Optional __isStrokes: boolean

Implementation of โ€‹

IImageBoxData.__isStrokes

Inherited from โ€‹

BoxData.__isStrokes

Defined in โ€‹

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


__hasMultiStrokeStyle โ€‹

โ€ข Optional __hasMultiStrokeStyle: number

Implementation of โ€‹

IImageBoxData.__hasMultiStrokeStyle

Inherited from โ€‹

BoxData.__hasMultiStrokeStyle

Defined in โ€‹

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


__isAlphaPixelFill โ€‹

โ€ข Optional __isAlphaPixelFill: boolean

Implementation of โ€‹

IImageBoxData.__isAlphaPixelFill

Inherited from โ€‹

BoxData.__isAlphaPixelFill

Defined in โ€‹

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


__isAlphaPixelStroke โ€‹

โ€ข Optional __isAlphaPixelStroke: boolean

Implementation of โ€‹

IImageBoxData.__isAlphaPixelStroke

Inherited from โ€‹

BoxData.__isAlphaPixelStroke

Defined in โ€‹

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


__isTransparentFill โ€‹

โ€ข Optional __isTransparentFill: boolean

Implementation of โ€‹

IImageBoxData.__isTransparentFill

Inherited from โ€‹

BoxData.__isTransparentFill

Defined in โ€‹

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


__isTransparentStroke โ€‹

โ€ข Optional __isTransparentStroke: boolean

Implementation of โ€‹

IImageBoxData.__isTransparentStroke

Inherited from โ€‹

BoxData.__isTransparentStroke

Defined in โ€‹

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


__needComputePaint โ€‹

โ€ข __needComputePaint: boolean

Implementation of โ€‹

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

__urlType โ€‹

โ€ข get __urlType(): IMultimediaType

Returns โ€‹

IMultimediaType

Implementation of โ€‹

IImageBoxData.__urlType

Defined in โ€‹

src/in/packages/box/src/data/ImageBoxData.ts:8


__useNaturalRatio โ€‹

โ€ข get __useNaturalRatio(): boolean

Returns โ€‹

boolean

Implementation of โ€‹

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

IImageBoxData.__isLinePath

Inherited from โ€‹

BoxData.__isLinePath

Defined in โ€‹

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


__usePathBox โ€‹

โ€ข get __usePathBox(): boolean

Returns โ€‹

boolean

Implementation of โ€‹

IImageBoxData.__usePathBox

Inherited from โ€‹

BoxData.__usePathBox

Defined in โ€‹

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


__blendMode โ€‹

โ€ข get __blendMode(): string

Returns โ€‹

string

Implementation of โ€‹

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

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

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

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

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

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

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

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

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

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

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

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

IImageBoxData.__autoSize

Inherited from โ€‹

BoxData.__autoSize

Defined in โ€‹

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

Methods โ€‹

setUrl โ€‹

โ–ธ setUrl(value): void

Parameters โ€‹

NameType
valuestring

Returns โ€‹

void

Defined in โ€‹

src/in/packages/box/src/data/ImageBoxData.ts:12


__setImageFill โ€‹

โ–ธ __setImageFill(value): void

Parameters โ€‹

NameType
valuestring

Returns โ€‹

void

Implementation of โ€‹

IImageBoxData.__setImageFill

Defined in โ€‹

src/in/packages/box/src/data/ImageBoxData.ts:17


__getData โ€‹

โ–ธ __getData(): IObject

Returns โ€‹

IObject

Implementation of โ€‹

IImageBoxData.__getData

Overrides โ€‹

BoxData.__getData

Defined in โ€‹

src/in/packages/box/src/data/ImageBoxData.ts:21


__getInputData โ€‹

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

Parameters โ€‹

NameType
names?string[] | IObject
options?IJSONOptions

Returns โ€‹

IObject

Implementation of โ€‹

IImageBoxData.__getInputData

Overrides โ€‹

BoxData.__getInputData

Defined in โ€‹

src/in/packages/box/src/data/ImageBoxData.ts:27


__get โ€‹

โ–ธ __get(name): any

Parameters โ€‹

NameType
namestring

Returns โ€‹

any

Implementation of โ€‹

IImageBoxData.__get

Inherited from โ€‹

BoxData.__get

Defined in โ€‹

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


__setInput โ€‹

โ–ธ __setInput(name, value): void

Parameters โ€‹

NameType
namestring
valueany

Returns โ€‹

void

Implementation of โ€‹

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

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

IImageBoxData.__removeInput

Inherited from โ€‹

BoxData.__removeInput

Defined in โ€‹

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


__setMiddle โ€‹

โ–ธ __setMiddle(name, value): void

Parameters โ€‹

NameType
namestring
valueany

Returns โ€‹

void

Implementation of โ€‹

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

IImageBoxData.__getMiddle

Inherited from โ€‹

BoxData.__getMiddle

Defined in โ€‹

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


__checkSingle โ€‹

โ–ธ __checkSingle(): void

Returns โ€‹

void

Implementation of โ€‹

IImageBoxData.__checkSingle

Inherited from โ€‹

BoxData.__checkSingle

Defined in โ€‹

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


__removeNaturalSize โ€‹

โ–ธ __removeNaturalSize(): void

Returns โ€‹

void

Implementation of โ€‹

IImageBoxData.__removeNaturalSize

Inherited from โ€‹

BoxData.__removeNaturalSize

Defined in โ€‹

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


destroy โ€‹

โ–ธ destroy(): void

Returns โ€‹

void

Implementation of โ€‹

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

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

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

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

IImageBoxData.__removePaint

Inherited from โ€‹

BoxData.__removePaint

Defined in โ€‹

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

Released under the MIT License.