diff --git a/web/data/editor.html b/web/data/editor.html index 5bc51a2..2b55bf8 100644 --- a/web/data/editor.html +++ b/web/data/editor.html @@ -1,53 +1,64 @@ {{ define "content" }} -
-
- - - -
-
- - - - - - - - - - - - - - - - - - -
foreground - -
background - -
outline - -
+
+
+
+ + + +
+
+
+ + + +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
foreground + +
background + +
outline + +
+
+ +
- -
{{ end }} @@ -100,6 +111,13 @@ function editor() { self.toolbar = 'text'; }); }, + delete_selected() { + selected = canvas.getActiveObjects(); + selected.forEach(el => { + canvas.discardActiveObject(el); + canvas.remove(el); + }); + }, set_colour(colour, type) { selected = canvas.getActiveObjects(); console.log();