blockly >飞出 >positionAt_

Flyout.positionAt_() 方法

根据 position() 中计算的坐标更新视图。

Signature:

protected positionAt_(width: number, height: number, x: number, y: number): void;

参数

参数 类型 说明
width number 浮出控件 SVG 组的计算宽度
高度 number 飞出的 SVG 组经过计算的高度。
x number 浮出控件 SVG 组经过计算的 x 原点。
y number 飞出 SVG 组的计算 y 原点。

返回

void