@kq_npm/client3d_webgl_vue 4.5.4-beta → 4.5.5-beta

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.
@@ -225,9 +225,9 @@ var defineProperty = __webpack_require__(6913);
225
225
  var message = __webpack_require__(3275);
226
226
  ;// CONCATENATED MODULE: ./src/webgl/aspectanalysis/AspectAnalysisViewModel.js
227
227
 
228
- /*
229
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
230
- * All rights reserved.
228
+ /*
229
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
230
+ * All rights reserved.
231
231
  */
232
232
  /**
233
233
  * 坡向逻辑类
@@ -242,6 +242,8 @@ class AspectAnalysisViewModel {
242
242
  viewer: null,
243
243
  _drawManager: null
244
244
  });
245
+ (0,defineProperty/* default */.A)(this, "_language", {});
246
+ this._language = scenceView._language;
245
247
  this._globaOptions.viewer = scenceView._viewer;
246
248
  let options = {
247
249
  interval: aspect.interval || 500,
@@ -277,13 +279,13 @@ class AspectAnalysisViewModel {
277
279
  }
278
280
  } else {
279
281
  (0,message/* default */.A)({
280
- message: "只支持STK类型的地形分析!",
282
+ message: this._language["stkTerrainAnalysisTips"],
281
283
  type: "warning"
282
284
  });
283
285
  }
284
286
  } else {
285
287
  (0,message/* default */.A)({
286
- message: "请加载地形后分析!",
288
+ message: this._language["terrainAnalysisTips"],
287
289
  type: "warning"
288
290
  });
289
291
  }
package/boxclip/index.js CHANGED
@@ -255,15 +255,13 @@ var message = __webpack_require__(3275);
255
255
 
256
256
 
257
257
 
258
- /*
259
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
260
- * All rights reserved.
258
+ /*
259
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
260
+ * All rights reserved.
261
261
  */
262
262
  //Box裁剪逻辑类
263
263
 
264
264
  class BoxClipViewModel {
265
- //绘制完成监听事件
266
-
267
265
  constructor(scenceView, options) {
268
266
  (0,defineProperty/* default */.A)(this, "_viewer", null);
269
267
  //三维viewer对象
@@ -294,6 +292,9 @@ class BoxClipViewModel {
294
292
  (0,defineProperty/* default */.A)(this, "_drawManager", null);
295
293
  //绘制管理对象
296
294
  (0,defineProperty/* default */.A)(this, "_removeEventListener", null);
295
+ //绘制完成监听事件
296
+ (0,defineProperty/* default */.A)(this, "_language", {});
297
+ this._language = scenceView._language;
297
298
  this._options = Object.assign({}, options, this._defaultOptions);
298
299
  this._viewer = scenceView._viewer;
299
300
  // this._viewer.enabledFXAA = true;
@@ -351,7 +352,7 @@ class BoxClipViewModel {
351
352
  });
352
353
  } else {
353
354
  (0,message/* default */.A)({
354
- message: "请添加模型后裁剪!",
355
+ message: this._language["addModelClipTips"],
355
356
  type: "warning"
356
357
  });
357
358
  }
@@ -580,6 +580,11 @@ const __default__ = {
580
580
  showLogo: {
581
581
  type: Boolean,
582
582
  default: false
583
+ },
584
+ // 是否使用自定义地图数据
585
+ useCustomData: {
586
+ type: Boolean,
587
+ default: false
583
588
  }
584
589
  },
585
590
  setup(__props, {
@@ -594,7 +599,7 @@ const __default__ = {
594
599
  (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => locale.value, (newVal, oldVal) => {
595
600
  language.value = messages.value[newVal]["webgl"];
596
601
  companyName.value = props.companyName || language.value.comapanyname;
597
- systemTime.value = newVal == 'zh' ? getSystemIime() : getSystemEnTime();
602
+ systemTime.value = newVal == "zh" ? getSystemIime() : getSystemEnTime();
598
603
  printObj.value.popTitle = language.value.print;
599
604
  });
600
605
  const props = __props;
@@ -733,14 +738,34 @@ const __default__ = {
733
738
  printState.value = false;
734
739
  }
735
740
  });
741
+ let showMap = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
742
+ let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
743
+ options: props && props.options,
744
+ service: props && props.service,
745
+ scenceInfo: props && props.scenceInfo,
746
+ defaultShowLayerNames: props && props.defaultShowLayerNames,
747
+ showToolButtons: props && props.showToolButtons,
748
+ toolButtonsPosition: props && props.toolButtonsPosition,
749
+ showLogo: props && props.showLogo
750
+ });
736
751
  let currentClick = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({});
737
752
  let scaleFloor = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(1);
738
753
  let scaleStep = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(0.2);
739
754
  // 查询进度条
740
755
  let loadState = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
741
756
  // 三维球id
742
- global_event_default().setDefaultMapInfo("scencePrint", "cesium", null);
757
+ global_event_default().setWebMap("scencePrint", "cesium", null);
743
758
  (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
759
+ if (!props.useCustomData) {
760
+ global_event_default().getWebMapByMapTarget(props.mapTarget, scenceView => {
761
+ if (scenceView && scenceView._viewer) {
762
+ formItem = scenceView._props;
763
+ showMap = true;
764
+ }
765
+ });
766
+ } else {
767
+ showMap = true;
768
+ }
744
769
  setTitleDataform.value.data.title = props.printTitle || language.value.oneimage;
745
770
  papAnchor.value = "portrait";
746
771
  borderStyleValue.value = "printborder1";
@@ -1924,15 +1949,16 @@ const __default__ = {
1924
1949
  ref: printContentDiv
1925
1950
  }, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_21, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("img", {
1926
1951
  src: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(scenceImageUrl)
1927
- }, null, 8 /* PROPS */, _hoisted_22)]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_scene_view, {
1952
+ }, null, 8 /* PROPS */, _hoisted_22)]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showMap) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_scene_view, {
1953
+ key: 0,
1928
1954
  target: 'scencePrint',
1929
- options: __props.options,
1930
- service: __props.service,
1931
- scenceInfo: __props.scenceInfo,
1932
- showToolButtons: __props.showToolButtons,
1933
- defaultShowLayerNames: __props.defaultShowLayerNames,
1934
- toolButtonsPosition: __props.toolButtonsPosition,
1935
- showLogo: __props.showLogo,
1955
+ options: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).options,
1956
+ service: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).service,
1957
+ scenceInfo: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).scenceInfo,
1958
+ showToolButtons: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).showToolButtons,
1959
+ defaultShowLayerNames: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).defaultShowLayerNames,
1960
+ toolButtonsPosition: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).toolButtonsPosition,
1961
+ showLogo: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).showLogo,
1936
1962
  style: {
1937
1963
  "position": "relative"
1938
1964
  }
@@ -1985,7 +2011,7 @@ const __default__ = {
1985
2011
  }, 8 /* PROPS */, ["title"])], 8 /* PROPS */, _hoisted_24)], 40 /* PROPS, NEED_HYDRATION */, _hoisted_23)), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, item.data.isShow]]);
1986
2012
  }), 128 /* KEYED_FRAGMENT */))]),
1987
2013
  _: 1 /* STABLE */
1988
- }, 8 /* PROPS */, ["options", "service", "scenceInfo", "showToolButtons", "defaultShowLayerNames", "toolButtonsPosition", "showLogo"])], 512 /* NEED_PATCH */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_25, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_26, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).printcompany) + ":" + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(companyName)), 1 /* TEXT */)]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_27, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).printdate) + ":" + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(systemTime)), 1 /* TEXT */)])])], 512 /* NEED_PATCH */)]),
2014
+ }, 8 /* PROPS */, ["options", "service", "scenceInfo", "showToolButtons", "defaultShowLayerNames", "toolButtonsPosition", "showLogo"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)], 512 /* NEED_PATCH */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_25, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_26, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).printcompany) + ":" + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(companyName)), 1 /* TEXT */)]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_27, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).printdate) + ":" + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(systemTime)), 1 /* TEXT */)])])], 512 /* NEED_PATCH */)]),
1989
2015
  _: 1 /* STABLE */
1990
2016
  })], 512 /* NEED_PATCH */)], 512 /* NEED_PATCH */);
1991
2017
  };
@@ -235,15 +235,13 @@ var message = __webpack_require__(3275);
235
235
  ;// CONCATENATED MODULE: ./src/webgl/excavatefillanalysis/ExcavateFillAnalysisViewModel.js
236
236
 
237
237
 
238
- /*
239
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
240
- * All rights reserved.
238
+ /*
239
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
240
+ * All rights reserved.
241
241
  */
242
242
  //填挖方分析逻辑类
243
243
 
244
244
  class ExcavateFillAnalysisViewModel {
245
- //绘制完成监听事件
246
-
247
245
  constructor(scenceView, options, callback) {
248
246
  (0,defineProperty/* default */.A)(this, "_excavateFillAnalysis", null);
249
247
  //填挖方分析三维对象
@@ -252,6 +250,9 @@ class ExcavateFillAnalysisViewModel {
252
250
  (0,defineProperty/* default */.A)(this, "_options", null);
253
251
  //填挖方分析存储参数对象
254
252
  (0,defineProperty/* default */.A)(this, "_removeEventListener", null);
253
+ //绘制完成监听事件
254
+ (0,defineProperty/* default */.A)(this, "_language", {});
255
+ this._language = scenceView._language;
255
256
  options.viewer = scenceView._viewer;
256
257
  options.viewer.scene.globe.depthTestAgainstTerrain = true;
257
258
  if (options.cutColor) {
@@ -300,13 +301,13 @@ class ExcavateFillAnalysisViewModel {
300
301
  });
301
302
  } else {
302
303
  (0,message/* default */.A)({
303
- message: "只支持STK类型的地形分析!",
304
+ message: this._language["stkTerrainAnalysisTips"],
304
305
  type: "warning"
305
306
  });
306
307
  }
307
308
  } else {
308
309
  (0,message/* default */.A)({
309
- message: "请加载地形后分析!",
310
+ message: this._language["terrainAnalysisTips"],
310
311
  type: "warning"
311
312
  });
312
313
  }
package/flight/index.js CHANGED
@@ -745,7 +745,7 @@ const __default__ = {
745
745
  function save() {
746
746
  if (pathName.value === "") {
747
747
  (0,message/* default */.A)({
748
- message: "请输入路径名称!",
748
+ message: language.value["enterPathName"] + "!",
749
749
  type: "warning"
750
750
  });
751
751
  } else {
@@ -254,9 +254,9 @@ var message = __webpack_require__(3275);
254
254
 
255
255
 
256
256
 
257
- /*
258
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
259
- * All rights reserved.
257
+ /*
258
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
259
+ * All rights reserved.
260
260
  */
261
261
 
262
262
  //地形淹没分析逻辑类
@@ -274,6 +274,7 @@ class FloodAnalysisViewModel {
274
274
  //测量结果
275
275
  (0,defineProperty/* default */.A)(this, "_mode", 0);
276
276
  //淹没模式
277
+ (0,defineProperty/* default */.A)(this, "_language", {});
277
278
  (0,defineProperty/* default */.A)(this, "_colorImages", [
278
279
  //淹没纹理图片集合
279
280
  {
@@ -286,6 +287,7 @@ class FloodAnalysisViewModel {
286
287
  value: "2",
287
288
  src: const_image_.GREEN_TO_BLUE_URL
288
289
  }]);
290
+ this._language = scenceView._language;
289
291
  this._mode = options.mode;
290
292
  options.viewer = scenceView._viewer;
291
293
  options.viewer.scene.globe.depthTestAgainstTerrain = true;
@@ -352,13 +354,13 @@ class FloodAnalysisViewModel {
352
354
  this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.HorizontalArea);
353
355
  } else {
354
356
  (0,message/* default */.A)({
355
- message: "只支持STK类型的地形分析!",
357
+ message: this._language["stkTerrainAnalysisTips"],
356
358
  type: "warning"
357
359
  });
358
360
  }
359
361
  } else {
360
362
  (0,message/* default */.A)({
361
- message: "请加载地形后分析!",
363
+ message: this._language["terrainAnalysisTips"],
362
364
  type: "warning"
363
365
  });
364
366
  }
@@ -376,7 +378,7 @@ class FloodAnalysisViewModel {
376
378
  this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.HorizontalArea);
377
379
  } else {
378
380
  (0,message/* default */.A)({
379
- message: "请添加模型后分析!",
381
+ message: this._language["addModelAnalysisTips"],
380
382
  type: "warning"
381
383
  });
382
384
  }
@@ -255,9 +255,9 @@ var message = __webpack_require__(3275);
255
255
 
256
256
 
257
257
 
258
- /*
259
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
260
- * All rights reserved.
258
+ /*
259
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
260
+ * All rights reserved.
261
261
  */
262
262
  //地质体分析逻辑类
263
263
 
@@ -270,6 +270,8 @@ class GeologicalBodyAnalysisViewModel {
270
270
  (0,defineProperty/* default */.A)(this, "_geologyBody", null);
271
271
  //地质体分析三维对象
272
272
  (0,defineProperty/* default */.A)(this, "_measureHandler", null);
273
+ (0,defineProperty/* default */.A)(this, "_language", {});
274
+ this._language = scenceView._language;
273
275
  this._options = options;
274
276
  this._viewer = scenceView._viewer;
275
277
  this._measureHandler = new Cesium.Kq3dMeasureHandler(scenceView._viewer);
@@ -369,7 +371,7 @@ class GeologicalBodyAnalysisViewModel {
369
371
  }
370
372
  } else {
371
373
  (0,message/* default */.A)({
372
- message: "请添加地质体后分析!",
374
+ message: this._language["addGeologyBodyTips"],
373
375
  type: "warning"
374
376
  });
375
377
  }
@@ -247,15 +247,13 @@ var message = __webpack_require__(3275);
247
247
  ;// CONCATENATED MODULE: ./src/webgl/gpuspatialquery/GPUSpatialQueryViewModel.js
248
248
 
249
249
 
250
- /*
251
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
252
- * All rights reserved.
250
+ /*
251
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
252
+ * All rights reserved.
253
253
  */
254
254
  //GPU空间查询逻辑类
255
255
 
256
256
  class GPUSpatialQueryViewModel {
257
- //绘制完成监听事件
258
-
259
257
  constructor(scenceView, options) {
260
258
  (0,defineProperty/* default */.A)(this, "_gpuSpatialQuery", null);
261
259
  //GPU查询三维对象
@@ -270,6 +268,9 @@ class GPUSpatialQueryViewModel {
270
268
  (0,defineProperty/* default */.A)(this, "finishedQuery", null);
271
269
  //绘制后的查询事件
272
270
  (0,defineProperty/* default */.A)(this, "_removeEventListener", null);
271
+ //绘制完成监听事件
272
+ (0,defineProperty/* default */.A)(this, "_language", {});
273
+ this._language = scenceView._language;
273
274
  options.viewer = scenceView._viewer;
274
275
  options.viewer.scene.globe.depthTestAgainstTerrain = true;
275
276
  options.viewer.scene.logarithmicDepthBuffer = true;
@@ -348,7 +349,7 @@ class GPUSpatialQueryViewModel {
348
349
  });
349
350
  } else {
350
351
  (0,message/* default */.A)({
351
- message: "请添加模型后分析!",
352
+ message: this._language["addModelAnalysisTips"],
352
353
  type: "warning"
353
354
  });
354
355
  }
@@ -700,9 +700,9 @@ var defineProperty = __webpack_require__(6913);
700
700
  var message = __webpack_require__(3275);
701
701
  ;// CONCATENATED MODULE: ./src/webgl/heatmap3d/Heatmap3dViewModel.js
702
702
 
703
- /*
704
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
705
- * All rights reserved.
703
+ /*
704
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
705
+ * All rights reserved.
706
706
  */
707
707
  //热力图
708
708
 
@@ -762,7 +762,7 @@ class Heatmap3dViewModel {
762
762
  lat: lat
763
763
  }));
764
764
  }
765
- (0,util_.setInnerHtml)(document.getElementById('mouse_lonlat'), `<p>${that.language['longitude'] || "经度"}:${lon.toFixed(5)}</p><p>${that.language['latitude'] || "纬度"}:${lat.toFixed(5)}</p><p>${that.language['heatValue'] || "热力值"}:${val}</p>`);
765
+ (0,util_.setInnerHtml)(document.getElementById('mouse_lonlat'), `<p>${that.language['longitude'] || "longitude"}:${lon.toFixed(5)}</p><p>${that.language['latitude'] || "latitude"}:${lat.toFixed(5)}</p><p>${that.language['heatValue'] || "value"}:${val}</p>`);
766
766
  that._mouseLabel.setVisible(true);
767
767
  } else {
768
768
  that._mouseLabel.setVisible(false);