vis-why 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -3
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import heap from 'sterta';
|
|
2
2
|
|
|
3
3
|
function areaLL(a, b, c) {
|
|
4
|
-
return Math.abs(
|
|
5
|
-
(a[0] - c[0]) * (b[1] - a[1]) - (a[0] - b[0]) * (c[1] - a[1])
|
|
6
|
-
);
|
|
4
|
+
return Math.abs((a[0] - c[0]) * (b[1] - a[1]) - (a[0] - b[0]) * (c[1] - a[1]));
|
|
7
5
|
}
|
|
8
6
|
|
|
9
7
|
function areaCompare(p, q) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vis-why",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "M Visvalingam and J D Whyatt line simplification algorithm",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"homepage": "https://github.com/pirxpilot/vis-why",
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@biomejs/biome": "
|
|
23
|
-
"@pirxpilot/google-polyline": "
|
|
22
|
+
"@biomejs/biome": "2.4.3",
|
|
23
|
+
"@pirxpilot/google-polyline": "~4",
|
|
24
24
|
"@pirxpilot/matcha": "~1"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|