A lightweight, smooth, and powerful web-based digital whiteboard tool. Developed with native HTML5 Canvas and JavaScript, and styled with Tailwind CSS for a modern interface, it aims to provide an extremely simple yet feature-rich creative experience.
Try it now: https://eledgetw.github.io/whiteboard/
- Fully Offline & Private: Runs as a single HTML file. All drawing data is stored in the browser's local cache (LocalStorage), ensuring your privacy.
- Powerful Graphic Editing:
- Free Rotation & Scaling: Objects can be rotated 360 degrees after selection. Images and shapes support free scaling.
- Lasso Tool: Select multiple objects within an area for easy group movement or batch deletion.
- Layer Management: Built-in "Bring to Front/Send to Back" and "Forward/Backward" functions to precisely control object overlapping.
- Advanced Text System:
- Supports Bullet Points (•) and Automatic Numbered Lists (1.).
- Supports multi-level indentation (using the Tab key) with automatic list number recalculation.
- Supports text alignment (Left, Center, Right) and dynamic font size adjustment.
- Rich Drawing Tools:
- Highlighter: Translucent brush strokes with automatic color-layering effects.
- Laser Pointer: A dynamic fading trail perfect for presentations and demonstrations.
- Smart Shapes: Rectangles, Diamonds, Ellipses (with rounded corner settings), Arrows, and Lines.
- Project Saving & Export:
- Export as .json project files to resume editing later.
- Export as .png images.
- Auto-Resume: After refreshing the page, the canvas content, zoom level, and view position are automatically restored.
This project features an efficient hotkey system for a seamless workflow:
1: Select2: Rectangle3: Diamond4: EllipseA: ArrowS: LineD: PencilH: HighlighterT: TextL: LassoF: Laser PointerE: Eraser
- Line Width:
Q(Thinnest) /W(Medium). - Quick Color Select:
R(Red) /G(Green) /B(Blue) /Y(Yellow). - Quick Duplicate: Hold
Ctrl/Cmdwhile dragging an object. - Axis Locking: Hold
Shiftwhile drawing lines or moving objects to lock to horizontal/vertical directions. - Delete Object:
DeleteorBackspace.
- Pan Canvas: Hold
Space, use theScroll Wheel, orRight-clickand drag. - Zoom Canvas: Hold
Ctrl/Cmdand use the scroll wheel, or use two-finger pinch on tablets. - Undo/Redo:
Ctrl+Z/Ctrl+Y.
- Paste Assets: Paste images or text directly from your clipboard using
Ctrl+V; the system will automatically optimize the display size. - Context Menu: Long-press on the canvas (mobile) or right-click to bring up the menu for the paste function.
- List Indentation: In text editing mode, use
Tabto increase indentation andShift+Tabto decrease it; the system will automatically convert bullet points.
- Frontend Framework: Tailwind CSS
- Rendering Engine: HTML5 Canvas API
- Local Storage: LocalStorage API
- Compatibility: Supports all modern browsers and touch operations on mobile devices.
✨ Do you like this project? ✨ If this tool has saved you time ⏱️ or inspired your research 💡, 🧋 click the icon to buy me a pearl milk tea! 🧋
←←(Click the Boba icon to support the author)
This project is a personal development tool designed to provide a convenient drawing experience for "Digital Twin" workflows. This software does not collect any user information; all drawing data remains locally on the user's device.