blockly > utils > svgMath > getDocumentScroll

utils.svgMath.getDocumentScroll() 函式

取得文件捲動距離,以座標物件表示。從 Closure 的 goog.dom.getDocumentScroll 複製過來。

Signature:

export declare function getDocumentScroll(): Coordinate;

傳回:

座標

含有「x」和「y」值的物件。