Skip to content

SVG Path: parse paths on js side#8820

Draft
wisniewskij wants to merge 1 commit intomainfrom
@wisniewskij/css-svg-path-parse-on-js-side
Draft

SVG Path: parse paths on js side#8820
wisniewskij wants to merge 1 commit intomainfrom
@wisniewskij/css-svg-path-parse-on-js-side

Conversation

@wisniewskij
Copy link
Contributor

@wisniewskij wisniewskij commented Jan 9, 2026

Summary

In my previous PR (#8710) I added code that partially parses SVG Path on the JS's side and then continues the process in native code. I decided to refactor that so entire parsing happens on JS's side.

Test plan

Modified unit tests so the entire output structure is now tested:

 yarn test -t "processSVGPath"

@wisniewskij wisniewskij self-assigned this Jan 9, 2026
@wisniewskij wisniewskij force-pushed the @wisniewskij/css-svg-path-parse-on-js-side branch from 7b2c96d to 8fbfda0 Compare January 12, 2026 08:02
@wisniewskij wisniewskij requested a review from MatiPl01 January 12, 2026 08:04
github-merge-queue bot pushed a commit that referenced this pull request Jan 12, 2026
## Summary

In the previous version of SVGPath cpp parser there was a bug that in an
uncommon situation that somebody closes path with Z and after that
writes commands without creating new subpath with M, the Z would be
implicitly moved to the end changing the outcome. This is a temporary
bugfix before #8820 gets merged.
@wisniewskij
Copy link
Contributor Author

wisniewskij commented Feb 4, 2026

Add test checking if the path is not empty (should filter out subpaths where there is M or Z but no C)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant