blockly >实用程序 >svgMath >getDocumentScroll

utils.svgMath.getDocumentScroll() 函数

以坐标对象形式获取文档滚动距离。从 Closure 的 goog.dom.getDocumentScroll 复制。

Signature:

export declare function getDocumentScroll(): Coordinate;

返回

坐标

值为“x”的对象和“y”。