We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64e3fb6 commit 4b90a17Copy full SHA for 4b90a17
packages/core/plugin/WorkspacePlugin.ts
@@ -100,6 +100,7 @@ class WorkspacePlugin implements IPluginTempl {
100
if (this.canvas.clearHistory) {
101
this.canvas.clearHistory();
102
}
103
+ this.auto();
104
105
106
// 返回workspace对象
@@ -144,6 +145,7 @@ class WorkspacePlugin implements IPluginTempl {
144
145
this.workspace.set('width', width);
146
this.workspace.set('height', height);
147
this.editor.emit('sizeChange', this.workspace.width, this.workspace.height);
148
149
150
151
setZoomAuto(scale: number, cb?: (left?: number, top?: number) => void) {
0 commit comments