|
@@ -540,7 +540,13 @@ export class SGraphItem extends SObject {
|
|
|
* @param x x坐标
|
|
|
* @param y y坐标
|
|
|
* */
|
|
|
- moveToOrigin(x: number, y: number): void {} // Function moveToOrigin()
|
|
|
+ moveToOrigin(x: number, y: number): void {
|
|
|
+ if (this.children && this.children.length) {
|
|
|
+ this.children.forEach(it => {
|
|
|
+ it.moveToOrigin(x, y);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ } // Function moveToOrigin()
|
|
|
|
|
|
// =================================================================================================================
|
|
|
// 私有方法
|