Minor refactoring and fixes

This commit is contained in:
barsdeveloper
2022-12-26 14:10:25 +01:00
parent 3df33bfe05
commit a1ae7799a1
30 changed files with 651 additions and 536 deletions

View File

@@ -58,7 +58,7 @@ export default class CommentNodeTemplate extends IResizeableTemplate {
}
manageNodesBind() {
let nodes = this.element.blueprint.getNodes()
let nodes = this.blueprint.getNodes()
for (let node of nodes) {
if (
node.topBoundary() >= this.element.topBoundary()

View File

@@ -45,7 +45,7 @@ export default class KnotNodeTemplate extends NodeTemplate {
return true
}
KnotNodeTemplate.#traversedPin.add(startingPin)
for (let pin of startingPin.getLinks().map(l => this.element.blueprint.getPin(l))) {
for (let pin of startingPin.getLinks().map(l => this.blueprint.getPin(l))) {
if (this.findDirectionaPin(pin)) {
return true
}