Commit Graph

63 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
41bd1761c4 Changed naeme 2025-06-21 04:10:43 +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
e9fe3de6d6 Delete pyproject.toml 2025-06-20 23:03:32 +02:00
Dariusz L
ba4f5fc5ed Update publish.yml 2025-06-20 22:36:23 +02:00
Dariusz L
e87035e7d4 Update README.md 2025-06-20 22:34:01 +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
c8663474c3 Update README.md 2025-06-20 20:14:52 +02:00
Dariusz L
301843f325 Update README.md 2025-06-20 19:30:38 +02:00
Dariusz L
51c843f393 Update Canvas.js 2025-06-20 19:30:29 +02:00
Dariusz L
ef037e5c0b Update README.md 2025-06-20 19:23:40 +02:00
Dariusz L
4e275f21f6 Update README.md 2025-06-20 19:14:48 +02:00
Dariusz L
2ccc784745 Added Outpainting Logic 2025-06-20 19:04:49 +02:00
yicheng
00db5075bd Merge pull request #2 from ComfyNodePRs/publish
Add Github Action for Publishing to Comfy Registry
2024-12-22 01:26:50 +00:00
yicheng
9e89457390 Merge pull request #1 from ComfyNodePRs/pyproject
Add pyproject.toml for Custom Node Registry
2024-12-22 01:26:04 +00:00
snomiao
273f51524f chore(publish): Add Github Action for Publishing to Comfy Registry 2024-12-21 02:23:48 +00:00
snomiao
2f13ebe37d chore(pyproject): Add pyproject.toml for Custom Node Registry 2024-12-21 02:23:48 +00: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
0461953c6c Update canvas_node.py 2024-11-24 12:47:43 +08:00
tanglup
b9c2ce51ad Update README.md 2024-11-24 10:52:51 +08:00
tanglup
df993aac59 Update README.md 2024-11-24 10:47:49 +08:00
tanglup
b9fd9a97a0 Update requirements.txt 2024-11-24 10:36:39 +08:00
tanglup
af0a32a4f9 Update canvas_node.py 2024-11-24 10:34:20 +08:00
tanglup
6e020ca3b8 Update __init__.py 2024-11-24 10:33:11 +08: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
ca2b0aadd8 Update README.md 2024-11-20 22:51:51 +08:00
tanglup
54e35aed1e Update README.md 2024-11-20 22:15:16 +08:00
tanglup
59747028d1 Update README.md 2024-11-20 21:51:04 +08:00
tanglup
43f71280c8 Update README.md 2024-11-20 21:45:45 +08:00
tanglup
14f696b2c9 Create requirements.txt 2024-11-20 19:34:03 +08:00
tanglup
8730a094d8 Update README.md 2024-11-20 19:30:18 +08:00