node-red-contrib-web-worldmap 2.24.1 → 2.26.0
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/CHANGELOG.md +5 -1
- package/README.md +6 -1
- package/node_modules/body-parser/node_modules/bytes/History.md +5 -0
- package/node_modules/body-parser/node_modules/bytes/Readme.md +42 -16
- package/node_modules/body-parser/node_modules/bytes/index.js +5 -1
- package/node_modules/body-parser/node_modules/bytes/package.json +18 -20
- package/node_modules/raw-body/node_modules/bytes/History.md +5 -0
- package/node_modules/raw-body/node_modules/bytes/Readme.md +42 -16
- package/node_modules/raw-body/node_modules/bytes/index.js +5 -1
- package/node_modules/raw-body/node_modules/bytes/package.json +18 -20
- package/package.json +1 -1
- package/worldmap/css/worldmap.css +7 -5
- package/worldmap/index.html +2 -2
- package/worldmap/index3d.html +216 -214
- package/worldmap/leaflet/leaflet.mousecoordinate.css +7 -0
- package/worldmap/leaflet/leaflet.mousecoordinate.js +639 -0
- package/worldmap/worldmap.js +27 -32
- package/worldmap.html +4 -0
- package/worldmap.js +3 -0
- package/worldmap/leaflet/3dstyle.json +0 -11296
- package/worldmap/leaflet/Leaflet.Coordinates.css +0 -1
- package/worldmap/leaflet/Leaflet.Coordinates.js +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
### Change Log for Node-RED Worldmap
|
|
2
2
|
|
|
3
|
+
- v2.26.0 - Add UTM and MGRS to coordinate display options.
|
|
4
|
+
- v2.25.0 - Add bounds command to set overall map bounds.
|
|
5
|
+
- v2.24.3 - Fix geojson incorrect fill.
|
|
6
|
+
- v2.24.2 - Changes to drawing colours to be more visible.
|
|
3
7
|
- v2.24.1 - Fix ellipse accuracy.
|
|
4
8
|
- v2.24.0 - Add greatcircle option, fix non default httpRoot. Issue #193
|
|
5
9
|
- v2.23.5 - Fix addtoheatmap. Issue #192
|
|
@@ -7,7 +11,7 @@
|
|
|
7
11
|
- v2.23.3 - Fix initial load of maps
|
|
8
12
|
- v2.23.2 - Add convex-hull example
|
|
9
13
|
- v2.23.1 - Fix saving of custom map layer
|
|
10
|
-
- v2.23.0 - Give logo
|
|
14
|
+
- v2.23.0 - Give logo an id so it can be overridden by toplogo command. PR #188.
|
|
11
15
|
|
|
12
16
|
- v2.22.3 - Don't show empty popup for geojson object. Issue #186. Add wobble to null island.
|
|
13
17
|
- v2.22.2 - Be more tolerant of speed string types
|
package/README.md
CHANGED
|
@@ -11,6 +11,10 @@ map web page for plotting "things" on.
|
|
|
11
11
|
|
|
12
12
|
### Updates
|
|
13
13
|
|
|
14
|
+
- v2.26.0 - Add UTM and MGRS to coordinate display options.
|
|
15
|
+
- v2.25.0 - Add bounds command to set overall map bounds.
|
|
16
|
+
- v2.24.3 - Fix geojson incorrect fill.
|
|
17
|
+
- v2.24.2 - Changes to drawing colours to be more visible.
|
|
14
18
|
- v2.24.1 - Fix ellipse accuracy
|
|
15
19
|
- v2.24.0 - Add greatcircle option, fix non default httpRoot. Issue #193
|
|
16
20
|
- v2.23.5 - Fix addtoheatmap. Issue #192
|
|
@@ -18,7 +22,7 @@ map web page for plotting "things" on.
|
|
|
18
22
|
- v2.23.3 - Fix initial load of maps
|
|
19
23
|
- v2.23.2 - Add convex-hull example
|
|
20
24
|
- v2.23.1 - Fix saving of custom map layer
|
|
21
|
-
- v2.23.0 - Give logo
|
|
25
|
+
- v2.23.0 - Give logo an id so it can be overridden by toplogo command. PR #188.
|
|
22
26
|
- v2.22.3 - Don't show empty popup for geojson object. Issue #186. Add wobble to null island.
|
|
23
27
|
- v2.22.2 - Be more tolerant of speed string types
|
|
24
28
|
- v2.22.0 - Separate out layer events in worldmap in
|
|
@@ -386,6 +390,7 @@ Optional properties include
|
|
|
386
390
|
- **lat** - move map to specified latitude.
|
|
387
391
|
- **lon** - move map to specified longitude.
|
|
388
392
|
- **zoom** - move map to specified zoom level (1 - world, 13 to 20 max zoom depending on map).
|
|
393
|
+
- **bounds** - if set to an array `[ [ lat(S), lon(W) ], [lat(N), lon(E)] ]` - sets the overall map bounds.
|
|
389
394
|
- **layer** - set map to specified base layer name - `{"command":{"layer":"Esri"}}`
|
|
390
395
|
- **search** - search markers on map for name containing `string`. If not found in existing markers, will then try geocoding looking using Nominatim. An empty string `""` clears the search results. - `{"command":{"search":"Winchester"}}`
|
|
391
396
|
- **showlayer** - show the named overlay(s) - `{"command":{"showlayer":"foo"}}` or `{"command":{"showlayer":["foo","bar"]}}`
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[![NPM Version][npm-image]][npm-url]
|
|
4
4
|
[![NPM Downloads][downloads-image]][downloads-url]
|
|
5
|
-
[![Build Status][
|
|
5
|
+
[![Build Status][ci-image]][ci-url]
|
|
6
6
|
[![Test Coverage][coveralls-image]][coveralls-url]
|
|
7
7
|
|
|
8
8
|
Utility to parse a string bytes (ex: `1TB`) to bytes (`1099511627776`) and vice-versa.
|
|
@@ -23,6 +23,33 @@ $ npm install bytes
|
|
|
23
23
|
var bytes = require('bytes');
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
+
#### bytes(number|string value, [options]): number|string|null
|
|
27
|
+
|
|
28
|
+
Default export function. Delegates to either `bytes.format` or `bytes.parse` based on the type of `value`.
|
|
29
|
+
|
|
30
|
+
**Arguments**
|
|
31
|
+
|
|
32
|
+
| Name | Type | Description |
|
|
33
|
+
|---------|----------|--------------------|
|
|
34
|
+
| value | `number`|`string` | Number value to format or string value to parse |
|
|
35
|
+
| options | `Object` | Conversion options for `format` |
|
|
36
|
+
|
|
37
|
+
**Returns**
|
|
38
|
+
|
|
39
|
+
| Name | Type | Description |
|
|
40
|
+
|---------|------------------|-------------------------------------------------|
|
|
41
|
+
| results | `string`|`number`|`null` | Return null upon error. Numeric value in bytes, or string value otherwise. |
|
|
42
|
+
|
|
43
|
+
**Example**
|
|
44
|
+
|
|
45
|
+
```js
|
|
46
|
+
bytes(1024);
|
|
47
|
+
// output: '1KB'
|
|
48
|
+
|
|
49
|
+
bytes('1KB');
|
|
50
|
+
// output: 1024
|
|
51
|
+
```
|
|
52
|
+
|
|
26
53
|
#### bytes.format(number value, [options]): string|null
|
|
27
54
|
|
|
28
55
|
Format the given value in bytes into a string. If the value is negative, it is kept as such. If it is a float, it is
|
|
@@ -41,7 +68,7 @@ Format the given value in bytes into a string. If the value is negative, it is k
|
|
|
41
68
|
|-------------------|--------|-----------------------------------------------------------------------------------------|
|
|
42
69
|
| decimalPlaces | `number`|`null` | Maximum number of decimal places to include in output. Default value to `2`. |
|
|
43
70
|
| fixedDecimals | `boolean`|`null` | Whether to always display the maximum number of decimal places. Default value to `false` |
|
|
44
|
-
| thousandsSeparator | `string`|`null` | Example of values: `' '`, `','` and
|
|
71
|
+
| thousandsSeparator | `string`|`null` | Example of values: `' '`, `','` and `'.'`... Default value to `''`. |
|
|
45
72
|
| unit | `string`|`null` | The unit in which the result will be returned (B/KB/MB/GB/TB). Default value to `''` (which means auto detect). |
|
|
46
73
|
| unitSeparator | `string`|`null` | Separator to use between number and unit. Default value to `''`. |
|
|
47
74
|
|
|
@@ -54,21 +81,20 @@ Format the given value in bytes into a string. If the value is negative, it is k
|
|
|
54
81
|
**Example**
|
|
55
82
|
|
|
56
83
|
```js
|
|
57
|
-
bytes(1024);
|
|
84
|
+
bytes.format(1024);
|
|
58
85
|
// output: '1KB'
|
|
59
86
|
|
|
60
|
-
bytes(1000);
|
|
87
|
+
bytes.format(1000);
|
|
61
88
|
// output: '1000B'
|
|
62
89
|
|
|
63
|
-
bytes(1000, {thousandsSeparator: ' '});
|
|
90
|
+
bytes.format(1000, {thousandsSeparator: ' '});
|
|
64
91
|
// output: '1 000B'
|
|
65
92
|
|
|
66
|
-
bytes(1024 * 1.7, {decimalPlaces: 0});
|
|
93
|
+
bytes.format(1024 * 1.7, {decimalPlaces: 0});
|
|
67
94
|
// output: '2KB'
|
|
68
95
|
|
|
69
|
-
bytes(1024, {unitSeparator: ' '});
|
|
96
|
+
bytes.format(1024, {unitSeparator: ' '});
|
|
70
97
|
// output: '1 KB'
|
|
71
|
-
|
|
72
98
|
```
|
|
73
99
|
|
|
74
100
|
#### bytes.parse(string|number value): number|null
|
|
@@ -102,25 +128,25 @@ The units are in powers of two, not ten. This means 1kb = 1024b according to thi
|
|
|
102
128
|
**Example**
|
|
103
129
|
|
|
104
130
|
```js
|
|
105
|
-
bytes('1KB');
|
|
131
|
+
bytes.parse('1KB');
|
|
106
132
|
// output: 1024
|
|
107
133
|
|
|
108
|
-
bytes('1024');
|
|
134
|
+
bytes.parse('1024');
|
|
109
135
|
// output: 1024
|
|
110
136
|
|
|
111
|
-
bytes(1024);
|
|
112
|
-
// output:
|
|
137
|
+
bytes.parse(1024);
|
|
138
|
+
// output: 1024
|
|
113
139
|
```
|
|
114
140
|
|
|
115
|
-
## License
|
|
141
|
+
## License
|
|
116
142
|
|
|
117
143
|
[MIT](LICENSE)
|
|
118
144
|
|
|
145
|
+
[ci-image]: https://badgen.net/github/checks/visionmedia/bytes.js/master?label=ci
|
|
146
|
+
[ci-url]: https://github.com/visionmedia/bytes.js/actions?query=workflow%3Aci
|
|
119
147
|
[coveralls-image]: https://badgen.net/coveralls/c/github/visionmedia/bytes.js/master
|
|
120
148
|
[coveralls-url]: https://coveralls.io/r/visionmedia/bytes.js?branch=master
|
|
121
149
|
[downloads-image]: https://badgen.net/npm/dm/bytes
|
|
122
150
|
[downloads-url]: https://npmjs.org/package/bytes
|
|
123
|
-
[npm-image]: https://badgen.net/npm/
|
|
151
|
+
[npm-image]: https://badgen.net/npm/v/bytes
|
|
124
152
|
[npm-url]: https://npmjs.org/package/bytes
|
|
125
|
-
[travis-image]: https://badgen.net/travis/visionmedia/bytes.js/master
|
|
126
|
-
[travis-url]: https://travis-ci.org/visionmedia/bytes.js
|
|
@@ -117,7 +117,11 @@ function format(value, options) {
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
if (thousandsSeparator) {
|
|
120
|
-
str = str.
|
|
120
|
+
str = str.split('.').map(function (s, i) {
|
|
121
|
+
return i === 0
|
|
122
|
+
? s.replace(formatThousandsRegExp, thousandsSeparator)
|
|
123
|
+
: s
|
|
124
|
+
}).join('.');
|
|
121
125
|
}
|
|
122
126
|
|
|
123
127
|
return str + unitSeparator + unit;
|
|
@@ -1,32 +1,27 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
"bytes@3.1.0",
|
|
5
|
-
"/Users/conway/.node-red"
|
|
6
|
-
]
|
|
7
|
-
],
|
|
8
|
-
"_from": "bytes@3.1.0",
|
|
9
|
-
"_id": "bytes@3.1.0",
|
|
2
|
+
"_from": "bytes@3.1.1",
|
|
3
|
+
"_id": "bytes@3.1.1",
|
|
10
4
|
"_inBundle": false,
|
|
11
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-dWe4nWO/ruEOY7HkUJ5gFt1DCFV9zPRoJr8pV0/ASQermOZjtq8jMjOprC0Kd10GLN+l7xaUPvxzJFWtxGu8Fg==",
|
|
12
6
|
"_location": "/node-red-contrib-web-worldmap/body-parser/bytes",
|
|
13
7
|
"_phantomChildren": {},
|
|
14
8
|
"_requested": {
|
|
15
9
|
"type": "version",
|
|
16
10
|
"registry": true,
|
|
17
|
-
"raw": "bytes@3.1.
|
|
11
|
+
"raw": "bytes@3.1.1",
|
|
18
12
|
"name": "bytes",
|
|
19
13
|
"escapedName": "bytes",
|
|
20
|
-
"rawSpec": "3.1.
|
|
14
|
+
"rawSpec": "3.1.1",
|
|
21
15
|
"saveSpec": null,
|
|
22
|
-
"fetchSpec": "3.1.
|
|
16
|
+
"fetchSpec": "3.1.1"
|
|
23
17
|
},
|
|
24
18
|
"_requiredBy": [
|
|
25
19
|
"/node-red-contrib-web-worldmap/body-parser"
|
|
26
20
|
],
|
|
27
|
-
"_resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.
|
|
28
|
-
"
|
|
29
|
-
"
|
|
21
|
+
"_resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.1.tgz",
|
|
22
|
+
"_shasum": "3f018291cb4cbad9accb6e6970bca9c8889e879a",
|
|
23
|
+
"_spec": "bytes@3.1.1",
|
|
24
|
+
"_where": "/Users/conway/Projects/worldmap/node_modules/body-parser",
|
|
30
25
|
"author": {
|
|
31
26
|
"name": "TJ Holowaychuk",
|
|
32
27
|
"email": "tj@vision-media.ca",
|
|
@@ -35,6 +30,7 @@
|
|
|
35
30
|
"bugs": {
|
|
36
31
|
"url": "https://github.com/visionmedia/bytes.js/issues"
|
|
37
32
|
},
|
|
33
|
+
"bundleDependencies": false,
|
|
38
34
|
"contributors": [
|
|
39
35
|
{
|
|
40
36
|
"name": "Jed Watson",
|
|
@@ -45,11 +41,13 @@
|
|
|
45
41
|
"email": "theo.fidry@gmail.com"
|
|
46
42
|
}
|
|
47
43
|
],
|
|
44
|
+
"deprecated": false,
|
|
48
45
|
"description": "Utility to parse a string bytes to bytes and vice-versa",
|
|
49
46
|
"devDependencies": {
|
|
50
|
-
"eslint": "
|
|
51
|
-
"
|
|
52
|
-
"
|
|
47
|
+
"eslint": "7.32.0",
|
|
48
|
+
"eslint-plugin-markdown": "2.2.1",
|
|
49
|
+
"mocha": "9.1.3",
|
|
50
|
+
"nyc": "15.1.0"
|
|
53
51
|
},
|
|
54
52
|
"engines": {
|
|
55
53
|
"node": ">= 0.8"
|
|
@@ -79,8 +77,8 @@
|
|
|
79
77
|
"scripts": {
|
|
80
78
|
"lint": "eslint .",
|
|
81
79
|
"test": "mocha --check-leaks --reporter spec",
|
|
82
|
-
"test-ci": "nyc --reporter=text npm test",
|
|
80
|
+
"test-ci": "nyc --reporter=lcov --reporter=text npm test",
|
|
83
81
|
"test-cov": "nyc --reporter=html --reporter=text npm test"
|
|
84
82
|
},
|
|
85
|
-
"version": "3.1.
|
|
83
|
+
"version": "3.1.1"
|
|
86
84
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[![NPM Version][npm-image]][npm-url]
|
|
4
4
|
[![NPM Downloads][downloads-image]][downloads-url]
|
|
5
|
-
[![Build Status][
|
|
5
|
+
[![Build Status][ci-image]][ci-url]
|
|
6
6
|
[![Test Coverage][coveralls-image]][coveralls-url]
|
|
7
7
|
|
|
8
8
|
Utility to parse a string bytes (ex: `1TB`) to bytes (`1099511627776`) and vice-versa.
|
|
@@ -23,6 +23,33 @@ $ npm install bytes
|
|
|
23
23
|
var bytes = require('bytes');
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
+
#### bytes(number|string value, [options]): number|string|null
|
|
27
|
+
|
|
28
|
+
Default export function. Delegates to either `bytes.format` or `bytes.parse` based on the type of `value`.
|
|
29
|
+
|
|
30
|
+
**Arguments**
|
|
31
|
+
|
|
32
|
+
| Name | Type | Description |
|
|
33
|
+
|---------|----------|--------------------|
|
|
34
|
+
| value | `number`|`string` | Number value to format or string value to parse |
|
|
35
|
+
| options | `Object` | Conversion options for `format` |
|
|
36
|
+
|
|
37
|
+
**Returns**
|
|
38
|
+
|
|
39
|
+
| Name | Type | Description |
|
|
40
|
+
|---------|------------------|-------------------------------------------------|
|
|
41
|
+
| results | `string`|`number`|`null` | Return null upon error. Numeric value in bytes, or string value otherwise. |
|
|
42
|
+
|
|
43
|
+
**Example**
|
|
44
|
+
|
|
45
|
+
```js
|
|
46
|
+
bytes(1024);
|
|
47
|
+
// output: '1KB'
|
|
48
|
+
|
|
49
|
+
bytes('1KB');
|
|
50
|
+
// output: 1024
|
|
51
|
+
```
|
|
52
|
+
|
|
26
53
|
#### bytes.format(number value, [options]): string|null
|
|
27
54
|
|
|
28
55
|
Format the given value in bytes into a string. If the value is negative, it is kept as such. If it is a float, it is
|
|
@@ -41,7 +68,7 @@ Format the given value in bytes into a string. If the value is negative, it is k
|
|
|
41
68
|
|-------------------|--------|-----------------------------------------------------------------------------------------|
|
|
42
69
|
| decimalPlaces | `number`|`null` | Maximum number of decimal places to include in output. Default value to `2`. |
|
|
43
70
|
| fixedDecimals | `boolean`|`null` | Whether to always display the maximum number of decimal places. Default value to `false` |
|
|
44
|
-
| thousandsSeparator | `string`|`null` | Example of values: `' '`, `','` and
|
|
71
|
+
| thousandsSeparator | `string`|`null` | Example of values: `' '`, `','` and `'.'`... Default value to `''`. |
|
|
45
72
|
| unit | `string`|`null` | The unit in which the result will be returned (B/KB/MB/GB/TB). Default value to `''` (which means auto detect). |
|
|
46
73
|
| unitSeparator | `string`|`null` | Separator to use between number and unit. Default value to `''`. |
|
|
47
74
|
|
|
@@ -54,21 +81,20 @@ Format the given value in bytes into a string. If the value is negative, it is k
|
|
|
54
81
|
**Example**
|
|
55
82
|
|
|
56
83
|
```js
|
|
57
|
-
bytes(1024);
|
|
84
|
+
bytes.format(1024);
|
|
58
85
|
// output: '1KB'
|
|
59
86
|
|
|
60
|
-
bytes(1000);
|
|
87
|
+
bytes.format(1000);
|
|
61
88
|
// output: '1000B'
|
|
62
89
|
|
|
63
|
-
bytes(1000, {thousandsSeparator: ' '});
|
|
90
|
+
bytes.format(1000, {thousandsSeparator: ' '});
|
|
64
91
|
// output: '1 000B'
|
|
65
92
|
|
|
66
|
-
bytes(1024 * 1.7, {decimalPlaces: 0});
|
|
93
|
+
bytes.format(1024 * 1.7, {decimalPlaces: 0});
|
|
67
94
|
// output: '2KB'
|
|
68
95
|
|
|
69
|
-
bytes(1024, {unitSeparator: ' '});
|
|
96
|
+
bytes.format(1024, {unitSeparator: ' '});
|
|
70
97
|
// output: '1 KB'
|
|
71
|
-
|
|
72
98
|
```
|
|
73
99
|
|
|
74
100
|
#### bytes.parse(string|number value): number|null
|
|
@@ -102,25 +128,25 @@ The units are in powers of two, not ten. This means 1kb = 1024b according to thi
|
|
|
102
128
|
**Example**
|
|
103
129
|
|
|
104
130
|
```js
|
|
105
|
-
bytes('1KB');
|
|
131
|
+
bytes.parse('1KB');
|
|
106
132
|
// output: 1024
|
|
107
133
|
|
|
108
|
-
bytes('1024');
|
|
134
|
+
bytes.parse('1024');
|
|
109
135
|
// output: 1024
|
|
110
136
|
|
|
111
|
-
bytes(1024);
|
|
112
|
-
// output:
|
|
137
|
+
bytes.parse(1024);
|
|
138
|
+
// output: 1024
|
|
113
139
|
```
|
|
114
140
|
|
|
115
|
-
## License
|
|
141
|
+
## License
|
|
116
142
|
|
|
117
143
|
[MIT](LICENSE)
|
|
118
144
|
|
|
145
|
+
[ci-image]: https://badgen.net/github/checks/visionmedia/bytes.js/master?label=ci
|
|
146
|
+
[ci-url]: https://github.com/visionmedia/bytes.js/actions?query=workflow%3Aci
|
|
119
147
|
[coveralls-image]: https://badgen.net/coveralls/c/github/visionmedia/bytes.js/master
|
|
120
148
|
[coveralls-url]: https://coveralls.io/r/visionmedia/bytes.js?branch=master
|
|
121
149
|
[downloads-image]: https://badgen.net/npm/dm/bytes
|
|
122
150
|
[downloads-url]: https://npmjs.org/package/bytes
|
|
123
|
-
[npm-image]: https://badgen.net/npm/
|
|
151
|
+
[npm-image]: https://badgen.net/npm/v/bytes
|
|
124
152
|
[npm-url]: https://npmjs.org/package/bytes
|
|
125
|
-
[travis-image]: https://badgen.net/travis/visionmedia/bytes.js/master
|
|
126
|
-
[travis-url]: https://travis-ci.org/visionmedia/bytes.js
|
|
@@ -117,7 +117,11 @@ function format(value, options) {
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
if (thousandsSeparator) {
|
|
120
|
-
str = str.
|
|
120
|
+
str = str.split('.').map(function (s, i) {
|
|
121
|
+
return i === 0
|
|
122
|
+
? s.replace(formatThousandsRegExp, thousandsSeparator)
|
|
123
|
+
: s
|
|
124
|
+
}).join('.');
|
|
121
125
|
}
|
|
122
126
|
|
|
123
127
|
return str + unitSeparator + unit;
|
|
@@ -1,32 +1,27 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
4
|
-
"bytes@3.1.0",
|
|
5
|
-
"/Users/conway/.node-red"
|
|
6
|
-
]
|
|
7
|
-
],
|
|
8
|
-
"_from": "bytes@3.1.0",
|
|
9
|
-
"_id": "bytes@3.1.0",
|
|
2
|
+
"_from": "bytes@3.1.1",
|
|
3
|
+
"_id": "bytes@3.1.1",
|
|
10
4
|
"_inBundle": false,
|
|
11
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-dWe4nWO/ruEOY7HkUJ5gFt1DCFV9zPRoJr8pV0/ASQermOZjtq8jMjOprC0Kd10GLN+l7xaUPvxzJFWtxGu8Fg==",
|
|
12
6
|
"_location": "/node-red-contrib-web-worldmap/raw-body/bytes",
|
|
13
7
|
"_phantomChildren": {},
|
|
14
8
|
"_requested": {
|
|
15
9
|
"type": "version",
|
|
16
10
|
"registry": true,
|
|
17
|
-
"raw": "bytes@3.1.
|
|
11
|
+
"raw": "bytes@3.1.1",
|
|
18
12
|
"name": "bytes",
|
|
19
13
|
"escapedName": "bytes",
|
|
20
|
-
"rawSpec": "3.1.
|
|
14
|
+
"rawSpec": "3.1.1",
|
|
21
15
|
"saveSpec": null,
|
|
22
|
-
"fetchSpec": "3.1.
|
|
16
|
+
"fetchSpec": "3.1.1"
|
|
23
17
|
},
|
|
24
18
|
"_requiredBy": [
|
|
25
19
|
"/node-red-contrib-web-worldmap/raw-body"
|
|
26
20
|
],
|
|
27
|
-
"_resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.
|
|
28
|
-
"
|
|
29
|
-
"
|
|
21
|
+
"_resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.1.tgz",
|
|
22
|
+
"_shasum": "3f018291cb4cbad9accb6e6970bca9c8889e879a",
|
|
23
|
+
"_spec": "bytes@3.1.1",
|
|
24
|
+
"_where": "/Users/conway/Projects/worldmap/node_modules/raw-body",
|
|
30
25
|
"author": {
|
|
31
26
|
"name": "TJ Holowaychuk",
|
|
32
27
|
"email": "tj@vision-media.ca",
|
|
@@ -35,6 +30,7 @@
|
|
|
35
30
|
"bugs": {
|
|
36
31
|
"url": "https://github.com/visionmedia/bytes.js/issues"
|
|
37
32
|
},
|
|
33
|
+
"bundleDependencies": false,
|
|
38
34
|
"contributors": [
|
|
39
35
|
{
|
|
40
36
|
"name": "Jed Watson",
|
|
@@ -45,11 +41,13 @@
|
|
|
45
41
|
"email": "theo.fidry@gmail.com"
|
|
46
42
|
}
|
|
47
43
|
],
|
|
44
|
+
"deprecated": false,
|
|
48
45
|
"description": "Utility to parse a string bytes to bytes and vice-versa",
|
|
49
46
|
"devDependencies": {
|
|
50
|
-
"eslint": "
|
|
51
|
-
"
|
|
52
|
-
"
|
|
47
|
+
"eslint": "7.32.0",
|
|
48
|
+
"eslint-plugin-markdown": "2.2.1",
|
|
49
|
+
"mocha": "9.1.3",
|
|
50
|
+
"nyc": "15.1.0"
|
|
53
51
|
},
|
|
54
52
|
"engines": {
|
|
55
53
|
"node": ">= 0.8"
|
|
@@ -79,8 +77,8 @@
|
|
|
79
77
|
"scripts": {
|
|
80
78
|
"lint": "eslint .",
|
|
81
79
|
"test": "mocha --check-leaks --reporter spec",
|
|
82
|
-
"test-ci": "nyc --reporter=text npm test",
|
|
80
|
+
"test-ci": "nyc --reporter=lcov --reporter=text npm test",
|
|
83
81
|
"test-cov": "nyc --reporter=html --reporter=text npm test"
|
|
84
82
|
},
|
|
85
|
-
"version": "3.1.
|
|
83
|
+
"version": "3.1.1"
|
|
86
84
|
}
|
package/package.json
CHANGED
|
@@ -207,12 +207,14 @@ a {
|
|
|
207
207
|
transform-origin:0 100%;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
.wm-red { color: #
|
|
211
|
-
.wm-blue { color: #
|
|
212
|
-
.wm-green { color: #
|
|
213
|
-
.wm-yellow { color: #
|
|
214
|
-
.wm-black { color: #
|
|
210
|
+
.wm-red { color: #FF4040; }
|
|
211
|
+
.wm-blue { color: #4040F0; }
|
|
212
|
+
.wm-green { color: #40D040; }
|
|
213
|
+
.wm-yellow { color: #FFFF40; }
|
|
214
|
+
.wm-black { color: #333333; }
|
|
215
215
|
.wm-white { color: #EEEEEE; }
|
|
216
|
+
.wm-magenta { color: #F040F0; }
|
|
217
|
+
.wm-cyan { color: #40F0F0; }
|
|
216
218
|
|
|
217
219
|
.legend {
|
|
218
220
|
padding: 6px 8px;
|
package/worldmap/index.html
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
<link rel="stylesheet" type="text/css" href="leaflet/Leaflet.Dialog.css">
|
|
39
39
|
<link rel="stylesheet" type="text/css" href="leaflet/Control.MiniMap.min.css">
|
|
40
40
|
<link rel="stylesheet" type="text/css" href="leaflet/leaflet-velocity.min.css">
|
|
41
|
-
<link rel="stylesheet" type="text/css" href="leaflet/
|
|
41
|
+
<link rel="stylesheet" type="text/css" href="leaflet/leaflet.mousecoordinate.css">
|
|
42
42
|
<link rel="stylesheet" type="text/css" href="leaflet/dialog-polyfill.css"/>
|
|
43
43
|
<link rel="stylesheet" type="text/css" href="css/worldmap.css"/>
|
|
44
44
|
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
<script src="leaflet/leaflet-side-by-side.js"></script>
|
|
69
69
|
<script src="leaflet/OSMBuildings-Leaflet.js"></script>
|
|
70
70
|
<script src="leaflet/leaflet-omnivore.min.js"></script>
|
|
71
|
-
<script src="leaflet/
|
|
71
|
+
<script src="leaflet/leaflet.mousecoordinate.js"></script>
|
|
72
72
|
<script src="leaflet/leaflet.latlng-graticule.js"></script>
|
|
73
73
|
<script src="leaflet/VectorTileLayer.umd.min.js"></script>
|
|
74
74
|
<script src="leaflet/Semicircle.js"></script>
|