You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
Feature
What is the current behavior? ComponentLibrary manage a set of svg associated to a node in the substation Graph thanks to enum ComponentType. If a substation diagram user wants to add a custom node with a custom rendering, there is no way to do it without forking the source code, adding a new value in the ComponentType enum, add the SVG to the ComponentLibrary and also hack the Graph class to insert the custom node.
What is the expected behavior?
replace ComponentType by a String
Add a plugin GraphBuildPostProcessor discovered using java.util.ServiceLoader and that would allow adding custom nodes to the graph.
What is the motivation / use case for changing the behavior?
To allow projects to customize substation graph and rendering.
Please tell us about your environment:
PowSyBl Version: ...
OS Version: ...
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, spectrum, etc)
(if a question doesn't apply, you can delete it)
The text was updated successfully, but these errors were encountered:
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
ComponentLibrary
manage a set of svg associated to a node in the substationGraph
thanks to enumComponentType
. If a substation diagram user wants to add a custom node with a custom rendering, there is no way to do it without forking the source code, adding a new value in theComponentType
enum, add the SVG to theComponentLibrary
and also hack theGraph
class to insert the custom node.What is the expected behavior?
ComponentType
by a StringGraphBuildPostProcessor
discovered usingjava.util.ServiceLoader
and that would allow adding custom nodes to the graph.What is the motivation / use case for changing the behavior?
To allow projects to customize substation graph and rendering.
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, spectrum, etc)
(if a question doesn't apply, you can delete it)
The text was updated successfully, but these errors were encountered: