Add My Library for reusable assets (clip art, templates)

- Save layer or selection to personal library
- Browse library with category grouping and thumbnails
- Insert assets as new layers (double-click or Insert button)
- Delete unwanted assets
- Export library to JSON for backup
- Import library from JSON backup
- Assets stored in browser IndexedDB (persistent)
- Categories: General, Shapes, Borders, Icons, Templates, etc.
This commit is contained in:
Claude
2026-01-27 13:15:58 +00:00
parent 4d4947df13
commit 8087d6967a
3 changed files with 618 additions and 0 deletions
+38
View File
@@ -86,6 +86,44 @@ const menuDefinition = [
name: 'Quick Load',
shortcut: 'F10',
target: 'file/quickload.quickload'
},
{
divider: true
},
{
name: 'My Library',
children: [
{
name: 'Browse Library',
ellipsis: true,
target: 'file/my_library.browse_library'
},
{
divider: true
},
{
name: 'Save Layer to Library',
ellipsis: true,
target: 'file/my_library.save_to_library'
},
{
name: 'Save Selection to Library',
ellipsis: true,
target: 'file/my_library.save_selection_to_library'
},
{
divider: true
},
{
name: 'Export Library (Backup)',
target: 'file/my_library.export_library'
},
{
name: 'Import Library',
ellipsis: true,
target: 'file/my_library.import_library'
}
]
}
]
},