blockly > utils > style > getViewportPageOffset

Hàm utils.style.getViewportPageOffset()

Tính toán toạ độ khung nhìn so với tài liệu. Tương tự như google.style.getViewportPageOffset của close

Chữ ký:

export declare function getViewportPageOffset(): Coordinate;

Trả về:

Tọa độ

Độ lệch trang của khung nhìn.