Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DocumentOrShadowRoot

Hierarchy

Index

Properties

Readonly activeElement

activeElement: Element | null

Readonly fullscreenElement

fullscreenElement: Element | null

Returns document's fullscreen element.

Readonly pointerLockElement

pointerLockElement: Element | null

Readonly styleSheets

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.

Methods

caretPositionFromPoint

  • caretPositionFromPoint(x: number, y: number): CaretPosition | null
  • Parameters

    • x: number
    • y: number

    Returns CaretPosition | null

caretRangeFromPoint

  • caretRangeFromPoint(x: number, y: number): Range
  • deprecated

    Parameters

    • x: number
    • y: number

    Returns Range

elementFromPoint

  • elementFromPoint(x: number, y: number): Element | null
  • Parameters

    • x: number
    • y: number

    Returns Element | null

elementsFromPoint

  • elementsFromPoint(x: number, y: number): Element[]
  • Parameters

    • x: number
    • y: number

    Returns Element[]

getSelection

  • Returns Selection | null

Generated using TypeDoc