mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-03-05 06:57:29 +08:00
Refactoring
This commit is contained in:
@@ -17,16 +17,12 @@ export default class SelectableDraggable extends GraphElement {
|
||||
}
|
||||
}
|
||||
|
||||
connectedCallback() {
|
||||
super.connectedCallback()
|
||||
this.dragObject = new DragMove(this, this.blueprint, {
|
||||
looseTarget: true
|
||||
})
|
||||
}
|
||||
|
||||
disconnectedCallback() {
|
||||
super.disconnectedCallback()
|
||||
this.dragObject.unlistenDOMElement()
|
||||
createInputObjects() {
|
||||
return [
|
||||
new DragMove(this, this.blueprint, {
|
||||
looseTarget: true
|
||||
}),
|
||||
]
|
||||
}
|
||||
|
||||
setLocation(value = [0, 0]) {
|
||||
|
||||
Reference in New Issue
Block a user