@artstesh/maps 1.1.24 → 1.1.25

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.
@@ -905,16 +905,19 @@
905
905
  /**
906
906
  * Constructs an instance of the class.
907
907
  *
908
- * @param {PolygonModel} model - The polygon model to be used.
909
- * @param {Style} style - The style configuration for the polygon.
910
- * @param {FeatureOutputFormat} [format=FeatureOutputFormat.GeoJson] - The output format of the features. Default is GeoJson.
908
+ * @param {PolygonModel} model - The model representing the polygon data.
909
+ * @param {Style} style - The style to be applied to the polygon.
910
+ * @param {FeatureOutputFormat} [format=FeatureOutputFormat.GeoJson] - The output format of the feature, defaults to GeoJson.
911
+ * @param {boolean} [draggable=true] - Determines whether the polygon is draggable, defaults to true.
911
912
  */
912
- function ModifyFeatureCommand(model, style, format) {
913
+ function ModifyFeatureCommand(model, style, format, draggable) {
913
914
  if (format === void 0) { format = exports.FeatureOutputFormat.GeoJson; }
915
+ if (draggable === void 0) { draggable = true; }
914
916
  var _this = _super.call(this) || this;
915
917
  _this.model = model;
916
918
  _this.style = style;
917
919
  _this.format = format;
920
+ _this.draggable = draggable;
918
921
  return _this;
919
922
  }
920
923
  return ModifyFeatureCommand;
@@ -1883,7 +1886,8 @@
1883
1886
  _this.observeCancelation(ev, l);
1884
1887
  _this.initFeature(l, ev.model.feature);
1885
1888
  _this.addModify(ev);
1886
- _this.addDragging(ev);
1889
+ if (ev.draggable)
1890
+ _this.addDragging(ev);
1887
1891
  });
1888
1892
  });
1889
1893
  };
@@ -3683,6 +3687,10 @@
3683
3687
  * Generated bundle index. Do not edit.
3684
3688
  */
3685
3689
 
3690
+ Object.defineProperty(exports, 'Style', {
3691
+ enumerable: true,
3692
+ get: function () { return style.Style; }
3693
+ });
3686
3694
  exports.AddControlCommand = AddControlCommand;
3687
3695
  exports.CalculateAreaExecutor = CalculateAreaExecutor;
3688
3696
  exports.CancelDrawingCommand = CancelDrawingCommand;