fix: 注释掉自定义缩放功能的相关代码,以避免与xd的冲突

This commit is contained in:
xudan 2025-07-02 10:38:25 +08:00
parent be75a56eb5
commit d101411ebb

View File

@ -65,11 +65,11 @@ export class EditorService extends Meta2d {
this.store.historyIndex = undefined; this.store.historyIndex = undefined;
this.store.histories = []; this.store.histories = [];
// this.scale(scale);与xd 自定义缩放冲突,暂时去掉 // this.scale(scale);与xd 自定义缩放冲突,暂时去掉
if (isEmpty(origin)) { // if (isEmpty(origin)) {
this.centerView(); // this.centerView();
} else { // } else {
this.translate(origin.x / scale, origin.y / scale); // this.translate(origin.x / scale, origin.y / scale);
} // }
} }
/** /**
* JSON字符串 * JSON字符串