Open
Conversation
03d6a7f to
67bfefb
Compare
added 4 commits
February 20, 2026 12:02
## What Implement core functionality to enable interaction with SVG diagram content. ## Why We want to trigger application-specific behavior when a diagram element is clicked. ## How Implemented an SvgDiagramManager class responsible for: - Locating an <svg> element within a provided HTML container or inside an iframe - Registering and deregistering event listeners on the detected SVG - Invoking a callback function (provided via constructor) when an SVG element is clicked When an SVG element with an id attribute is clicked, the manager calls the provided callback and passes the id of the clicked element.
Fixed an issue where a question selected from the question list was not cleared from the input field after submission.
Fixed issue https://github.com/statnett/Talk2PowerSystem_PM/issues/305 Adjusted the diagram width to occupy 100% of the screen when switching to fullscreen mode. Restricted zoom functionality to mouse wheel interaction only.
67bfefb to
754fe3b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SN-277: interaction with PowSyBl and VizGraph diagrams
What
Implement core functionality to enable interaction with SVG diagram content.
Why
We want to trigger application-specific behavior when a diagram element is clicked.
How
Implemented an SvgDiagramManager class responsible for:
When an SVG element with an id attribute is clicked, the manager calls the provided callback and passes the id of the clicked element.
Additional work
Adjusted the diagram width to occupy 100% of the screen when switching to fullscreen mode.
Restricted zoom functionality to mouse wheel interaction only.