Open sselvaggi opened 3 years ago
I don't know if Scada-LTS still uses the interface for Graphic Views inherited from ScadaBR, but for ScadaBR I created a Javascript library that brings functions for alignment in Graphic View. Here is the repository for this library: https://github.com/celsou/fuscabr
(Sorry for the lack of documentation for this library, unfortunately I'm short on time to write the documentation)
I hope it's useful.
It's very time consuming to arrange the points inside graphical views
It could be used from html point in this way
// define the element ids of points we want to arrange const block1 = ["c1", "c2", "c3", "c4"] const block2 = ["c5", "c6", "c7", "c8"]
// and then iterate over them to set the position coordenates
block1 .map(id => document.getElementById) .reduce(absoluteGrid, {x: 100, y: 150, deltaX: 0, deltaY: 20 })
block2 .map(id => document.getElementById) .reduce(absoluteGrid, {x: 500, y: 150, deltaX: 0, deltaY: 20 })