From e9fc7b2c9a9227ba251b10c16981296a5b0dd397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Fri, 13 Oct 2023 23:15:07 +0200 Subject: [PATCH] Added SVG Shapes export - non-scaling strokes --- CHANGELOG.md | 1 + .../decompiler/flash/exporters/shape/SVGShapeExporter.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fc11a70e1..58498e865 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file. - [#2097] Commandline command `-header` to modify SWF header values - SVG Frames export - blend modes - SVG Frames export - filter +- SVG Shapes export - non-scaling strokes ### Fixed - Close action on SWF inside DefineBinaryData diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/shape/SVGShapeExporter.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/shape/SVGShapeExporter.java index 5bb4393fa..2ba22c273 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/shape/SVGShapeExporter.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/shape/SVGShapeExporter.java @@ -199,6 +199,9 @@ public class SVGShapeExporter extends DefaultSVGShapeExporter { } break; } + if ("NONE".equals(scaleMode)) { + path.setAttribute("vector-effect", "non-scaling-stroke"); + } } @Override