jsvg
jsvg copied to clipboard
Implement isolated groups/elements
Isolated groups/elements need to be first painted to an offscreen buffer and then composed onto the viewport.
This is needed for example if an element has non-trivial opacity to ensure the stroke and fill don’t have an overlapping visible area.
If possible the additional buffer should be elided e.g. non trivial opacity on an element only needs the buffer if it has visible stroke and fill.