Do you want to request a feature or report a bug?
Feature
What is the current behavior?
Since webview it is not possible to operate switches anymore
What is the expected behavior?
Operate switch (close or open it depending on its current state) when clicking on it.
What is the motivation / use case for changing the behavior?
Test the TopologicalStyleProvider
Other information
Adding callbacks to open/close breakers in the diagram in javascript:
// select elements
var elements = Array.from(document.querySelectorAll('svg .sld-breaker'));
// add event listeners
elements.forEach(function(el) {
el.addEventListener("click", open);
// other event listener have to be added to allow the breaker to be moved - but not so useful I'd say
})
// event listener functions
function open(e){
// change sld-closed by sld-open (or the opposite) for the element clicked on
// calling java method to recompute the SVG diagram
}
Do you want to request a feature or report a bug? Feature
What is the current behavior? Since webview it is not possible to operate switches anymore
What is the expected behavior? Operate switch (close or open it depending on its current state) when clicking on it.
What is the motivation / use case for changing the behavior? Test the TopologicalStyleProvider
Other information Adding callbacks to open/close breakers in the diagram in javascript:
Various links: