Commit 5f57cfc
Add custom module support with persistent library
Introduces a blank/custom module placeholder that users can name and
reuse across patches. Includes:
- custom-module symbol (dashed octagon SVG) in a new Custom category
- IndexedDB-backed custom module library (lib/customModuleLibrary.js)
- Auto-saves named modules to the library on first placement; blocks
duplicates with an alert
- Saved modules appear in the palette under Custom for quick re-use
without a name prompt
- Rename from the palette propagates to all matching canvas instances
- Delete from the palette warns if instances exist and offers to remove
them, cancelling does nothing
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent fbc6f3e commit 5f57cfc
5 files changed
Lines changed: 542 additions & 184 deletions
File tree
- app
- components
- lib
- public/symbols
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
193 | 249 | | |
194 | 250 | | |
195 | 251 | | |
| |||
0 commit comments