Skip to main content

Class: HtmlElementRefState

Constructors

constructor

new HtmlElementRefState(initValue, diagramState)

Parameters

NameType
initValuenull | HTMLDivElement
diagramStateDiagramState

Accessors

boundingRect

get boundingRect(): null | { diagramZoom: null | number = zoom; position: Point ; size: Point }

Returns

null | { diagramZoom: null | number = zoom; position: Point ; size: Point }


current

get current(): null | HTMLDivElement

Returns

null | HTMLDivElement

set current(value): void

Parameters

NameType
valuenull | HTMLDivElement

Returns

void


positionExcludingZoom

get positionExcludingZoom(): null | Point

Position excluding diagram zoom.

Returns

null | Point


sizeExcludingZoom

get sizeExcludingZoom(): null | Point

Size excluding diagram zoom.

Returns

null | Point

Methods

getDataAttribute

getDataAttribute(name): null | string

Parameters

NameType
namestring

Returns

null | string


getRealBoundingRect

getRealBoundingRect(): null | { diagramZoom: null | number = zoom; position: Point ; size: Point }

Returns

null | { diagramZoom: null | number = zoom; position: Point ; size: Point }


recalculateSizeAndPosition

recalculateSizeAndPosition(): void

Returns

void