I developed an application to convert SVG code into a JSON object that can be stored in a database. Another app was created to dynamically display the rendered result on a webpage. The rendering output appears as shown in this image: https://i.sstatic.net/KfHjj.jpg
Upon rendering, it seems like the open paths are connecting and partially filling the SVG. However, when running the raw SVG file, this issue does not occur, which can be verified by running the snippet provided below.
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 25.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
... (SVG code continued)
For the rendering of SVG, two components were created: SvgBuilder and SvgComponent. The template files for these components are outlined below:
svg-builder.component.svg
(SVG builder component template code)
svg.component.svg
(SVG component template code)
This insight may provide clues about the issues occurring in Angular. To further investigate and test the behavior, you can access the live demo here. Instructions will guide you on how to replicate the problem using the code from the 'demo.svg' file located at:
src/app/micro-frontends/svg-builder
If the file is not automatically open upon loading the StackBlitz, you can copy and paste the code following the provided instructions.