@turf/boolean-equal 7.0.0-alpha.0 → 7.0.0-alpha.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/README.md +8 -2
- package/package.json +10 -9
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
## booleanEqual
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Determines whether two geometries or features of the same type have identical X,Y coordinate values and properties.
|
|
8
8
|
See [http://edndoc.esri.com/arcsde/9.0/general_topics/understand_spatial_relations.htm][1]
|
|
9
9
|
|
|
10
10
|
### Parameters
|
|
@@ -21,11 +21,17 @@ See [http://edndoc.esri.com/arcsde/9.0/general_topics/understand_spatial_relatio
|
|
|
21
21
|
var pt1 = turf.point([0, 0]);
|
|
22
22
|
var pt2 = turf.point([0, 0]);
|
|
23
23
|
var pt3 = turf.point([1, 1]);
|
|
24
|
+
var pt4 = turf.point([0, 0], {prop: 'A'});
|
|
25
|
+
var pt5 = turf.point([0, 0], {prop: 'B'});
|
|
24
26
|
|
|
25
27
|
turf.booleanEqual(pt1, pt2);
|
|
26
28
|
//= true
|
|
27
29
|
turf.booleanEqual(pt2, pt3);
|
|
28
30
|
//= false
|
|
31
|
+
turf.booleanEqual(pt4, pt5);
|
|
32
|
+
//= false
|
|
33
|
+
turf.booleanEqual(pt4.geometry, pt5.geometry);
|
|
34
|
+
//= true
|
|
29
35
|
```
|
|
30
36
|
|
|
31
37
|
Returns **[boolean][6]** true if the objects are equal, false otherwise
|
|
@@ -70,4 +76,4 @@ $ npm install @turf/turf
|
|
|
70
76
|
|
|
71
77
|
### Diagrams
|
|
72
78
|
|
|
73
|
-

|
|
79
|
+

|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turf/boolean-equal",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.1",
|
|
4
4
|
"description": "turf boolean-equal module",
|
|
5
5
|
"author": "Turf Authors",
|
|
6
6
|
"contributors": [
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"exports": {
|
|
35
35
|
"./package.json": "./package.json",
|
|
36
36
|
".": {
|
|
37
|
+
"types": "./dist/js/index.d.ts",
|
|
37
38
|
"import": "./dist/es/index.js",
|
|
38
39
|
"require": "./dist/js/index.js"
|
|
39
40
|
}
|
|
@@ -44,13 +45,13 @@
|
|
|
44
45
|
"dist"
|
|
45
46
|
],
|
|
46
47
|
"scripts": {
|
|
47
|
-
"bench": "
|
|
48
|
+
"bench": "tsx bench.js",
|
|
48
49
|
"build": "npm-run-all build:*",
|
|
49
50
|
"build:es": "tsc --outDir dist/es --module esnext --declaration false && echo '{\"type\":\"module\"}' > dist/es/package.json",
|
|
50
51
|
"build:js": "tsc",
|
|
51
|
-
"docs": "
|
|
52
|
+
"docs": "tsx ../../scripts/generate-readmes",
|
|
52
53
|
"test": "npm-run-all test:*",
|
|
53
|
-
"test:tape": "
|
|
54
|
+
"test:tape": "tsx test.js"
|
|
54
55
|
},
|
|
55
56
|
"devDependencies": {
|
|
56
57
|
"@types/geojson-equality": "^0.2.0",
|
|
@@ -61,16 +62,16 @@
|
|
|
61
62
|
"load-json-file": "*",
|
|
62
63
|
"npm-run-all": "*",
|
|
63
64
|
"tape": "*",
|
|
64
|
-
"ts-node": "*",
|
|
65
65
|
"tslint": "*",
|
|
66
|
+
"tsx": "*",
|
|
66
67
|
"typescript": "*"
|
|
67
68
|
},
|
|
68
69
|
"dependencies": {
|
|
69
|
-
"@turf/clean-coords": "^7.0.0-alpha.
|
|
70
|
-
"@turf/helpers": "^7.0.0-alpha.
|
|
71
|
-
"@turf/invariant": "^7.0.0-alpha.
|
|
70
|
+
"@turf/clean-coords": "^7.0.0-alpha.1",
|
|
71
|
+
"@turf/helpers": "^7.0.0-alpha.1",
|
|
72
|
+
"@turf/invariant": "^7.0.0-alpha.1",
|
|
72
73
|
"geojson-equality": "0.1.6",
|
|
73
74
|
"tslib": "^2.3.0"
|
|
74
75
|
},
|
|
75
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "cf7a0c507b017ca066acffd0ce23bda5b393fb5a"
|
|
76
77
|
}
|