mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-15 17:54:52 +08:00
Various fixes to hid nodes
This commit is contained in:
@@ -133,13 +133,17 @@ export default class NodeElement extends ISelectableDraggableElement {
|
||||
}
|
||||
switch (nodeEntity.getClass()) {
|
||||
case Configuration.nodeType.comment:
|
||||
case Configuration.nodeType.customEvent:
|
||||
return CommentNodeTemplate
|
||||
case Configuration.nodeType.event: return EventNodeTemplate
|
||||
case Configuration.nodeType.event:
|
||||
case Configuration.nodeType.customEvent:
|
||||
return EventNodeTemplate
|
||||
case Configuration.nodeType.knot: return KnotNodeTemplate
|
||||
case Configuration.nodeType.variableGet: return VariableAccessNodeTemplate
|
||||
case Configuration.nodeType.variableSet: return VariableAccessNodeTemplate
|
||||
}
|
||||
if (nodeEntity.getDelegatePin()) {
|
||||
return EventNodeTemplate
|
||||
}
|
||||
return NodeTemplate
|
||||
}
|
||||
|
||||
@@ -275,6 +279,10 @@ 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