Class: HtmlElementRefState
Constructors
constructor
• new HtmlElementRefState(initValue, diagramState)
Parameters
| Name | Type |
|---|---|
initValue | null | HTMLDivElement |
diagramState | DiagramState |
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
| Name | Type |
|---|---|
value | null | 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
| Name | Type |
|---|---|
name | string |
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