blockly > Flyout > 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