-
-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix line optimizations for newer svg.path (#244)
Fixes #115 The fix from #116 was previously applied but wasn't quite working on svg.path 6.3, and it looks like the issue was that svg.path doesn't enforce/check consistency between adjacent path elements now that Moves are tracked separately from Lines, so after modifying lines and omitting Moves, the `d` string generated for the Path didn't have correct Moves to handle the gaps between adjacent Line start/ends. This change continues treating Close as a Line (and continues omitting Moves from the original path), and now inserts Move elements in the reconstructed Paths when there's a mismatch between adjacent Line end/start points.
- Loading branch information
Showing
2 changed files
with
33 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
svg.path==4.0.2 | ||
svg.path==6.3 |
This file contains 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