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 506a27f commit 5453c2aCopy full SHA for 5453c2a
main/src/view/canvas/index.vue
@@ -33,6 +33,7 @@ onMounted(() => {
33
<button @click="app.remove(...app.selected)">删除</button>
34
<button @click="app.undo()">回退</button>
35
<button @click="app.redo()">恢复</button>
36
+ <button @click="app.zoomToContent()">快速定位</button>
37
</div>
38
<div class="tools">
39
<button @click="app.setTool(selectTool())">选择🖱️</button>
packages/core/src/app.ts
@@ -187,6 +187,10 @@ export class App extends BaseService<EventArgs> {
187
this.mainLayer.draw();
188
}
189
190
+ public zoomToContent(): void {
191
+ console.log('滚动到内容');
192
+ }
193
+
194
public toJSON(): string {
195
return this.mainLayer.toJSON();
196
0 commit comments