A SiYuan plugin for freehand drawing, based on js-draw.
Find a file
MassiveBox 8d1438de33
Offer to edit images
Any SVG image in assets/ can now be edited with js-draw. It won't reload automatically (yet)
2025-04-01 23:03:22 +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 Offer to edit images 2025-04-01 23:03:22 +02:00
scripts 🔧 ci: add a script to update version 2024-09-08 14:05:54 +08:00
src Offer to edit images 2025-04-01 23:03:22 +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 Initial Upload 2025-03-31 19:14: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

  1. Install the plugin
    • Grab a release from the Releases page
    • Unzip it in the folder ./data/plugins, relatively to your SiYuan workspace.

    The plugin is not yet available in the official marketplace. I will try to publish it there soon!

  2. Insert a drawing in your documents by typing /Insert Drawing in your document, and selecting the correct menu entry
  3. The whiteboard editor will open in a new tab. Draw as you like, then click the Save button. It will also add a drawing block to your document.
  4. Click the Gear icon > Refresh to refresh the drawing block, if it's still displaying the old drawing.
  5. Click the drawing block to open the editor again.

Planned features

  • Auto-reload drawing blocks on drawing change
  • Rename whiteboards
  • Improve internationalization framework
  • Default background color and grid options
  • Respecting user theme for the editor
  • And more!

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.