Type Parameters
- T extends HTMLElement | SVGElement
Constructors
constructor
- new ElementSizer<T>(elOrQuery, options): ElementSizer<T>
Type Parameters
- T extends HTMLElement | SVGElement
Accessors
size
- get size(): Rect
- set size(size): void
Returns void
Methods
dispose
- dispose(reason?): void
Returns void
setNaturalSize
- setNaturalSize(size): void
Returns void
Static
canvasParent
- canvasParent(canvasElementOrQuery, options): ElementSizer<HTMLCanvasElement>
Parameters
- canvasElementOrQuery: string | HTMLCanvasElement
- options: ElementSizerOptions<HTMLCanvasElement>
Returns ElementSizer<HTMLCanvasElement>
Static
canvasViewport
- canvasViewport(canvasElementOrQuery, options): ElementSizer<HTMLCanvasElement>
Parameters
- canvasElementOrQuery: string | HTMLCanvasElement
- options: {
zIndex?: number;
} & ElementSizerOptions<HTMLCanvasElement>
Returns ElementSizer<HTMLCanvasElement>
Sets the 'natural' size of an element. This can also be specified when creating ElementSizer.