blockly >实用程序 >样式 >getViewportPageOffset

utils.style.getViewportPageOffset() 函数

计算相对于文档的视口坐标。类似于 Closure 的 goog.style.getViewportPageOffset

Signature:

export declare function getViewportPageOffset(): Coordinate;

返回

坐标

视口的页面偏移量。