Repository navigation
Conversation
SVG path BNF allows the two arc flags to be adjacent (e.g. A 5 5 0 10 10 10). The previous number tokenizer treated those digits as a single value, so compact path strings dropped or misread the arc.
|
|
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The fix is covered by regression tests and no unresolved blocking issues were identified.
Review effort: Lite
Findings: None
What changed in this PR
Fixes SVG elliptical-arc parsing when the two flags appear without separators.
Changes:
- Parses arc flags independently.
- Adds compact arc parsing and intersection tests.
- Documents the fix in the changelog.
| File | Description |
|---|---|
test/intersect.spec.js |
Adds compact arc syntax tests. |
intersect.js |
Parses adjacent arc flags correctly. |
CHANGELOG.md |
Records the fix. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Is this closing #21? If so mark accordingly in the PR description + commit. |
|
Thanks for your contribution. #35 replaces your (hand written?) parser with a simple regex - matching the way we currently parse path segments. Closing this PR as superseeded. |
fix: parse elliptical arc flags without separators
Closes #21
SVG path BNF allows the two arc flags to be adjacent
(e.g. A 5 5 0 10 10 10). The previous number tokenizer
treated those digits as a single value, so compact path
strings dropped or misread the arc.
Proposed Changes
Checklist
Ensure you provide everything we need to review your contribution:
Closes {LINK_TO_ISSUE}orRelated to {LINK_TO_ISSUE}@bpmn-io/srtool