Returns a bitmask indicating the position of other relative to node.
Parameters
other: Node
Returns number
connectedCallback
connectedCallback(): void
Returns void
contains
contains(other): boolean
Returns true if other is an inclusive descendant of node, and false otherwise.
Parameters
other: Node
Returns boolean
createShadow
createShadow(): ShadowRoot
Returns ShadowRoot
disconnectedCallback
disconnectedCallback(): void
Returns void
dispatchEvent
dispatchEvent(event): boolean
Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
Parameters
event: Event
Returns boolean
findByName
findByName(name): any
Parameters
name: string
Returns any
focus
focus(options?): void
Parameters
Optional options: FocusOptions
Returns void
getAnimations
getAnimations(options?): Animation[]
Parameters
Optional options: GetAnimationsOptions
Returns Animation[]
getAttribute
getAttribute(qualifiedName): string
Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.
Parameters
qualifiedName: string
Returns string
getAttributeNS
getAttributeNS(namespace, localName): string
Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.
Parameters
namespace: string
localName: string
Returns string
getAttributeNames
getAttributeNames(): string[]
Returns the qualified names of all element's attributes. Can contain duplicates.
Returns string[]
getAttributeNode
getAttributeNode(qualifiedName): Attr
Parameters
qualifiedName: string
Returns Attr
getAttributeNodeNS
getAttributeNodeNS(namespace, localName): Attr
Parameters
namespace: string
localName: string
Returns Attr
getBoundingClientRect
getBoundingClientRect(): DOMRect
Returns DOMRect
getBrush
getBrush(index): string
Gets a brush from the brushes collection by index.
Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
Parameters
Rest...nodes: (string | Node)[]
Returns void
replaceWith
replaceWith(...nodes): void
Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
Parameters
Rest...nodes: (string | Node)[]
Returns void
requestFullscreen
requestFullscreen(options?): Promise<void>
Displays element fullscreen and resolves promise when done.
When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference.
Parameters
Optional options: FullscreenOptions
Returns Promise<void>
requestPointerLock
requestPointerLock(): void
Returns void
scroll
scroll(options?): void
Parameters
Optional options: ScrollToOptions
Returns void
scroll(x, y): void
Parameters
x: number
y: number
Returns void
scrollBy
scrollBy(options?): void
Parameters
Optional options: ScrollToOptions
Returns void
scrollBy(x, y): void
Parameters
x: number
y: number
Returns void
scrollIntoView
scrollIntoView(arg?): void
Parameters
Optional arg: boolean | ScrollIntoViewOptions
Returns void
scrollTo
scrollTo(options?): void
Parameters
Optional options: ScrollToOptions
Returns void
scrollTo(x, y): void
Parameters
x: number
y: number
Returns void
setAttribute
setAttribute(qualifiedName, value): void
Sets the value of element's first attribute whose qualified name is qualifiedName to value.
Sets the value of element's attribute whose namespace is namespace and local name is localName to value.
Parameters
namespace: string
qualifiedName: string
value: string
Returns void
setAttributeNode
setAttributeNode(attr): Attr
Parameters
attr: Attr
Returns Attr
setAttributeNodeNS
setAttributeNodeNS(attr): Attr
Parameters
attr: Attr
Returns Attr
setPointerCapture
setPointerCapture(pointerId): void
Parameters
pointerId: number
Returns void
toggleAttribute
toggleAttribute(qualifiedName, force?): boolean
If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.
Returns true if qualifiedName is now present, and false otherwise.
Parameters
qualifiedName: string
Optional force: boolean
Returns boolean
unregisterSeries
unregisterSeries(series): void
Unregisters a series with the scale. Under normal circumstances you should not need to call this manually.
Represents a base class for brush scales.