mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-03-05 15:17:32 +08:00
Move entities decode methods to entities
This commit is contained in:
@@ -225,7 +225,7 @@ export default class NodeElement extends ISelectableDraggableElement {
|
||||
}
|
||||
|
||||
getNodeDisplayName() {
|
||||
return Configuration.nodeDisplayName(this)
|
||||
return this.entity.nodeDisplayName()
|
||||
}
|
||||
|
||||
/** @param {Number} value */
|
||||
@@ -279,10 +279,6 @@ export default class NodeElement extends ISelectableDraggableElement {
|
||||
super.setLocation(x, y, acknowledge)
|
||||
}
|
||||
|
||||
isEvent() {
|
||||
return this.template instanceof EventNodeTemplate
|
||||
}
|
||||
|
||||
acknowledgeReflow() {
|
||||
this.requestUpdate()
|
||||
this.updateComplete.then(() => this.computeSizes())
|
||||
|
||||
Reference in New Issue
Block a user