Add SVGExporter with full PAGX-to-SVG conversion support#3317
Open
OnionsYu wants to merge 66 commits intoTencent:mainfrom
Open
Add SVGExporter with full PAGX-to-SVG conversion support#3317OnionsYu wants to merge 66 commits intoTencent:mainfrom
OnionsYu wants to merge 66 commits intoTencent:mainfrom
Conversation
…std::clamp, fix prefix check, and reserve P3 style string Made-with: Cursor
… into SVGWriterContext Made-with: Cursor
…AGXFile/SaveSVGFile into a single SaveFile helper Made-with: Cursor
…export # Conflicts: # .codebuddy/skills/pagx/SKILL.md # src/cli/main.cpp # test/src/PAGXCliTest.cpp
added 11 commits
March 17, 2026 19:43
…g pre-shaped glyph outlines
…export # Conflicts: # .codebuddy/skills/pagx/SKILL.md # .codebuddy/skills/pagx/references/cli.md # src/cli/main.cpp # test/src/PAGXCliTest.cpp # test/src/PAGXTest.cpp
…yout and ComputeGlyphPaths functions
…position directly
78513b9 to
f4131d8
Compare
added 4 commits
March 18, 2026 21:07
bdf1f7a to
90ab2fd
Compare
… fallback typeface functions
ba199e9 to
afc3165
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3317 +/- ##
==========================================
- Coverage 75.29% 75.22% -0.08%
==========================================
Files 504 509 +5
Lines 33422 35211 +1789
Branches 10673 11270 +597
==========================================
+ Hits 25166 26487 +1321
- Misses 6032 6424 +392
- Partials 2224 2300 +76 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…export # Conflicts: # src/pagx/svg/SVGBlendMode.h # test/baseline/version.json
0bd71ab to
74b9c75
Compare
shlzxjp
reviewed
Mar 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SVGExporterclass implementing full PAGX-to-SVG conversion, including support for fills, strokes, gradients, image patterns, blend modes, Display P3 color space, shadow filters, color matrix/blend filters, masks, clipPaths, text alignment, and custom data attributes.export-svgCLI command for exporting PAGX files to SVG format.PAGXSVGTest.cppand add roundtrip test suite for CLI export.Key Changes
SVGExporter.h,SVGExporter.cpp,CommandExportSVG.cpp/.h,PAGXSVGTest.cppSVGImporter.cpp(fix pattern import round-trip),PAGXTest.cpp(extract SVG tests),PAGXCliTest.cpp(add CLI roundtrip tests)Test Plan
export-svgcommand works correctlyMade with Cursor