Refactoring

This commit is contained in:
barsdeveloper
2021-10-31 16:05:38 +01:00
parent 12e44c5482
commit 199005ec20
13 changed files with 1297 additions and 81 deletions

View File

@@ -1,10 +1,10 @@
import Drag from "../input/Drag"
import GraphEntity from "./GraphEntity"
import GraphElement from "./GraphElement"
export default class SelectableDraggable extends GraphEntity {
export default class SelectableDraggable extends GraphElement {
constructor(template) {
super(template)
constructor(...args) {
super(...args)
this.dragObject = null
this.location = [0, 0]
this.selected = false