geojs 1.14.13 → 1.14.14
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/.github/workflows/main.yml +3 -3
- package/README.md +1 -1
- package/geo.js +16 -3
- package/geo.lean.js +16 -3
- package/geo.lean.min.js +3 -3
- package/geo.min.js +3 -3
- package/package.json +1 -1
- package/src/annotationLayer.js +4 -2
- package/src/event.js +4 -0
|
@@ -18,7 +18,7 @@ jobs:
|
|
|
18
18
|
runs-on: ubuntu-latest
|
|
19
19
|
steps:
|
|
20
20
|
- uses: actions/checkout@v5
|
|
21
|
-
- uses: actions/setup-node@
|
|
21
|
+
- uses: actions/setup-node@v5
|
|
22
22
|
with:
|
|
23
23
|
node-version: '20'
|
|
24
24
|
- uses: browser-actions/setup-firefox@latest
|
|
@@ -71,7 +71,7 @@ jobs:
|
|
|
71
71
|
steps:
|
|
72
72
|
- uses: actions/checkout@v5
|
|
73
73
|
# Don't pin version to test with the latest common version
|
|
74
|
-
- uses: actions/setup-node@
|
|
74
|
+
- uses: actions/setup-node@v5
|
|
75
75
|
with:
|
|
76
76
|
node-version: 'lts/*'
|
|
77
77
|
- run: npm --version && node --version
|
|
@@ -110,7 +110,7 @@ jobs:
|
|
|
110
110
|
runs-on: ubuntu-latest
|
|
111
111
|
steps:
|
|
112
112
|
- uses: actions/checkout@v5
|
|
113
|
-
- uses: actions/setup-node@
|
|
113
|
+
- uses: actions/setup-node@v5
|
|
114
114
|
with:
|
|
115
115
|
node-version: 'lts/*'
|
|
116
116
|
- run: sudo apt-get update
|
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ For live examples visit [Github.io](https://opengeoscience.github.io/geojs/examp
|
|
|
37
37
|
|
|
38
38
|
Documentation
|
|
39
39
|
=============
|
|
40
|
-
You can find more information on GeoJS installation and usage in our [Documentation](https://
|
|
40
|
+
You can find more information on GeoJS installation and usage in our [Documentation](https://opengeoscience.github.io/geojs).
|
|
41
41
|
|
|
42
42
|
There are some additional resources:
|
|
43
43
|
|
package/geo.js
CHANGED
|
@@ -10554,9 +10554,10 @@ var _annotationLayer = function annotationLayer(arg) {
|
|
|
10554
10554
|
} else {
|
|
10555
10555
|
m_keyHandler.unbind('esc');
|
|
10556
10556
|
}
|
|
10557
|
-
var oldState;
|
|
10557
|
+
var oldState, oldCoordinates;
|
|
10558
10558
|
if (m_this.currentAnnotation) {
|
|
10559
10559
|
oldState = m_this.currentAnnotation.state();
|
|
10560
|
+
oldCoordinates = m_this.currentAnnotation._copyOfCoordinates();
|
|
10560
10561
|
switch (m_this.currentAnnotation.state()) {
|
|
10561
10562
|
case geo_annotation.state.create:
|
|
10562
10563
|
m_this.removeAnnotation(m_this.currentAnnotation);
|
|
@@ -10603,10 +10604,18 @@ var _annotationLayer = function annotationLayer(arg) {
|
|
|
10603
10604
|
m_this.map().interactor().addAction(action);
|
|
10604
10605
|
});
|
|
10605
10606
|
}
|
|
10607
|
+
console.log({
|
|
10608
|
+
mode: m_mode,
|
|
10609
|
+
oldMode: oldMode,
|
|
10610
|
+
oldState: oldState,
|
|
10611
|
+
oldCoordinates: oldCoordinates,
|
|
10612
|
+
reason: reason
|
|
10613
|
+
});
|
|
10606
10614
|
m_this.geoTrigger(geo_event.annotation.mode, {
|
|
10607
10615
|
mode: m_mode,
|
|
10608
10616
|
oldMode: oldMode,
|
|
10609
10617
|
oldState: oldState,
|
|
10618
|
+
oldCoordinates: oldCoordinates,
|
|
10610
10619
|
reason: reason
|
|
10611
10620
|
});
|
|
10612
10621
|
if (oldMode === m_this.modes.edit || oldMode === m_this.modes.cursor) {
|
|
@@ -26472,7 +26481,7 @@ module.exports = svg_tileLayer;
|
|
|
26472
26481
|
* @constant
|
|
26473
26482
|
* @type {string}
|
|
26474
26483
|
*/
|
|
26475
|
-
module.exports = "1.14.
|
|
26484
|
+
module.exports = "1.14.14";
|
|
26476
26485
|
|
|
26477
26486
|
/***/ }),
|
|
26478
26487
|
|
|
@@ -83079,6 +83088,10 @@ geo_event.annotation.state = 'geo_annotation_state';
|
|
|
83079
83088
|
* @property {string?} oldState If there was an active annotation before the
|
|
83080
83089
|
* mode change, this is the annotation state before the change. This is
|
|
83081
83090
|
* one of the values from {@link geo.annotation.state}.
|
|
83091
|
+
* @property {string?} oldCoordinates If there was an active annotation before
|
|
83092
|
+
* the mode change, these are the annotation's coordinates before the
|
|
83093
|
+
* change. This will be an empty list if an annotation in create state
|
|
83094
|
+
* had not been started and a non-empty list if it is partially created.
|
|
83082
83095
|
* @property {string?} reason An optional string that was passed to the mode
|
|
83083
83096
|
* change method.
|
|
83084
83097
|
*/
|
|
@@ -97947,7 +97960,7 @@ module.exports = "/* quadFeature Color fragment shader */\n\nvarying mediump vec
|
|
|
97947
97960
|
* @constant
|
|
97948
97961
|
* @type {string}
|
|
97949
97962
|
*/
|
|
97950
|
-
module.exports = "
|
|
97963
|
+
module.exports = "c0ecc2fb3d81368f4a8d6290a9b6db9bd60d4cdb";
|
|
97951
97964
|
|
|
97952
97965
|
/***/ }),
|
|
97953
97966
|
|
package/geo.lean.js
CHANGED
|
@@ -10554,9 +10554,10 @@ var _annotationLayer = function annotationLayer(arg) {
|
|
|
10554
10554
|
} else {
|
|
10555
10555
|
m_keyHandler.unbind('esc');
|
|
10556
10556
|
}
|
|
10557
|
-
var oldState;
|
|
10557
|
+
var oldState, oldCoordinates;
|
|
10558
10558
|
if (m_this.currentAnnotation) {
|
|
10559
10559
|
oldState = m_this.currentAnnotation.state();
|
|
10560
|
+
oldCoordinates = m_this.currentAnnotation._copyOfCoordinates();
|
|
10560
10561
|
switch (m_this.currentAnnotation.state()) {
|
|
10561
10562
|
case geo_annotation.state.create:
|
|
10562
10563
|
m_this.removeAnnotation(m_this.currentAnnotation);
|
|
@@ -10603,10 +10604,18 @@ var _annotationLayer = function annotationLayer(arg) {
|
|
|
10603
10604
|
m_this.map().interactor().addAction(action);
|
|
10604
10605
|
});
|
|
10605
10606
|
}
|
|
10607
|
+
console.log({
|
|
10608
|
+
mode: m_mode,
|
|
10609
|
+
oldMode: oldMode,
|
|
10610
|
+
oldState: oldState,
|
|
10611
|
+
oldCoordinates: oldCoordinates,
|
|
10612
|
+
reason: reason
|
|
10613
|
+
});
|
|
10606
10614
|
m_this.geoTrigger(geo_event.annotation.mode, {
|
|
10607
10615
|
mode: m_mode,
|
|
10608
10616
|
oldMode: oldMode,
|
|
10609
10617
|
oldState: oldState,
|
|
10618
|
+
oldCoordinates: oldCoordinates,
|
|
10610
10619
|
reason: reason
|
|
10611
10620
|
});
|
|
10612
10621
|
if (oldMode === m_this.modes.edit || oldMode === m_this.modes.cursor) {
|
|
@@ -23481,7 +23490,7 @@ module.exports = svg_tileLayer;
|
|
|
23481
23490
|
* @constant
|
|
23482
23491
|
* @type {string}
|
|
23483
23492
|
*/
|
|
23484
|
-
module.exports = "1.14.
|
|
23493
|
+
module.exports = "1.14.14";
|
|
23485
23494
|
|
|
23486
23495
|
/***/ }),
|
|
23487
23496
|
|
|
@@ -55255,6 +55264,10 @@ geo_event.annotation.state = 'geo_annotation_state';
|
|
|
55255
55264
|
* @property {string?} oldState If there was an active annotation before the
|
|
55256
55265
|
* mode change, this is the annotation state before the change. This is
|
|
55257
55266
|
* one of the values from {@link geo.annotation.state}.
|
|
55267
|
+
* @property {string?} oldCoordinates If there was an active annotation before
|
|
55268
|
+
* the mode change, these are the annotation's coordinates before the
|
|
55269
|
+
* change. This will be an empty list if an annotation in create state
|
|
55270
|
+
* had not been started and a non-empty list if it is partially created.
|
|
55258
55271
|
* @property {string?} reason An optional string that was passed to the mode
|
|
55259
55272
|
* change method.
|
|
55260
55273
|
*/
|
|
@@ -70133,7 +70146,7 @@ module.exports = "/* quadFeature Color fragment shader */\n\nvarying mediump vec
|
|
|
70133
70146
|
* @constant
|
|
70134
70147
|
* @type {string}
|
|
70135
70148
|
*/
|
|
70136
|
-
module.exports = "
|
|
70149
|
+
module.exports = "c0ecc2fb3d81368f4a8d6290a9b6db9bd60d4cdb";
|
|
70137
70150
|
|
|
70138
70151
|
/***/ }),
|
|
70139
70152
|
|