@dra2020/baseclient 1.0.65 → 1.0.68
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/dist/all/all.d.ts +2 -0
- package/dist/baseclient.js +653 -19
- package/dist/baseclient.js.map +1 -1
- package/dist/colors/colors.d.ts +11 -0
- package/dist/colors/jscolormapsdata.d.ts +7 -0
- package/lib/all/all.ts +2 -0
- package/lib/colors/colors.ts +634 -0
- package/lib/colors/jscolormapsdata.ts +9 -0
- package/lib/poly/poly.ts +2 -0
- package/package.json +11 -11
package/lib/poly/poly.ts
CHANGED
|
@@ -803,11 +803,13 @@ export function featureRewind(f: any, options?: RewindOptions): any
|
|
|
803
803
|
{
|
|
804
804
|
f.geometry.type = 'Polygon';
|
|
805
805
|
f.geometry.coordinates = f.geometry.coordinates[0];
|
|
806
|
+
d = 4;
|
|
806
807
|
}
|
|
807
808
|
}
|
|
808
809
|
|
|
809
810
|
// OK, now go through each ring
|
|
810
811
|
let polys = f.geometry.coordinates;
|
|
812
|
+
if (d == 4) polys = [polys];
|
|
811
813
|
windings = polyRingWindings(f);
|
|
812
814
|
windings.forEach((w: Winding) => {
|
|
813
815
|
let good = !misWound(w);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dra2020/baseclient",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.68",
|
|
4
4
|
"description": "Utility functions for Javascript projects.",
|
|
5
5
|
"main": "dist/baseclient.js",
|
|
6
6
|
"types": "./dist/all/all.d.ts",
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"homepage": "https://github.com/dra2020/baseclient#readme",
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/diff-match-patch": "^1.0.32",
|
|
32
|
-
"@types/geojson": "^7946.0.
|
|
32
|
+
"@types/geojson": "^7946.0.8",
|
|
33
33
|
"@types/node": "12.7.2",
|
|
34
|
-
"@types/object-hash": "^
|
|
35
|
-
"source-map-loader": "^
|
|
36
|
-
"ts-loader": "^
|
|
37
|
-
"tsify": "^5.0.
|
|
38
|
-
"typescript": "^4.
|
|
39
|
-
"webpack": "^5.
|
|
40
|
-
"webpack-cli": "^4.
|
|
34
|
+
"@types/object-hash": "^2.2.1",
|
|
35
|
+
"source-map-loader": "^3.0.0",
|
|
36
|
+
"ts-loader": "^9.2.6",
|
|
37
|
+
"tsify": "^5.0.4",
|
|
38
|
+
"typescript": "^4.5.2",
|
|
39
|
+
"webpack": "^5.65.0",
|
|
40
|
+
"webpack-cli": "^4.9.1"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@dra2020/topojson-client": "^3.2.7",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"@dra2020/topojson-simplify": "^3.0.102",
|
|
46
46
|
"diff-match-patch": "^1.0.5",
|
|
47
47
|
"geojson": "^0.5.0",
|
|
48
|
-
"object-hash": "^2.
|
|
49
|
-
"polygon-clipping": "^0.15.
|
|
48
|
+
"object-hash": "^2.2.0",
|
|
49
|
+
"polygon-clipping": "^0.15.3",
|
|
50
50
|
"tinyqueue": "^2.0.3"
|
|
51
51
|
}
|
|
52
52
|
}
|