mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:50:33 +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())
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import BoolPinTemplate from "../template/pin/BoolPinTemplate"
|
||||
import Configuration from "../Configuration"
|
||||
import ElementFactory from "./ElementFactory"
|
||||
import ExecPinTemplate from "../template/pin/ExecPinTemplate"
|
||||
import GuidEntity from "../entity/GuidEntity"
|
||||
@@ -175,7 +174,7 @@ export default class PinElement extends IElement {
|
||||
|
||||
/** @return {CSSResult} */
|
||||
getColor() {
|
||||
return Configuration.pinColor(this)
|
||||
return this.entity.pinColor()
|
||||
}
|
||||
|
||||
isInput() {
|
||||
|
||||
Reference in New Issue
Block a user