Skip to content

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

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

Interface: DocumentOrShadowRoot

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

Hierarchy

Table of contents

Properties

Methods

Properties

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

Defined in

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


adoptedStyleSheets

adoptedStyleSheets: CSSStyleSheet[]

MDN Reference

Defined in

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


fullscreenElement

Readonly fullscreenElement: null | Element

Returns document's fullscreen element.

MDN Reference

Defined in

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


pictureInPictureElement

Readonly pictureInPictureElement: null | Element

MDN Reference

Defined in

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


pointerLockElement

Readonly pointerLockElement: null | Element

MDN Reference

Defined in

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


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

Defined in

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

Methods

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

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[]

Defined in

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


getAnimations

getAnimations(): Animation[]

MDN Reference

Returns

Animation[]

Defined in

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

Typescript Libraries

Modules

Namespaces

Clone this wiki locally