graflow: improved test pages

This commit is contained in:
STEINNI
2026-03-09 19:28:34 +00:00
parent 2efe358891
commit 080c919569
6 changed files with 141 additions and 19 deletions

View File

@@ -1280,8 +1280,12 @@ class EditWires{
this.graflow.addEventListener('refreshed', this.enableEditWires.bind(this))
}
enableEditWires(){
this.graflow.wiresContainer.querySelectorAll('.bzgf-wirecoat').forEach(item => item.remove())
for(const ref in this.graflow.stagedWires ){
this.graflow.stagedWires[ref].addEventListener('click', this.onSelectWire.bind(this))
const clone = this.graflow.stagedWires[ref].cloneNode(true)
clone.classList.add('bzgf-wirecoat')
this.graflow.wiresContainer.appendChild(clone)
clone.addEventListener('click', this.onSelectWire.bind(this))
}
}
onSelectWire(e){