Problem
When an SVG image with transparent areas is used as a workspace image for a diagram node in Capella, the transparent areas do not show the configured node background color.
Instead, the transparent SVG areas show the diagram/canvas background. This makes it difficult to use transparent SVG symbols together with Capella/Sirius styling, because the configured background color of the diagram element is visually ignored.
Expected Behavior
If a node has a configured background color and an SVG workspace image is rendered on top of it, transparent areas of the SVG should show the node background color.
Rendering order should effectively be:
- Paint the figure/node background color.
- Render the SVG image above it.
- Keep transparent SVG areas transparent, so the configured background color remains visible.
Current Behavior
Transparent SVG areas show the diagram/canvas background instead of the configured node background color.
Environment
Observed with:
Problem
When an SVG image with transparent areas is used as a workspace image for a diagram node in Capella, the transparent areas do not show the configured node background color.
Instead, the transparent SVG areas show the diagram/canvas background. This makes it difficult to use transparent SVG symbols together with Capella/Sirius styling, because the configured background color of the diagram element is visually ignored.
Expected Behavior
If a node has a configured background color and an SVG workspace image is rendered on top of it, transparent areas of the SVG should show the node background color.
Rendering order should effectively be:
Current Behavior
Transparent SVG areas show the diagram/canvas background instead of the configured node background color.
Environment
Observed with: