@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 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's it. Full whiteboard, zero config.
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}>Undo</button>
105
- <button onClick={redo} disabled={!canRedo}>Redo</button>
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 | Action |
125
- |----------|--------|
126
- | `V` | Selection tool |
127
- | `H` | Hand (pan) tool |
128
- | `1` | Text tool |
129
- | `2` | Rectangle tool |
130
- | `3` | Circle tool |
131
- | `4` | Draw tool |
132
- | `K` | Laser tool |
133
- | `Ctrl/Cmd + Z` | Undo |
134
- | `Ctrl/Cmd + Shift + Z` / `Ctrl/Cmd + Y` | Redo |
135
- | `Ctrl/Cmd + A` | Select all |
136
- | `Ctrl/Cmd + D` | Duplicate |
137
- | `Ctrl/Cmd + G` | Group |
138
- | `Ctrl/Cmd + Shift + G` | Ungroup |
139
- | `Ctrl/Cmd + +/-/0` | Zoom in/out/reset |
140
- | `Alt + Z` | Toggle Zen Mode |
141
- | `Alt + R` | Toggle Presentation Mode |
142
- | `Delete/Backspace` | Delete selection |
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** | `drawo` |
165
- | **Version** | 2.0.0 |
166
- | **License** | MIT |
167
- | **Bundle** | ~2.6MB (637KB gzipped) |
168
- | **Peer Deps** | React 19+, React DOM 19+ |
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