blockly > utils > style > getPageOffset

utils.style.getPageOffset() function

Returns a Coordinate object relative to the top-left of the HTML document. Similar to Closure's goog.style.getPageOffset

Signature:

export declare function getPageOffset(el: Element): Coordinate;

Parameters

Parameter Type Description
el Element Element to get the page offset for.

Returns:

Coordinate

The page offset.