geojs 1.14.12 → 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.
@@ -5,7 +5,7 @@ jobs:
5
5
  commitlint:
6
6
  runs-on: ubuntu-latest
7
7
  steps:
8
- - uses: actions/checkout@v4
8
+ - uses: actions/checkout@v5
9
9
  with:
10
10
  fetch-depth: 0
11
11
  - uses: wagoid/commitlint-github-action@v6
@@ -17,8 +17,8 @@ jobs:
17
17
  build:
18
18
  runs-on: ubuntu-latest
19
19
  steps:
20
- - uses: actions/checkout@v4
21
- - uses: actions/setup-node@v4
20
+ - uses: actions/checkout@v5
21
+ - uses: actions/setup-node@v5
22
22
  with:
23
23
  node-version: '20'
24
24
  - uses: browser-actions/setup-firefox@latest
@@ -69,9 +69,9 @@ jobs:
69
69
  unpinned:
70
70
  runs-on: ubuntu-latest
71
71
  steps:
72
- - uses: actions/checkout@v4
72
+ - uses: actions/checkout@v5
73
73
  # Don't pin version to test with the latest common version
74
- - uses: actions/setup-node@v4
74
+ - uses: actions/setup-node@v5
75
75
  with:
76
76
  node-version: 'lts/*'
77
77
  - run: npm --version && node --version
@@ -95,7 +95,7 @@ jobs:
95
95
  runs-on: ubuntu-latest
96
96
  steps:
97
97
  - name: Import artifacts
98
- uses: actions/download-artifact@v4
98
+ uses: actions/download-artifact@v5
99
99
  with:
100
100
  name: website
101
101
  path: website/public
@@ -109,15 +109,15 @@ jobs:
109
109
  needs: build
110
110
  runs-on: ubuntu-latest
111
111
  steps:
112
- - uses: actions/checkout@v4
113
- - uses: actions/setup-node@v4
112
+ - uses: actions/checkout@v5
113
+ - uses: actions/setup-node@v5
114
114
  with:
115
115
  node-version: 'lts/*'
116
116
  - run: sudo apt-get update
117
117
  - run: sudo apt-get install --yes --no-install-recommends optipng imagemagick build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev liblzma-dev
118
118
  - run: npm ci
119
119
  - name: Import artifacts
120
- uses: actions/download-artifact@v4
120
+ uses: actions/download-artifact@v5
121
121
  with:
122
122
  name: dist
123
123
  path: dist
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://geojs.readthedocs.org/en/latest/index.html).
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
@@ -10522,10 +10522,12 @@ var _annotationLayer = function annotationLayer(arg) {
10522
10522
  * edited or used.
10523
10523
  * @param {object} [options] Additional options to pass when creating an
10524
10524
  * annotation.
10525
+ * @param {string} [reason] An optional reason to pass to the
10526
+ * `geo.event.annotation.mode` event.
10525
10527
  * @returns {string|null|this} The current mode or the layer.
10526
10528
  * @fires geo.event.annotation.mode
10527
10529
  */
10528
- this.mode = function (arg, editAnnotation, options) {
10530
+ this.mode = function (arg, editAnnotation, options, reason) {
10529
10531
  if (arg === undefined) {
10530
10532
  return m_mode;
10531
10533
  }
@@ -10547,12 +10549,15 @@ var _annotationLayer = function annotationLayer(arg) {
10547
10549
  }
10548
10550
  if (m_mode) {
10549
10551
  m_keyHandler.bind('esc', function () {
10550
- m_this.mode(null);
10552
+ m_this.mode(null, undefined, undefined, 'escape');
10551
10553
  });
10552
10554
  } else {
10553
10555
  m_keyHandler.unbind('esc');
10554
10556
  }
10557
+ var oldState, oldCoordinates;
10555
10558
  if (m_this.currentAnnotation) {
10559
+ oldState = m_this.currentAnnotation.state();
10560
+ oldCoordinates = m_this.currentAnnotation._copyOfCoordinates();
10556
10561
  switch (m_this.currentAnnotation.state()) {
10557
10562
  case geo_annotation.state.create:
10558
10563
  m_this.removeAnnotation(m_this.currentAnnotation);
@@ -10599,9 +10604,19 @@ var _annotationLayer = function annotationLayer(arg) {
10599
10604
  m_this.map().interactor().addAction(action);
10600
10605
  });
10601
10606
  }
10607
+ console.log({
10608
+ mode: m_mode,
10609
+ oldMode: oldMode,
10610
+ oldState: oldState,
10611
+ oldCoordinates: oldCoordinates,
10612
+ reason: reason
10613
+ });
10602
10614
  m_this.geoTrigger(geo_event.annotation.mode, {
10603
10615
  mode: m_mode,
10604
- oldMode: oldMode
10616
+ oldMode: oldMode,
10617
+ oldState: oldState,
10618
+ oldCoordinates: oldCoordinates,
10619
+ reason: reason
10605
10620
  });
10606
10621
  if (oldMode === m_this.modes.edit || oldMode === m_this.modes.cursor) {
10607
10622
  m_this.modified();
@@ -26466,7 +26481,7 @@ module.exports = svg_tileLayer;
26466
26481
  * @constant
26467
26482
  * @type {string}
26468
26483
  */
26469
- module.exports = "1.14.12";
26484
+ module.exports = "1.14.14";
26470
26485
 
26471
26486
  /***/ }),
26472
26487
 
@@ -83066,9 +83081,19 @@ geo_event.annotation.state = 'geo_annotation_state';
83066
83081
  * @event geo.event.annotation.mode
83067
83082
  * @type {geo.event.base}
83068
83083
  * @property {string?} mode The new annotation mode. This is one of the values
83069
- * from {@link geo.annotation.state}.
83084
+ * from {@link geo.annotationLayer.mode} or an annotation name.
83070
83085
  * @property {string?} oldMode The annotation mode before this change. This is
83086
+ * one of the values from {@link geo.annotationLayer.mode} or an
83087
+ * annotation name.
83088
+ * @property {string?} oldState If there was an active annotation before the
83089
+ * mode change, this is the annotation state before the change. This is
83071
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.
83095
+ * @property {string?} reason An optional string that was passed to the mode
83096
+ * change method.
83072
83097
  */
83073
83098
  geo_event.annotation.mode = 'geo_annotation_mode';
83074
83099
 
@@ -97935,7 +97960,7 @@ module.exports = "/* quadFeature Color fragment shader */\n\nvarying mediump vec
97935
97960
  * @constant
97936
97961
  * @type {string}
97937
97962
  */
97938
- module.exports = "77d74f3f2551728136c961f0023bcf74e19e6fb0";
97963
+ module.exports = "c0ecc2fb3d81368f4a8d6290a9b6db9bd60d4cdb";
97939
97964
 
97940
97965
  /***/ }),
97941
97966
 
package/geo.lean.js CHANGED
@@ -10522,10 +10522,12 @@ var _annotationLayer = function annotationLayer(arg) {
10522
10522
  * edited or used.
10523
10523
  * @param {object} [options] Additional options to pass when creating an
10524
10524
  * annotation.
10525
+ * @param {string} [reason] An optional reason to pass to the
10526
+ * `geo.event.annotation.mode` event.
10525
10527
  * @returns {string|null|this} The current mode or the layer.
10526
10528
  * @fires geo.event.annotation.mode
10527
10529
  */
10528
- this.mode = function (arg, editAnnotation, options) {
10530
+ this.mode = function (arg, editAnnotation, options, reason) {
10529
10531
  if (arg === undefined) {
10530
10532
  return m_mode;
10531
10533
  }
@@ -10547,12 +10549,15 @@ var _annotationLayer = function annotationLayer(arg) {
10547
10549
  }
10548
10550
  if (m_mode) {
10549
10551
  m_keyHandler.bind('esc', function () {
10550
- m_this.mode(null);
10552
+ m_this.mode(null, undefined, undefined, 'escape');
10551
10553
  });
10552
10554
  } else {
10553
10555
  m_keyHandler.unbind('esc');
10554
10556
  }
10557
+ var oldState, oldCoordinates;
10555
10558
  if (m_this.currentAnnotation) {
10559
+ oldState = m_this.currentAnnotation.state();
10560
+ oldCoordinates = m_this.currentAnnotation._copyOfCoordinates();
10556
10561
  switch (m_this.currentAnnotation.state()) {
10557
10562
  case geo_annotation.state.create:
10558
10563
  m_this.removeAnnotation(m_this.currentAnnotation);
@@ -10599,9 +10604,19 @@ var _annotationLayer = function annotationLayer(arg) {
10599
10604
  m_this.map().interactor().addAction(action);
10600
10605
  });
10601
10606
  }
10607
+ console.log({
10608
+ mode: m_mode,
10609
+ oldMode: oldMode,
10610
+ oldState: oldState,
10611
+ oldCoordinates: oldCoordinates,
10612
+ reason: reason
10613
+ });
10602
10614
  m_this.geoTrigger(geo_event.annotation.mode, {
10603
10615
  mode: m_mode,
10604
- oldMode: oldMode
10616
+ oldMode: oldMode,
10617
+ oldState: oldState,
10618
+ oldCoordinates: oldCoordinates,
10619
+ reason: reason
10605
10620
  });
10606
10621
  if (oldMode === m_this.modes.edit || oldMode === m_this.modes.cursor) {
10607
10622
  m_this.modified();
@@ -23475,7 +23490,7 @@ module.exports = svg_tileLayer;
23475
23490
  * @constant
23476
23491
  * @type {string}
23477
23492
  */
23478
- module.exports = "1.14.12";
23493
+ module.exports = "1.14.14";
23479
23494
 
23480
23495
  /***/ }),
23481
23496
 
@@ -55242,9 +55257,19 @@ geo_event.annotation.state = 'geo_annotation_state';
55242
55257
  * @event geo.event.annotation.mode
55243
55258
  * @type {geo.event.base}
55244
55259
  * @property {string?} mode The new annotation mode. This is one of the values
55245
- * from {@link geo.annotation.state}.
55260
+ * from {@link geo.annotationLayer.mode} or an annotation name.
55246
55261
  * @property {string?} oldMode The annotation mode before this change. This is
55262
+ * one of the values from {@link geo.annotationLayer.mode} or an
55263
+ * annotation name.
55264
+ * @property {string?} oldState If there was an active annotation before the
55265
+ * mode change, this is the annotation state before the change. This is
55247
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.
55271
+ * @property {string?} reason An optional string that was passed to the mode
55272
+ * change method.
55248
55273
  */
55249
55274
  geo_event.annotation.mode = 'geo_annotation_mode';
55250
55275
 
@@ -70121,7 +70146,7 @@ module.exports = "/* quadFeature Color fragment shader */\n\nvarying mediump vec
70121
70146
  * @constant
70122
70147
  * @type {string}
70123
70148
  */
70124
- module.exports = "77d74f3f2551728136c961f0023bcf74e19e6fb0";
70149
+ module.exports = "c0ecc2fb3d81368f4a8d6290a9b6db9bd60d4cdb";
70125
70150
 
70126
70151
  /***/ }),
70127
70152