SVG export writes the erase passes as opaque black shapes #92

Open
opened 2026-10-13 02:28:05 +00:00 by ImBenji · 0 comments
Owner

From the engineering review on 2026-10-13.

lib/rendering/export/svg_draw_target.dart:500 turns BlendMode.clear and dstOut into style="mix-blend-mode:destination-out". That is not a valid mix-blend-mode keyword, so viewers ignore it and paint the element normally in the erase paint's default black.

Scenario: any line with two or more segments on one z. The colour pass covers the black shapes at the same width, which leaves a dark fringe on line edges and stray black objects when the file is opened in Illustrator or Inkscape.

Evidence: test/review_probes/render_svg_erase_blend_probe.dart (local, untracked): a plain two-segment bend emits a black stroke="#000000" path plus two black cap fills.

Fix sketch: skip erase paints in the SVG target (the colour pass covers the area) or implement a <mask>. The PDF target already uses a soft mask. Related: #55.

From the engineering review on 2026-10-13. `lib/rendering/export/svg_draw_target.dart:500` turns `BlendMode.clear` and `dstOut` into `style="mix-blend-mode:destination-out"`. That is not a valid `mix-blend-mode` keyword, so viewers ignore it and paint the element normally in the erase paint's default black. **Scenario:** any line with two or more segments on one z. The colour pass covers the black shapes at the same width, which leaves a dark fringe on line edges and stray black objects when the file is opened in Illustrator or Inkscape. **Evidence:** `test/review_probes/render_svg_erase_blend_probe.dart` (local, untracked): a plain two-segment bend emits a black `stroke="#000000"` path plus two black cap fills. **Fix sketch:** skip erase paints in the SVG target (the colour pass covers the area) or implement a `<mask>`. The PDF target already uses a soft mask. Related: #55.
ImBenji added the bugarea:rendering labels 2026-10-13 02:28:05 +00:00
ImBenji added this to the Arcs & Angles project 2026-10-13 02:28:05 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: IMBENJI.NET/Metro-Map-Maker#92