/*
Download this file and save to your Obsidian Vault including the first line, or open it in “Raw” and copy the entire contents to Obsidian.
Similar to Excalidraw standard SHIFT+2 feature: Zoom to fit selected elements, but with the ability to zoom to 1000%. Inspiration: #272
See documentation for more details:
https://zsviczian.github.io/obsidian-excalidraw-plugin/ExcalidrawScriptsEngine.html
*/
elements = ea.getViewSelectedElements();
api = ea.getExcalidrawAPI();
api.zoomToFit(elements,10);
- 标题:
- 作者: 菇太帷i
- 创建于 : 2025-09-18 06:39:53
- 更新于 : 2025-09-18 06:39:53
- 链接: https://blog.gutawei.com/2025/09/18/Excalidraw/Scripts/Downloaded/Zoom to Fit Selected Elements/
- 版权声明: 本文章采用 CC BY-NC-SA 4.0 进行许可。
评论