Fix pins retrieval

This commit is contained in:
barsdeveloper
2022-03-19 19:04:39 +01:00
parent 42615b93f8
commit b4ee181eb5
7 changed files with 46 additions and 123 deletions

View File

@@ -41,6 +41,7 @@ export default class NodeTemplate extends SelectableDraggableTemplate {
if (node.selected) {
node.classList.add("ueb-selected")
}
node.dataset.name = node.getNodeName()
node.style.setProperty("--ueb-position-x", sanitizeText(node.location[0]))
node.style.setProperty("--ueb-position-y", sanitizeText(node.location[1]))
/** @type {HTMLElement} */