mirror of
https://github.com/zsviczian/obsidian-excalidraw-plugin.git
synced 2025-08-06 05:46:28 +00:00
docs: resolve typos and add Chinese documentation - Fixed multiple spelling errors (e.g. "nmuber" → "number") - Removed a blank file (foo) - Added Chinese version of documentation with cross-linking between readme.md of languages [Note] Added a translator donation link in docs/zh-cn/docs/readme.md - please confirm if appropriate
726 B
726 B
◀ Excalidraw Automate 使用指南
连接对象
这个 Templater 模板演示了如何使用 ExcalidrawAutomate 连接两个对象。
使用 CTRL+Shift+V 将代码粘贴到 Obsidian 中!
<%*
const ea = ExcalidrawAutomate;
ea.reset();
ea.addText(-130,-100,"Connecting two objects");
const a = ea.addRect(-100,-100,100,100);
const b = ea.addEllipse(200,200,100,100);
ea.connectObjects(a,"bottom",b,"left",{numberOfPoints: 2}); //see how the line breaks differently when moving objects around
ea.style.strokeColor = "red";
ea.connectObjects(a,"right",b,"top",1);
await ea.create();
%>