A SiYuan plugin for freehand drawing, based on js-draw.
Find a file
2025-04-02 20:15:48 +02:00
.github/workflows 🔧 ci: 更新 vite 打包脚本 2024-10-16 14:43:56 +08:00
asset README 2023-05-19 20:18:04 +08:00
public Move from file IDs to file paths (with retrocompatibility) 2025-04-02 20:15:48 +02:00
scripts 🔧 ci: add a script to update version 2024-09-08 14:05:54 +08:00
src Move from file IDs to file paths (with retrocompatibility) 2025-04-02 20:15:48 +02:00
.gitignore 为checkout添加切换状态时添加回调函数 2024-04-05 16:37:25 +08:00
CHANGELOG.md 📝docs 2024-06-01 16:35:02 +08:00
icon.png Initial Upload 2025-03-31 19:14:17 +02:00
LICENSE Initial commit 2023-05-19 19:40:28 +08:00
package.json Initial Upload 2025-03-31 19:14:17 +02:00
plugin.json Fix bug due to empty i18n folder 2025-04-01 09:12:51 +02:00
preview.png Initial Upload 2025-03-31 19:14:17 +02:00
README.md Improve docs 2025-04-01 23:24:17 +02:00
svelte.config.js 🔧 config svelte 2024-04-19 19:09:15 +08:00
tsconfig.json 🔧 ci: tsconfig, include svelte 2024-09-10 10:55:59 +08:00
tsconfig.node.json init 2023-05-19 19:50:46 +08:00
vite.config.ts 🔧 ci: update vite script, auto remove trivial files under dist/ 2024-10-24 14:51:01 +08:00
vite.config.ts.timestamp-1743541342564-d66840ad6dd8b.mjs Offer to edit images 2025-04-01 23:03:22 +02:00
yaml-plugin.js 🔧 build: yaml-plugin 2024-04-05 22:54:18 +08:00

SiYuan js-draw Plugin

This plugin allows you to embed js-draw whiteboards anywhere in your SiYuan documents.

Usage instructions

  • Install the plugin from the marketplace. You can find it by searching for js-draw.
  • To edit an SVG image that is already embedded in your document:
    1. Right-click on the image, select "Plugin" > "Edit with js-draw" in the menu
    2. The editor tab will open, edit your file as you like, then click the Save button and close the tab.
    3. The image is updated, but SiYuan will still show the cached (old) image. This will be fixed in future releases, please be patient. Until them, you can refresh the editor or change the image path.
  • To add a new drawing to your document:
    1. Type /Insert Drawing in your document, and select the correct menu entry
    2. The whiteboard editor will open in a new tab. Draw as you like, then click the Save button and close the tab.
    3. Click the Gear icon > Refresh to refresh the drawing block.
    4. Click the drawing block to open the editor again.

Planned features

Check out the Projects tab!

Contributing

Contributions are always welcome! Right now, I'm working on the core functionality and fixing bugs.
After that is done, I will need help with the internationalization, as, unfortunately, I don't speak Chinese.
Please contact me if you'd like to help!

Thanks to

This project couldn't have been possible without (in no particular order):

Make sure you check them out and support them as well!

License

The original plugin framework is developed by SiYuan 思源笔记 and licensed under the MIT license.
All changes made by me are copyright MassiveBox 2025, and licensed under the MIT license.