Added template concept

This commit is contained in:
barsdeveloper
2021-10-10 13:52:13 +02:00
parent 84606486c4
commit 8ef5f3dab4
8 changed files with 320 additions and 232 deletions

View File

@@ -3,8 +3,8 @@ import GraphEntity from "./GraphEntity"
export default class SelectableDraggable extends GraphEntity {
constructor() {
super()
constructor(template) {
super(template)
this.dragObject = null
this.location = [0, 0]
this.selected = false