BlockSvg.moveBy() 方法
以相对偏移量移动块。
Signature:
moveBy(dx: number, dy: number, reason?: string[]): void;
参数
参数 | 类型 | 说明 |
---|---|---|
dx | number | 工作区单元的水平偏移量。 |
Dy | number | 垂直偏移(以工作区单位为单位)。 |
原因 | 字符串[] | (可选)为什么要进行此次转移?“drag”“触碰”“snap”... |
返回:
void
以相对偏移量移动块。
Signature:
moveBy(dx: number, dy: number, reason?: string[]): void;
参数 | 类型 | 说明 |
---|---|---|
dx | number | 工作区单元的水平偏移量。 |
Dy | number | 垂直偏移(以工作区单位为单位)。 |
原因 | 字符串[] | (可选)为什么要进行此次转移?“drag”“触碰”“snap”... |
返回:
void
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-12-01。