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.histories = [];
// this.scale(scale);与xd 自定义缩放冲突,暂时去掉
if (isEmpty(origin)) {
this.centerView();
} else {
this.translate(origin.x / scale, origin.y / scale);
}
// if (isEmpty(origin)) {
// this.centerView();
// } else {
// this.translate(origin.x / scale, origin.y / scale);
// }
}
/**
* JSON字符串