deeptwins-engine-3d 0.1.36 → 0.1.37

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.
@@ -119,13 +119,21 @@ var BaseLayer = /*#__PURE__*/function () {
119
119
  _this2.primitiveCollection = new BoxPrimitive(_this2._mapContext);
120
120
  },
121
121
  billboardP: function billboardP() {
122
- _this2.primitiveCollection = new Cesium.BillboardCollection();
122
+ var _this2$_mapContext;
123
+ var scene = (_this2$_mapContext = _this2._mapContext) === null || _this2$_mapContext === void 0 || (_this2$_mapContext = _this2$_mapContext.getMap()) === null || _this2$_mapContext === void 0 ? void 0 : _this2$_mapContext.scene;
124
+ _this2.primitiveCollection = new Cesium.BillboardCollection({
125
+ scene: scene
126
+ });
123
127
  },
124
128
  modelP: function modelP() {
125
129
  _this2.primitiveCollection = new ModelPrimitive(_this2._mapContext);
126
130
  },
127
131
  labelP: function labelP() {
128
- _this2.primitiveCollection = new Cesium.LabelCollection();
132
+ var _this2$_mapContext2;
133
+ var scene = (_this2$_mapContext2 = _this2._mapContext) === null || _this2$_mapContext2 === void 0 || (_this2$_mapContext2 = _this2$_mapContext2.getMap()) === null || _this2$_mapContext2 === void 0 ? void 0 : _this2$_mapContext2.scene;
134
+ _this2.primitiveCollection = new Cesium.LabelCollection({
135
+ scene: scene
136
+ });
129
137
  },
130
138
  wallP: function wallP() {
131
139
  _this2.primitiveCollection = new WallPrimitive(_this2._mapContext);
@@ -15,7 +15,7 @@ export default class BaseSource {
15
15
  remove(): void;
16
16
  setData(data: any): this | undefined;
17
17
  _toDestroy(): void;
18
- static analysisSourceType(data: any): "wkt" | "sourceId" | "sourceInstance" | "geoJson" | "other";
18
+ static analysisSourceType(data: any): "other" | "wkt" | "sourceId" | "sourceInstance" | "geoJson";
19
19
  static wktToGeoJon(wkt: string): any;
20
20
  static geoJsonToGeoCartesian3Array(geoJson: any): any[];
21
21
  static handleFeaturePoint(feature: any): any;
package/dist/esm/index.js CHANGED
@@ -51,11 +51,11 @@ DEEP_TWINS_BASE_URL && (window.CESIUM_BASE_URL = DEEP_TWINS_BASE_URL);
51
51
  // 全局加载css
52
52
  loadCss(Cesium.buildModuleUrl('Widgets/widgets.css'));
53
53
  // 打印版本信息
54
- console.log('DeepTwinsEngine3D Version:', "0.1.36");
54
+ console.log('DeepTwinsEngine3D Version:', "0.1.37");
55
55
  export var DeepTwinsEngine3D = /*#__PURE__*/_createClass(function DeepTwinsEngine3D() {
56
56
  _classCallCheck(this, DeepTwinsEngine3D);
57
57
  });
58
- _defineProperty(DeepTwinsEngine3D, "Version", "0.1.36");
58
+ _defineProperty(DeepTwinsEngine3D, "Version", "0.1.37");
59
59
  _defineProperty(DeepTwinsEngine3D, "Map", Map);
60
60
  _defineProperty(DeepTwinsEngine3D, "GroundSkyBox", GroundSkyBox);
61
61
  _defineProperty(DeepTwinsEngine3D, "RasterLayer", RasterLayer);