@kq_npm/client3d_webgl_vue 4.0.9-beta → 4.1.1-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.
@@ -775,6 +775,7 @@ class AddDataViewModel {
775
775
  break;
776
776
 
777
777
  case "kqgis3dserver":
778
+ // KQGIS 三维服务
778
779
  var geojsonStyle0 = { ...this._geojsonStyle
779
780
  };
780
781
 
@@ -898,7 +899,7 @@ class AddDataViewModel {
898
899
  children: [],
899
900
  lsType: "ls"
900
901
  };
901
- const service = new KqGIS.Map.GetMapImageInfoService(url);
902
+ const service = new window.KqGIS.Map.GetMapImageInfoService(url);
902
903
  service.init(result => {
903
904
  if (result.resultcode === "success") {
904
905
  let list = service.collectionInfoList;
@@ -932,31 +933,16 @@ class AddDataViewModel {
932
933
  } else {
933
934
  console.log("解析服务原始信息失败.");
934
935
  }
935
- }); // layer = this._viewer.imageryLayers.addImageryProvider(
936
- // new Cesium.Kq3dKQGISServerImageryProviderExt({
937
- // name: name,
938
- // url: url,
939
- // layerName: name
940
- // })
941
- // );
942
- // this.flyToLayer(layer);
943
- // node = {
944
- // guid: layer.guid,
945
- // name: name,
946
- // visible: true,
947
- // serverType: "imagerylayer",
948
- // lsType: "ls",
949
- // url: url,
950
- // addType: type,
951
- // layerName: name,
952
- // type: "Image" // 图层树显示图标使用
953
- // };
954
- // this._layerManager.addTempLayerNode(node);
955
- // cb && cb(node);
936
+ });
937
+ break;
956
938
 
939
+ case "kqgisdataserver":
940
+ // KQGIS 数据服务
941
+ // addDataServer(url, name);
957
942
  break;
958
943
 
959
944
  case "kqgismapserver":
945
+ // KQGIS 地图服务
960
946
  if (loadCustom) {
961
947
  loadCustom({
962
948
  name,
@@ -1041,6 +1027,7 @@ class AddDataViewModel {
1041
1027
  break;
1042
1028
 
1043
1029
  case "arcgismapserver":
1030
+ // ARCGIS 地图服务
1044
1031
  layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dArcGISMapServerImageryProvider({
1045
1032
  name: name,
1046
1033
  url: url,
@@ -1064,6 +1051,7 @@ class AddDataViewModel {
1064
1051
  break;
1065
1052
 
1066
1053
  case "mvt":
1054
+ // 矢量瓦片
1067
1055
  layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dMvtImageryProviderExt({
1068
1056
  name: name,
1069
1057
  style: url
@@ -1087,6 +1075,7 @@ class AddDataViewModel {
1087
1075
  break;
1088
1076
 
1089
1077
  case "kqgisdataflowserver":
1078
+ // KQGIS 数据流服务
1090
1079
  let guid = Cesium.createGuid();
1091
1080
  layer = new Cesium.Kq3dDataFlowLayer(this._viewer, {
1092
1081
  url: url,
@@ -1154,8 +1143,10 @@ class AddDataViewModel {
1154
1143
  break;
1155
1144
 
1156
1145
  case "wmts":
1157
- case "kqgistileserver":
1146
+ case "kqgistileserver": // KQGIS 瓦片服务
1147
+
1158
1148
  case "kqgisaggregationserver":
1149
+ // KQGIS 聚合服务
1159
1150
  if (type === "kqgistileserver") {
1160
1151
  if (url.indexOf("?") > 0) {
1161
1152
  url = url.replace("?", "/wmts?");
@@ -1382,6 +1373,68 @@ class AddDataViewModel {
1382
1373
  default:
1383
1374
  break;
1384
1375
  }
1376
+ } // 添加数据服务
1377
+
1378
+
1379
+ addDataServer(url, name) {
1380
+ window.KqGIS.datasourceService(url).getDatasources(async e => {
1381
+ if (e.result.resultcode === 'success') {
1382
+ let datasourceList = e.result.result.datasources;
1383
+
1384
+ if (datasourceList) {
1385
+ for (let i = 0; i < datasourceList.length; i++) {
1386
+ await _getDatasetList(url, datasourceList[i].datasourceName);
1387
+ }
1388
+ }
1389
+ } else {
1390
+ console.error(e);
1391
+ }
1392
+ }, err => {
1393
+ console.error(err);
1394
+ });
1395
+ }
1396
+
1397
+ _getDatasetList(url, dataSourceName) {
1398
+ let params = new window.KqGIS.Data.GetDatasetsInfoParams({
1399
+ datasourceName: dataSourceName
1400
+ });
1401
+ return new Promise((resolve, reject) => {
1402
+ window.KqGIS.datasetService(url).getDatasets(params, e => {
1403
+ if (e.result.resultcode === 'success') {
1404
+ resolve(e.result.result.datasets);
1405
+ } else {
1406
+ console.error(e);
1407
+ reject([]);
1408
+ }
1409
+ }, err => {
1410
+ console.error(err);
1411
+ reject([]);
1412
+ });
1413
+ });
1414
+ }
1415
+
1416
+ _getFeatureList(url, datasourceName, datasetName) {
1417
+ let params = new window.KqGIS.Data.GetFeaturesParamsBase({
1418
+ datasourceName: datasourceName,
1419
+ datasetName: datasetName,
1420
+ hasGeometry: true,
1421
+ returnContent: true,
1422
+ outSRS: 'EPSG:4326'
1423
+ });
1424
+ return new Promise((resolve, reject) => {
1425
+ window.KqGIS.dataFeatureService(url).getFeatureList(params, e => {
1426
+ if (e.result.resultcode === 'success') {
1427
+ e.result.result['datasetName'] = datasetName;
1428
+ resolve(e.result.result);
1429
+ } else {
1430
+ console.error(e);
1431
+ reject(null);
1432
+ }
1433
+ }, err => {
1434
+ console.error(err);
1435
+ resolve(null);
1436
+ });
1437
+ });
1385
1438
  }
1386
1439
 
1387
1440
  flyToLayer(layer) {
@@ -1637,7 +1690,14 @@ const __default__ = {
1637
1690
  namePlaceholder: language.value.optional,
1638
1691
  urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/map",
1639
1692
  description: language.value.imagertyMapServerdescription
1640
- }, {
1693
+ }, // {
1694
+ // type: "kqgisdataserver",
1695
+ // name: language.value.KQGISDataServer,
1696
+ // namePlaceholder: language.value.optional,
1697
+ // urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/data",
1698
+ // description: language.value.imagertyDataServerdescription
1699
+ // },
1700
+ {
1641
1701
  type: "kqgisimageserver",
1642
1702
  name: language.value.KQGISImageServer,
1643
1703
  namePlaceholder: language.value.optional,
@@ -15397,7 +15457,7 @@ const __default__ = {
15397
15457
  class: "rowclass"
15398
15458
  }, {
15399
15459
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
15400
- label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).pointLightSource
15460
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).lightColor
15401
15461
  }, {
15402
15462
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
15403
15463
  style: {
@@ -15886,7 +15946,9 @@ class LimitHeightAnalysisViewModel {
15886
15946
 
15887
15947
 
15888
15948
  destroy() {
15889
- this._limitHeightAnalysis && this._limitHeightAnalysis.destroy();
15949
+ this.clear();
15950
+ this._drawFinishedEventListener && this._drawFinishedEventListener();
15951
+ this._drawFinishedEventListener = null;
15890
15952
  }
15891
15953
 
15892
15954
  }
@@ -17235,6 +17297,409 @@ Measure.install = (Vue, opts) => {
17235
17297
 
17236
17298
 
17237
17299
 
17300
+ /***/ }),
17301
+
17302
+ /***/ 1677:
17303
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
17304
+
17305
+
17306
+ // EXPORTS
17307
+ __webpack_require__.d(__webpack_exports__, {
17308
+ "default": function() { return /* reexport */ ModelExcavate; }
17309
+ });
17310
+
17311
+ // UNUSED EXPORTS: ModelExcavateViewModel
17312
+
17313
+ // EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
17314
+ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(637);
17315
+ // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
17316
+ var gis_utils_ = __webpack_require__(826);
17317
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
17318
+ var defineProperty = __webpack_require__(8270);
17319
+ // EXTERNAL MODULE: ./src/common/_ui/message/index.js
17320
+ var message = __webpack_require__(1349);
17321
+ ;// CONCATENATED MODULE: ./src/webgl/modelexcavate/ModelExcavateViewModel.js
17322
+
17323
+ //模型开挖逻辑类
17324
+
17325
+ class ModelExcavateViewModel {
17326
+ //三维viewer对象
17327
+ //Box裁剪存储参数对象
17328
+ //绘制管理对象
17329
+ //绘制完成监听事件
17330
+ constructor(scenceView, options) {
17331
+ (0,defineProperty/* default */.Z)(this, "_viewer", null);
17332
+
17333
+ (0,defineProperty/* default */.Z)(this, "_options", {});
17334
+
17335
+ (0,defineProperty/* default */.Z)(this, "_Kq3dTerrainExcavation", null);
17336
+
17337
+ (0,defineProperty/* default */.Z)(this, "_drawManager", null);
17338
+
17339
+ (0,defineProperty/* default */.Z)(this, "_removeEventListener", null);
17340
+
17341
+ this._viewer = scenceView._viewer;
17342
+ this._options = options;
17343
+ this._drawManager = scenceView._drawManager;
17344
+ this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
17345
+ // var kq3dFlattenning = new window.Cesium.Kq3dFlattenning(this._viewer, {});
17346
+ // var g_flattenedPolygonTexture = kq3dFlattenning.createFlattenedPolygonTexture();
17347
+
17348
+ var that = this;
17349
+ this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
17350
+ if (shape) {
17351
+ that._options.positions = shape._controlPoints;
17352
+ this._Kq3dTerrainExcavation = this._Kq3dTerrainExcavation && this._Kq3dTerrainExcavation.destroy();
17353
+ this._Kq3dTerrainExcavation = new window.Cesium.Kq3dTerrainExcavation({
17354
+ viewer: this.viewer,
17355
+ height: this._options.height,
17356
+ positions: that._options.positions,
17357
+ hasWall: false
17358
+ });
17359
+
17360
+ that._drawManager.clear();
17361
+ }
17362
+ });
17363
+ }
17364
+
17365
+ start() {
17366
+ // 判断是否添加了模型
17367
+ var flag = false;
17368
+ var models = this._viewer.scene.primitives._primitives;
17369
+
17370
+ for (let i = 0; i < models.length; i++) {
17371
+ if (models[i]._url) {
17372
+ flag = true;
17373
+ }
17374
+ }
17375
+
17376
+ if (flag) {
17377
+ this.clear();
17378
+
17379
+ this._drawManager.startDraw("polygon", {
17380
+ clampToGround: true
17381
+ });
17382
+ } else {
17383
+ (0,message/* default */.Z)({
17384
+ message: "请添加模型后拾取!",
17385
+ type: "warning"
17386
+ });
17387
+ }
17388
+ } //清除
17389
+
17390
+
17391
+ clear() {
17392
+ this._drawManager.stopDraw(); // 销毁地形开挖
17393
+
17394
+ } //销毁
17395
+
17396
+
17397
+ destroy() {
17398
+ this.clear();
17399
+ }
17400
+
17401
+ }
17402
+ // EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
17403
+ var client_icons_vue_ = __webpack_require__(348);
17404
+ // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
17405
+ var util_ = __webpack_require__(9519);
17406
+ // EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
17407
+ var vue_i18n_cjs_js_ = __webpack_require__(7080);
17408
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/modelexcavate/ModelExcavate.vue?vue&type=script&setup=true&lang=js
17409
+
17410
+ const _hoisted_1 = {
17411
+ class: "kq3d-model-excavate-box",
17412
+ ref: "ref_box"
17413
+ };
17414
+ const _hoisted_2 = {
17415
+ class: "kq3d-model-excavate-span"
17416
+ };
17417
+ const _hoisted_3 = {
17418
+ class: "kq3d-model-excavate-footer"
17419
+ };
17420
+
17421
+
17422
+
17423
+
17424
+
17425
+ //语言
17426
+
17427
+ const __default__ = {
17428
+ name: "Kq3dModelExcavate"
17429
+ };
17430
+ /* harmony default export */ var ModelExcavatevue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
17431
+ props: {
17432
+ //指定组件绑定的viewer对象的div的id
17433
+ mapTarget: String,
17434
+ // 设置参数
17435
+ settingParams: {
17436
+ type: Object
17437
+ },
17438
+ // 是否显示阴影效果
17439
+ showShadow: {
17440
+ type: Boolean,
17441
+ default: true
17442
+ },
17443
+
17444
+ /**
17445
+ * 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
17446
+ */
17447
+ position: [String, Object],
17448
+ // 是否生成HeaderTemp
17449
+ showHeaderTemp: {
17450
+ type: Boolean,
17451
+ default: false
17452
+ },
17453
+ // 是否折叠HeaderTemp,showHeaderTemp为true时生效
17454
+ isCollapseHeaderTemp: {
17455
+ type: Boolean,
17456
+ default: false
17457
+ },
17458
+ // HeaderTemp标题
17459
+ headerTempTitle: {
17460
+ type: String
17461
+ },
17462
+ // HeaderTemp图标
17463
+ headerTempIcon: {
17464
+ type: [Object, String],
17465
+ default: client_icons_vue_.IconModelExcavation
17466
+ },
17467
+ // HeaderTemp Title&Icon的位置
17468
+ isRight: {
17469
+ type: Boolean,
17470
+ default: true
17471
+ }
17472
+ },
17473
+
17474
+ setup(__props, {
17475
+ expose
17476
+ }) {
17477
+ const props = __props;
17478
+ let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
17479
+ let viewModel = null;
17480
+ let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(""); // 获取组件传参
17481
+
17482
+ let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
17483
+ excavationDepth: props.settingParams && props.settingParams.excavationDepth || 20,
17484
+ // 地形开挖深度
17485
+ minExcavationDepth: props.settingParams && props.settingParams.minExcavationDepth || 0,
17486
+ // 地形开挖深度范围最小值
17487
+ maxExcavationDepth: props.settingParams && props.settingParams.maxExcavationDepth || 100 // 地形开挖深度范围最大值
17488
+
17489
+ }); // 组件容器Ref
17490
+
17491
+ let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
17492
+
17493
+ let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
17494
+ let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 国际化
17495
+
17496
+ let {
17497
+ locale,
17498
+ messages
17499
+ } = (0,vue_i18n_cjs_js_.useI18n)();
17500
+ let headerTempTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
17501
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => locale.value, (newVal, oldVal) => {
17502
+ language.value = messages.value[newVal]["webgl"];
17503
+ headerTempTitle.value = language.value.modelExcavateTitle;
17504
+ });
17505
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
17506
+ (0,util_.updatePosition)(boxRef.value, props);
17507
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
17508
+ (0,util_.updatePosition)(boxRef.value, props);
17509
+ });
17510
+ watchCreateHeaderTemp();
17511
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
17512
+ watchCreateHeaderTemp();
17513
+ }); //父组件ScenceView初始化完成后执行
17514
+
17515
+ gis_utils_.utils.getWebMap(null, scenceView => {
17516
+ if (scenceView) {
17517
+ viewModel = new ModelExcavateViewModel(scenceView, {
17518
+ excavationDepth: formItem.excavationDepth
17519
+ });
17520
+ }
17521
+ });
17522
+ });
17523
+ /**
17524
+ * @description 监听header生成
17525
+ */
17526
+
17527
+ const watchCreateHeaderTemp = () => {
17528
+ if (props.showHeaderTemp) {
17529
+ // 生成headerTemp
17530
+ headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
17531
+ }
17532
+ }; // 调整开挖深度
17533
+
17534
+
17535
+ function changeHeight() {
17536
+ viewModel && viewModel.setHeight(formItem.excavationDepth);
17537
+ } // 开始分析
17538
+
17539
+
17540
+ function startOperation() {
17541
+ viewModel && viewModel.start();
17542
+ } // 清除
17543
+
17544
+
17545
+ function clear() {
17546
+ viewModel && viewModel.clear();
17547
+ } // 销毁
17548
+
17549
+
17550
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
17551
+ viewModel && viewModel.destroy();
17552
+ });
17553
+ expose({
17554
+ clear
17555
+ });
17556
+ return (_ctx, _cache) => {
17557
+ const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
17558
+
17559
+ const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
17560
+
17561
+ const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
17562
+
17563
+ const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
17564
+
17565
+ const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
17566
+
17567
+ return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
17568
+ class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-model-excavate", {
17569
+ 'kq-box-shadow': __props.showShadow
17570
+ }]),
17571
+ ref_key: "boxRef",
17572
+ ref: boxRef
17573
+ }, [__props.showHeaderTemp ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headerTemp)), {
17574
+ key: 0,
17575
+ ref_key: "headerTempRef",
17576
+ ref: headerTempRef
17577
+ }, null, 512
17578
+ /* NEED_PATCH */
17579
+ )) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
17580
+ gutter: 10
17581
+ }, {
17582
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
17583
+ span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 7 : 10
17584
+ }, {
17585
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", _hoisted_2, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).excavationDepth), 1
17586
+ /* TEXT */
17587
+ )]),
17588
+ _: 1
17589
+ /* STABLE */
17590
+
17591
+ }, 8
17592
+ /* PROPS */
17593
+ , ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
17594
+ span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 11 : 8
17595
+ }, {
17596
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_slider, {
17597
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).excavationDepth,
17598
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).excavationDepth = $event),
17599
+ step: 100,
17600
+ min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minExcavationDepth,
17601
+ max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxExcavationDepth,
17602
+ onChange: _cache[1] || (_cache[1] = $event => changeHeight()),
17603
+ onClick: _cache[2] || (_cache[2] = $event => changeHeight())
17604
+ }, null, 8
17605
+ /* PROPS */
17606
+ , ["modelValue", "min", "max"])]),
17607
+ _: 1
17608
+ /* STABLE */
17609
+
17610
+ }, 8
17611
+ /* PROPS */
17612
+ , ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
17613
+ span: 6,
17614
+ style: {
17615
+ "text-align": "end"
17616
+ }
17617
+ }, {
17618
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_input_number, {
17619
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).excavationDepth,
17620
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).excavationDepth = $event),
17621
+ min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minExcavationDepth,
17622
+ step: 1,
17623
+ max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxExcavationDepth,
17624
+ "controls-position": "right",
17625
+ onInput: _cache[4] || (_cache[4] = $event => changeHeight())
17626
+ }, null, 8
17627
+ /* PROPS */
17628
+ , ["modelValue", "min", "max"])]),
17629
+ _: 1
17630
+ /* STABLE */
17631
+
17632
+ })]),
17633
+ _: 1
17634
+ /* STABLE */
17635
+
17636
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
17637
+ class: "kq3d-model-excavate-tip"
17638
+ }, {
17639
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).skylineTips), 1
17640
+ /* TEXT */
17641
+ ), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)(" <p v-if=\"formItem.terrainStyle === 2\">{{ \"(\" + language.reverseDrawPolygon + \")\" }}</p> ")]),
17642
+ _: 1
17643
+ /* STABLE */
17644
+
17645
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_3, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
17646
+ onClick: _cache[5] || (_cache[5] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startOperation(), ["stop"])),
17647
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startOperation,
17648
+ type: "primary"
17649
+ }, {
17650
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startOperation), 1
17651
+ /* TEXT */
17652
+ )]),
17653
+ _: 1
17654
+ /* STABLE */
17655
+
17656
+ }, 8
17657
+ /* PROPS */
17658
+ , ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
17659
+ onClick: _cache[6] || (_cache[6] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clear(), ["stop"])),
17660
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear
17661
+ }, {
17662
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear), 1
17663
+ /* TEXT */
17664
+ )]),
17665
+ _: 1
17666
+ /* STABLE */
17667
+
17668
+ }, 8
17669
+ /* PROPS */
17670
+ , ["title"])])], 512
17671
+ /* NEED_PATCH */
17672
+ )], 2
17673
+ /* CLASS */
17674
+ );
17675
+ };
17676
+ }
17677
+
17678
+ }));
17679
+ ;// CONCATENATED MODULE: ./src/webgl/modelexcavate/ModelExcavate.vue?vue&type=script&setup=true&lang=js
17680
+
17681
+ ;// CONCATENATED MODULE: ./src/webgl/modelexcavate/ModelExcavate.vue
17682
+
17683
+
17684
+
17685
+ const __exports__ = ModelExcavatevue_type_script_setup_true_lang_js;
17686
+
17687
+ /* harmony default export */ var ModelExcavate = (__exports__);
17688
+ // EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
17689
+ var init_js_ = __webpack_require__(5406);
17690
+ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
17691
+ ;// CONCATENATED MODULE: ./src/webgl/modelexcavate/index.js
17692
+
17693
+
17694
+
17695
+
17696
+ ModelExcavate.install = (Vue, opts) => {
17697
+ init_js_default()(Vue, opts);
17698
+ Vue.component(ModelExcavate.name, ModelExcavate);
17699
+ };
17700
+
17701
+
17702
+
17238
17703
  /***/ }),
17239
17704
 
17240
17705
  /***/ 435:
@@ -23577,7 +24042,7 @@ ScanEffect.install = (Vue, opts) => {
23577
24042
 
23578
24043
  /***/ }),
23579
24044
 
23580
- /***/ 9474:
24045
+ /***/ 8876:
23581
24046
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
23582
24047
 
23583
24048
 
@@ -23648,6 +24113,7 @@ class SceneSetViewModel {
23648
24113
 
23649
24114
  this._viewer = viewer;
23650
24115
  this._defaultSkyBox = viewer.scene.skyBox;
24116
+ this._undergroundManager = new Cesium.Kq3dUndergroundManager(this._viewer.scene);
23651
24117
  } // 获取场景内容
23652
24118
 
23653
24119
 
@@ -24003,8 +24469,6 @@ class SceneSetViewModel {
24003
24469
 
24004
24470
 
24005
24471
  showGrid(type) {
24006
- console.log(this._viewer.scene.kq3dUndergroundManager);
24007
-
24008
24472
  if (this._gridLayer) {
24009
24473
  this._viewer.imageryLayers.remove(this._gridLayer);
24010
24474
 
@@ -24028,10 +24492,6 @@ class SceneSetViewModel {
24028
24492
 
24029
24493
 
24030
24494
  openUnderground(isOpen) {
24031
- if (!this._undergroundManager) {
24032
- this._undergroundManager = new Cesium.Kq3dUndergroundManager(this._viewer.scene);
24033
- }
24034
-
24035
24495
  this._undergroundManager.undergroundEnabled = isOpen;
24036
24496
  this._undergroundManager.transparentEnabled = isOpen;
24037
24497
  } // 设置地表透明度
@@ -25511,10 +25971,33 @@ const __default__ = {
25511
25971
  }));
25512
25972
  ;// CONCATENATED MODULE: ./src/webgl/sceneset/SceneSet.vue?vue&type=script&setup=true&lang=js
25513
25973
 
25974
+ // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
25975
+ var injectStylesIntoStyleTag = __webpack_require__(3379);
25976
+ var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
25977
+ // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/sceneset/SceneSet.vue?vue&type=style&index=0&id=8e9dc1cc&lang=scss
25978
+ var SceneSetvue_type_style_index_0_id_8e9dc1cc_lang_scss = __webpack_require__(3825);
25979
+ ;// CONCATENATED MODULE: ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/sceneset/SceneSet.vue?vue&type=style&index=0&id=8e9dc1cc&lang=scss
25980
+
25981
+
25982
+
25983
+ var options = {};
25984
+
25985
+ options.insert = "head";
25986
+ options.singleton = false;
25987
+
25988
+ var update = injectStylesIntoStyleTag_default()(SceneSetvue_type_style_index_0_id_8e9dc1cc_lang_scss/* default */.Z, options);
25989
+
25990
+
25991
+
25992
+ /* harmony default export */ var sceneset_SceneSetvue_type_style_index_0_id_8e9dc1cc_lang_scss = (SceneSetvue_type_style_index_0_id_8e9dc1cc_lang_scss/* default.locals */.Z.locals || {});
25993
+ ;// CONCATENATED MODULE: ./src/webgl/sceneset/SceneSet.vue?vue&type=style&index=0&id=8e9dc1cc&lang=scss
25994
+
25514
25995
  ;// CONCATENATED MODULE: ./src/webgl/sceneset/SceneSet.vue
25515
25996
 
25516
25997
 
25517
25998
 
25999
+ ;
26000
+
25518
26001
  const __exports__ = SceneSetvue_type_script_setup_true_lang_js;
25519
26002
 
25520
26003
  /* harmony default export */ var SceneSet = (__exports__);
@@ -30084,7 +30567,8 @@ class StatusBarViewModel {
30084
30567
  (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_viewer", null);
30085
30568
 
30086
30569
  viewer.statusBar.show = true;
30087
- viewer.statusBar.readyPromise.then(() => {
30570
+ let callback = viewer.statusBar.readyPromise.then || viewer.statusBar.readyPromise.resolve;
30571
+ callback(() => {
30088
30572
  // viewer.statusBar.container.style.bottom = "16px";
30089
30573
  //viewer.statusBar.container.parentElement.style.right = "0px!important";
30090
30574
  // console.log(viewer.statusBar.container.parentElement.style.right);
@@ -31591,11 +32075,20 @@ class VideoFusiontViewModel {
31591
32075
 
31592
32076
 
31593
32077
  fusion() {
32078
+ let type = 3;
32079
+
32080
+ if (this._options.videoPath.indexOf('.m3u8') > 0) {
32081
+ type = 5;
32082
+ }
32083
+
31594
32084
  this.clear();
31595
32085
  let cartographic = Cesium.Cartographic.fromCartesian(this._viewer.camera.positionWC);
32086
+ this._options.heading = Cesium.Math.toDegrees(this._viewer.camera.heading);
32087
+ this._options.pitch = Cesium.Math.toDegrees(this._viewer.camera.pitch);
32088
+ this._options.roll = Cesium.Math.toDegrees(this._viewer.camera.roll);
31596
32089
  var param = {
31597
32090
  url: this._options.videoPath,
31598
- type: 3,
32091
+ type: type,
31599
32092
  position: {
31600
32093
  x: Cesium.Math.toDegrees(cartographic.longitude),
31601
32094
  y: Cesium.Math.toDegrees(cartographic.latitude),
@@ -31625,6 +32118,15 @@ class VideoFusiontViewModel {
31625
32118
  if (this._videoFusion) {
31626
32119
  return this._videoFusion.param.position;
31627
32120
  }
32121
+ } // 获取HeadingPitchRoll
32122
+
32123
+
32124
+ getHeadingPitchRoll() {
32125
+ return {
32126
+ heading: Math.round(this._options.heading),
32127
+ pitch: Math.round(this._options.pitch),
32128
+ roll: Math.round(this._options.roll)
32129
+ };
31628
32130
  } //飞入
31629
32131
 
31630
32132
 
@@ -31850,9 +32352,6 @@ const __default__ = {
31850
32352
  expose
31851
32353
  }) {
31852
32354
  const props = __props;
31853
- const {
31854
- proxy
31855
- } = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
31856
32355
  let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
31857
32356
  let collapseValue = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(""); // 获取组件传参
31858
32357
 
@@ -31871,15 +32370,17 @@ const __default__ = {
31871
32370
  videoPath: props.settingParams && props.settingParams.videoPath || "",
31872
32371
  fov: props.settingParams && props.settingParams.fov || 40,
31873
32372
  far: props.settingParams && props.settingParams.far || 50,
31874
- heading: props.settingParams && props.settingParams.heading || 40,
31875
- pitch: props.settingParams && props.settingParams.pitch || -40,
31876
- roll: props.settingParams && props.settingParams.roll || 15,
32373
+ heading: 0,
32374
+ pitch: 0,
32375
+ roll: 0,
31877
32376
  alpha: props.settingParams && props.settingParams.alpha || 1.0,
31878
32377
  eclosion: props.settingParams && props.settingParams.eclosion || 0.5,
31879
32378
  showHideLine: props.settingParams && props.settingParams.showHideLine !== undefined || false
31880
32379
  }); // 显示坐标
31881
32380
 
31882
- let showCoordinate = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
32381
+ let showCoordinate = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false); // 显示朝向角俯仰角翻转角
32382
+
32383
+ let showHpr = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
31883
32384
  let viewModel = null; // 组件容器Ref
31884
32385
 
31885
32386
  let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
@@ -31912,9 +32413,6 @@ const __default__ = {
31912
32413
  videoPath: formItem.videoPath,
31913
32414
  fov: formItem.fov,
31914
32415
  far: formItem.far,
31915
- heading: formItem.heading,
31916
- pitch: formItem.pitch,
31917
- roll: formItem.roll,
31918
32416
  alpha: formItem.alpha,
31919
32417
  eclosion: formItem.eclosion,
31920
32418
  showHideLine: formItem.showHideLine
@@ -32001,6 +32499,7 @@ const __default__ = {
32001
32499
  if (viewModel) {
32002
32500
  viewModel.fusion();
32003
32501
  setCoordinate();
32502
+ serHpr();
32004
32503
  }
32005
32504
  }
32006
32505
  }
@@ -32020,6 +32519,18 @@ const __default__ = {
32020
32519
  formItem.maxHeight = coordinate.z + heightOffset;
32021
32520
  showCoordinate.value = true;
32022
32521
  }
32522
+ } // 设置朝向角俯仰角翻转角
32523
+
32524
+
32525
+ function serHpr() {
32526
+ let hpr = viewModel.getHeadingPitchRoll();
32527
+
32528
+ if (hpr) {
32529
+ formItem.heading = hpr.heading;
32530
+ formItem.pitch = hpr.pitch;
32531
+ formItem.roll = hpr.roll;
32532
+ showHpr.value = true;
32533
+ }
32023
32534
  } // 飞入
32024
32535
 
32025
32536
 
@@ -32030,6 +32541,7 @@ const __default__ = {
32030
32541
 
32031
32542
  function clearResult() {
32032
32543
  showCoordinate.value = false;
32544
+ showHpr.value = false;
32033
32545
  viewModel && viewModel.clear();
32034
32546
  } // 销毁
32035
32547
 
@@ -32436,7 +32948,7 @@ const __default__ = {
32436
32948
  _: 1
32437
32949
  /* STABLE */
32438
32950
 
32439
- }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
32951
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
32440
32952
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
32441
32953
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).heading
32442
32954
  }, {
@@ -32492,7 +33004,9 @@ const __default__ = {
32492
33004
  _: 1
32493
33005
  /* STABLE */
32494
33006
 
32495
- }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
33007
+ }, 512
33008
+ /* NEED_PATCH */
33009
+ ), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
32496
33010
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
32497
33011
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).pitch
32498
33012
  }, {
@@ -32548,7 +33062,9 @@ const __default__ = {
32548
33062
  _: 1
32549
33063
  /* STABLE */
32550
33064
 
32551
- }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
33065
+ }, 512
33066
+ /* NEED_PATCH */
33067
+ ), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
32552
33068
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
32553
33069
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).roll
32554
33070
  }, {
@@ -32604,7 +33120,9 @@ const __default__ = {
32604
33120
  _: 1
32605
33121
  /* STABLE */
32606
33122
 
32607
- }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
33123
+ }, 512
33124
+ /* NEED_PATCH */
33125
+ ), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
32608
33126
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
32609
33127
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).transparents
32610
33128
  }, {
@@ -32893,11 +33411,14 @@ class VideoProjectViewModel {
32893
33411
  project() {
32894
33412
  this.clear();
32895
33413
  let position = Cesium.Cartesian3.clone(this._viewer.camera.positionWC);
33414
+ this._options.heading = this._viewer.camera.heading;
33415
+ this._options.pitch = this._viewer.camera.pitch;
33416
+ this._options.roll = this._viewer.camera.roll;
32896
33417
  let options = {
32897
33418
  position: position,
32898
- heading: Cesium.Math.toRadians(this._options.heading),
32899
- pitch: Cesium.Math.toRadians(this._options.pitch),
32900
- roll: Cesium.Math.toRadians(this._options.roll),
33419
+ heading: this._options.heading,
33420
+ pitch: this._options.pitch,
33421
+ roll: this._options.roll,
32901
33422
  fov: Cesium.Math.toRadians(this._options.fov),
32902
33423
  aspectRatio: this._options.aspectRatio,
32903
33424
  far: this._options.far,
@@ -32926,6 +33447,15 @@ class VideoProjectViewModel {
32926
33447
  height: cartographic.height
32927
33448
  };
32928
33449
  }
33450
+ } // 获取HeadingPitchRoll
33451
+
33452
+
33453
+ getHeadingPitchRoll() {
33454
+ return {
33455
+ heading: Math.round(Cesium.Math.toDegrees(this._options.heading)),
33456
+ pitch: Math.round(Cesium.Math.toDegrees(this._options.pitch)),
33457
+ roll: Math.round(Cesium.Math.toDegrees(this._options.roll))
33458
+ };
32929
33459
  } //飞入
32930
33460
 
32931
33461
 
@@ -32934,9 +33464,9 @@ class VideoProjectViewModel {
32934
33464
  this._viewer.camera.flyTo({
32935
33465
  destination: this._projectVideo.position,
32936
33466
  orientation: {
32937
- heading: Cesium.Math.toRadians(this._options.heading),
32938
- pitch: Cesium.Math.toRadians(this._options.pitch),
32939
- roll: Cesium.Math.toRadians(this._options.roll)
33467
+ heading: this._options.heading,
33468
+ pitch: this._options.pitch,
33469
+ roll: this._options.roll
32940
33470
  }
32941
33471
  });
32942
33472
  }
@@ -33119,9 +33649,6 @@ const __default__ = {
33119
33649
  expose
33120
33650
  }) {
33121
33651
  const props = __props;
33122
- const {
33123
- proxy
33124
- } = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
33125
33652
  let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
33126
33653
  let collapseValue = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(""); // 获取组件传参
33127
33654
 
@@ -33137,18 +33664,20 @@ const __default__ = {
33137
33664
  height: 0,
33138
33665
  minHeight: -heightOffset,
33139
33666
  maxHeight: heightOffset,
33667
+ heading: 0,
33668
+ pitch: 0,
33669
+ roll: 0,
33140
33670
  videoPath: props.settingParams && props.settingParams.videoPath || "",
33141
33671
  projectType: props.settingParams && props.settingParams.projectType || 1,
33142
33672
  fov: props.settingParams && props.settingParams.fov || 20,
33143
33673
  aspectRatio: props.settingParams && props.settingParams.aspectRatio || 1.6,
33144
33674
  far: props.settingParams && props.settingParams.far || 50,
33145
- heading: props.settingParams && props.settingParams.heading || 330,
33146
- pitch: props.settingParams && props.settingParams.pitch || -12,
33147
- roll: props.settingParams && props.settingParams.roll || 0,
33148
33675
  showHideLine: props.settingParams && props.settingParams.showHideLine !== undefined || true
33149
33676
  }); // 显示坐标
33150
33677
 
33151
- let showCoordinate = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
33678
+ let showCoordinate = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false); // 显示朝向角俯仰角翻转角
33679
+
33680
+ let showHpr = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
33152
33681
  let viewModel = null; // 组件容器Ref
33153
33682
 
33154
33683
  let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
@@ -33183,9 +33712,6 @@ const __default__ = {
33183
33712
  fov: formItem.fov,
33184
33713
  aspectRatio: formItem.aspectRatio,
33185
33714
  far: formItem.far,
33186
- heading: formItem.heading,
33187
- pitch: formItem.pitch,
33188
- roll: formItem.roll,
33189
33715
  showHideLine: formItem.showHideLine
33190
33716
  };
33191
33717
  viewModel = new VideoProjectViewModel/* default */.Z(scenceView, options);
@@ -33270,9 +33796,11 @@ const __default__ = {
33270
33796
  if (viewModel) {
33271
33797
  viewModel.project();
33272
33798
  setCoordinate();
33799
+ serHpr();
33273
33800
  }
33274
33801
  }
33275
- }
33802
+ } // 设置坐标
33803
+
33276
33804
 
33277
33805
  function setCoordinate() {
33278
33806
  let coordinate = viewModel.getProjectCoordinate();
@@ -33289,6 +33817,18 @@ const __default__ = {
33289
33817
  formItem.maxHeight = coordinate.height + heightOffset;
33290
33818
  showCoordinate.value = true;
33291
33819
  }
33820
+ } // 设置朝向角俯仰角翻转角
33821
+
33822
+
33823
+ function serHpr() {
33824
+ let hpr = viewModel.getHeadingPitchRoll();
33825
+
33826
+ if (hpr) {
33827
+ formItem.heading = hpr.heading;
33828
+ formItem.pitch = hpr.pitch;
33829
+ formItem.roll = hpr.roll;
33830
+ showHpr.value = true;
33831
+ }
33292
33832
  } // 飞入
33293
33833
 
33294
33834
 
@@ -33299,6 +33839,7 @@ const __default__ = {
33299
33839
 
33300
33840
  function clearResult() {
33301
33841
  showCoordinate.value = false;
33842
+ showHpr.value = false;
33302
33843
  viewModel && viewModel.clear();
33303
33844
  } // 销毁
33304
33845
 
@@ -33820,7 +34361,7 @@ const __default__ = {
33820
34361
  _: 1
33821
34362
  /* STABLE */
33822
34363
 
33823
- }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
34364
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
33824
34365
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
33825
34366
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).heading
33826
34367
  }, {
@@ -33876,7 +34417,9 @@ const __default__ = {
33876
34417
  _: 1
33877
34418
  /* STABLE */
33878
34419
 
33879
- }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
34420
+ }, 512
34421
+ /* NEED_PATCH */
34422
+ ), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
33880
34423
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
33881
34424
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).pitch
33882
34425
  }, {
@@ -33932,7 +34475,9 @@ const __default__ = {
33932
34475
  _: 1
33933
34476
  /* STABLE */
33934
34477
 
33935
- }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
34478
+ }, 512
34479
+ /* NEED_PATCH */
34480
+ ), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
33936
34481
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
33937
34482
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).roll
33938
34483
  }, {
@@ -33988,7 +34533,9 @@ const __default__ = {
33988
34533
  _: 1
33989
34534
  /* STABLE */
33990
34535
 
33991
- }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
34536
+ }, 512
34537
+ /* NEED_PATCH */
34538
+ ), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
33992
34539
  style: {
33993
34540
  "margin-bottom": "8px"
33994
34541
  }
@@ -36070,6 +36617,22 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".coord-sightline{background:rgba(42,42
36070
36617
  /* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
36071
36618
 
36072
36619
 
36620
+ /***/ }),
36621
+
36622
+ /***/ 3825:
36623
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
36624
+
36625
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7705);
36626
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
36627
+ // Imports
36628
+
36629
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
36630
+ // Module
36631
+ ___CSS_LOADER_EXPORT___.push([module.id, ".cesium-performanceDisplay-defaultContainer{top:unset !important;bottom:16px;right:64px !important}", ""]);
36632
+ // Exports
36633
+ /* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
36634
+
36635
+
36073
36636
  /***/ }),
36074
36637
 
36075
36638
  /***/ 6854:
@@ -36587,6 +37150,8 @@ var limitheightanalysis = __webpack_require__(5551);
36587
37150
  var terrainprofileanalysis = __webpack_require__(7649);
36588
37151
  // EXTERNAL MODULE: ./src/webgl/scaneffect/index.js + 4 modules
36589
37152
  var scaneffect = __webpack_require__(7584);
37153
+ // EXTERNAL MODULE: ./src/webgl/modelexcavate/index.js + 4 modules
37154
+ var modelexcavate = __webpack_require__(1677);
36590
37155
  // EXTERNAL MODULE: ./src/webgl/sightlineanalysis/index.js + 5 modules
36591
37156
  var sightlineanalysis = __webpack_require__(6031);
36592
37157
  // EXTERNAL MODULE: ./src/webgl/viewshedanalysis/index.js + 4 modules
@@ -36635,8 +37200,8 @@ var statusbar = __webpack_require__(4388);
36635
37200
  var videoproject = __webpack_require__(7413);
36636
37201
  // EXTERNAL MODULE: ./src/webgl/videofusion/index.js + 3 modules
36637
37202
  var videofusion = __webpack_require__(7942);
36638
- // EXTERNAL MODULE: ./src/webgl/sceneset/index.js + 5 modules
36639
- var sceneset = __webpack_require__(9474);
37203
+ // EXTERNAL MODULE: ./src/webgl/sceneset/index.js + 7 modules
37204
+ var sceneset = __webpack_require__(8876);
36640
37205
  // EXTERNAL MODULE: ./src/webgl/light/index.js + 3 modules
36641
37206
  var light = __webpack_require__(9001);
36642
37207
  // EXTERNAL MODULE: ./src/webgl/geologicalbodyanalysis/index.js + 4 modules
@@ -36689,6 +37254,9 @@ var geologicalbodyanalysis = __webpack_require__(9378);
36689
37254
  // 扫描线
36690
37255
 
36691
37256
 
37257
+ // 模型开挖
37258
+
37259
+
36692
37260
 
36693
37261
 
36694
37262
 
@@ -36787,7 +37355,8 @@ const webglComponents = {
36787
37355
  Kq3dGeologicalBodyAnalysis: geologicalbodyanalysis["default"],
36788
37356
  Kq3dLimitHeightAnalysis: limitheightanalysis["default"],
36789
37357
  Kq3dTerrainProfileAnalysis: terrainprofileanalysis["default"],
36790
- Kq3dScanEffect: scaneffect["default"]
37358
+ Kq3dScanEffect: scaneffect["default"],
37359
+ Kq3dModelExcavate: modelexcavate["default"]
36791
37360
  }; // 全局引入
36792
37361
 
36793
37362
  const install = function (Vue, opts = {}) {
@@ -36862,7 +37431,7 @@ class DrawManager {
36862
37431
  //文字内容
36863
37432
  fontSize: 25,
36864
37433
  //文字大小
36865
- fontFamily: 'Microsoft YaHei',
37434
+ fontFamily: "Microsoft YaHei",
36866
37435
  color: "#ff0000" //文字颜色
36867
37436
  // opacity: 0.5, //文字颜色透明度
36868
37437
  // clampToGround: false //是否贴地
@@ -36967,11 +37536,11 @@ class DrawManager {
36967
37536
 
36968
37537
  let editFinishedEvent = this._drawHandler.editHandler.editFinished;
36969
37538
  this.editSelectedEvent.addEventListener(shape => {
36970
- if (shape) this.addMouseEvent('move', 'label');
37539
+ if (shape) this.addMouseEvent("move", "label");
36971
37540
  });
36972
37541
  editFinishedEvent.addEventListener(shape => {
36973
37542
  if (shape) {
36974
- this.removeMouseEvent('move', 'label');
37543
+ this.removeMouseEvent("move", "label");
36975
37544
  this._labelUpdateData && this._labelUpdateData();
36976
37545
  }
36977
37546
  }); // 关闭双击旋转交互
@@ -37036,7 +37605,7 @@ class DrawManager {
37036
37605
 
37037
37606
  getImageWithColor(imgUrl, color, width = 32, height = 32) {
37038
37607
  if (color) {
37039
- var svgStr = window.atob(imgUrl.split(',')[1]);
37608
+ var svgStr = window.atob(imgUrl.split(",")[1]);
37040
37609
  var regex = /#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/g; // 修改svg颜色
37041
37610
 
37042
37611
  svgStr = svgStr.replace(regex, color); // 修改svg大小
@@ -37487,7 +38056,7 @@ class DrawManager {
37487
38056
  if (!primitive) return;
37488
38057
  let type = primitive._geoType;
37489
38058
 
37490
- if (primitive.type === 'text') {
38059
+ if (primitive.type === "text") {
37491
38060
  if (primitive.fontSize != style.fontSize) {
37492
38061
  // 修改样式弹窗的 offset
37493
38062
  if (this._stylePopup && this._stylePopup.show) {
@@ -37499,7 +38068,7 @@ class DrawManager {
37499
38068
  primitive.fontFamily = style.fontFamily;
37500
38069
  primitive.text = style.content;
37501
38070
  primitive.fillColor = Cesium.Color.fromCssColorString(style.color);
37502
- } else if (type === 'point') {
38071
+ } else if (type === "point") {
37503
38072
  if (primitive.height != style.iconSize[1]) {
37504
38073
  // 修改样式弹窗的 offset
37505
38074
  if (this._stylePopup && this._stylePopup.show) {
@@ -37510,14 +38079,14 @@ class DrawManager {
37510
38079
  primitive.image = this.getImageWithColor(style.iconUrl, style.color, style.iconSize[0], style.iconSize[1]);
37511
38080
  primitive.width = style.iconSize[0];
37512
38081
  primitive.height = style.iconSize[1];
37513
- } else if (type === 'polyline' || type === 'polygon') {
38082
+ } else if (type === "polyline" || type === "polygon") {
37514
38083
  if (style.weight != undefined) primitive.width = style.weight;
37515
38084
  if (style.color != undefined) primitive.color = Cesium.Color.fromCssColorString(style.color);
37516
38085
  if (style.dashArray != undefined) primitive.dashArray = style.dashArray;
37517
38086
  if (style.opacity != undefined) primitive.color = primitive.color.withAlpha(style.opacity);
37518
38087
  }
37519
38088
 
37520
- if (type === 'polygon') {
38089
+ if (type === "polygon") {
37521
38090
  primitive.fill = style.fill === undefined ? true : style.fill;
37522
38091
 
37523
38092
  if (primitive.fill) {
@@ -37531,18 +38100,18 @@ class DrawManager {
37531
38100
  }
37532
38101
 
37533
38102
  getShapeTypeById(id) {
37534
- let type = '';
38103
+ let type = "";
37535
38104
 
37536
38105
  let primitive = this._drawLayer.getById(id);
37537
38106
 
37538
38107
  if (primitive) {
37539
38108
  type = primitive.type;
37540
- if (type == 'marker') type = 'Marker';
37541
- if (type == 'polyline') type = 'Line';
37542
- if (type == 'polygon') type = 'Polygon';
37543
- if (type == 'rectangle') type = 'Rectangle';
37544
- if (type == 'circle') type = 'Circle';
37545
- if (type == 'text') type = 'Text';
38109
+ if (type == "marker") type = "Marker";
38110
+ if (type == "polyline") type = "Line";
38111
+ if (type == "polygon") type = "Polygon";
38112
+ if (type == "rectangle") type = "Rectangle";
38113
+ if (type == "circle") type = "Circle";
38114
+ if (type == "text") type = "Text";
37546
38115
  }
37547
38116
 
37548
38117
  return type;
@@ -37630,7 +38199,7 @@ class DrawManager {
37630
38199
  let shape = null;
37631
38200
 
37632
38201
  if (type == "Marker") {
37633
- shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.MARKER.type, '', {
38202
+ shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.MARKER.type, "", {
37634
38203
  position: info.coordinate,
37635
38204
  disableDepthTestDistance: Number.POSITIVE_INFINITY,
37636
38205
  width: info.style.iconSize[0],
@@ -37638,7 +38207,7 @@ class DrawManager {
37638
38207
  image: this.getImageWithColor(info.style.iconUrl, info.style.color, info.style.iconSize[0], info.style.iconSize[1])
37639
38208
  });
37640
38209
  } else if (type == "Line") {
37641
- shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.POLYLINE.type, '', {
38210
+ shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.POLYLINE.type, "", {
37642
38211
  controlPoints: info.coordinate,
37643
38212
  color: Cesium.Color.fromCssColorString(info.style.color).withAlpha(info.style.opacity),
37644
38213
  width: info.style.weight,
@@ -37646,7 +38215,7 @@ class DrawManager {
37646
38215
  clampToGround: true
37647
38216
  });
37648
38217
  } else if (type == "Polygon") {
37649
- shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.POLYGON.type, '', {
38218
+ shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.POLYGON.type, "", {
37650
38219
  controlPoints: info.coordinate,
37651
38220
  color: Cesium.Color.fromCssColorString(info.style.color),
37652
38221
  width: info.style.weight,
@@ -37655,7 +38224,7 @@ class DrawManager {
37655
38224
  clampToGround: true
37656
38225
  });
37657
38226
  } else if (type == "Rectangle") {
37658
- shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.RECTANGLE.type, '', {
38227
+ shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.RECTANGLE.type, "", {
37659
38228
  controlPoints: info.coordinate,
37660
38229
  color: Cesium.Color.fromCssColorString(info.style.color),
37661
38230
  width: info.style.weight,
@@ -37664,7 +38233,7 @@ class DrawManager {
37664
38233
  clampToGround: true
37665
38234
  });
37666
38235
  } else if (type == "Circle") {
37667
- shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.CIRCLE.type, '', {
38236
+ shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.CIRCLE.type, "", {
37668
38237
  controlPoints: info.coordinate,
37669
38238
  color: Cesium.Color.fromCssColorString(info.style.color),
37670
38239
  width: info.style.weight,
@@ -37673,7 +38242,7 @@ class DrawManager {
37673
38242
  clampToGround: true
37674
38243
  });
37675
38244
  } else if (type == "Text") {
37676
- shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.TEXT.type, '', {
38245
+ shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.TEXT.type, "", {
37677
38246
  latlng: info.coordinate,
37678
38247
  text: info.style.content,
37679
38248
  fontSize: info.style.fontSize,
@@ -37711,12 +38280,111 @@ class DrawManager {
37711
38280
 
37712
38281
 
37713
38282
  this.enableEdit(true);
37714
- this.addMouseEvent('click', 'label'); // 标注坐标修改回调事件
38283
+ this.addMouseEvent("click", "label"); // 标注坐标修改回调事件
37715
38284
 
37716
38285
  this._labelUpdateData = updateData;
37717
38286
  return layerList;
37718
38287
  }
37719
38288
 
38289
+ createShapeFromFeature(feature, callFun, style, isLocation) {
38290
+ let type = feature.geometry.type;
38291
+ let shape = null,
38292
+ coordinate = null;
38293
+ let positions = [];
38294
+
38295
+ switch (type) {
38296
+ case "Point":
38297
+ case "MultiPoint":
38298
+ coordinate = feature.geometry.coordinates;
38299
+ if (type === "MultiPoint") coordinate = coordinate[0];
38300
+ let position = Cesium.Cartesian3.fromDegrees(coordinate[0], coordinate[1]);
38301
+ shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.MARKER.type, "", {
38302
+ position: position,
38303
+ disableDepthTestDistance: Number.POSITIVE_INFINITY,
38304
+ width: 32,
38305
+ height: 32,
38306
+ image: const_image_.MARKER_URL
38307
+ });
38308
+ break;
38309
+
38310
+ case "LineString":
38311
+ case "MultiLineString":
38312
+ coordinate = feature.geometry.coordinates;
38313
+ if (type === "MultiLineString") coordinate = coordinate[0];
38314
+ positions = [];
38315
+ coordinate.forEach(arr => {
38316
+ positions.push(Cesium.Cartesian3.fromDegrees(arr[0], arr[1]));
38317
+ });
38318
+ shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.POLYLINE.type, "线", {
38319
+ controlPoints: positions,
38320
+ color: Cesium.Color.fromCssColorString(style.color),
38321
+ width: style.weight,
38322
+ clampToGround: true
38323
+ });
38324
+ break;
38325
+
38326
+ case "Polygon":
38327
+ case "MultiPolygon":
38328
+ coordinate = feature.geometry.coordinates[0];
38329
+ if (type === "MultiPolygon") coordinate = coordinate[0];
38330
+ positions = [];
38331
+ coordinate.forEach(arr => {
38332
+ positions.push(Cesium.Cartesian3.fromDegrees(arr[0], arr[1]));
38333
+ });
38334
+ shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.POLYGON.type, "面", {
38335
+ controlPoints: positions,
38336
+ color: Cesium.Color.fromCssColorString(style.color),
38337
+ width: style.weight,
38338
+ fillColor: Cesium.Color.fromCssColorString(style.fillColor).withAlpha(style.fillOpacity),
38339
+ fill: true,
38340
+ clampToGround: true,
38341
+ material: this.getFillStyle(style.fillStyle)
38342
+ });
38343
+ break;
38344
+
38345
+ default:
38346
+ break;
38347
+ }
38348
+
38349
+ if (shape) {
38350
+ this._drawLayer.add(shape);
38351
+
38352
+ if (callFun) callFun(shape.guid);
38353
+
38354
+ if (isLocation) {
38355
+ setTimeout(() => {
38356
+ //this._drawHandler.startEdit(shape);
38357
+ let offset = new Cesium.HeadingPitchRange(0, Cesium.Math.toRadians(-90), 0);
38358
+
38359
+ this._viewer.camera.flyToBoundingSphere(shape.boundingSphere, {
38360
+ duration: 1.5,
38361
+ offset
38362
+ });
38363
+ }, 200);
38364
+ }
38365
+ }
38366
+ }
38367
+
38368
+ startEditById(id) {
38369
+ let shape = this._drawLayer.getById(id);
38370
+
38371
+ if (shape) {
38372
+ this._drawHandler.startEdit(shape);
38373
+ }
38374
+ }
38375
+
38376
+ getFeatureById(id) {
38377
+ let feature = null;
38378
+
38379
+ let shape = this._drawLayer.getById(id);
38380
+
38381
+ if (shape) {
38382
+ feature = shapeToGeoFeature(shape);
38383
+ }
38384
+
38385
+ return feature;
38386
+ }
38387
+
37720
38388
  removeGeometryById(id) {
37721
38389
  this._drawLayer.removeById(id); // 删除图形关联的样式设置框
37722
38390
 
@@ -37762,8 +38430,8 @@ class DrawManager {
37762
38430
  let offsetY = -8;
37763
38431
 
37764
38432
  if (!clickPosition) {
37765
- if (shape.type == 'marker') offsetY -= shape.height * shape._scaleHeight;
37766
- if (shape.type == 'text') offsetY -= shape.fontSize;
38433
+ if (shape.type == "marker") offsetY -= shape.height * shape._scaleHeight;
38434
+ if (shape.type == "text") offsetY -= shape.fontSize;
37767
38435
  }
37768
38436
 
37769
38437
  this.destroyStylePopup();
@@ -37839,7 +38507,7 @@ class DrawManager {
37839
38507
  that._mouseHandlers[target].setInputAction(function (movement) {
37840
38508
  if (target == "label") {
37841
38509
  if (that._drawHandler.editHandler._pickedAnchor && that._drawHandler.editHandler._shapeObject) {
37842
- that.removeMouseEvent('move', 'label');
38510
+ that.removeMouseEvent("move", "label");
37843
38511
  that.destroyStylePopup();
37844
38512
  }
37845
38513
  }
@@ -37885,7 +38553,7 @@ class DrawManager {
37885
38553
 
37886
38554
  this._handler.setInputAction(function (movement) {
37887
38555
  // that.closePointPoup();
37888
- that.openPointPoup('1002', 'AAA'); // that.removePointAll();
38556
+ that.openPointPoup("1002", "AAA"); // that.removePointAll();
37889
38557
  //that.clearPointByIdCustom();
37890
38558
  }, Cesium.ScreenSpaceEventType.RIGHT_CLICK);
37891
38559
  }
@@ -37919,7 +38587,7 @@ class DrawManager {
37919
38587
  createPointPoup(entity) {
37920
38588
  if (this._htmlTag) this._htmlTag.destroy();
37921
38589
  this._htmlTag = new Cesium.Kq3dHtmlTag(this._viewer, {
37922
- html: '<div>' + entity.properties.id._value + '</div>',
38590
+ html: "<div>" + entity.properties.id._value + "</div>",
37923
38591
  position: entity.position,
37924
38592
  anchor: [0, -entity.properties.height._value],
37925
38593
  alignmentMode: 7
@@ -39743,7 +40411,8 @@ class ScenceViewViewModel extends (mitt_default()) {
39743
40411
  sceneModePicker: false,
39744
40412
  infoBox: false,
39745
40413
  languageStyle: this._lang.type == 'zh' ? 'zh-CN' : 'en',
39746
- navigationHelpButton: false
40414
+ navigationHelpButton: false,
40415
+ statusBar: true
39747
40416
  };
39748
40417
 
39749
40418
  for (var key in this._props.options) {