@drawo-app/drawo 2.0.13 → 2.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -32
- package/dist/assets/html2canvas.esm-DXEQVQnt.js +5 -0
- package/dist/assets/index-C8n8cw_J.js +247 -0
- package/dist/assets/index-D0JSE8y1.css +1 -0
- package/dist/assets/index.es-DJwUbTGN.js +5 -0
- package/dist/assets/jspdf.es.min-BamZr430.js +79 -0
- package/dist/assets/purify.es-CovBOfck.js +2 -0
- package/dist/index.html +440 -0
- package/package.json +1 -1
- package/dist/drawo.css +0 -1
- package/dist/index.cjs +0 -327
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -274
- package/dist/index.d.ts +0 -274
- package/dist/index.js +0 -59700
- package/dist/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
+
# -- FULL DOCUMENTATION SOON --
|
|
4
|
+
|
|
5
|
+
<hr>
|
|
6
|
+
|
|
3
7
|
# 🎨 Drawo
|
|
4
8
|
|
|
5
9
|
### Open-source visual whiteboard **component** for React
|
|
@@ -31,8 +35,8 @@ Everything runs client-side with local browser storage.
|
|
|
31
35
|
- **Grouping**, multi-selection, smart guides, snap to grid
|
|
32
36
|
- **Undo/Redo** with full history
|
|
33
37
|
- **Export**: png, jpg, svg, pdf with quality controls
|
|
34
|
-
- **Project files**: save/open `.drawo` files
|
|
35
|
-
- **22 themes**: Drawo, Catppuccin, Nord, Solarized, Gruvbox, Tokyo Night, Rose Pine, Everforest, Kanagawa, Dracula, One, Ayu
|
|
38
|
+
- **Project files**: save/open `.drawo` files (TIP: Share a .drawo with ChatGPT/Claude/...)
|
|
39
|
+
- **22 themes**: Drawo, Catppuccin, Nord, Solarized, Gruvbox, Tokyo Night, Rose Pine, Everforest, Kanagawa, Dracula, One, Ayu...
|
|
36
40
|
- **Internationalization**: English & Spanish
|
|
37
41
|
- **Special modes**: Zen Mode, Presentation Mode
|
|
38
42
|
- **Optional**: Timer, MusicBar, Search & Library sidebar
|
|
@@ -52,6 +56,7 @@ npm install react@^19 react-dom@^19
|
|
|
52
56
|
## 🚀 Quick Start
|
|
53
57
|
|
|
54
58
|
```tsx
|
|
59
|
+
import "drawo/styles.css";
|
|
55
60
|
import { Drawo } from "drawo";
|
|
56
61
|
|
|
57
62
|
function App() {
|
|
@@ -59,7 +64,8 @@ function App() {
|
|
|
59
64
|
}
|
|
60
65
|
```
|
|
61
66
|
|
|
62
|
-
That
|
|
67
|
+
That single CSS import is required and includes themes, cursors, and editor typography.
|
|
68
|
+
`<Drawo />` also injects the required Google Fonts (`Inter`, `Rubik`, `Shantell Sans`, `Imbue`, `Cascadia Code`) automatically.
|
|
63
69
|
|
|
64
70
|
## 🎨 Customization
|
|
65
71
|
|
|
@@ -101,8 +107,12 @@ function ElementCounter() {
|
|
|
101
107
|
return (
|
|
102
108
|
<div>
|
|
103
109
|
<p>{scene.elements.length} elements</p>
|
|
104
|
-
<button onClick={undo} disabled={!canUndo}>
|
|
105
|
-
|
|
110
|
+
<button onClick={undo} disabled={!canUndo}>
|
|
111
|
+
Undo
|
|
112
|
+
</button>
|
|
113
|
+
<button onClick={redo} disabled={!canRedo}>
|
|
114
|
+
Redo
|
|
115
|
+
</button>
|
|
106
116
|
</div>
|
|
107
117
|
);
|
|
108
118
|
}
|
|
@@ -121,25 +131,25 @@ See the [docs](./docs/README.md) for:
|
|
|
121
131
|
|
|
122
132
|
## ⌨️ Keyboard Shortcuts
|
|
123
133
|
|
|
124
|
-
| Shortcut
|
|
125
|
-
|
|
126
|
-
| `V`
|
|
127
|
-
| `H`
|
|
128
|
-
| `1`
|
|
129
|
-
| `2`
|
|
130
|
-
| `3`
|
|
131
|
-
| `4`
|
|
132
|
-
| `K`
|
|
133
|
-
| `Ctrl/Cmd + Z`
|
|
134
|
-
| `Ctrl/Cmd + Shift + Z` / `Ctrl/Cmd + Y` | Redo
|
|
135
|
-
| `Ctrl/Cmd + A`
|
|
136
|
-
| `Ctrl/Cmd + D`
|
|
137
|
-
| `Ctrl/Cmd + G`
|
|
138
|
-
| `Ctrl/Cmd + Shift + G`
|
|
139
|
-
| `Ctrl/Cmd + +/-/0`
|
|
140
|
-
| `Alt + Z`
|
|
141
|
-
| `Alt + R`
|
|
142
|
-
| `Delete/Backspace`
|
|
134
|
+
| Shortcut | Action |
|
|
135
|
+
| --------------------------------------- | ------------------------ |
|
|
136
|
+
| `V` | Selection tool |
|
|
137
|
+
| `H` | Hand (pan) tool |
|
|
138
|
+
| `1` | Text tool |
|
|
139
|
+
| `2` | Rectangle tool |
|
|
140
|
+
| `3` | Circle tool |
|
|
141
|
+
| `4` | Draw tool |
|
|
142
|
+
| `K` | Laser tool |
|
|
143
|
+
| `Ctrl/Cmd + Z` | Undo |
|
|
144
|
+
| `Ctrl/Cmd + Shift + Z` / `Ctrl/Cmd + Y` | Redo |
|
|
145
|
+
| `Ctrl/Cmd + A` | Select all |
|
|
146
|
+
| `Ctrl/Cmd + D` | Duplicate |
|
|
147
|
+
| `Ctrl/Cmd + G` | Group |
|
|
148
|
+
| `Ctrl/Cmd + Shift + G` | Ungroup |
|
|
149
|
+
| `Ctrl/Cmd + +/-/0` | Zoom in/out/reset |
|
|
150
|
+
| `Alt + Z` | Toggle Zen Mode |
|
|
151
|
+
| `Alt + R` | Toggle Presentation Mode |
|
|
152
|
+
| `Delete/Backspace` | Delete selection |
|
|
143
153
|
|
|
144
154
|
## 🛠️ Development
|
|
145
155
|
|
|
@@ -159,14 +169,14 @@ pnpm build
|
|
|
159
169
|
|
|
160
170
|
## 📦 Package Info
|
|
161
171
|
|
|
162
|
-
|
|
|
163
|
-
|
|
164
|
-
| **Name**
|
|
165
|
-
| **Version**
|
|
166
|
-
| **License**
|
|
167
|
-
| **Bundle**
|
|
168
|
-
| **Peer Deps**
|
|
169
|
-
| **TypeScript** | Full type definitions
|
|
172
|
+
| | |
|
|
173
|
+
| -------------- | ------------------------ |
|
|
174
|
+
| **Name** | `drawo` |
|
|
175
|
+
| **Version** | 2.0.0 |
|
|
176
|
+
| **License** | MIT |
|
|
177
|
+
| **Bundle** | ~2.6MB (637KB gzipped) |
|
|
178
|
+
| **Peer Deps** | React 19+, React DOM 19+ |
|
|
179
|
+
| **TypeScript** | Full type definitions |
|
|
170
180
|
|
|
171
181
|
## 📄 Changelog
|
|
172
182
|
|