Function: Element()
Call Signature
Element<
PropsextendsRecord<string,number>>(node:HTMLElement,options:CustomElementOptions<Props>):CustomElement<Props>
Wraps custom drawing with snapshot-safe numeric properties.
Type Parameters
| Type Parameter |
|---|
Props extends Record<string, number> |
Parameters
| Parameter | Type |
|---|---|
node | HTMLElement |
options | CustomElementOptions<Props> |
Returns
CustomElement<Props>
Call Signature
Element(
node:HTMLElement,options?:ElementOptions):DOMElement
Wraps a DOM node as a reactive stage element.
Parameters
| Parameter | Type |
|---|---|
node | HTMLElement |
options? | ElementOptions |