Move style related actions to templates

This commit is contained in:
barsdeveloper
2021-12-10 21:05:44 +01:00
parent 7bc0f4e2f2
commit 6b02ab7e08
19 changed files with 2693 additions and 139 deletions

View File

@@ -49,8 +49,22 @@ export default class PinEntity extends Entity {
return this.PinName
}
isConnected() {
return this.LinkedTo.length > 0
}
getType() {
return this.PinType.PinCategory ?? "object"
}
isInput() {
if (!this.bHidden && this.Direction !== "EGPD_Output") {
return true
}
}
isOutput() {
if (this.Direction === "EGPD_Output") {
if (!this.bHidden && this.Direction === "EGPD_Output") {
return true
}
}