Commit Graph

29 Commits

Author SHA1 Message Date
Dariusz L
a874a341e0 Migrate canvas state storage to IndexedDB
Replaced localStorage usage in Canvas.js with asynchronous IndexedDB operations for saving, loading, and removing canvas state. Added a new db.js module to handle IndexedDB interactions, improving scalability and reliability of state persistence.
2025-06-24 08:21:34 +02:00
Dariusz L
e47d51e19c Add localStorage state persistence and refactor image loading
Introduces methods to save and load canvas state to localStorage, enabling persistence across sessions. Refactors image loading for drag-and-drop, file input, and clipboard paste to use FileReader and data:URL, improving compatibility and reliability. Updates layer addition to consistently update selection and save state. Calls loadInitialState on widget creation to restore previous state if available.
2025-06-24 08:11:45 +02:00
Dariusz L
28f4a09d8b Revert "Add undo/redo shortcuts to help section"
This reverts commit 1c4c2fc475.
2025-06-24 07:50:52 +02:00
Dariusz L
1c4c2fc475 Add undo/redo shortcuts to help section
Updated the help section in Canvas_view.js to include keyboard shortcuts for undo (Ctrl+Z) and redo (Ctrl+Y / Ctrl+Shift+Z) actions.
2025-06-24 06:48:35 +02:00
Dariusz L
c8e7e2c561 Add undo/redo functionality to Canvas
Implemented undo and redo history stacks in Canvas.js, including keyboard shortcuts (Ctrl+Z, Ctrl+Y/Shift+Z), and state saving on relevant actions. Added Undo and Redo buttons to the UI in Canvas_view.js, with dynamic enable/disable based on history state.
2025-06-24 05:34:32 +02:00
Dariusz L
181d9c89c7 Added focus on canvas 2025-06-21 03:01:49 +02:00
Dariusz L
c46054e442 Update Canvas.js 2025-06-21 02:01:20 +02:00
Dariusz L
fe5ca7e958 Update ShorcutMenu 2025-06-21 01:01:51 +02:00
Dariusz L
797666e2a3 Transform in group 2025-06-21 00:43:07 +02:00
Dariusz L
d9ac5546dd Keep Proportion with shift 2025-06-21 00:25:09 +02:00
Dariusz L
8cd0716449 Move Canvas 2025-06-21 00:15:51 +02:00
Dariusz L
3e1e8bb372 Added Copy-Pasted 2025-06-21 00:00:29 +02:00
Dariusz L
62d858b0c4 Inteligent Scale 2025-06-20 23:42:46 +02:00
Dariusz L
4ab539eea0 Canvas always on top 2025-06-20 23:22:44 +02:00
Dariusz L
7ead396465 Added Info button 2025-06-20 22:29:28 +02:00
Dariusz L
7b0400a187 Layer fix 2025-06-20 21:59:01 +02:00
Dariusz L
beb89ed612 Paste Image 2025-06-20 21:38:19 +02:00
Dariusz L
bea71e19e2 Buton disabled 2025-06-20 21:14:47 +02:00
Dariusz L
66e6e6586f Update Canvas.js
Show Layer
2025-06-20 20:24:40 +02:00
Dariusz L
0e45ad15d3 Update Canvas.js 2025-06-20 20:14:59 +02:00
Dariusz L
51c843f393 Update Canvas.js 2025-06-20 19:30:29 +02:00
Dariusz L
2ccc784745 Added Outpainting Logic 2025-06-20 19:04:49 +02:00
tanglup
f6614f274d Add files via upload 2024-11-25 01:28:58 +00:00
tanglup
f847a65f67 Add files via upload 2024-11-25 01:28:18 +00:00
tanglup
9c8aa20a4a Update Canvas_view.js 2024-11-24 10:32:50 +08:00
tanglup
58b52ba659 Update Canvas.js 2024-11-24 10:31:41 +08:00
tanglup
a06448b610 Update Canvas_view.js 2024-11-20 18:20:30 +08:00
tanglup
160554bfcc Update Canvas.js 2024-11-20 18:19:48 +08:00
tanglup
87ab68d409 Add files via upload 2024-11-19 15:40:36 +00:00