Skip to main content

Home > 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

ParameterTypeDescription
elElementElement to get the page offset for.

Returns:

Coordinate

The page offset.