Adjusting node sizes further and tests fixes

This commit is contained in:
barsdeveloper
2023-05-21 20:25:38 +02:00
parent a3422ba8b6
commit db04a8f9b0
12 changed files with 97 additions and 49 deletions

View File

@@ -133,6 +133,15 @@ export default class ObjectEntity extends IEntity {
bColorCommentBubble: {
type: Boolean,
},
ProxyFactoryFunctionName: {
type: String,
},
ProxyFactoryClass: {
type: ObjectReferenceEntity,
},
ProxyClass: {
type: ObjectReferenceEntity,
},
R: {
type: Number,
},
@@ -322,6 +331,9 @@ export default class ObjectEntity extends IEntity {
/** @type {LinearColorEntity?} */ this.CommentColor
/** @type {Boolean?} */ this.bCommentBubbleVisible_InDetailsPanel
/** @type {Boolean?} */ this.bColorCommentBubble
/** @type {String?} */ this.ProxyFactoryFunctionName
/** @type {ObjectReferenceEntity?} */ this.ProxyFactoryClass
/** @type {ObjectReferenceEntity?} */ this.ProxyClass
/** @type {Number?} */ this.R
/** @type {Number?} */ this.G
/** @type {ObjectReferenceEntity?} */ this.MaterialExpression
@@ -545,6 +557,10 @@ export default class ObjectEntity extends IEntity {
nodeDisplayName() {
let input
switch (this.getType()) {
case Configuration.paths.asyncAction:
if (this.ProxyFactoryFunctionName) {
return Utility.formatStringName(this.ProxyFactoryFunctionName)
}
case Configuration.paths.componentBoundEvent:
return `${Utility.formatStringName(this.DelegatePropertyName)} (${this.ComponentPropertyName})`
case Configuration.paths.createDelegate:
@@ -830,6 +846,7 @@ export default class ObjectEntity extends IEntity {
nodeIcon() {
switch (this.getType()) {
case Configuration.paths.asyncAction:
case Configuration.paths.addDelegate:
case Configuration.paths.createDelegate:
case Configuration.paths.functionEntry: