summaryrefslogtreecommitdiff
path: root/tools/editor/index.html
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-01-28 12:00:50 +0100
committerskal <pascal.massimino@gmail.com>2026-01-28 12:00:50 +0100
commit5951650903b228bb01171f8d47965e22a949a518 (patch)
treeb792068b9f569645b108344c4e07f0b43c973e86 /tools/editor/index.html
parent38a35612ab6cc90279cc89577310791a811df0b2 (diff)
feat(editor): Implement drawing tools and advanced undo/redo
This commit significantly enhances the web spectrogram editor by implementing core drawing tools (line, ellipse, noise) and a robust undo/redo system. - and : Added redo button and styling. - : Implemented canvas event handling, dynamic shape previews, and the logic for lines and noise rectangles. - : Now reconstructs the spectrogram from a clean base, allowing proper undo/redo. - : Uses an improved color gradient for better visualization. - : Stores original spectrogram data for persistent state management.
Diffstat (limited to 'tools/editor/index.html')
-rw-r--r--tools/editor/index.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/editor/index.html b/tools/editor/index.html
index 73356bd..914ac93 100644
--- a/tools/editor/index.html
+++ b/tools/editor/index.html
@@ -19,6 +19,8 @@
<button id="lineTool">Line</button>
<button id="ellipseTool">Ellipse</button>
<button id="noiseTool">Noise</button>
+ <button id="undoButton">Undo</button>
+ <button id="redoButton">Redo</button>
<!-- Add more tool controls later -->
</div>
</div>