geojs 1.14.12 → 1.14.13

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,7 +17,7 @@ jobs:
17
17
  build:
18
18
  runs-on: ubuntu-latest
19
19
  steps:
20
- - uses: actions/checkout@v4
20
+ - uses: actions/checkout@v5
21
21
  - uses: actions/setup-node@v4
22
22
  with:
23
23
  node-version: '20'
@@ -69,7 +69,7 @@ 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
74
  - uses: actions/setup-node@v4
75
75
  with:
@@ -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,7 +109,7 @@ jobs:
109
109
  needs: build
110
110
  runs-on: ubuntu-latest
111
111
  steps:
112
- - uses: actions/checkout@v4
112
+ - uses: actions/checkout@v5
113
113
  - uses: actions/setup-node@v4
114
114
  with:
115
115
  node-version: 'lts/*'
@@ -117,7 +117,7 @@ jobs:
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/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,14 @@ 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;
10555
10558
  if (m_this.currentAnnotation) {
10559
+ oldState = m_this.currentAnnotation.state();
10556
10560
  switch (m_this.currentAnnotation.state()) {
10557
10561
  case geo_annotation.state.create:
10558
10562
  m_this.removeAnnotation(m_this.currentAnnotation);
@@ -10601,7 +10605,9 @@ var _annotationLayer = function annotationLayer(arg) {
10601
10605
  }
10602
10606
  m_this.geoTrigger(geo_event.annotation.mode, {
10603
10607
  mode: m_mode,
10604
- oldMode: oldMode
10608
+ oldMode: oldMode,
10609
+ oldState: oldState,
10610
+ reason: reason
10605
10611
  });
10606
10612
  if (oldMode === m_this.modes.edit || oldMode === m_this.modes.cursor) {
10607
10613
  m_this.modified();
@@ -26466,7 +26472,7 @@ module.exports = svg_tileLayer;
26466
26472
  * @constant
26467
26473
  * @type {string}
26468
26474
  */
26469
- module.exports = "1.14.12";
26475
+ module.exports = "1.14.13";
26470
26476
 
26471
26477
  /***/ }),
26472
26478
 
@@ -83066,9 +83072,15 @@ geo_event.annotation.state = 'geo_annotation_state';
83066
83072
  * @event geo.event.annotation.mode
83067
83073
  * @type {geo.event.base}
83068
83074
  * @property {string?} mode The new annotation mode. This is one of the values
83069
- * from {@link geo.annotation.state}.
83075
+ * from {@link geo.annotationLayer.mode} or an annotation name.
83070
83076
  * @property {string?} oldMode The annotation mode before this change. This is
83077
+ * one of the values from {@link geo.annotationLayer.mode} or an
83078
+ * annotation name.
83079
+ * @property {string?} oldState If there was an active annotation before the
83080
+ * mode change, this is the annotation state before the change. This is
83071
83081
  * one of the values from {@link geo.annotation.state}.
83082
+ * @property {string?} reason An optional string that was passed to the mode
83083
+ * change method.
83072
83084
  */
83073
83085
  geo_event.annotation.mode = 'geo_annotation_mode';
83074
83086
 
@@ -97935,7 +97947,7 @@ module.exports = "/* quadFeature Color fragment shader */\n\nvarying mediump vec
97935
97947
  * @constant
97936
97948
  * @type {string}
97937
97949
  */
97938
- module.exports = "77d74f3f2551728136c961f0023bcf74e19e6fb0";
97950
+ module.exports = "f795280c0f9543f402b7e5240cc9b2698c80e89b";
97939
97951
 
97940
97952
  /***/ }),
97941
97953
 
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,14 @@ 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;
10555
10558
  if (m_this.currentAnnotation) {
10559
+ oldState = m_this.currentAnnotation.state();
10556
10560
  switch (m_this.currentAnnotation.state()) {
10557
10561
  case geo_annotation.state.create:
10558
10562
  m_this.removeAnnotation(m_this.currentAnnotation);
@@ -10601,7 +10605,9 @@ var _annotationLayer = function annotationLayer(arg) {
10601
10605
  }
10602
10606
  m_this.geoTrigger(geo_event.annotation.mode, {
10603
10607
  mode: m_mode,
10604
- oldMode: oldMode
10608
+ oldMode: oldMode,
10609
+ oldState: oldState,
10610
+ reason: reason
10605
10611
  });
10606
10612
  if (oldMode === m_this.modes.edit || oldMode === m_this.modes.cursor) {
10607
10613
  m_this.modified();
@@ -23475,7 +23481,7 @@ module.exports = svg_tileLayer;
23475
23481
  * @constant
23476
23482
  * @type {string}
23477
23483
  */
23478
- module.exports = "1.14.12";
23484
+ module.exports = "1.14.13";
23479
23485
 
23480
23486
  /***/ }),
23481
23487
 
@@ -55242,9 +55248,15 @@ geo_event.annotation.state = 'geo_annotation_state';
55242
55248
  * @event geo.event.annotation.mode
55243
55249
  * @type {geo.event.base}
55244
55250
  * @property {string?} mode The new annotation mode. This is one of the values
55245
- * from {@link geo.annotation.state}.
55251
+ * from {@link geo.annotationLayer.mode} or an annotation name.
55246
55252
  * @property {string?} oldMode The annotation mode before this change. This is
55253
+ * one of the values from {@link geo.annotationLayer.mode} or an
55254
+ * annotation name.
55255
+ * @property {string?} oldState If there was an active annotation before the
55256
+ * mode change, this is the annotation state before the change. This is
55247
55257
  * one of the values from {@link geo.annotation.state}.
55258
+ * @property {string?} reason An optional string that was passed to the mode
55259
+ * change method.
55248
55260
  */
55249
55261
  geo_event.annotation.mode = 'geo_annotation_mode';
55250
55262
 
@@ -70121,7 +70133,7 @@ module.exports = "/* quadFeature Color fragment shader */\n\nvarying mediump vec
70121
70133
  * @constant
70122
70134
  * @type {string}
70123
70135
  */
70124
- module.exports = "77d74f3f2551728136c961f0023bcf74e19e6fb0";
70136
+ module.exports = "f795280c0f9543f402b7e5240cc9b2698c80e89b";
70125
70137
 
70126
70138
  /***/ }),
70127
70139