Attributes initialization refactoring (#19)

This commit is contained in:
barsdeveloper
2024-03-24 17:30:50 +01:00
committed by GitHub
parent 5973570911
commit cc9e3d833a
93 changed files with 4134 additions and 4082 deletions

View File

@@ -1,8 +1,8 @@
import { html, nothing } from "lit"
import ElementFactory from "../../element/ElementFactory.js"
import ISelectableDraggableTemplate from "../ISelectableDraggableTemplate.js"
import SVGIcon from "../../SVGIcon.js"
import Utility from "../../Utility.js"
import ElementFactory from "../../element/ElementFactory.js"
import ISelectableDraggableTemplate from "../ISelectableDraggableTemplate.js"
/** @extends {ISelectableDraggableTemplate<NodeElement>} */
export default class NodeTemplate extends ISelectableDraggableTemplate {
@@ -99,7 +99,7 @@ export default class NodeTemplate extends ISelectableDraggableTemplate {
}
renderNodeName() {
return this.element.getNodeDisplayName()
return this.element.nodeDisplayName
}
renderTop() {

View File

@@ -1,7 +1,7 @@
import { html, nothing } from "lit"
import SVGIcon from "../../SVGIcon.js"
import ElementFactory from "../../element/ElementFactory.js"
import NodeTemplate from "./NodeTemplate.js"
import SVGIcon from "../../SVGIcon.js"
export default class VariableManagementNodeTemplate extends NodeTemplate {
@@ -14,7 +14,7 @@ export default class VariableManagementNodeTemplate extends NodeTemplate {
/** @param {NodeElement} element */
initialize(element) {
super.initialize(element)
this.#displayName = this.element.getNodeDisplayName()
this.#displayName = this.element.nodeDisplayName
}
render() {