@kq_npm/client3d_webgl_vue 4.1.0-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.
@@ -17297,6 +17297,409 @@ Measure.install = (Vue, opts) => {
17297
17297
 
17298
17298
 
17299
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
+
17300
17703
  /***/ }),
17301
17704
 
17302
17705
  /***/ 435:
@@ -30164,7 +30567,8 @@ class StatusBarViewModel {
30164
30567
  (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_viewer", null);
30165
30568
 
30166
30569
  viewer.statusBar.show = true;
30167
- viewer.statusBar.readyPromise.then(() => {
30570
+ let callback = viewer.statusBar.readyPromise.then || viewer.statusBar.readyPromise.resolve;
30571
+ callback(() => {
30168
30572
  // viewer.statusBar.container.style.bottom = "16px";
30169
30573
  //viewer.statusBar.container.parentElement.style.right = "0px!important";
30170
30574
  // console.log(viewer.statusBar.container.parentElement.style.right);
@@ -36746,6 +37150,8 @@ var limitheightanalysis = __webpack_require__(5551);
36746
37150
  var terrainprofileanalysis = __webpack_require__(7649);
36747
37151
  // EXTERNAL MODULE: ./src/webgl/scaneffect/index.js + 4 modules
36748
37152
  var scaneffect = __webpack_require__(7584);
37153
+ // EXTERNAL MODULE: ./src/webgl/modelexcavate/index.js + 4 modules
37154
+ var modelexcavate = __webpack_require__(1677);
36749
37155
  // EXTERNAL MODULE: ./src/webgl/sightlineanalysis/index.js + 5 modules
36750
37156
  var sightlineanalysis = __webpack_require__(6031);
36751
37157
  // EXTERNAL MODULE: ./src/webgl/viewshedanalysis/index.js + 4 modules
@@ -36848,6 +37254,9 @@ var geologicalbodyanalysis = __webpack_require__(9378);
36848
37254
  // 扫描线
36849
37255
 
36850
37256
 
37257
+ // 模型开挖
37258
+
37259
+
36851
37260
 
36852
37261
 
36853
37262
 
@@ -36946,7 +37355,8 @@ const webglComponents = {
36946
37355
  Kq3dGeologicalBodyAnalysis: geologicalbodyanalysis["default"],
36947
37356
  Kq3dLimitHeightAnalysis: limitheightanalysis["default"],
36948
37357
  Kq3dTerrainProfileAnalysis: terrainprofileanalysis["default"],
36949
- Kq3dScanEffect: scaneffect["default"]
37358
+ Kq3dScanEffect: scaneffect["default"],
37359
+ Kq3dModelExcavate: modelexcavate["default"]
36950
37360
  }; // 全局引入
36951
37361
 
36952
37362
  const install = function (Vue, opts = {}) {
@@ -37021,7 +37431,7 @@ class DrawManager {
37021
37431
  //文字内容
37022
37432
  fontSize: 25,
37023
37433
  //文字大小
37024
- fontFamily: 'Microsoft YaHei',
37434
+ fontFamily: "Microsoft YaHei",
37025
37435
  color: "#ff0000" //文字颜色
37026
37436
  // opacity: 0.5, //文字颜色透明度
37027
37437
  // clampToGround: false //是否贴地
@@ -37126,11 +37536,11 @@ class DrawManager {
37126
37536
 
37127
37537
  let editFinishedEvent = this._drawHandler.editHandler.editFinished;
37128
37538
  this.editSelectedEvent.addEventListener(shape => {
37129
- if (shape) this.addMouseEvent('move', 'label');
37539
+ if (shape) this.addMouseEvent("move", "label");
37130
37540
  });
37131
37541
  editFinishedEvent.addEventListener(shape => {
37132
37542
  if (shape) {
37133
- this.removeMouseEvent('move', 'label');
37543
+ this.removeMouseEvent("move", "label");
37134
37544
  this._labelUpdateData && this._labelUpdateData();
37135
37545
  }
37136
37546
  }); // 关闭双击旋转交互
@@ -37195,7 +37605,7 @@ class DrawManager {
37195
37605
 
37196
37606
  getImageWithColor(imgUrl, color, width = 32, height = 32) {
37197
37607
  if (color) {
37198
- var svgStr = window.atob(imgUrl.split(',')[1]);
37608
+ var svgStr = window.atob(imgUrl.split(",")[1]);
37199
37609
  var regex = /#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/g; // 修改svg颜色
37200
37610
 
37201
37611
  svgStr = svgStr.replace(regex, color); // 修改svg大小
@@ -37646,7 +38056,7 @@ class DrawManager {
37646
38056
  if (!primitive) return;
37647
38057
  let type = primitive._geoType;
37648
38058
 
37649
- if (primitive.type === 'text') {
38059
+ if (primitive.type === "text") {
37650
38060
  if (primitive.fontSize != style.fontSize) {
37651
38061
  // 修改样式弹窗的 offset
37652
38062
  if (this._stylePopup && this._stylePopup.show) {
@@ -37658,7 +38068,7 @@ class DrawManager {
37658
38068
  primitive.fontFamily = style.fontFamily;
37659
38069
  primitive.text = style.content;
37660
38070
  primitive.fillColor = Cesium.Color.fromCssColorString(style.color);
37661
- } else if (type === 'point') {
38071
+ } else if (type === "point") {
37662
38072
  if (primitive.height != style.iconSize[1]) {
37663
38073
  // 修改样式弹窗的 offset
37664
38074
  if (this._stylePopup && this._stylePopup.show) {
@@ -37669,14 +38079,14 @@ class DrawManager {
37669
38079
  primitive.image = this.getImageWithColor(style.iconUrl, style.color, style.iconSize[0], style.iconSize[1]);
37670
38080
  primitive.width = style.iconSize[0];
37671
38081
  primitive.height = style.iconSize[1];
37672
- } else if (type === 'polyline' || type === 'polygon') {
38082
+ } else if (type === "polyline" || type === "polygon") {
37673
38083
  if (style.weight != undefined) primitive.width = style.weight;
37674
38084
  if (style.color != undefined) primitive.color = Cesium.Color.fromCssColorString(style.color);
37675
38085
  if (style.dashArray != undefined) primitive.dashArray = style.dashArray;
37676
38086
  if (style.opacity != undefined) primitive.color = primitive.color.withAlpha(style.opacity);
37677
38087
  }
37678
38088
 
37679
- if (type === 'polygon') {
38089
+ if (type === "polygon") {
37680
38090
  primitive.fill = style.fill === undefined ? true : style.fill;
37681
38091
 
37682
38092
  if (primitive.fill) {
@@ -37690,18 +38100,18 @@ class DrawManager {
37690
38100
  }
37691
38101
 
37692
38102
  getShapeTypeById(id) {
37693
- let type = '';
38103
+ let type = "";
37694
38104
 
37695
38105
  let primitive = this._drawLayer.getById(id);
37696
38106
 
37697
38107
  if (primitive) {
37698
38108
  type = primitive.type;
37699
- if (type == 'marker') type = 'Marker';
37700
- if (type == 'polyline') type = 'Line';
37701
- if (type == 'polygon') type = 'Polygon';
37702
- if (type == 'rectangle') type = 'Rectangle';
37703
- if (type == 'circle') type = 'Circle';
37704
- 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";
37705
38115
  }
37706
38116
 
37707
38117
  return type;
@@ -37789,7 +38199,7 @@ class DrawManager {
37789
38199
  let shape = null;
37790
38200
 
37791
38201
  if (type == "Marker") {
37792
- shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.MARKER.type, '', {
38202
+ shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.MARKER.type, "", {
37793
38203
  position: info.coordinate,
37794
38204
  disableDepthTestDistance: Number.POSITIVE_INFINITY,
37795
38205
  width: info.style.iconSize[0],
@@ -37797,7 +38207,7 @@ class DrawManager {
37797
38207
  image: this.getImageWithColor(info.style.iconUrl, info.style.color, info.style.iconSize[0], info.style.iconSize[1])
37798
38208
  });
37799
38209
  } else if (type == "Line") {
37800
- shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.POLYLINE.type, '', {
38210
+ shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.POLYLINE.type, "", {
37801
38211
  controlPoints: info.coordinate,
37802
38212
  color: Cesium.Color.fromCssColorString(info.style.color).withAlpha(info.style.opacity),
37803
38213
  width: info.style.weight,
@@ -37805,7 +38215,7 @@ class DrawManager {
37805
38215
  clampToGround: true
37806
38216
  });
37807
38217
  } else if (type == "Polygon") {
37808
- shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.POLYGON.type, '', {
38218
+ shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.POLYGON.type, "", {
37809
38219
  controlPoints: info.coordinate,
37810
38220
  color: Cesium.Color.fromCssColorString(info.style.color),
37811
38221
  width: info.style.weight,
@@ -37814,7 +38224,7 @@ class DrawManager {
37814
38224
  clampToGround: true
37815
38225
  });
37816
38226
  } else if (type == "Rectangle") {
37817
- shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.RECTANGLE.type, '', {
38227
+ shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.RECTANGLE.type, "", {
37818
38228
  controlPoints: info.coordinate,
37819
38229
  color: Cesium.Color.fromCssColorString(info.style.color),
37820
38230
  width: info.style.weight,
@@ -37823,7 +38233,7 @@ class DrawManager {
37823
38233
  clampToGround: true
37824
38234
  });
37825
38235
  } else if (type == "Circle") {
37826
- shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.CIRCLE.type, '', {
38236
+ shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.CIRCLE.type, "", {
37827
38237
  controlPoints: info.coordinate,
37828
38238
  color: Cesium.Color.fromCssColorString(info.style.color),
37829
38239
  width: info.style.weight,
@@ -37832,7 +38242,7 @@ class DrawManager {
37832
38242
  clampToGround: true
37833
38243
  });
37834
38244
  } else if (type == "Text") {
37835
- shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.TEXT.type, '', {
38245
+ shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.TEXT.type, "", {
37836
38246
  latlng: info.coordinate,
37837
38247
  text: info.style.content,
37838
38248
  fontSize: info.style.fontSize,
@@ -37870,7 +38280,7 @@ class DrawManager {
37870
38280
 
37871
38281
 
37872
38282
  this.enableEdit(true);
37873
- this.addMouseEvent('click', 'label'); // 标注坐标修改回调事件
38283
+ this.addMouseEvent("click", "label"); // 标注坐标修改回调事件
37874
38284
 
37875
38285
  this._labelUpdateData = updateData;
37876
38286
  return layerList;
@@ -37888,7 +38298,7 @@ class DrawManager {
37888
38298
  coordinate = feature.geometry.coordinates;
37889
38299
  if (type === "MultiPoint") coordinate = coordinate[0];
37890
38300
  let position = Cesium.Cartesian3.fromDegrees(coordinate[0], coordinate[1]);
37891
- shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.MARKER.type, '', {
38301
+ shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.MARKER.type, "", {
37892
38302
  position: position,
37893
38303
  disableDepthTestDistance: Number.POSITIVE_INFINITY,
37894
38304
  width: 32,
@@ -37905,7 +38315,7 @@ class DrawManager {
37905
38315
  coordinate.forEach(arr => {
37906
38316
  positions.push(Cesium.Cartesian3.fromDegrees(arr[0], arr[1]));
37907
38317
  });
37908
- shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.POLYLINE.type, '线', {
38318
+ shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.POLYLINE.type, "线", {
37909
38319
  controlPoints: positions,
37910
38320
  color: Cesium.Color.fromCssColorString(style.color),
37911
38321
  width: style.weight,
@@ -37921,13 +38331,14 @@ class DrawManager {
37921
38331
  coordinate.forEach(arr => {
37922
38332
  positions.push(Cesium.Cartesian3.fromDegrees(arr[0], arr[1]));
37923
38333
  });
37924
- shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.POLYGON.type, '', {
38334
+ shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.POLYGON.type, "", {
37925
38335
  controlPoints: positions,
37926
38336
  color: Cesium.Color.fromCssColorString(style.color),
37927
38337
  width: style.weight,
37928
38338
  fillColor: Cesium.Color.fromCssColorString(style.fillColor).withAlpha(style.fillOpacity),
37929
38339
  fill: true,
37930
- clampToGround: true
38340
+ clampToGround: true,
38341
+ material: this.getFillStyle(style.fillStyle)
37931
38342
  });
37932
38343
  break;
37933
38344
 
@@ -37942,8 +38353,7 @@ class DrawManager {
37942
38353
 
37943
38354
  if (isLocation) {
37944
38355
  setTimeout(() => {
37945
- this._drawHandler.startEdit(shape);
37946
-
38356
+ //this._drawHandler.startEdit(shape);
37947
38357
  let offset = new Cesium.HeadingPitchRange(0, Cesium.Math.toRadians(-90), 0);
37948
38358
 
37949
38359
  this._viewer.camera.flyToBoundingSphere(shape.boundingSphere, {
@@ -38020,8 +38430,8 @@ class DrawManager {
38020
38430
  let offsetY = -8;
38021
38431
 
38022
38432
  if (!clickPosition) {
38023
- if (shape.type == 'marker') offsetY -= shape.height * shape._scaleHeight;
38024
- 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;
38025
38435
  }
38026
38436
 
38027
38437
  this.destroyStylePopup();
@@ -38097,7 +38507,7 @@ class DrawManager {
38097
38507
  that._mouseHandlers[target].setInputAction(function (movement) {
38098
38508
  if (target == "label") {
38099
38509
  if (that._drawHandler.editHandler._pickedAnchor && that._drawHandler.editHandler._shapeObject) {
38100
- that.removeMouseEvent('move', 'label');
38510
+ that.removeMouseEvent("move", "label");
38101
38511
  that.destroyStylePopup();
38102
38512
  }
38103
38513
  }
@@ -38143,7 +38553,7 @@ class DrawManager {
38143
38553
 
38144
38554
  this._handler.setInputAction(function (movement) {
38145
38555
  // that.closePointPoup();
38146
- that.openPointPoup('1002', 'AAA'); // that.removePointAll();
38556
+ that.openPointPoup("1002", "AAA"); // that.removePointAll();
38147
38557
  //that.clearPointByIdCustom();
38148
38558
  }, Cesium.ScreenSpaceEventType.RIGHT_CLICK);
38149
38559
  }
@@ -38177,7 +38587,7 @@ class DrawManager {
38177
38587
  createPointPoup(entity) {
38178
38588
  if (this._htmlTag) this._htmlTag.destroy();
38179
38589
  this._htmlTag = new Cesium.Kq3dHtmlTag(this._viewer, {
38180
- html: '<div>' + entity.properties.id._value + '</div>',
38590
+ html: "<div>" + entity.properties.id._value + "</div>",
38181
38591
  position: entity.position,
38182
38592
  anchor: [0, -entity.properties.height._value],
38183
38593
  alignmentMode: 7
@@ -40001,7 +40411,8 @@ class ScenceViewViewModel extends (mitt_default()) {
40001
40411
  sceneModePicker: false,
40002
40412
  infoBox: false,
40003
40413
  languageStyle: this._lang.type == 'zh' ? 'zh-CN' : 'en',
40004
- navigationHelpButton: false
40414
+ navigationHelpButton: false,
40415
+ statusBar: true
40005
40416
  };
40006
40417
 
40007
40418
  for (var key in this._props.options) {