Skip to content

@ralphschuler.webgl shader factory.<internal>.ShadowRoot

github-actions edited this page Nov 26, 2023 · 1 revision

Interface: ShadowRoot

@ralphschuler/webgl-shader-factory.<internal>.ShadowRoot

MDN Reference

Hierarchy

Table of contents

Properties

Methods

Properties

ATTRIBUTE_NODE

Readonly ATTRIBUTE_NODE: 2

Inherited from

DocumentFragment.ATTRIBUTE_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16205


CDATA_SECTION_NODE

Readonly CDATA_SECTION_NODE: 4

node is a CDATASection node.

Inherited from

DocumentFragment.CDATA_SECTION_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16209


COMMENT_NODE

Readonly COMMENT_NODE: 8

node is a Comment node.

Inherited from

DocumentFragment.COMMENT_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16215


DOCUMENT_FRAGMENT_NODE

Readonly DOCUMENT_FRAGMENT_NODE: 11

node is a DocumentFragment node.

Inherited from

DocumentFragment.DOCUMENT_FRAGMENT_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16221


DOCUMENT_NODE

Readonly DOCUMENT_NODE: 9

node is a document.

Inherited from

DocumentFragment.DOCUMENT_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16217


DOCUMENT_POSITION_CONTAINED_BY

Readonly DOCUMENT_POSITION_CONTAINED_BY: 16

Set when other is a descendant of node.

Inherited from

DocumentFragment.DOCUMENT_POSITION_CONTAINED_BY

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16232


DOCUMENT_POSITION_CONTAINS

Readonly DOCUMENT_POSITION_CONTAINS: 8

Set when other is an ancestor of node.

Inherited from

DocumentFragment.DOCUMENT_POSITION_CONTAINS

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16230


DOCUMENT_POSITION_DISCONNECTED

Readonly DOCUMENT_POSITION_DISCONNECTED: 1

Set when node and other are not in the same tree.

Inherited from

DocumentFragment.DOCUMENT_POSITION_DISCONNECTED

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16224


DOCUMENT_POSITION_FOLLOWING

Readonly DOCUMENT_POSITION_FOLLOWING: 4

Set when other is following node.

Inherited from

DocumentFragment.DOCUMENT_POSITION_FOLLOWING

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16228


DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

Readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32

Inherited from

DocumentFragment.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16233


DOCUMENT_POSITION_PRECEDING

Readonly DOCUMENT_POSITION_PRECEDING: 2

Set when other is preceding node.

Inherited from

DocumentFragment.DOCUMENT_POSITION_PRECEDING

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16226


DOCUMENT_TYPE_NODE

Readonly DOCUMENT_TYPE_NODE: 10

node is a doctype.

Inherited from

DocumentFragment.DOCUMENT_TYPE_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16219


ELEMENT_NODE

Readonly ELEMENT_NODE: 1

node is an element.

Inherited from

DocumentFragment.ELEMENT_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16204


ENTITY_NODE

Readonly ENTITY_NODE: 6

Inherited from

DocumentFragment.ENTITY_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16211


ENTITY_REFERENCE_NODE

Readonly ENTITY_REFERENCE_NODE: 5

Inherited from

DocumentFragment.ENTITY_REFERENCE_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16210


NOTATION_NODE

Readonly NOTATION_NODE: 12

Inherited from

DocumentFragment.NOTATION_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16222


PROCESSING_INSTRUCTION_NODE

Readonly PROCESSING_INSTRUCTION_NODE: 7

node is a ProcessingInstruction node.

Inherited from

DocumentFragment.PROCESSING_INSTRUCTION_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16213


TEXT_NODE

Readonly TEXT_NODE: 3

node is a Text node.

Inherited from

DocumentFragment.TEXT_NODE

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16207


activeElement

Readonly activeElement: null | Element

Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document.

For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document.

Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not.

MDN Reference

Inherited from

DocumentOrShadowRoot.activeElement

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7405


adoptedStyleSheets

adoptedStyleSheets: CSSStyleSheet[]

MDN Reference

Inherited from

DocumentOrShadowRoot.adoptedStyleSheets

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7407


baseURI

Readonly baseURI: string

Returns node's node document's document base URL.

MDN Reference

Inherited from

DocumentFragment.baseURI

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16074


childElementCount

Readonly childElementCount: number

MDN Reference

Inherited from

DocumentFragment.childElementCount

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16763


childNodes

Readonly childNodes: NodeListOf<ChildNode>

Returns the children.

MDN Reference

Inherited from

DocumentFragment.childNodes

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16080


children

Readonly children: HTMLCollection

Returns the child elements.

MDN Reference

Inherited from

DocumentFragment.children

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16769


delegatesFocus

Readonly delegatesFocus: boolean

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:21255


firstChild

Readonly firstChild: null | ChildNode

Returns the first child.

MDN Reference

Inherited from

DocumentFragment.firstChild

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16086


firstElementChild

Readonly firstElementChild: null | Element

Returns the first child that is an element, and null otherwise.

MDN Reference

Inherited from

DocumentFragment.firstElementChild

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16775


fullscreenElement

Readonly fullscreenElement: null | Element

Returns document's fullscreen element.

MDN Reference

Inherited from

DocumentOrShadowRoot.fullscreenElement

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7413


host

Readonly host: Element

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:21257


innerHTML

innerHTML: string

MDN Reference

Inherited from

InnerHTML.innerHTML

Defined in

node_modules/typescript/lib/lib.dom.d.ts:14279


isConnected

Readonly isConnected: boolean

Returns true if node is connected and false otherwise.

MDN Reference

Inherited from

DocumentFragment.isConnected

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16092


lastChild

Readonly lastChild: null | ChildNode

Returns the last child.

MDN Reference

Inherited from

DocumentFragment.lastChild

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16098


lastElementChild

Readonly lastElementChild: null | Element

Returns the last child that is an element, and null otherwise.

MDN Reference

Inherited from

DocumentFragment.lastElementChild

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16781


mode

Readonly mode: ShadowRootMode

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:21259


nextSibling

Readonly nextSibling: null | ChildNode

Returns the next sibling.

MDN Reference

Inherited from

DocumentFragment.nextSibling

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16104


nodeName

Readonly nodeName: string

Returns a string appropriate for the type of node.

MDN Reference

Inherited from

DocumentFragment.nodeName

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16110


nodeType

Readonly nodeType: number

Returns the type of node.

MDN Reference

Inherited from

DocumentFragment.nodeType

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16116


nodeValue

nodeValue: null | string

MDN Reference

Inherited from

DocumentFragment.nodeValue

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16118


onslotchange

onslotchange: null | (this: ShadowRoot, ev: Event) => any

Defined in

node_modules/typescript/lib/lib.dom.d.ts:21260


ownerDocument

Readonly ownerDocument: Document

Inherited from

DocumentFragment.ownerDocument

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7386


parentElement

Readonly parentElement: null | HTMLElement

Returns the parent element.

MDN Reference

Inherited from

DocumentFragment.parentElement

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16130


parentNode

Readonly parentNode: null | ParentNode

Returns the parent.

MDN Reference

Inherited from

DocumentFragment.parentNode

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16136


pictureInPictureElement

Readonly pictureInPictureElement: null | Element

MDN Reference

Inherited from

DocumentOrShadowRoot.pictureInPictureElement

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7415


pointerLockElement

Readonly pointerLockElement: null | Element

MDN Reference

Inherited from

DocumentOrShadowRoot.pointerLockElement

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7417


previousSibling

Readonly previousSibling: null | ChildNode

Returns the previous sibling.

MDN Reference

Inherited from

DocumentFragment.previousSibling

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16142


slotAssignment

Readonly slotAssignment: SlotAssignmentMode

MDN Reference

Defined in

node_modules/typescript/lib/lib.dom.d.ts:21262


styleSheets

Readonly styleSheets: StyleSheetList

Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.

MDN Reference

Inherited from

DocumentOrShadowRoot.styleSheets

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7423


textContent

textContent: null | string

MDN Reference

Inherited from

DocumentFragment.textContent

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16144

Methods

addEventListener

addEventListener<K>(type, listener, options?): void

Throws a "NotSupportedError" DOMException if context object is a shadow root.

Type parameters

Name Type
K extends "slotchange"

Parameters

Name Type
type K
listener (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any
options? boolean | AddEventListenerOptions

Returns

void

Overrides

DocumentFragment.addEventListener

Defined in

node_modules/typescript/lib/lib.dom.d.ts:21264

addEventListener(type, listener, options?): void

Parameters

Name Type
type string
listener EventListenerOrEventListenerObject
options? boolean | AddEventListenerOptions

Returns

void

Overrides

DocumentFragment.addEventListener

Defined in

node_modules/typescript/lib/lib.dom.d.ts:21265


append

append(...nodes): void

Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

MDN Reference

Parameters

Name Type
...nodes (string | Node)[]

Returns

void

Inherited from

DocumentFragment.append

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16789


appendChild

appendChild<T>(node): T

MDN Reference

Type parameters

Name Type
T extends Node

Parameters

Name Type
node T

Returns

T

Inherited from

DocumentFragment.appendChild

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16146


cloneNode

cloneNode(deep?): Node

Returns a copy of node. If deep is true, the copy also includes the node's descendants.

MDN Reference

Parameters

Name Type
deep? boolean

Returns

Node

Inherited from

DocumentFragment.cloneNode

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16152


compareDocumentPosition

compareDocumentPosition(other): number

Returns a bitmask indicating the position of other relative to node.

MDN Reference

Parameters

Name Type
other Node

Returns

number

Inherited from

DocumentFragment.compareDocumentPosition

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16158


contains

contains(other): boolean

Returns true if other is an inclusive descendant of node, and false otherwise.

MDN Reference

Parameters

Name Type
other null | Node

Returns

boolean

Inherited from

DocumentFragment.contains

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16164


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.

MDN Reference

Parameters

Name Type
event Event

Returns

boolean

Inherited from

DocumentFragment.dispatchEvent

Defined in

node_modules/typescript/lib/lib.dom.d.ts:8217


elementFromPoint

elementFromPoint(x, y): null | Element

Returns the element for the specified x coordinate and the specified y coordinate.

Parameters

Name Type Description
x number The x-offset
y number The y-offset

Returns

null | Element

Inherited from

DocumentOrShadowRoot.elementFromPoint

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7429


elementsFromPoint

elementsFromPoint(x, y): Element[]

Parameters

Name Type
x number
y number

Returns

Element[]

Inherited from

DocumentOrShadowRoot.elementsFromPoint

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7430


getAnimations

getAnimations(): Animation[]

MDN Reference

Returns

Animation[]

Inherited from

DocumentOrShadowRoot.getAnimations

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7432


getElementById

getElementById(elementId): null | HTMLElement

Parameters

Name Type
elementId string

Returns

null | HTMLElement

Inherited from

DocumentFragment.getElementById

Defined in

node_modules/typescript/lib/lib.dom.d.ts:7387


getRootNode

getRootNode(options?): Node

Returns node's root.

MDN Reference

Parameters

Name Type
options? GetRootNodeOptions

Returns

Node

Inherited from

DocumentFragment.getRootNode

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16170


hasChildNodes

hasChildNodes(): boolean

Returns whether node has children.

MDN Reference

Returns

boolean

Inherited from

DocumentFragment.hasChildNodes

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16176


insertBefore

insertBefore<T>(node, child): T

MDN Reference

Type parameters

Name Type
T extends Node

Parameters

Name Type
node T
child null | Node

Returns

T

Inherited from

DocumentFragment.insertBefore

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16178


isDefaultNamespace

isDefaultNamespace(namespace): boolean

MDN Reference

Parameters

Name Type
namespace null | string

Returns

boolean

Inherited from

DocumentFragment.isDefaultNamespace

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16180


isEqualNode

isEqualNode(otherNode): boolean

Returns whether node and otherNode have the same properties.

MDN Reference

Parameters

Name Type
otherNode null | Node

Returns

boolean

Inherited from

DocumentFragment.isEqualNode

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16186


isSameNode

isSameNode(otherNode): boolean

MDN Reference

Parameters

Name Type
otherNode null | Node

Returns

boolean

Inherited from

DocumentFragment.isSameNode

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16188


lookupNamespaceURI

lookupNamespaceURI(prefix): null | string

MDN Reference

Parameters

Name Type
prefix null | string

Returns

null | string

Inherited from

DocumentFragment.lookupNamespaceURI

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16190


lookupPrefix

lookupPrefix(namespace): null | string

MDN Reference

Parameters

Name Type
namespace null | string

Returns

null | string

Inherited from

DocumentFragment.lookupPrefix

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16192


normalize

normalize(): void

Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.

MDN Reference

Returns

void

Inherited from

DocumentFragment.normalize

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16198


prepend

prepend(...nodes): void

Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.

Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.

MDN Reference

Parameters

Name Type
...nodes (string | Node)[]

Returns

void

Inherited from

DocumentFragment.prepend

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16797


querySelector

querySelector<K>(selectors): null | HTMLElementTagNameMap[K]

Returns the first element that is a descendant of node that matches selectors.

MDN Reference

Type parameters

Name Type
K extends keyof HTMLElementTagNameMap

Parameters

Name Type
selectors K

Returns

null | HTMLElementTagNameMap[K]

Inherited from

DocumentFragment.querySelector

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16803

querySelector<K>(selectors): null | SVGElementTagNameMap[K]

Type parameters

Name Type
K extends keyof SVGElementTagNameMap

Parameters

Name Type
selectors K

Returns

null | SVGElementTagNameMap[K]

Inherited from

DocumentFragment.querySelector

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16804

querySelector<K>(selectors): null | MathMLElementTagNameMap[K]

Type parameters

Name Type
K extends keyof MathMLElementTagNameMap

Parameters

Name Type
selectors K

Returns

null | MathMLElementTagNameMap[K]

Inherited from

DocumentFragment.querySelector

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16805

querySelector<K>(selectors): null | HTMLElementDeprecatedTagNameMap[K]

Type parameters

Name Type
K extends keyof HTMLElementDeprecatedTagNameMap

Parameters

Name Type
selectors K

Returns

null | HTMLElementDeprecatedTagNameMap[K]

Deprecated

Inherited from

DocumentFragment.querySelector

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16807

querySelector<E>(selectors): null | E

Type parameters

Name Type
E extends Element = Element

Parameters

Name Type
selectors string

Returns

null | E

Inherited from

DocumentFragment.querySelector

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16808


querySelectorAll

querySelectorAll<K>(selectors): NodeListOf<HTMLElementTagNameMap[K]>

Returns all element descendants of node that match selectors.

MDN Reference

Type parameters

Name Type
K extends keyof HTMLElementTagNameMap

Parameters

Name Type
selectors K

Returns

NodeListOf<HTMLElementTagNameMap[K]>

Inherited from

DocumentFragment.querySelectorAll

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16814

querySelectorAll<K>(selectors): NodeListOf<SVGElementTagNameMap[K]>

Type parameters

Name Type
K extends keyof SVGElementTagNameMap

Parameters

Name Type
selectors K

Returns

NodeListOf<SVGElementTagNameMap[K]>

Inherited from

DocumentFragment.querySelectorAll

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16815

querySelectorAll<K>(selectors): NodeListOf<MathMLElementTagNameMap[K]>

Type parameters

Name Type
K extends keyof MathMLElementTagNameMap

Parameters

Name Type
selectors K

Returns

NodeListOf<MathMLElementTagNameMap[K]>

Inherited from

DocumentFragment.querySelectorAll

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16816

querySelectorAll<K>(selectors): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>

Type parameters

Name Type
K extends keyof HTMLElementDeprecatedTagNameMap

Parameters

Name Type
selectors K

Returns

NodeListOf<HTMLElementDeprecatedTagNameMap[K]>

Deprecated

Inherited from

DocumentFragment.querySelectorAll

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16818

querySelectorAll<E>(selectors): NodeListOf<E>

Type parameters

Name Type
E extends Element = Element

Parameters

Name Type
selectors string

Returns

NodeListOf<E>

Inherited from

DocumentFragment.querySelectorAll

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16819


removeChild

removeChild<T>(child): T

MDN Reference

Type parameters

Name Type
T extends Node

Parameters

Name Type
child T

Returns

T

Inherited from

DocumentFragment.removeChild

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16200


removeEventListener

removeEventListener<K>(type, listener, options?): void

Type parameters

Name Type
K extends "slotchange"

Parameters

Name Type
type K
listener (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any
options? boolean | EventListenerOptions

Returns

void

Overrides

DocumentFragment.removeEventListener

Defined in

node_modules/typescript/lib/lib.dom.d.ts:21266

removeEventListener(type, listener, options?): void

Parameters

Name Type
type string
listener EventListenerOrEventListenerObject
options? boolean | EventListenerOptions

Returns

void

Overrides

DocumentFragment.removeEventListener

Defined in

node_modules/typescript/lib/lib.dom.d.ts:21267


replaceChild

replaceChild<T>(node, child): T

MDN Reference

Type parameters

Name Type
T extends Node

Parameters

Name Type
node Node
child T

Returns

T

Inherited from

DocumentFragment.replaceChild

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16202


replaceChildren

replaceChildren(...nodes): void

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.

MDN Reference

Parameters

Name Type
...nodes (string | Node)[]

Returns

void

Inherited from

DocumentFragment.replaceChildren

Defined in

node_modules/typescript/lib/lib.dom.d.ts:16827

Typescript Libraries

Modules

Namespaces

Clone this wiki locally