(lines)
| 10242 | return polygons; |
| 10243 | } |
| 10244 | function minMaxPoints(lines) { |
| 10245 | const points = []; |
| 10246 | lines.forEach((line)=>{ |
| 10247 | [ |
| 10248 | line.sourcePosition, |
| 10249 | line.targetPosition |
| 10250 | ].forEach((point)=>{ |
| 10251 | points.push(point); |
| 10252 | }); |
| 10253 | }); |
| 10254 | return [ |
| 10255 | 0, |
| 10256 | 1 |
| 10257 | ].map((dim)=>{ |
| 10258 | let minMax = { |
| 10259 | min: null, |
| 10260 | max: null |
| 10261 | }; |
| 10262 | points.forEach((point)=>{ |
| 10263 | if (minMax.max == null) minMax.max = point[dim]; |
| 10264 | else minMax.max = Math.max(minMax.max, point[dim]); |
| 10265 | if (minMax.min == null) minMax.min = point[dim]; |
| 10266 | else minMax.min = Math.min(minMax.min, point[dim]); |
| 10267 | }); |
| 10268 | return minMax; |
| 10269 | }); |
| 10270 | } |
| 10271 | |
| 10272 | },{"./expression":"2iReT","./search":"aBDlu","@msrvida/sanddance-specs":"gDvQs","@msrvida/vega-deck.gl":"dKeDo","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"2iReT":[function(require,module,exports) { |
| 10273 | var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js"); |
no test coverage detected