Skip to content

Commit 599e658

Browse files
authored
77 improve code quality of editor/overview.mjs (#95)
- overview.mjs renamed to overviewHandler.mjs - refactored overviewHandler to de-duplicate code for event listeners and canvas objects
1 parent 188fe1c commit 599e658

5 files changed

Lines changed: 298 additions & 372 deletions

File tree

canvas_editor/editor/templates/editor/editor.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"picker": "{% static 'js/editor/picker.mjs' %}",
2828
"saveAndLoadHandler": "{% static 'js/editor/saveAndLoadHandler.mjs' %}",
2929
"bulkObjectCommands": "{% static 'js/commands/bulkObjectCommands.mjs' %}",
30+
"overviewHandler": "{% static 'js/editor/overviewHandler.mjs' %}",
3031
"editor": "{% static 'js/editor/editor.mjs' %}",
3132
"objectManager": "{% static 'js/editor/objectManager.mjs' %}",
3233
"quickSelector": "{% static 'js/editor/quickSelector.mjs' %}",

canvas_editor/jsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"picker": ["static/js/editor/picker.mjs"],
1919
"saveAndLoadHandler": ["static/js/editor/saveAndLoadHandler.mjs"],
2020
"bulkObjectCommands": ["static/js/commands/bulkObjectCommands.mjs"],
21-
"overview": ["static/js/editor/overview.mjs"],
21+
"overviewHandler": ["static/js/editor/overviewHandler.mjs"],
2222
"editor": ["static/js/editor/editor.mjs"],
2323
"objectManager": ["static/js/editor/objectManager.mjs"],
2424
"quickSelector": ["static/js/editor/quickSelector.mjs"],

canvas_editor/static/js/editor/editor.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ViewHelper } from "compass";
33
import { UndoRedoHandler } from "undoRedoHandler";
44
import { SaveAndLoadHandler } from "saveAndLoadHandler";
55
import { Navbar } from "navbar";
6-
import { OverviewHandler } from "overview";
6+
import { OverviewHandler } from "overviewHandler";
77
import { Picker } from "picker";
88
import { ProjectSettingsManager } from "projectSettingsManager";
99
import { ObjectManager } from "objectManager";

canvas_editor/static/js/editor/overview.mjs

Lines changed: 0 additions & 370 deletions
This file was deleted.

0 commit comments

Comments
 (0)