@drawo-app/drawo 2.0.14 → 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 +38 -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 -299
- package/dist/index.d.ts +0 -299
- package/dist/index.js +0 -59740
- package/dist/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -35,8 +35,8 @@ Everything runs client-side with local browser storage.
|
|
|
35
35
|
- **Grouping**, multi-selection, smart guides, snap to grid
|
|
36
36
|
- **Undo/Redo** with full history
|
|
37
37
|
- **Export**: png, jpg, svg, pdf with quality controls
|
|
38
|
-
- **Project files**: save/open `.drawo` files
|
|
39
|
-
- **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...
|
|
40
40
|
- **Internationalization**: English & Spanish
|
|
41
41
|
- **Special modes**: Zen Mode, Presentation Mode
|
|
42
42
|
- **Optional**: Timer, MusicBar, Search & Library sidebar
|
|
@@ -56,6 +56,7 @@ npm install react@^19 react-dom@^19
|
|
|
56
56
|
## 🚀 Quick Start
|
|
57
57
|
|
|
58
58
|
```tsx
|
|
59
|
+
import "drawo/styles.css";
|
|
59
60
|
import { Drawo } from "drawo";
|
|
60
61
|
|
|
61
62
|
function App() {
|
|
@@ -63,7 +64,8 @@ function App() {
|
|
|
63
64
|
}
|
|
64
65
|
```
|
|
65
66
|
|
|
66
|
-
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.
|
|
67
69
|
|
|
68
70
|
## 🎨 Customization
|
|
69
71
|
|
|
@@ -105,8 +107,12 @@ function ElementCounter() {
|
|
|
105
107
|
return (
|
|
106
108
|
<div>
|
|
107
109
|
<p>{scene.elements.length} elements</p>
|
|
108
|
-
<button onClick={undo} disabled={!canUndo}>
|
|
109
|
-
|
|
110
|
+
<button onClick={undo} disabled={!canUndo}>
|
|
111
|
+
Undo
|
|
112
|
+
</button>
|
|
113
|
+
<button onClick={redo} disabled={!canRedo}>
|
|
114
|
+
Redo
|
|
115
|
+
</button>
|
|
110
116
|
</div>
|
|
111
117
|
);
|
|
112
118
|
}
|
|
@@ -125,25 +131,25 @@ See the [docs](./docs/README.md) for:
|
|
|
125
131
|
|
|
126
132
|
## ⌨️ Keyboard Shortcuts
|
|
127
133
|
|
|
128
|
-
| Shortcut
|
|
129
|
-
|
|
130
|
-
| `V`
|
|
131
|
-
| `H`
|
|
132
|
-
| `1`
|
|
133
|
-
| `2`
|
|
134
|
-
| `3`
|
|
135
|
-
| `4`
|
|
136
|
-
| `K`
|
|
137
|
-
| `Ctrl/Cmd + Z`
|
|
138
|
-
| `Ctrl/Cmd + Shift + Z` / `Ctrl/Cmd + Y` | Redo
|
|
139
|
-
| `Ctrl/Cmd + A`
|
|
140
|
-
| `Ctrl/Cmd + D`
|
|
141
|
-
| `Ctrl/Cmd + G`
|
|
142
|
-
| `Ctrl/Cmd + Shift + G`
|
|
143
|
-
| `Ctrl/Cmd + +/-/0`
|
|
144
|
-
| `Alt + Z`
|
|
145
|
-
| `Alt + R`
|
|
146
|
-
| `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 |
|
|
147
153
|
|
|
148
154
|
## 🛠️ Development
|
|
149
155
|
|
|
@@ -163,14 +169,14 @@ pnpm build
|
|
|
163
169
|
|
|
164
170
|
## 📦 Package Info
|
|
165
171
|
|
|
166
|
-
|
|
|
167
|
-
|
|
168
|
-
| **Name**
|
|
169
|
-
| **Version**
|
|
170
|
-
| **License**
|
|
171
|
-
| **Bundle**
|
|
172
|
-
| **Peer Deps**
|
|
173
|
-
| **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 |
|
|
174
180
|
|
|
175
181
|
## 📄 Changelog
|
|
176
182
|
|