Returns the top, left corner of the viewrect as an Point.

  • Parameters

    • node: null | HTMLElement = null

      DOM node whose scroll origin should be returned.

    • includeAncestors: boolean = false

      Whether the scroll origin of the ancestors should be included. Default is false.

    • includeDocument: boolean = true

      Whether the scroll origin of the document should be included. Default is true.

    Returns Point