deeptwins-engine-3d 0.1.29 → 0.1.30

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/dist/esm/index.js CHANGED
@@ -51,7 +51,7 @@ loadCss(Cesium.buildModuleUrl('Widgets/widgets.css'));
51
51
  export var DeepTwinsEngine3D = /*#__PURE__*/_createClass(function DeepTwinsEngine3D() {
52
52
  _classCallCheck(this, DeepTwinsEngine3D);
53
53
  });
54
- _defineProperty(DeepTwinsEngine3D, "Version", "0.1.29");
54
+ _defineProperty(DeepTwinsEngine3D, "Version", "0.1.30");
55
55
  _defineProperty(DeepTwinsEngine3D, "Map", Map);
56
56
  _defineProperty(DeepTwinsEngine3D, "GroundSkyBox", GroundSkyBox);
57
57
  _defineProperty(DeepTwinsEngine3D, "RasterLayer", RasterLayer);
@@ -1,4 +1,6 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2
4
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3
5
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
4
6
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
@@ -80,7 +82,6 @@ var Airspace = /*#__PURE__*/function () {
80
82
  new BoxPrimitiveInstance({
81
83
  positions: source[i].positions,
82
84
  style: {
83
- show: this._isShow,
84
85
  color: source[i].properties.color,
85
86
  dimensions: this.options.dimensions,
86
87
  scale: this.options.scale
@@ -89,7 +90,9 @@ var Airspace = /*#__PURE__*/function () {
89
90
  });
90
91
  }
91
92
  boxPrimitive.createPrimitive({
92
- style: this.options
93
+ style: _objectSpread(_objectSpread({}, this.options), {}, {
94
+ show: this._isShow
95
+ })
93
96
  }, primitiveInstance);
94
97
  this.getMap().scene.primitives.add(boxPrimitive.primitive);
95
98
  }