Skip to content

Commit

Permalink
Merge pull request #1992 from shdwjk/PathSplitterPathv2Support
Browse files Browse the repository at this point in the history
Support for PathV2
  • Loading branch information
Ian-Howard-R20 authored Dec 18, 2024
2 parents ae7c40b + b7a03f3 commit 9504d90
Show file tree
Hide file tree
Showing 3 changed files with 504 additions and 5 deletions.
4 changes: 2 additions & 2 deletions PathMath/1.7/PathMath.js
Original file line number Diff line number Diff line change
Expand Up @@ -1168,13 +1168,13 @@ const PathMath = (() => {
let pts = [];
let isFirst = true;
_.each(segments, function(segment) {
let p1 = segment[0];
let p1 = [segment[0][0],segment[0][1]];
if(isFirst) {
isFirst = false;
pts.push(p1);
}

let p2 = segment[1];
let p2 = [segment[1][0],segment[1][1]];

left = Math.min(left, p1[0], p2[0]);
right = Math.max(right, p1[0], p2[0]);
Expand Down
Loading

0 comments on commit 9504d90

Please sign in to comment.