@flatten-js/core
Advanced tools
Comparing version 1.5.0 to 1.5.1
{ | ||
"name": "@flatten-js/core", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Javascript library for 2d geometry", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.cjs", |
@@ -530,14 +530,3 @@ /** | ||
for (let resp_edge of resp_edges) { | ||
if (resp_edge.isSegment) { | ||
ip = [...ip, ...intersectSegment2Polygon(resp_edge, polygon)] | ||
} | ||
else if (resp_edge.isArc) { | ||
ip = [...ip, ...intersectArc2Polygon(resp_edge, polygon)] | ||
} | ||
else if (resp_edge.isLine) { | ||
ip = [...ip, ...intersectLine2Polygon(resp_edge, polygon)] | ||
} | ||
else if (resp_edge.isRay) { | ||
ip = [...ip, ...intersectRay2Polygon(resp_edge, polygon)] | ||
} | ||
ip = [...ip, ...intersectEdge2Edge(edge, resp_edge)] | ||
} | ||
@@ -556,5 +545,3 @@ | ||
for (let edge of multiline) { | ||
let ip_edge = intersectEdge2Polygon(edge, polygon); | ||
let ip_sorted = edge.shape.sortPoints(ip_edge); // TODO: support arc edge | ||
ip = [...ip, ...ip_sorted]; | ||
ip = [...ip, ...intersectEdge2Polygon(edge, polygon)]; | ||
} | ||
@@ -577,5 +564,3 @@ | ||
for (let edge1 of polygon1.edges) { | ||
for (let pt of intersectEdge2Polygon(edge1, polygon2)) { | ||
ip.push(pt); | ||
} | ||
ip = [...ip, ...intersectEdge2Polygon(edge1, polygon2)] | ||
} | ||
@@ -582,0 +567,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1198800
30740