geojs 1.10.6 → 1.10.7

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 CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  ## Version 1.10.5
4
4
 
5
+ ### Improvements
6
+
7
+ - Allow using the rdp functions on non-feature polygons ([#1234](../../pull/1234))
8
+ - Allow annotations to be created regardless of metakeys ([#1235](../../pull/1235))
9
+
10
+ ## Version 1.10.5
11
+
12
+ ### Bug Fixes
13
+
14
+ - Guard texture update calls ([#1233](../../pull/1233))
15
+
16
+ ## Version 1.10.5
17
+
5
18
  ### Bug Fixes
6
19
 
7
20
  - Guard converting an empty polygon ([#1232](../../pull/1232))
package/geo.js CHANGED
@@ -1540,11 +1540,7 @@ function continuousVerticesActions(m_this, s_actions, state, name, originalArgs)
1540
1540
  action: geo_action['annotation_' + name],
1541
1541
  name: name + ' create',
1542
1542
  owner: annotationActionOwner,
1543
- input: 'left',
1544
- modifiers: {
1545
- shift: false,
1546
- ctrl: false
1547
- }
1543
+ input: 'left'
1548
1544
  }, {
1549
1545
  action: geo_action['annotation_' + name],
1550
1546
  name: name + ' create',
@@ -3268,10 +3264,6 @@ var rectangleAnnotation = function rectangleAnnotation(args, annotationName) {
3268
3264
  name: 'rectangle create',
3269
3265
  owner: annotationActionOwner,
3270
3266
  input: 'left',
3271
- modifiers: {
3272
- shift: false,
3273
- ctrl: false
3274
- },
3275
3267
  selectionRectangle: true,
3276
3268
  selectionConstraint: this._selectionConstraint
3277
3269
  }];
@@ -25699,11 +25691,13 @@ var polygonFeature = function polygonFeature(arg) {
25699
25691
  * get the position of each vertex.
25700
25692
  * @param {function} [polyFunc=this.style.get('polygon')] The function to
25701
25693
  * get each polygon.
25702
- * @returns {this}
25694
+ * @param {boolean} [returnData=false] If truthy, return the new data array
25695
+ * rather than modifying the feature.
25696
+ * @returns {this|array}
25703
25697
  */
25704
25698
 
25705
25699
 
25706
- this.rdpSimplifyData = function (data, tolerance, posFunc, polyFunc) {
25700
+ this.rdpSimplifyData = function (data, tolerance, posFunc, polyFunc, returnData) {
25707
25701
  var map = m_this.layer().map(),
25708
25702
  mapgcs = map.gcs(),
25709
25703
  featuregcs = m_this.gcs(),
@@ -25767,8 +25761,13 @@ var polygonFeature = function polygonFeature(arg) {
25767
25761
 
25768
25762
  return elem;
25769
25763
  });
25764
+
25765
+ if (returnData) {
25766
+ return data;
25767
+ }
25770
25768
  /* Set the reduced polgons as the data and use simple accessors. */
25771
25769
 
25770
+
25772
25771
  m_this.style('position', util.identityFunction);
25773
25772
  m_this.style('polygon', util.identityFunction);
25774
25773
  m_this.data(data);
@@ -27887,7 +27886,7 @@ module.exports = sceneObject;
27887
27886
  * @constant
27888
27887
  * @type {string}
27889
27888
  */
27890
- module.exports = "52900ff9b31db04903654e968c3bf6e7bcc3bffb";
27889
+ module.exports = "e8aceeb82b2e0af20e6c4483678c951f410bedbf";
27891
27890
 
27892
27891
  /***/ }),
27893
27892
 
@@ -41047,7 +41046,7 @@ module.exports = vectorFeature;
41047
41046
  * @constant
41048
41047
  * @type {string}
41049
41048
  */
41050
- module.exports = "1.10.6";
41049
+ module.exports = "1.10.7";
41051
41050
 
41052
41051
  /***/ }),
41053
41052
 
package/geo.lean.js CHANGED
@@ -1540,11 +1540,7 @@ function continuousVerticesActions(m_this, s_actions, state, name, originalArgs)
1540
1540
  action: geo_action['annotation_' + name],
1541
1541
  name: name + ' create',
1542
1542
  owner: annotationActionOwner,
1543
- input: 'left',
1544
- modifiers: {
1545
- shift: false,
1546
- ctrl: false
1547
- }
1543
+ input: 'left'
1548
1544
  }, {
1549
1545
  action: geo_action['annotation_' + name],
1550
1546
  name: name + ' create',
@@ -3268,10 +3264,6 @@ var rectangleAnnotation = function rectangleAnnotation(args, annotationName) {
3268
3264
  name: 'rectangle create',
3269
3265
  owner: annotationActionOwner,
3270
3266
  input: 'left',
3271
- modifiers: {
3272
- shift: false,
3273
- ctrl: false
3274
- },
3275
3267
  selectionRectangle: true,
3276
3268
  selectionConstraint: this._selectionConstraint
3277
3269
  }];
@@ -25699,11 +25691,13 @@ var polygonFeature = function polygonFeature(arg) {
25699
25691
  * get the position of each vertex.
25700
25692
  * @param {function} [polyFunc=this.style.get('polygon')] The function to
25701
25693
  * get each polygon.
25702
- * @returns {this}
25694
+ * @param {boolean} [returnData=false] If truthy, return the new data array
25695
+ * rather than modifying the feature.
25696
+ * @returns {this|array}
25703
25697
  */
25704
25698
 
25705
25699
 
25706
- this.rdpSimplifyData = function (data, tolerance, posFunc, polyFunc) {
25700
+ this.rdpSimplifyData = function (data, tolerance, posFunc, polyFunc, returnData) {
25707
25701
  var map = m_this.layer().map(),
25708
25702
  mapgcs = map.gcs(),
25709
25703
  featuregcs = m_this.gcs(),
@@ -25767,8 +25761,13 @@ var polygonFeature = function polygonFeature(arg) {
25767
25761
 
25768
25762
  return elem;
25769
25763
  });
25764
+
25765
+ if (returnData) {
25766
+ return data;
25767
+ }
25770
25768
  /* Set the reduced polgons as the data and use simple accessors. */
25771
25769
 
25770
+
25772
25771
  m_this.style('position', util.identityFunction);
25773
25772
  m_this.style('polygon', util.identityFunction);
25774
25773
  m_this.data(data);
@@ -27887,7 +27886,7 @@ module.exports = sceneObject;
27887
27886
  * @constant
27888
27887
  * @type {string}
27889
27888
  */
27890
- module.exports = "52900ff9b31db04903654e968c3bf6e7bcc3bffb";
27889
+ module.exports = "e8aceeb82b2e0af20e6c4483678c951f410bedbf";
27891
27890
 
27892
27891
  /***/ }),
27893
27892
 
@@ -41047,7 +41046,7 @@ module.exports = vectorFeature;
41047
41046
  * @constant
41048
41047
  * @type {string}
41049
41048
  */
41050
- module.exports = "1.10.6";
41049
+ module.exports = "1.10.7";
41051
41050
 
41052
41051
  /***/ }),
41053
41052