changxi4848149 downloadsExcalidraw 配套优化:导航小地图 + 顺滑缩放拖动,几千笔画也不卡。
Excali Canvas Optimizer(Excali 画布优化) — a companion plugin for Obsidian + Excalidraw.
Requires obsidian-excalidraw-plugin to be installed and enabled.
English — Excalidraw is great, but once a page grows to thousands of strokes two things break down: (1) you cannot tell where you are without zooming out, and the canvas gets blurry and slow when you do; (2) every zoom step or pan re-renders the whole scene, so gestures stutter. This plugin solves both. It never modifies your documents and never touches the undo stack — it only manipulates the view.
中文 — Excalidraw 很好用,但一页笔记画到几千笔之后会出现两个问题:①想纵览全局只能缩小,缩到 10% 就糊、而且越缩越卡;②每滚一格、每拖一下都要把整页重画一遍,手势卡顿。本插件分别解决这两件事,不修改任何文档内容、不进撤销栈,只操作视图。
English — A thumbnail of the whole drawing docked to the canvas corner. It draws only blocks and polylines (never real strokes), so pages with thousands of strokes stay cheap. Click to jump, drag the blue box to pan, drag the dim area to move the map itself, wheel to zoom the map. Refreshes automatically when you switch tabs or open a file.
中文 — 右下角常驻一张缩略图,只画色块与折线(不重绘真实笔画),几千笔画也几乎不耗性能。单击把主画布移过去;拖蓝框移动视口;拖暗色区移动地图本身并设定"标准位置";滚轮缩放地图。切换标签或打开文件时自动刷新。
English — Excalidraw re-renders the whole scene on every zoom or pan step. This plugin freezes the current frame into a bitmap, moves that bitmap during the gesture, and commits once when you stop. The smaller you zoom out, the longer the settle window (you are overviewing, not drawing).
中文 — Excalidraw 原版在缩放或平移时逐帧全量重绘。本插件在手势开始时把当前画面冻结成一张位图,手势中只移动这张图,停手后只提交一次渲染高清。缩得越小、元素越多,停手判定自动延长。
English
main.js, manifest.json, styles.css from Releases.<your vault>/.obsidian/plugins/excalidraw-canvas-optimizer/.中文
main.js、manifest.json、styles.css;<你的库>/.obsidian/plugins/excalidraw-canvas-optimizer/;| Action / 操作 | How / 方式 |
|---|---|
| Zoom / 缩放 | Ctrl + wheel, trackpad pinch, Ctrl + =, Ctrl + -, Ctrl + 0 |
| Pan / 平移 | Alt + arrow keys, Space + drag, middle-button drag, hand tool |
| Scroll other views / 其他界面滚动 | Alt + ↑/↓ scrolls PDFs and notes like a wheel |
Ctrl±is intercepted only inside an Excalidraw view — it will not zoom the whole Obsidian UI.Ctrl±只在 Excalidraw 视图内被拦截,不会缩放整个 Obsidian 界面。
| Action / 操作 | Effect / 效果 |
|---|---|
| Click / 单击 | Jump the canvas there / 把主画布移过去 |
| Drag blue box / 拖蓝框 | Pan the viewport / 移动视口 |
| Drag dim area / 拖暗色区 | Move the map, sets new standard position / 移动地图并设定标准位置 |
| Wheel or bottom bar / 滚轮或底部横条 | Zoom the map / 缩放地图 |
Shift + drag |
Lock to one axis / 锁定单轴 |
| Double-click / 双击 | Fit the whole drawing / 缩放到整张图 |
Panel: drag the three dots to move · drag the bottom-right corner to resize · ◎ recenters. Controls appear on hover.
面板:拖三颗点移动 · 拖右下角改大小 · ◎ 回正,鼠标移上去才显示。
English
中文
English
Ctrl + = / Ctrl + -) instead.中文
Ctrl + = / Ctrl + -)。English — The minimap only redraws blocks and polylines; per-frame panning costs 0.01–0.02 ms, layer rebuild 7–10 ms for 4,600 elements, freeze capture 1–3 ms. The expensive full re-render happens only once, after you stop. A fast single CPU core matters most; integrated graphics are enough.
中文 — 小地图只画色块与折线:平移 0.01–0.02 ms/帧,图层重建约 7–10 ms(4600 元素),冻结抓帧 1–3 ms。真正的全量重绘只在你停手之后发生一次。单核 CPU 频率最关键,核显足够。
Architecture, design decisions, performance data and release process: docs/DEVELOPMENT.md
架构、关键决策、性能数据与发布流程:docs/DEVELOPMENT.md
卢长希 (Lu Changxi) — https://github.com/changxi4848
Personal project, provided as-is for learning and reference. No support guarantees. 个人开发维护,仅供学习使用参考,不承诺响应时间。