deeptwins-engine-3d 0.1.23 → 0.1.24

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
@@ -50,7 +50,7 @@ loadCss(Cesium.buildModuleUrl('Widgets/widgets.css'));
50
50
  export var DeepTwinsEngine3D = /*#__PURE__*/_createClass(function DeepTwinsEngine3D() {
51
51
  _classCallCheck(this, DeepTwinsEngine3D);
52
52
  });
53
- _defineProperty(DeepTwinsEngine3D, "Version", "0.1.23");
53
+ _defineProperty(DeepTwinsEngine3D, "Version", "0.1.24");
54
54
  _defineProperty(DeepTwinsEngine3D, "Map", Map);
55
55
  _defineProperty(DeepTwinsEngine3D, "GroundSkyBox", GroundSkyBox);
56
56
  _defineProperty(DeepTwinsEngine3D, "RasterLayer", RasterLayer);
@@ -7,6 +7,7 @@ export default class Airspace {
7
7
  private _events;
8
8
  constructor(map: any, geoJson: any, options?: any);
9
9
  getMap(): any;
10
+ startDraw(geoJson: any): void;
10
11
  private _canOperate;
11
12
  sliceArrayAsync(data: any[], chunkSize?: number): void;
12
13
  on(eventType: string, event: any): void;
@@ -24,14 +24,19 @@ var Airspace = /*#__PURE__*/function () {
24
24
  _defineProperty(this, "_events", {});
25
25
  this._mapContext = map._mapContext;
26
26
  this.options = merge(DEFAULT_AIRSPACE_STYLE(), options);
27
- var source = BaseSource.geoJsonToGeoCartesian3Array(geoJson);
28
- this.sliceArrayAsync(source, this.options.chunkSize);
27
+ this.startDraw(geoJson);
29
28
  }
30
29
  _createClass(Airspace, [{
31
30
  key: "getMap",
32
31
  value: function getMap() {
33
32
  return this._mapContext && this._mapContext.getMap();
34
33
  }
34
+ }, {
35
+ key: "startDraw",
36
+ value: function startDraw(geoJson) {
37
+ var source = BaseSource.geoJsonToGeoCartesian3Array(geoJson);
38
+ this.sliceArrayAsync(source, this.options.chunkSize);
39
+ }
35
40
 
36
41
  // 是否能进行操作
37
42
  }, {