@kq_npm/client3d_webgl_vue 4.5.16 → 4.5.17-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.
- package/adddata/index.js +4 -2
- package/aspectanalysis/index.js +3 -1
- package/boxclip/index.js +3 -1
- package/clientPrint/index.js +1796 -1740
- package/excavatefillanalysis/index.js +3 -1
- package/flight/index.js +3 -1
- package/floodanalysis/index.js +3 -1
- package/geologicalbodyanalysis/index.js +3 -1
- package/gpuspatialquery/index.js +3 -1
- package/heatmap3d/index.js +3 -1
- package/index.js +166 -134
- package/isolineanalysis/index.js +3 -1
- package/light/index.js +3 -1
- package/limitheightanalysis/index.js +3 -1
- package/measure/index.js +256 -233
- package/modelFlat/index.js +3 -1
- package/modelexcavate/index.js +3 -1
- package/modelfilter/index.js +3 -1
- package/modelprofileanalysis/index.js +3 -1
- package/modelselect/index.js +3 -1
- package/package.json +1 -1
- package/particleeffect/index.js +3 -1
- package/planeclip/index.js +3 -1
- package/roller/index.js +3 -1
- package/scaneffect/index.js +3 -1
- package/sceneadvancedtoimage/index.js +4 -2
- package/sceneapp/index.js +1053 -27
- package/sceneset/index.js +10 -8
- package/scenetohdimage/index.js +3 -1
- package/sceneview/index.js +1796 -1740
- package/screenshot/index.js +3 -1
- package/shadowanalysis/index.js +3 -1
- package/sightlineanalysis/index.js +3 -1
- package/skylineanalysis/index.js +3 -1
- package/slopeanalysis/index.js +3 -1
- package/slopeaspectanalysis/index.js +3 -1
- package/terrainoperation/index.js +3 -1
- package/terrainprofileanalysis/index.js +3 -1
- package/videofusion/index.js +3 -1
- package/videoproject/index.js +3 -1
- package/viewshedanalysis/index.js +3 -1
- package/weathereffect/index.js +3 -1
- package/wireframesketch/index.js +3 -1
package/sceneview/index.js
CHANGED
|
@@ -2010,7 +2010,7 @@ const __default__ = {
|
|
|
2010
2010
|
description: language.value.imagertyCZMLdescription
|
|
2011
2011
|
}*/];
|
|
2012
2012
|
if (props.hideServiceTypes) {
|
|
2013
|
-
let indexList = props.hideServiceTypes.split(
|
|
2013
|
+
let indexList = props.hideServiceTypes.split(",");
|
|
2014
2014
|
for (let i = types.length - 1; i >= 0; i--) {
|
|
2015
2015
|
if (indexList.includes(i.toString())) {
|
|
2016
2016
|
types.splice(i, 1);
|
|
@@ -2026,7 +2026,9 @@ const __default__ = {
|
|
|
2026
2026
|
});
|
|
2027
2027
|
watchCreateHeaderTemp();
|
|
2028
2028
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
2029
|
-
|
|
2029
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
2030
|
+
watchCreateHeaderTemp();
|
|
2031
|
+
});
|
|
2030
2032
|
});
|
|
2031
2033
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
2032
2034
|
if (scenceView) {
|
|
@@ -2568,7 +2570,9 @@ const __default__ = {
|
|
|
2568
2570
|
});
|
|
2569
2571
|
watchCreateHeaderTemp();
|
|
2570
2572
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
2571
|
-
|
|
2573
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
2574
|
+
watchCreateHeaderTemp();
|
|
2575
|
+
});
|
|
2572
2576
|
});
|
|
2573
2577
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
2574
2578
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
@@ -3504,7 +3508,9 @@ const __default__ = {
|
|
|
3504
3508
|
});
|
|
3505
3509
|
watchCreateHeaderTemp();
|
|
3506
3510
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
3507
|
-
|
|
3511
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
3512
|
+
watchCreateHeaderTemp();
|
|
3513
|
+
});
|
|
3508
3514
|
});
|
|
3509
3515
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
3510
3516
|
//父组 件ScenceView初始化完成后执行
|
|
@@ -4382,34 +4388,28 @@ const _hoisted_33 = {
|
|
|
4382
4388
|
};
|
|
4383
4389
|
const _hoisted_34 = ["src"];
|
|
4384
4390
|
const _hoisted_35 = {
|
|
4385
|
-
class: "show-right-box-btn"
|
|
4386
|
-
};
|
|
4387
|
-
const _hoisted_36 = {
|
|
4388
|
-
class: "btn-group"
|
|
4389
|
-
};
|
|
4390
|
-
const _hoisted_37 = {
|
|
4391
4391
|
class: "kq3d-client-print-titleContainerDiv"
|
|
4392
4392
|
};
|
|
4393
|
-
const
|
|
4393
|
+
const _hoisted_36 = {
|
|
4394
4394
|
key: 0,
|
|
4395
4395
|
class: "lengendTitle"
|
|
4396
4396
|
};
|
|
4397
|
-
const
|
|
4398
|
-
const
|
|
4399
|
-
const
|
|
4397
|
+
const _hoisted_37 = /*#__PURE__*/(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", null, "图例", -1 /* HOISTED */);
|
|
4398
|
+
const _hoisted_38 = [_hoisted_37];
|
|
4399
|
+
const _hoisted_39 = {
|
|
4400
4400
|
class: "legend-panel"
|
|
4401
4401
|
};
|
|
4402
|
-
const
|
|
4403
|
-
const
|
|
4404
|
-
const
|
|
4405
|
-
const
|
|
4406
|
-
const
|
|
4402
|
+
const _hoisted_40 = ["src"];
|
|
4403
|
+
const _hoisted_41 = ["id"];
|
|
4404
|
+
const _hoisted_42 = ["onClick"];
|
|
4405
|
+
const _hoisted_43 = ["src", "width", "height"];
|
|
4406
|
+
const _hoisted_44 = {
|
|
4407
4407
|
class: "kq3d-client-print-infomationContainer"
|
|
4408
4408
|
};
|
|
4409
|
-
const
|
|
4409
|
+
const _hoisted_45 = {
|
|
4410
4410
|
class: "kq3d-client-print-companyName"
|
|
4411
4411
|
};
|
|
4412
|
-
const
|
|
4412
|
+
const _hoisted_46 = {
|
|
4413
4413
|
class: "kq3d-client-print-systemTime"
|
|
4414
4414
|
};
|
|
4415
4415
|
|
|
@@ -4762,8 +4762,11 @@ const __default__ = {
|
|
|
4762
4762
|
scenceView._layerManager._layerTreeData = scenceView._layerManager._layerListData;
|
|
4763
4763
|
scenceView.fire("resetLayerDatas");
|
|
4764
4764
|
});
|
|
4765
|
-
|
|
4765
|
+
} else {
|
|
4766
|
+
scenceView._layerManager._layerTreeData = scenceView._layerManager._layerListData;
|
|
4767
|
+
scenceView.fire("resetLayerDatas");
|
|
4766
4768
|
}
|
|
4769
|
+
scenceView.setViewPosition(scenceView_partent.getViewPosition());
|
|
4767
4770
|
}
|
|
4768
4771
|
}
|
|
4769
4772
|
initControl();
|
|
@@ -6459,46 +6462,7 @@ const __default__ = {
|
|
|
6459
6462
|
_: 1 /* STABLE */
|
|
6460
6463
|
})])]),
|
|
6461
6464
|
_: 1 /* STABLE */
|
|
6462
|
-
})], 512 /* NEED_PATCH */), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isCenterPicSet)]])], 2 /* CLASS */)], 2 /* CLASS */)], 4 /* STYLE */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.
|
|
6463
|
-
onClick: Enlarge,
|
|
6464
|
-
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).equalscalezoom,
|
|
6465
|
-
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) === 1 ? 'clickborder' : '')
|
|
6466
|
-
}, {
|
|
6467
|
-
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_icon, null, {
|
|
6468
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(icons_vue_.ZoomIn))]),
|
|
6469
|
-
_: 1 /* STABLE */
|
|
6470
|
-
})]),
|
|
6471
|
-
_: 1 /* STABLE */
|
|
6472
|
-
}, 8 /* PROPS */, ["title", "class"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
6473
|
-
onClick: Narrow,
|
|
6474
|
-
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).scaleddown,
|
|
6475
|
-
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) === 2 ? 'clickborder' : '')
|
|
6476
|
-
}, {
|
|
6477
|
-
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_icon, null, {
|
|
6478
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(icons_vue_.ZoomOut))]),
|
|
6479
|
-
_: 1 /* STABLE */
|
|
6480
|
-
})]),
|
|
6481
|
-
_: 1 /* STABLE */
|
|
6482
|
-
}, 8 /* PROPS */, ["title", "class"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
6483
|
-
onClick: MovePrint,
|
|
6484
|
-
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).printdrag,
|
|
6485
|
-
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) === 3 ? 'clickborder' : '')
|
|
6486
|
-
}, {
|
|
6487
|
-
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_icon, null, {
|
|
6488
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(icons_vue_.Rank))]),
|
|
6489
|
-
_: 1 /* STABLE */
|
|
6490
|
-
})]),
|
|
6491
|
-
_: 1 /* STABLE */
|
|
6492
|
-
}, 8 /* PROPS */, ["title", "class"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
6493
|
-
onClick: RefreshStatus,
|
|
6494
|
-
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).restore
|
|
6495
|
-
}, {
|
|
6496
|
-
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_icon, null, {
|
|
6497
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(icons_vue_.Refresh))]),
|
|
6498
|
-
_: 1 /* STABLE */
|
|
6499
|
-
})]),
|
|
6500
|
-
_: 1 /* STABLE */
|
|
6501
|
-
}, 8 /* PROPS */, ["title"])])]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
|
|
6465
|
+
})], 512 /* NEED_PATCH */), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isCenterPicSet)]])], 2 /* CLASS */)], 2 /* CLASS */)], 4 /* STYLE */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)(" <div class=\"show-right-box-btn\">\r\n <div class=\"btn-group\">\r\n <kq-button @click=\"Enlarge\" :title=\"language.equalscalezoom\" :class=\"isActive === 1 ? 'clickborder' : ''\">\r\n <kq-icon><ZoomIn /></kq-icon>\r\n </kq-button>\r\n <kq-button @click=\"Narrow\" :title=\"language.scaleddown\" :class=\"isActive === 2 ? 'clickborder' : ''\">\r\n <kq-icon><ZoomOut /></kq-icon>\r\n </kq-button>\r\n <kq-button @click=\"MovePrint\" :title=\"language.printdrag\" :class=\"isActive === 3 ? 'clickborder' : ''\">\r\n <kq-icon><Rank /></kq-icon>\r\n </kq-button>\r\n <kq-button @click=\"RefreshStatus\" :title=\"language.restore\">\r\n <kq-icon><Refresh /></kq-icon>\r\n </kq-button>\r\n </div>\r\n </div> "), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
|
|
6502
6466
|
ref_key: "printDiv",
|
|
6503
6467
|
ref: printDiv,
|
|
6504
6468
|
class: "kq3d-client-print-printDiv"
|
|
@@ -6509,7 +6473,7 @@ const __default__ = {
|
|
|
6509
6473
|
class: "kq3d-client-print-mapContainerDiv kq3d-client-print-a4VSize",
|
|
6510
6474
|
onselectstart: "return false",
|
|
6511
6475
|
id: "printMap"
|
|
6512
|
-
}, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div",
|
|
6476
|
+
}, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_35, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
|
|
6513
6477
|
ref_key: "titleRef",
|
|
6514
6478
|
ref: titleRef,
|
|
6515
6479
|
style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)({
|
|
@@ -6548,13 +6512,13 @@ const __default__ = {
|
|
|
6548
6512
|
ref_key: "lengend_ref",
|
|
6549
6513
|
ref: lengend_ref,
|
|
6550
6514
|
class: "kq-legend-box"
|
|
6551
|
-
}, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(legendList).value && (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(legendList).value.length > 0 ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div",
|
|
6552
|
-
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)(((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div",
|
|
6515
|
+
}, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(legendList).value && (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(legendList).value.length > 0 ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_36, _hoisted_38)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)(" <kq-space direction=\"vertical\" alignment=\"flex-start\"> "), ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.Fragment, null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.renderList)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(legendList).value, legend => {
|
|
6516
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)(((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_39, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("img", {
|
|
6553
6517
|
src: legend.src,
|
|
6554
6518
|
style: {
|
|
6555
6519
|
"padding-right": "8px"
|
|
6556
6520
|
}
|
|
6557
|
-
}, null, 8 /* PROPS */,
|
|
6521
|
+
}, null, 8 /* PROPS */, _hoisted_40), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("label", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)(legend.legendName), 1 /* TEXT */)], 512 /* NEED_PATCH */)), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, legend.isShow]]);
|
|
6558
6522
|
}), 256 /* UNKEYED_FRAGMENT */)), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)(" </kq-space> ")], 512 /* NEED_PATCH */)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)], 32 /* HYDRATE_EVENTS */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("指北针"), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
|
|
6559
6523
|
class: "kq3d-client-print-compassDiv",
|
|
6560
6524
|
onMouseover: setdragCursor,
|
|
@@ -6588,7 +6552,7 @@ const __default__ = {
|
|
|
6588
6552
|
}, {
|
|
6589
6553
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(icons_vue_.Close))]),
|
|
6590
6554
|
_: 1 /* STABLE */
|
|
6591
|
-
}, 8 /* PROPS */, ["title"])], 8 /* PROPS */,
|
|
6555
|
+
}, 8 /* PROPS */, ["title"])], 8 /* PROPS */, _hoisted_42)], 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_41)), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, item.data.isShow]]);
|
|
6592
6556
|
}), 128 /* KEYED_FRAGMENT */)), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("图片"), ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.Fragment, null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.renderList)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(fileList).value, item => {
|
|
6593
6557
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", {
|
|
6594
6558
|
key: item.uid,
|
|
@@ -6600,10 +6564,10 @@ const __default__ = {
|
|
|
6600
6564
|
alt: "",
|
|
6601
6565
|
width: item.width,
|
|
6602
6566
|
height: item.height
|
|
6603
|
-
}, null, 8 /* PROPS */,
|
|
6567
|
+
}, null, 8 /* PROPS */, _hoisted_43)], 32 /* HYDRATE_EVENTS */);
|
|
6604
6568
|
}), 128 /* KEYED_FRAGMENT */))]),
|
|
6605
6569
|
_: 1 /* STABLE */
|
|
6606
|
-
}, 8 /* PROPS */, ["options", "service", "scenceInfo", "showToolButtons", "defaultShowLayerNames", "toolButtonsPosition", "showLogo"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)], 512 /* NEED_PATCH */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div",
|
|
6570
|
+
}, 8 /* PROPS */, ["options", "service", "scenceInfo", "showToolButtons", "defaultShowLayerNames", "toolButtonsPosition", "showLogo"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)], 512 /* NEED_PATCH */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_44, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_45, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).printcompany) + ":" + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(setFooterDataform).companyName), 1 /* TEXT */)]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_46, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).printdate) + ":" + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(systemTime)), 1 /* TEXT */)])])], 512 /* NEED_PATCH */)]),
|
|
6607
6571
|
_: 1 /* STABLE */
|
|
6608
6572
|
})], 512 /* NEED_PATCH */)], 512 /* NEED_PATCH */);
|
|
6609
6573
|
};
|
|
@@ -7319,7 +7283,7 @@ Compass.install = (Vue, opts) => {
|
|
|
7319
7283
|
/* harmony import */ var _webgl_compass__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8247);
|
|
7320
7284
|
/* harmony import */ var _webgl_clientPrint__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2102);
|
|
7321
7285
|
/* harmony import */ var _webgl_baseterraingallery__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3253);
|
|
7322
|
-
/* harmony import */ var _webgl_measure__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
|
|
7286
|
+
/* harmony import */ var _webgl_measure__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(6855);
|
|
7323
7287
|
/* harmony import */ var _webgl_flight__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(5702);
|
|
7324
7288
|
/* harmony import */ var _webgl_gpuspatialquery__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(4983);
|
|
7325
7289
|
/* harmony import */ var _webgl_modelselect__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(686);
|
|
@@ -7358,10 +7322,10 @@ Compass.install = (Vue, opts) => {
|
|
|
7358
7322
|
/* harmony import */ var _webgl_statusbar__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(2740);
|
|
7359
7323
|
/* harmony import */ var _webgl_videoproject__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(1278);
|
|
7360
7324
|
/* harmony import */ var _webgl_videofusion__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(9343);
|
|
7361
|
-
/* harmony import */ var _webgl_sceneset__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(
|
|
7325
|
+
/* harmony import */ var _webgl_sceneset__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(2549);
|
|
7362
7326
|
/* harmony import */ var _webgl_light__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(5819);
|
|
7363
7327
|
/* harmony import */ var _webgl_geologicalbodyanalysis__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(3295);
|
|
7364
|
-
/* harmony import */ var _webgl_sceneapp__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(
|
|
7328
|
+
/* harmony import */ var _webgl_sceneapp__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(7913);
|
|
7365
7329
|
/*
|
|
7366
7330
|
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
7367
7331
|
* All rights reserved.
|
|
@@ -7834,7 +7798,9 @@ const __default__ = {
|
|
|
7834
7798
|
});
|
|
7835
7799
|
watchCreateHeaderTemp();
|
|
7836
7800
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
7837
|
-
|
|
7801
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
7802
|
+
watchCreateHeaderTemp();
|
|
7803
|
+
});
|
|
7838
7804
|
});
|
|
7839
7805
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
7840
7806
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
@@ -8815,7 +8781,9 @@ const __default__ = {
|
|
|
8815
8781
|
});
|
|
8816
8782
|
watchCreateHeaderTemp();
|
|
8817
8783
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
8818
|
-
|
|
8784
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
8785
|
+
watchCreateHeaderTemp();
|
|
8786
|
+
});
|
|
8819
8787
|
});
|
|
8820
8788
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
8821
8789
|
if (scenceView) {
|
|
@@ -9855,7 +9823,9 @@ const __default__ = {
|
|
|
9855
9823
|
});
|
|
9856
9824
|
watchCreateHeaderTemp();
|
|
9857
9825
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
9858
|
-
|
|
9826
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
9827
|
+
watchCreateHeaderTemp();
|
|
9828
|
+
});
|
|
9859
9829
|
});
|
|
9860
9830
|
gis_utils_.utils.getWebMap(props.target, scenceView => {
|
|
9861
9831
|
if (scenceView) {
|
|
@@ -10557,7 +10527,9 @@ const __default__ = {
|
|
|
10557
10527
|
});
|
|
10558
10528
|
watchCreateHeaderTemp();
|
|
10559
10529
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
10560
|
-
|
|
10530
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
10531
|
+
watchCreateHeaderTemp();
|
|
10532
|
+
});
|
|
10561
10533
|
});
|
|
10562
10534
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
10563
10535
|
//父组 件ScenceView初始化完成后执行
|
|
@@ -11307,7 +11279,9 @@ const __default__ = {
|
|
|
11307
11279
|
});
|
|
11308
11280
|
watchCreateHeaderTemp();
|
|
11309
11281
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
11310
|
-
|
|
11282
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
11283
|
+
watchCreateHeaderTemp();
|
|
11284
|
+
});
|
|
11311
11285
|
});
|
|
11312
11286
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
11313
11287
|
if (scenceView) {
|
|
@@ -12615,7 +12589,9 @@ const __default__ = {
|
|
|
12615
12589
|
});
|
|
12616
12590
|
watchCreateHeaderTemp();
|
|
12617
12591
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
12618
|
-
|
|
12592
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
12593
|
+
watchCreateHeaderTemp();
|
|
12594
|
+
});
|
|
12619
12595
|
});
|
|
12620
12596
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
12621
12597
|
//父组 件ScenceView初始化完成后执行
|
|
@@ -13978,7 +13954,9 @@ const __default__ = {
|
|
|
13978
13954
|
});
|
|
13979
13955
|
watchCreateHeaderTemp();
|
|
13980
13956
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
13981
|
-
|
|
13957
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
13958
|
+
watchCreateHeaderTemp();
|
|
13959
|
+
});
|
|
13982
13960
|
});
|
|
13983
13961
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
13984
13962
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
@@ -15814,7 +15792,9 @@ const __default__ = {
|
|
|
15814
15792
|
});
|
|
15815
15793
|
watchCreateHeaderTemp();
|
|
15816
15794
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
15817
|
-
|
|
15795
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
15796
|
+
watchCreateHeaderTemp();
|
|
15797
|
+
});
|
|
15818
15798
|
});
|
|
15819
15799
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
15820
15800
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
@@ -16469,7 +16449,9 @@ const __default__ = {
|
|
|
16469
16449
|
});
|
|
16470
16450
|
watchCreateHeaderTemp();
|
|
16471
16451
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
16472
|
-
|
|
16452
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
16453
|
+
watchCreateHeaderTemp();
|
|
16454
|
+
});
|
|
16473
16455
|
});
|
|
16474
16456
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言类型
|
|
16475
16457
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
@@ -16726,33 +16708,18 @@ LimitHeightAnalysis.install = (Vue, opts) => {
|
|
|
16726
16708
|
|
|
16727
16709
|
/***/ }),
|
|
16728
16710
|
|
|
16729
|
-
/***/
|
|
16711
|
+
/***/ 193:
|
|
16730
16712
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
16731
16713
|
|
|
16732
16714
|
"use strict";
|
|
16733
|
-
|
|
16734
|
-
|
|
16735
|
-
|
|
16736
|
-
|
|
16737
|
-
|
|
16738
|
-
|
|
16739
|
-
|
|
16740
|
-
|
|
16741
|
-
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.constructor.js"
|
|
16742
|
-
var esnext_iterator_constructor_js_ = __webpack_require__(8470);
|
|
16743
|
-
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.for-each.js"
|
|
16744
|
-
var esnext_iterator_for_each_js_ = __webpack_require__(1058);
|
|
16745
|
-
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
16746
|
-
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
|
|
16747
|
-
// EXTERNAL MODULE: external "@element-plus/icons-vue"
|
|
16748
|
-
var icons_vue_ = __webpack_require__(8422);
|
|
16749
|
-
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
16750
|
-
var client_icons_vue_ = __webpack_require__(348);
|
|
16751
|
-
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
16752
|
-
var gis_utils_ = __webpack_require__(7135);
|
|
16753
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js + 3 modules
|
|
16754
|
-
var defineProperty = __webpack_require__(5301);
|
|
16755
|
-
;// CONCATENATED MODULE: ./src/webgl/measure/MeasureViewModel.js
|
|
16715
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16716
|
+
/* harmony export */ "Z": function() { return /* binding */ MeasureViewModel; }
|
|
16717
|
+
/* harmony export */ });
|
|
16718
|
+
/* harmony import */ var _Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5301);
|
|
16719
|
+
/* harmony import */ var core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8470);
|
|
16720
|
+
/* harmony import */ var core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
16721
|
+
/* harmony import */ var core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1058);
|
|
16722
|
+
/* harmony import */ var core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
16756
16723
|
|
|
16757
16724
|
|
|
16758
16725
|
|
|
@@ -16763,14 +16730,14 @@ var defineProperty = __webpack_require__(5301);
|
|
|
16763
16730
|
//测量操作类
|
|
16764
16731
|
class MeasureViewModel {
|
|
16765
16732
|
constructor(viewer) {
|
|
16766
|
-
(0,
|
|
16767
|
-
(0,
|
|
16733
|
+
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, "_viewer", null);
|
|
16734
|
+
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, "_measureHandler", null);
|
|
16768
16735
|
//测量三维对象
|
|
16769
|
-
(0,
|
|
16736
|
+
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, "measureEvent", null);
|
|
16770
16737
|
//测量事件
|
|
16771
|
-
(0,
|
|
16738
|
+
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, "activeEvent", null);
|
|
16772
16739
|
//活动事件
|
|
16773
|
-
(0,
|
|
16740
|
+
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, "nauticalMileUnit", "nmi");
|
|
16774
16741
|
this._measureHandler = new Cesium.Kq3dMeasureHandler(viewer);
|
|
16775
16742
|
this._viewer = viewer;
|
|
16776
16743
|
this.measureEvent = this._measureHandler.measureEvent;
|
|
@@ -16918,139 +16885,246 @@ class MeasureViewModel {
|
|
|
16918
16885
|
this._measureHandler = null;
|
|
16919
16886
|
}
|
|
16920
16887
|
}
|
|
16921
|
-
|
|
16922
|
-
|
|
16888
|
+
|
|
16889
|
+
/***/ }),
|
|
16890
|
+
|
|
16891
|
+
/***/ 6855:
|
|
16892
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
16893
|
+
|
|
16894
|
+
"use strict";
|
|
16895
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16896
|
+
/* harmony export */ "default": function() { return /* reexport safe */ _Measure__WEBPACK_IMPORTED_MODULE_0__.Z; }
|
|
16897
|
+
/* harmony export */ });
|
|
16898
|
+
/* harmony import */ var _Measure__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7226);
|
|
16899
|
+
/* harmony import */ var _MeasureViewModel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(193);
|
|
16900
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7997);
|
|
16901
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_2__);
|
|
16902
|
+
/*
|
|
16903
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
16904
|
+
* All rights reserved.
|
|
16905
|
+
*/
|
|
16906
|
+
|
|
16907
|
+
|
|
16908
|
+
|
|
16909
|
+
_Measure__WEBPACK_IMPORTED_MODULE_0__/* ["default"].install */ .Z.install = (Vue, opts) => {
|
|
16910
|
+
_init__WEBPACK_IMPORTED_MODULE_2___default()(Vue, opts);
|
|
16911
|
+
Vue.component(_Measure__WEBPACK_IMPORTED_MODULE_0__/* ["default"].name */ .Z.name, _Measure__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z);
|
|
16912
|
+
};
|
|
16913
|
+
|
|
16914
|
+
|
|
16915
|
+
/***/ }),
|
|
16916
|
+
|
|
16917
|
+
/***/ 9187:
|
|
16918
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
16919
|
+
|
|
16920
|
+
"use strict";
|
|
16921
|
+
|
|
16922
|
+
// EXPORTS
|
|
16923
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
16924
|
+
"default": function() { return /* reexport */ ModelFlat; }
|
|
16925
|
+
});
|
|
16926
|
+
|
|
16927
|
+
// UNUSED EXPORTS: ModelFlatViewModel
|
|
16928
|
+
|
|
16929
|
+
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
16930
|
+
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
|
|
16931
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
16932
|
+
var gis_utils_ = __webpack_require__(7135);
|
|
16933
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js + 3 modules
|
|
16934
|
+
var defineProperty = __webpack_require__(5301);
|
|
16935
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
|
|
16936
|
+
var es_array_push_js_ = __webpack_require__(2118);
|
|
16937
|
+
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.constructor.js"
|
|
16938
|
+
var esnext_iterator_constructor_js_ = __webpack_require__(8470);
|
|
16939
|
+
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.for-each.js"
|
|
16940
|
+
var esnext_iterator_for_each_js_ = __webpack_require__(1058);
|
|
16923
16941
|
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
16924
16942
|
var message = __webpack_require__(1349);
|
|
16925
|
-
|
|
16926
|
-
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
16927
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/measure/Measure.vue?vue&type=script&setup=true&lang=js
|
|
16943
|
+
;// CONCATENATED MODULE: ./src/webgl/modelFlat/ModelFlatViewModel.js
|
|
16928
16944
|
|
|
16929
16945
|
|
|
16930
16946
|
|
|
16947
|
+
|
|
16948
|
+
/*
|
|
16949
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
16950
|
+
* All rights reserved.
|
|
16951
|
+
*/
|
|
16952
|
+
//模型平整逻辑类
|
|
16953
|
+
|
|
16954
|
+
class ModelFlatViewModel {
|
|
16955
|
+
constructor(scenceView, viewModel) {
|
|
16956
|
+
(0,defineProperty/* default */.Z)(this, "_viewer", null);
|
|
16957
|
+
//三维viewer对象
|
|
16958
|
+
(0,defineProperty/* default */.Z)(this, "_drawManager", null);
|
|
16959
|
+
//绘制管理对象
|
|
16960
|
+
(0,defineProperty/* default */.Z)(this, "_options", {});
|
|
16961
|
+
//全局参数
|
|
16962
|
+
(0,defineProperty/* default */.Z)(this, "_removeEventListener", null);
|
|
16963
|
+
//绘制完成监听事件
|
|
16964
|
+
(0,defineProperty/* default */.Z)(this, "_measureHandler", null);
|
|
16965
|
+
//测量三维对象
|
|
16966
|
+
(0,defineProperty/* default */.Z)(this, "_measureResult", null);
|
|
16967
|
+
//测量结果
|
|
16968
|
+
(0,defineProperty/* default */.Z)(this, "_flatteningPolygonTex", null);
|
|
16969
|
+
// 平整对象
|
|
16970
|
+
(0,defineProperty/* default */.Z)(this, "_assistPolygons", []);
|
|
16971
|
+
//平整辅助面数组
|
|
16972
|
+
(0,defineProperty/* default */.Z)(this, "currentFlatPolygonIndex", -1);
|
|
16973
|
+
(0,defineProperty/* default */.Z)(this, "_language", {});
|
|
16974
|
+
this._viewer = scenceView._viewer;
|
|
16975
|
+
this._options = viewModel;
|
|
16976
|
+
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
16977
|
+
this._language = scenceView._language;
|
|
16978
|
+
this._drawManager = scenceView._drawManager;
|
|
16979
|
+
//Create flattenning controller
|
|
16980
|
+
var that = this;
|
|
16981
|
+
if (scenceView.g_flattenedPolygonTexture) {
|
|
16982
|
+
this._flatteningPolygonTex = scenceView.g_flattenedPolygonTexture;
|
|
16983
|
+
} else {
|
|
16984
|
+
let kq3dFlattenning = new window.Cesium.Kq3dFlattenning(this._viewer, {});
|
|
16985
|
+
this._flatteningPolygonTex = kq3dFlattenning.createFlattenedPolygonTexture();
|
|
16986
|
+
var models = this._viewer.scene.primitives._primitives;
|
|
16987
|
+
for (let i = 0; i < models.length; i++) {
|
|
16988
|
+
if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
|
|
16989
|
+
that._flatteningPolygonTex.attachTileset(models[i]);
|
|
16990
|
+
}
|
|
16991
|
+
}
|
|
16992
|
+
}
|
|
16993
|
+
// this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
16994
|
+
// if (shape) {
|
|
16995
|
+
// that._options.positions = shape._controlPoints;
|
|
16996
|
+
// that.createFlat();
|
|
16997
|
+
// that._drawManager.clear();
|
|
16998
|
+
// }
|
|
16999
|
+
// });
|
|
17000
|
+
this._measureHandler = new Cesium.Kq3dMeasureHandler(this._viewer);
|
|
17001
|
+
this._measureHandler.measureEvent.addEventListener(function (result) {
|
|
17002
|
+
that._measureResult = result;
|
|
17003
|
+
result.measureResult.label.show = false;
|
|
17004
|
+
});
|
|
17005
|
+
this._measureHandler.activeEvent.addEventListener(function (ret) {
|
|
17006
|
+
if (ret == false) {
|
|
17007
|
+
if (that._measureResult) {
|
|
17008
|
+
that._options.positions = that._measureResult.positions;
|
|
17009
|
+
that.createFlat();
|
|
17010
|
+
that._measureResult.measureResult.destroy();
|
|
17011
|
+
}
|
|
17012
|
+
}
|
|
17013
|
+
});
|
|
17014
|
+
}
|
|
17015
|
+
// 创建平整
|
|
17016
|
+
createFlat() {
|
|
17017
|
+
// 创建压平面
|
|
17018
|
+
let curAssitPolygon = this._viewer.entities.add({
|
|
17019
|
+
polygon: {
|
|
17020
|
+
hierarchy: this._options.positions,
|
|
17021
|
+
material: window.Cesium.Color.fromAlpha(window.Cesium.Color.YELLOW, 0.3)
|
|
17022
|
+
},
|
|
17023
|
+
show: this._options.flatteningShow ? true : false
|
|
17024
|
+
});
|
|
17025
|
+
this._assistPolygons.push(curAssitPolygon);
|
|
17026
|
+
let myPolygon = window.Cesium.PolygonGeometry.fromPositions({
|
|
17027
|
+
positions: this._options.positions,
|
|
17028
|
+
height: this._options.flatHeight
|
|
17029
|
+
});
|
|
17030
|
+
this._flatteningPolygonTex && this._flatteningPolygonTex.addFlattenedPolygon(myPolygon);
|
|
17031
|
+
}
|
|
17032
|
+
// 获取平整数量
|
|
17033
|
+
getFlatCount() {
|
|
17034
|
+
return this._flatteningPolygonTex.getFlattenedPolygons().length;
|
|
17035
|
+
}
|
|
17036
|
+
// 开始分析
|
|
17037
|
+
start() {
|
|
17038
|
+
// 判断是否添加了模型
|
|
17039
|
+
var flag = false;
|
|
17040
|
+
var models = this._viewer.scene.primitives._primitives;
|
|
17041
|
+
for (let i = 0; i < models.length; i++) {
|
|
17042
|
+
if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
|
|
17043
|
+
models[i].flattenDiscard = false;
|
|
17044
|
+
flag = true;
|
|
17045
|
+
}
|
|
17046
|
+
}
|
|
17047
|
+
if (flag) {
|
|
17048
|
+
this.remove(!this._options.showFlattenedPolygons);
|
|
17049
|
+
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.HorizontalArea);
|
|
17050
|
+
// this._drawManager.startDraw("polygon", { clampToGround: true });
|
|
17051
|
+
} else {
|
|
17052
|
+
(0,message/* default */.Z)({
|
|
17053
|
+
message: this._language["addModelTips"],
|
|
17054
|
+
type: "warning"
|
|
17055
|
+
});
|
|
17056
|
+
}
|
|
17057
|
+
}
|
|
17058
|
+
// 切换高度重新计算
|
|
17059
|
+
setHeight(val) {
|
|
17060
|
+
this._options.flatHeight = Number(val);
|
|
17061
|
+
if (this.currentFlatPolygonIndex == -1) {
|
|
17062
|
+
this._flatteningPolygonTex.setFlattenedPolygonHeight(-1, Number(val));
|
|
17063
|
+
} else {
|
|
17064
|
+
this._flatteningPolygonTex.setFlattenedPolygonHeight(this.currentFlatPolygonIndex, Number(val));
|
|
17065
|
+
}
|
|
17066
|
+
}
|
|
17067
|
+
// 切换辅助面显示
|
|
17068
|
+
setFlatteningShow(val) {
|
|
17069
|
+
this._options.flatteningShow = val;
|
|
17070
|
+
if (val) {
|
|
17071
|
+
this._assistPolygons.forEach(item => {
|
|
17072
|
+
item.show = true;
|
|
17073
|
+
});
|
|
17074
|
+
} else {
|
|
17075
|
+
this._assistPolygons.forEach(item => {
|
|
17076
|
+
item.show = false;
|
|
17077
|
+
});
|
|
17078
|
+
}
|
|
17079
|
+
}
|
|
17080
|
+
// 设置平整实例
|
|
17081
|
+
setCurrentFlatPolygonIndex(val) {
|
|
17082
|
+
this.currentFlatPolygonIndex = val;
|
|
17083
|
+
}
|
|
17084
|
+
// 清除绘制
|
|
17085
|
+
remove(bool) {
|
|
17086
|
+
this._drawManager.stopDraw();
|
|
17087
|
+
if (bool) {
|
|
17088
|
+
this._flatteningPolygonTex && this._flatteningPolygonTex.removeAllFlattenedPolygon();
|
|
17089
|
+
for (var i = 0; i < this._assistPolygons.length; i++) {
|
|
17090
|
+
this._viewer.entities.remove(this._assistPolygons[i]);
|
|
17091
|
+
}
|
|
17092
|
+
this._assistPolygons = [];
|
|
17093
|
+
}
|
|
17094
|
+
}
|
|
17095
|
+
// 清除
|
|
17096
|
+
clear() {
|
|
17097
|
+
this.remove(true);
|
|
17098
|
+
this._measureResult = null;
|
|
17099
|
+
this._measureHandler.clear();
|
|
17100
|
+
}
|
|
17101
|
+
//销毁
|
|
17102
|
+
destroy() {
|
|
17103
|
+
this.clear();
|
|
17104
|
+
this._measureHandler && this._measureHandler.destroy();
|
|
17105
|
+
this._measureHandler = null;
|
|
17106
|
+
}
|
|
17107
|
+
}
|
|
17108
|
+
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
17109
|
+
var client_icons_vue_ = __webpack_require__(348);
|
|
17110
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
17111
|
+
var util_ = __webpack_require__(3458);
|
|
17112
|
+
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
17113
|
+
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
17114
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/modelFlat/ModelFlat.vue?vue&type=script&setup=true&lang=js
|
|
17115
|
+
|
|
16931
17116
|
const _hoisted_1 = {
|
|
16932
|
-
class: "
|
|
17117
|
+
class: "kq3d-model-flat-box",
|
|
17118
|
+
ref: "ref_box"
|
|
16933
17119
|
};
|
|
16934
17120
|
const _hoisted_2 = {
|
|
16935
|
-
class: "
|
|
17121
|
+
class: "kq3d-model-flat-span"
|
|
16936
17122
|
};
|
|
16937
17123
|
const _hoisted_3 = {
|
|
16938
|
-
class: "
|
|
17124
|
+
class: "kq3d-model-flat-span"
|
|
16939
17125
|
};
|
|
16940
17126
|
const _hoisted_4 = {
|
|
16941
|
-
class: "
|
|
16942
|
-
style: {
|
|
16943
|
-
"line-height": "14px"
|
|
16944
|
-
}
|
|
16945
|
-
};
|
|
16946
|
-
const _hoisted_5 = {
|
|
16947
|
-
class: "kq-measure3d-btns"
|
|
16948
|
-
};
|
|
16949
|
-
const _hoisted_6 = {
|
|
16950
|
-
key: 0,
|
|
16951
|
-
class: "kq-measure3d-tip"
|
|
16952
|
-
};
|
|
16953
|
-
const _hoisted_7 = {
|
|
16954
|
-
key: 0
|
|
16955
|
-
};
|
|
16956
|
-
const _hoisted_8 = {
|
|
16957
|
-
key: 1
|
|
16958
|
-
};
|
|
16959
|
-
const _hoisted_9 = {
|
|
16960
|
-
key: 1,
|
|
16961
|
-
class: "kq-measure3d-result"
|
|
16962
|
-
};
|
|
16963
|
-
const _hoisted_10 = {
|
|
16964
|
-
class: "kq-measure3d-result-panel"
|
|
16965
|
-
};
|
|
16966
|
-
const _hoisted_11 = {
|
|
16967
|
-
key: 0,
|
|
16968
|
-
class: "panel"
|
|
16969
|
-
};
|
|
16970
|
-
const _hoisted_12 = {
|
|
16971
|
-
class: "title"
|
|
16972
|
-
};
|
|
16973
|
-
const _hoisted_13 = {
|
|
16974
|
-
class: "panel"
|
|
16975
|
-
};
|
|
16976
|
-
const _hoisted_14 = {
|
|
16977
|
-
class: "title"
|
|
16978
|
-
};
|
|
16979
|
-
const _hoisted_15 = {
|
|
16980
|
-
key: 0,
|
|
16981
|
-
class: "result"
|
|
16982
|
-
};
|
|
16983
|
-
const _hoisted_16 = {
|
|
16984
|
-
class: "tit"
|
|
16985
|
-
};
|
|
16986
|
-
const _hoisted_17 = {
|
|
16987
|
-
class: "res"
|
|
16988
|
-
};
|
|
16989
|
-
const _hoisted_18 = {
|
|
16990
|
-
class: "tit"
|
|
16991
|
-
};
|
|
16992
|
-
const _hoisted_19 = {
|
|
16993
|
-
class: "res"
|
|
16994
|
-
};
|
|
16995
|
-
const _hoisted_20 = {
|
|
16996
|
-
class: "tit"
|
|
16997
|
-
};
|
|
16998
|
-
const _hoisted_21 = {
|
|
16999
|
-
class: "res"
|
|
17000
|
-
};
|
|
17001
|
-
const _hoisted_22 = {
|
|
17002
|
-
class: "tit"
|
|
17003
|
-
};
|
|
17004
|
-
const _hoisted_23 = {
|
|
17005
|
-
class: "res"
|
|
17006
|
-
};
|
|
17007
|
-
const _hoisted_24 = {
|
|
17008
|
-
key: 1,
|
|
17009
|
-
class: "result"
|
|
17010
|
-
};
|
|
17011
|
-
const _hoisted_25 = {
|
|
17012
|
-
class: "tit"
|
|
17013
|
-
};
|
|
17014
|
-
const _hoisted_26 = {
|
|
17015
|
-
class: "res"
|
|
17016
|
-
};
|
|
17017
|
-
const _hoisted_27 = {
|
|
17018
|
-
class: "tit"
|
|
17019
|
-
};
|
|
17020
|
-
const _hoisted_28 = {
|
|
17021
|
-
class: "res"
|
|
17022
|
-
};
|
|
17023
|
-
const _hoisted_29 = {
|
|
17024
|
-
class: "tit"
|
|
17025
|
-
};
|
|
17026
|
-
const _hoisted_30 = {
|
|
17027
|
-
class: "res"
|
|
17028
|
-
};
|
|
17029
|
-
const _hoisted_31 = {
|
|
17030
|
-
key: 2,
|
|
17031
|
-
class: "result"
|
|
17032
|
-
};
|
|
17033
|
-
const _hoisted_32 = {
|
|
17034
|
-
class: "tit"
|
|
17035
|
-
};
|
|
17036
|
-
const _hoisted_33 = {
|
|
17037
|
-
class: "res"
|
|
17038
|
-
};
|
|
17039
|
-
const _hoisted_34 = {
|
|
17040
|
-
class: "tit"
|
|
17041
|
-
};
|
|
17042
|
-
const _hoisted_35 = {
|
|
17043
|
-
class: "res"
|
|
17044
|
-
};
|
|
17045
|
-
const _hoisted_36 = {
|
|
17046
|
-
key: 3,
|
|
17047
|
-
class: "result"
|
|
17048
|
-
};
|
|
17049
|
-
const _hoisted_37 = {
|
|
17050
|
-
class: "tit"
|
|
17051
|
-
};
|
|
17052
|
-
const _hoisted_38 = {
|
|
17053
|
-
class: "res"
|
|
17127
|
+
class: "kq3d-model-flat-footer"
|
|
17054
17128
|
};
|
|
17055
17129
|
|
|
17056
17130
|
|
|
@@ -17059,14 +17133,13 @@ const _hoisted_38 = {
|
|
|
17059
17133
|
|
|
17060
17134
|
|
|
17061
17135
|
|
|
17136
|
+
//语言
|
|
17062
17137
|
|
|
17063
17138
|
const __default__ = {
|
|
17064
|
-
name: "
|
|
17139
|
+
name: "Kq3dModelFlat"
|
|
17065
17140
|
};
|
|
17066
|
-
/* harmony default export */ var
|
|
17141
|
+
/* harmony default export */ var ModelFlatvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
17067
17142
|
props: {
|
|
17068
|
-
//指定组件绑定的viewer对象的div的id
|
|
17069
|
-
target: String,
|
|
17070
17143
|
// 设置参数
|
|
17071
17144
|
settingParams: {
|
|
17072
17145
|
type: Object
|
|
@@ -17097,7 +17170,7 @@ const __default__ = {
|
|
|
17097
17170
|
// HeaderTemp图标
|
|
17098
17171
|
headerTempIcon: {
|
|
17099
17172
|
type: [Object, String],
|
|
17100
|
-
default: client_icons_vue_.
|
|
17173
|
+
default: client_icons_vue_.IconModelSmoothing
|
|
17101
17174
|
},
|
|
17102
17175
|
// HeaderTemp Title&Icon的位置
|
|
17103
17176
|
isRight: {
|
|
@@ -17109,72 +17182,25 @@ const __default__ = {
|
|
|
17109
17182
|
expose: __expose
|
|
17110
17183
|
}) {
|
|
17111
17184
|
const props = __props;
|
|
17112
|
-
let measureType = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 测量类型
|
|
17113
|
-
let isActive = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
17114
|
-
let isResult = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
17115
|
-
let isTips = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
17116
|
-
let distanceValue = null;
|
|
17117
|
-
// 默认显示距离的单位
|
|
17118
|
-
let distanceUnit = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.settingParams && props.settingParams.distanceUnit || "");
|
|
17119
|
-
// 海里单位选择
|
|
17120
|
-
let nauticalMileUnit = props.settingParams && props.settingParams.nauticalMileUnit || "nmi";
|
|
17121
|
-
// 面积单位
|
|
17122
|
-
let areaUnit = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.settingParams && props.settingParams.areaUnit || "");
|
|
17123
|
-
let result = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(0);
|
|
17124
17185
|
const {
|
|
17125
17186
|
proxy
|
|
17126
17187
|
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
17127
|
-
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(
|
|
17128
|
-
let mode = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("space");
|
|
17129
|
-
let modeList = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(loadModeData());
|
|
17188
|
+
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]);
|
|
17130
17189
|
let viewModel = null;
|
|
17131
|
-
// 国际化
|
|
17132
|
-
let {
|
|
17133
|
-
locale,
|
|
17134
|
-
messages
|
|
17135
|
-
} = (0,vue_i18n_cjs_js_.useI18n)();
|
|
17136
|
-
let measureTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
17137
|
-
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => locale.value, (newVal, oldVal) => {
|
|
17138
|
-
language.value = Object.assign({}, messages.value[newVal]["webgl"], messages.value[newVal]["leaflet"]);
|
|
17139
|
-
measureTitle.value = language.value.measure;
|
|
17140
|
-
modeList.value = loadModeData();
|
|
17141
|
-
distanceUnits.value = setDistanceUnits();
|
|
17142
|
-
areaUnits.value = setAreaUnits();
|
|
17143
|
-
});
|
|
17144
17190
|
|
|
17145
|
-
//
|
|
17146
|
-
|
|
17147
|
-
let
|
|
17148
|
-
|
|
17149
|
-
|
|
17150
|
-
|
|
17151
|
-
|
|
17152
|
-
|
|
17153
|
-
|
|
17154
|
-
|
|
17155
|
-
|
|
17156
|
-
|
|
17157
|
-
|
|
17158
|
-
};
|
|
17159
|
-
distanceUnits.value = setDistanceUnits();
|
|
17160
|
-
// 面积测量单位
|
|
17161
|
-
let areaUnits = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
17162
|
-
let setAreaUnits = () => {
|
|
17163
|
-
return [{
|
|
17164
|
-
label: language.value.squareKilometers,
|
|
17165
|
-
value: "km²"
|
|
17166
|
-
}, {
|
|
17167
|
-
label: language.value.squareMeter,
|
|
17168
|
-
value: "m²"
|
|
17169
|
-
}, {
|
|
17170
|
-
label: language.value.mu,
|
|
17171
|
-
value: "mu"
|
|
17172
|
-
}, {
|
|
17173
|
-
label: language.value.hectare,
|
|
17174
|
-
value: "ha"
|
|
17175
|
-
}];
|
|
17176
|
-
};
|
|
17177
|
-
areaUnits.value = setAreaUnits();
|
|
17191
|
+
// 获取组件传参
|
|
17192
|
+
|
|
17193
|
+
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
17194
|
+
flatHeight: props.settingParams && props.settingParams.excavationDepth || 10,
|
|
17195
|
+
// 模型平整深度
|
|
17196
|
+
minFlatDepth: props.settingParams && props.settingParams.minExcavationDepth || 0,
|
|
17197
|
+
// 模型平整深度范围最小值
|
|
17198
|
+
maxFlatDepth: props.settingParams && props.settingParams.maxExcavationDepth || 100,
|
|
17199
|
+
// 模型平整深度范围最大值
|
|
17200
|
+
flatteningShow: props.settingParams && props.settingParams.maxExcavationDepth || true,
|
|
17201
|
+
// 压平面是否显示
|
|
17202
|
+
showFlattenedPolygons: props.settingParams && props.settingParams.showFlattenedPolygons || false // 是否显示多个压平面分析结果
|
|
17203
|
+
});
|
|
17178
17204
|
|
|
17179
17205
|
// 组件容器Ref
|
|
17180
17206
|
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
@@ -17182,6 +17208,17 @@ const __default__ = {
|
|
|
17182
17208
|
// 生成组件默认header
|
|
17183
17209
|
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
17184
17210
|
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
17211
|
+
|
|
17212
|
+
// 国际化
|
|
17213
|
+
let {
|
|
17214
|
+
locale,
|
|
17215
|
+
messages
|
|
17216
|
+
} = (0,vue_i18n_cjs_js_.useI18n)();
|
|
17217
|
+
let headerTempTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
17218
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => locale.value, (newVal, oldVal) => {
|
|
17219
|
+
language.value = messages.value[newVal]["webgl"];
|
|
17220
|
+
headerTempTitle.value = language.value.modelFlatTitle;
|
|
17221
|
+
});
|
|
17185
17222
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
17186
17223
|
(0,util_.updatePosition)(boxRef.value, props);
|
|
17187
17224
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
@@ -17189,345 +17226,71 @@ const __default__ = {
|
|
|
17189
17226
|
});
|
|
17190
17227
|
watchCreateHeaderTemp();
|
|
17191
17228
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
17192
|
-
|
|
17229
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
17230
|
+
watchCreateHeaderTemp();
|
|
17231
|
+
});
|
|
17193
17232
|
});
|
|
17194
|
-
|
|
17233
|
+
|
|
17234
|
+
//父组件ScenceView初始化完成后执行
|
|
17235
|
+
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
17195
17236
|
if (scenceView) {
|
|
17196
|
-
viewModel = new
|
|
17197
|
-
viewModel.nauticalMileUnit = nauticalMileUnit;
|
|
17198
|
-
//注册测量事件,以获取测量结果
|
|
17199
|
-
viewModel.measureEvent.addEventListener(function (res) {
|
|
17200
|
-
if (measureType.value === "distance") {
|
|
17201
|
-
if (res.distance) {
|
|
17202
|
-
distanceValue = res.distance;
|
|
17203
|
-
if (props.settingParams && props.settingParams.distanceUnit) {
|
|
17204
|
-
distanceUnit.value = props.settingParams && props.settingParams.distanceUnit || "";
|
|
17205
|
-
onChangeUnit(distanceUnit.value);
|
|
17206
|
-
} else {
|
|
17207
|
-
result.value = formatDistance(res.distance);
|
|
17208
|
-
}
|
|
17209
|
-
}
|
|
17210
|
-
} else if (measureType.value === "height" && res) {
|
|
17211
|
-
result.value = {
|
|
17212
|
-
spaceDistance: res.distance ? res.distance.toFixed(2) : 0,
|
|
17213
|
-
horizontalDistance: res.hDistance ? res.hDistance.toFixed(2) : 0,
|
|
17214
|
-
verticalDistance: res.vDistance ? res.vDistance.toFixed(2) : 0,
|
|
17215
|
-
angle: res.angle ? res.angle.toFixed(2).replace(/\.?0+$/, '') : 0
|
|
17216
|
-
};
|
|
17217
|
-
} else if (measureType.value === "area") {
|
|
17218
|
-
if (res && res.area || res && res.area == 0) {
|
|
17219
|
-
distanceValue = res.area;
|
|
17220
|
-
if (props.settingParams && props.settingParams.areaUnit) {
|
|
17221
|
-
areaUnit.value = props.settingParams && props.settingParams.areaUnit || "";
|
|
17222
|
-
onChangeUnit(areaUnit.value);
|
|
17223
|
-
} else {
|
|
17224
|
-
result.value = formatArea(res.area);
|
|
17225
|
-
}
|
|
17226
|
-
}
|
|
17227
|
-
} else if (measureType.value === "azimuth" && res) {
|
|
17228
|
-
if (res.positions && res.positions.length > 0) {
|
|
17229
|
-
result.value = {
|
|
17230
|
-
azimuth: res.azimuth.toFixed(4),
|
|
17231
|
-
distance: res.distance.toFixed(2)
|
|
17232
|
-
};
|
|
17233
|
-
} else result.value = 0;
|
|
17234
|
-
} else if (measureType.value === "slope" && res) {
|
|
17235
|
-
if (res.positions && res.positions.length > 0) {
|
|
17236
|
-
result.value = res.slopeAngle.toFixed(2).replace(/\.?0+$/, '') + " °";
|
|
17237
|
-
} else result.value = 0;
|
|
17238
|
-
} else if (measureType.value === "coordinate") {
|
|
17239
|
-
if (res && res.coordinate) {
|
|
17240
|
-
let convertValue = null;
|
|
17241
|
-
if (props.settingParams && props.settingParams.isConvert) {
|
|
17242
|
-
result.value = {
|
|
17243
|
-
longitude: res.coordinate.longitude ? convertXY(res.coordinate.longitude) : 0,
|
|
17244
|
-
latitude: res.coordinate.latitude ? convertXY(res.coordinate.latitude) : 0,
|
|
17245
|
-
height: res.coordinate.height ? res.coordinate.height.toFixed(2) : 0
|
|
17246
|
-
};
|
|
17247
|
-
convertValue = [result.value.longitude, result.value.latitude];
|
|
17248
|
-
} else {
|
|
17249
|
-
result.value = {
|
|
17250
|
-
longitude: res.coordinate.longitude ? res.coordinate.longitude.toFixed(5) + "°" : 0,
|
|
17251
|
-
latitude: res.coordinate.latitude ? res.coordinate.latitude.toFixed(5) + "°" : 0,
|
|
17252
|
-
height: res.coordinate.height ? res.coordinate.height.toFixed(2) : 0
|
|
17253
|
-
};
|
|
17254
|
-
}
|
|
17255
|
-
if (res.measureResult && res.measureResult.labels && res.measureResult.labels.length > 0) {
|
|
17256
|
-
res.measureResult.labels._labels.forEach(label => {
|
|
17257
|
-
label.text = label.text.replace('X', language.value.longitude).replace('Y', language.value.latitude).replace('Z', language.value.elevation).replace(/\n/g, '°\n');
|
|
17258
|
-
if (convertValue) {
|
|
17259
|
-
label.text = label.text.replace(res.coordinate.longitude.toFixed(5) + "°", convertValue[0]).replace(res.coordinate.latitude.toFixed(5) + "°", convertValue[1]);
|
|
17260
|
-
}
|
|
17261
|
-
});
|
|
17262
|
-
}
|
|
17263
|
-
}
|
|
17264
|
-
}
|
|
17265
|
-
});
|
|
17266
|
-
viewModel.activeEvent.addEventListener(function (active) {
|
|
17267
|
-
if (!active) {
|
|
17268
|
-
// isActive.value = null;
|
|
17269
|
-
isTips.value = false;
|
|
17270
|
-
if (result.value === 0) return;
|
|
17271
|
-
if (measureType.value === "height" && result.value.angle === 0) return;
|
|
17272
|
-
if (measureType.value === "azimuth" && result.value === 0) return;
|
|
17273
|
-
isResult.value = true;
|
|
17274
|
-
}
|
|
17275
|
-
});
|
|
17276
|
-
let handler = new Cesium.ScreenSpaceEventHandler(scenceView._viewer.scene.canvas);
|
|
17277
|
-
handler.setInputAction(function () {
|
|
17278
|
-
if (!viewModel._measureHandler.active) return;
|
|
17279
|
-
let isDrawing = viewModel._measureHandler.isDrawing;
|
|
17280
|
-
if (!isDrawing) {
|
|
17281
|
-
let measureResults = viewModel._measureHandler.measureResults;
|
|
17282
|
-
if (measureResults && measureResults.length > 0) {
|
|
17283
|
-
measureResults[0].destroy();
|
|
17284
|
-
}
|
|
17285
|
-
if (measureType.value === "coordinate") {
|
|
17286
|
-
isTips.value = false;
|
|
17287
|
-
isResult.value = true;
|
|
17288
|
-
} else {
|
|
17289
|
-
isTips.value = true;
|
|
17290
|
-
isResult.value = false;
|
|
17291
|
-
}
|
|
17292
|
-
}
|
|
17293
|
-
if (isDrawing) {
|
|
17294
|
-
if (measureType.value !== 'distance' && measureType.value !== 'area') {
|
|
17295
|
-
continueMeasure();
|
|
17296
|
-
}
|
|
17297
|
-
}
|
|
17298
|
-
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
17299
|
-
handler.setInputAction(function () {
|
|
17300
|
-
let isDrawing = viewModel._measureHandler.isDrawing;
|
|
17301
|
-
if (!isDrawing) {
|
|
17302
|
-
isActive.value = null;
|
|
17303
|
-
viewModel.stopMeasure();
|
|
17304
|
-
} else {
|
|
17305
|
-
continueMeasure();
|
|
17306
|
-
}
|
|
17307
|
-
}, Cesium.ScreenSpaceEventType.RIGHT_CLICK);
|
|
17308
|
-
window.measureClickHandler = handler;
|
|
17237
|
+
viewModel = new ModelFlatViewModel(scenceView, formItem);
|
|
17309
17238
|
}
|
|
17310
17239
|
});
|
|
17311
17240
|
});
|
|
17312
|
-
|
|
17313
|
-
function convertXY(val) {
|
|
17314
|
-
if (!val) {
|
|
17315
|
-
return "";
|
|
17316
|
-
}
|
|
17317
|
-
// 度=经纬度的整数部分
|
|
17318
|
-
let d = Math.floor(Number(val));
|
|
17319
|
-
// 经纬度的小数部分*60
|
|
17320
|
-
let temp1 = (Number(val) - Number(d)) * 60;
|
|
17321
|
-
// 分=(经纬度的小数部分*60)的整数部分
|
|
17322
|
-
let f = Math.floor(Number(temp1));
|
|
17323
|
-
// 秒=(经纬度的小数部分*60-分)*60
|
|
17324
|
-
let m = Math.floor((Number(temp1) - Number(f)) * 60);
|
|
17325
|
-
return d + "°" + f + "′" + m + "″";
|
|
17326
|
-
}
|
|
17241
|
+
|
|
17327
17242
|
/**
|
|
17328
17243
|
* @description 监听header生成
|
|
17329
17244
|
*/
|
|
17330
17245
|
const watchCreateHeaderTemp = () => {
|
|
17331
17246
|
if (props.showHeaderTemp) {
|
|
17332
17247
|
// 生成headerTemp
|
|
17333
|
-
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef,
|
|
17248
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
17334
17249
|
}
|
|
17335
17250
|
};
|
|
17336
|
-
|
|
17337
|
-
|
|
17338
|
-
|
|
17339
|
-
return [{
|
|
17340
|
-
label: language.value.spaceMeasure,
|
|
17341
|
-
value: "space"
|
|
17342
|
-
}, {
|
|
17343
|
-
label: language.value.groundMeasure,
|
|
17344
|
-
value: "ground"
|
|
17345
|
-
}, {
|
|
17346
|
-
label: language.value.modelMeasure,
|
|
17347
|
-
value: "model"
|
|
17348
|
-
}];
|
|
17251
|
+
// 调整平整深度
|
|
17252
|
+
function changeHeight() {
|
|
17253
|
+
viewModel && viewModel.setHeight(formItem.flatHeight);
|
|
17349
17254
|
}
|
|
17350
|
-
|
|
17351
|
-
|
|
17352
|
-
|
|
17353
|
-
distanceUnit.value = "km";
|
|
17354
|
-
} else {
|
|
17355
|
-
distanceUnit.value = "m";
|
|
17356
|
-
}
|
|
17357
|
-
return dis.toFixed(2) + " " + distanceUnit.value;
|
|
17255
|
+
// 调整压平面是否显示
|
|
17256
|
+
function onChangeFlatteningShow() {
|
|
17257
|
+
viewModel && viewModel.setFlatteningShow(formItem.flatteningShow);
|
|
17358
17258
|
}
|
|
17359
|
-
|
|
17360
|
-
|
|
17361
|
-
|
|
17362
|
-
area = area / 1000000;
|
|
17363
|
-
areaUnit.value = "km²";
|
|
17364
|
-
}
|
|
17365
|
-
return area.toFixed(2) + " " + areaUnit.value;
|
|
17259
|
+
// 获取平整分析个数
|
|
17260
|
+
function getFlatCount() {
|
|
17261
|
+
return viewModel && viewModel.getFlatCount();
|
|
17366
17262
|
}
|
|
17367
|
-
|
|
17368
|
-
|
|
17369
|
-
|
|
17370
|
-
* @param {string} unit - 单位
|
|
17371
|
-
*/
|
|
17372
|
-
function onChangeUnit(unit) {
|
|
17373
|
-
result.value = convertValueUnitTotal(distanceValue, unit);
|
|
17374
|
-
viewModel && viewModel.updateDistanceUnit(distanceValue, unit);
|
|
17263
|
+
// 设置操作平整实例
|
|
17264
|
+
function setCurrentFlatPolygonIndex(val) {
|
|
17265
|
+
viewModel && viewModel.setCurrentFlatPolygonIndex(val);
|
|
17375
17266
|
}
|
|
17376
|
-
|
|
17377
|
-
|
|
17378
|
-
|
|
17379
|
-
|
|
17380
|
-
|
|
17381
|
-
|
|
17382
|
-
|
|
17383
|
-
function convertValueUnitTotal(value, unit) {
|
|
17384
|
-
let newValue = "";
|
|
17385
|
-
switch (unit) {
|
|
17386
|
-
case "m":
|
|
17387
|
-
newValue = value.toFixed(2) + " m";
|
|
17388
|
-
break;
|
|
17389
|
-
case "km":
|
|
17390
|
-
newValue = (value / 1000).toFixed(2) + " km";
|
|
17391
|
-
break;
|
|
17392
|
-
case nauticalMileUnit:
|
|
17393
|
-
newValue = (value / 1852).toFixed(2) + " " + nauticalMileUnit;
|
|
17394
|
-
break;
|
|
17395
|
-
case "m²":
|
|
17396
|
-
newValue = value.toFixed(2) + " m²";
|
|
17397
|
-
break;
|
|
17398
|
-
case "km²":
|
|
17399
|
-
newValue = (value / 1000000).toFixed(2) + " km²";
|
|
17400
|
-
break;
|
|
17401
|
-
case "mu":
|
|
17402
|
-
newValue = (value * 2 / 3).toFixed(2) + " mu";
|
|
17403
|
-
break;
|
|
17404
|
-
case "ha":
|
|
17405
|
-
newValue = (value / 10000).toFixed(2) + " ha";
|
|
17406
|
-
break;
|
|
17407
|
-
default:
|
|
17408
|
-
break;
|
|
17409
|
-
}
|
|
17410
|
-
return newValue;
|
|
17267
|
+
// 开始分析
|
|
17268
|
+
function startOperation() {
|
|
17269
|
+
viewModel && viewModel.start();
|
|
17270
|
+
}
|
|
17271
|
+
// 清除
|
|
17272
|
+
function clear() {
|
|
17273
|
+
viewModel && viewModel.clear();
|
|
17411
17274
|
}
|
|
17412
17275
|
|
|
17413
17276
|
// 销毁
|
|
17414
17277
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
17415
|
-
|
|
17416
|
-
if (window.measureClickHandler) {
|
|
17417
|
-
window.measureClickHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
17418
|
-
window.measureClickHandler.removeInputAction(Cesium.ScreenSpaceEventType.RIGHT_CLICK);
|
|
17419
|
-
}
|
|
17278
|
+
viewModel && viewModel.destroy();
|
|
17420
17279
|
});
|
|
17421
|
-
|
|
17422
|
-
//开始测量
|
|
17423
|
-
function startMeasure(type) {
|
|
17424
|
-
if (mode.value === "ground") {
|
|
17425
|
-
if (!viewModel.checkTerrainAdded()) {
|
|
17426
|
-
(0,message/* default */.Z)({
|
|
17427
|
-
message: language.value["measuretAddTerrainTips"],
|
|
17428
|
-
type: "warning"
|
|
17429
|
-
});
|
|
17430
|
-
return;
|
|
17431
|
-
}
|
|
17432
|
-
}
|
|
17433
|
-
if (mode.value === "model") {
|
|
17434
|
-
if (!viewModel.checkModelAdded()) {
|
|
17435
|
-
(0,message/* default */.Z)({
|
|
17436
|
-
message: language.value["measuretAddModelTips"],
|
|
17437
|
-
type: "warning"
|
|
17438
|
-
});
|
|
17439
|
-
return;
|
|
17440
|
-
}
|
|
17441
|
-
}
|
|
17442
|
-
viewModel.clear();
|
|
17443
|
-
result.value = 0;
|
|
17444
|
-
isTips.value = true;
|
|
17445
|
-
isResult.value = false;
|
|
17446
|
-
measureType.value = type;
|
|
17447
|
-
isActive.value = type;
|
|
17448
|
-
switch (type) {
|
|
17449
|
-
case "distance":
|
|
17450
|
-
viewModel.distanceMeasure(mode.value);
|
|
17451
|
-
break;
|
|
17452
|
-
case "area":
|
|
17453
|
-
viewModel.areaMeasure(mode.value);
|
|
17454
|
-
break;
|
|
17455
|
-
case "height":
|
|
17456
|
-
viewModel.heightMeasure();
|
|
17457
|
-
break;
|
|
17458
|
-
case "coordinate":
|
|
17459
|
-
viewModel.coordinateMeasure();
|
|
17460
|
-
break;
|
|
17461
|
-
case "azimuth":
|
|
17462
|
-
viewModel.azimuthMeasure();
|
|
17463
|
-
break;
|
|
17464
|
-
case "slope":
|
|
17465
|
-
if (mode.value === "ground") {
|
|
17466
|
-
viewModel.terrainSlopeMeasure();
|
|
17467
|
-
} else if (mode.value === "model") {
|
|
17468
|
-
viewModel.sceneSlopeMeasure();
|
|
17469
|
-
}
|
|
17470
|
-
break;
|
|
17471
|
-
default:
|
|
17472
|
-
break;
|
|
17473
|
-
}
|
|
17474
|
-
}
|
|
17475
|
-
function continueMeasure() {
|
|
17476
|
-
setTimeout(() => {
|
|
17477
|
-
switch (measureType.value) {
|
|
17478
|
-
case "distance":
|
|
17479
|
-
viewModel.distanceMeasure(mode.value);
|
|
17480
|
-
break;
|
|
17481
|
-
case "area":
|
|
17482
|
-
viewModel.areaMeasure(mode.value);
|
|
17483
|
-
break;
|
|
17484
|
-
case "height":
|
|
17485
|
-
viewModel.heightMeasure();
|
|
17486
|
-
break;
|
|
17487
|
-
case "coordinate":
|
|
17488
|
-
viewModel.coordinateMeasure();
|
|
17489
|
-
break;
|
|
17490
|
-
case "azimuth":
|
|
17491
|
-
viewModel.azimuthMeasure();
|
|
17492
|
-
break;
|
|
17493
|
-
case "slope":
|
|
17494
|
-
if (mode.value === "ground") {
|
|
17495
|
-
viewModel.terrainSlopeMeasure();
|
|
17496
|
-
} else if (mode.value === "model") {
|
|
17497
|
-
viewModel.sceneSlopeMeasure();
|
|
17498
|
-
}
|
|
17499
|
-
break;
|
|
17500
|
-
default:
|
|
17501
|
-
break;
|
|
17502
|
-
}
|
|
17503
|
-
}, 300);
|
|
17504
|
-
}
|
|
17505
|
-
|
|
17506
|
-
/**
|
|
17507
|
-
* 清除测量
|
|
17508
|
-
*/
|
|
17509
|
-
function clearMeasure() {
|
|
17510
|
-
viewModel && viewModel.clear();
|
|
17511
|
-
measureType.value = null;
|
|
17512
|
-
isActive.value = null;
|
|
17513
|
-
isTips.value = false;
|
|
17514
|
-
isResult.value = false;
|
|
17515
|
-
}
|
|
17516
17280
|
__expose({
|
|
17517
|
-
|
|
17518
|
-
|
|
17519
|
-
|
|
17520
|
-
startMeasure,
|
|
17521
|
-
clearMeasure
|
|
17281
|
+
getFlatCount,
|
|
17282
|
+
setCurrentFlatPolygonIndex,
|
|
17283
|
+
clear
|
|
17522
17284
|
});
|
|
17523
17285
|
return (_ctx, _cache) => {
|
|
17524
|
-
const
|
|
17525
|
-
const
|
|
17526
|
-
const
|
|
17286
|
+
const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
|
|
17287
|
+
const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
|
|
17288
|
+
const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
|
|
17289
|
+
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
17290
|
+
const _component_kq_switch = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-switch");
|
|
17527
17291
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
17528
|
-
const _component_kq_divider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-divider");
|
|
17529
17292
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
17530
|
-
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["
|
|
17293
|
+
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-model-flat", {
|
|
17531
17294
|
'kq-box-shadow': __props.showShadow
|
|
17532
17295
|
}]),
|
|
17533
17296
|
ref_key: "boxRef",
|
|
@@ -17536,149 +17299,99 @@ const __default__ = {
|
|
|
17536
17299
|
key: 0,
|
|
17537
17300
|
ref_key: "headerTempRef",
|
|
17538
17301
|
ref: headerTempRef
|
|
17539
|
-
}, null, 512 /* NEED_PATCH */)) : (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_.
|
|
17540
|
-
|
|
17541
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(mode) ? mode.value = $event : mode = $event)
|
|
17542
|
-
}, {
|
|
17543
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.Fragment, null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.renderList)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(modeList), item => {
|
|
17544
|
-
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_option, {
|
|
17545
|
-
key: item.value,
|
|
17546
|
-
label: item.label,
|
|
17547
|
-
value: item.value
|
|
17548
|
-
}, null, 8 /* PROPS */, ["label", "value"]);
|
|
17549
|
-
}), 128 /* KEYED_FRAGMENT */))]),
|
|
17550
|
-
_: 1 /* STABLE */
|
|
17551
|
-
}, 8 /* PROPS */, ["modelValue"])])]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_5, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
17552
|
-
onClick: _cache[1] || (_cache[1] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('distance'), ["stop"])),
|
|
17553
|
-
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) == 'distance' ? 'is-active' : null),
|
|
17554
|
-
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).distance
|
|
17302
|
+
}, null, 512 /* NEED_PATCH */)) : (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, {
|
|
17303
|
+
gutter: 10
|
|
17555
17304
|
}, {
|
|
17556
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(
|
|
17557
|
-
|
|
17305
|
+
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, {
|
|
17306
|
+
span: 7
|
|
17558
17307
|
}, {
|
|
17559
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.
|
|
17308
|
+
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).flatHeight), 1 /* TEXT */)]),
|
|
17560
17309
|
_: 1 /* STABLE */
|
|
17561
|
-
})
|
|
17562
|
-
|
|
17563
|
-
}, 8 /* PROPS */, ["class", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
17564
|
-
onClick: _cache[2] || (_cache[2] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('area'), ["stop"])),
|
|
17565
|
-
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) == 'area' ? 'is-active' : null),
|
|
17566
|
-
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).area
|
|
17567
|
-
}, {
|
|
17568
|
-
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_icon, {
|
|
17569
|
-
size: 24
|
|
17310
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
17311
|
+
span: 11
|
|
17570
17312
|
}, {
|
|
17571
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(
|
|
17313
|
+
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, {
|
|
17314
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).flatHeight,
|
|
17315
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).flatHeight = $event),
|
|
17316
|
+
step: 1,
|
|
17317
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minFlatDepth,
|
|
17318
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxFlatDepth,
|
|
17319
|
+
onChange: _cache[1] || (_cache[1] = $event => changeHeight()),
|
|
17320
|
+
onClick: _cache[2] || (_cache[2] = $event => changeHeight())
|
|
17321
|
+
}, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
|
|
17572
17322
|
_: 1 /* STABLE */
|
|
17573
|
-
})
|
|
17574
|
-
|
|
17575
|
-
|
|
17576
|
-
|
|
17577
|
-
|
|
17578
|
-
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).height
|
|
17579
|
-
}, {
|
|
17580
|
-
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_icon, {
|
|
17581
|
-
size: 24
|
|
17323
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
17324
|
+
span: 6,
|
|
17325
|
+
style: {
|
|
17326
|
+
"text-align": "end"
|
|
17327
|
+
}
|
|
17582
17328
|
}, {
|
|
17583
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(
|
|
17329
|
+
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, {
|
|
17330
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).flatHeight,
|
|
17331
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).flatHeight = $event),
|
|
17332
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minFlatDepth,
|
|
17333
|
+
step: 1,
|
|
17334
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxFlatDepth,
|
|
17335
|
+
"controls-position": "right",
|
|
17336
|
+
onInput: _cache[4] || (_cache[4] = $event => changeHeight())
|
|
17337
|
+
}, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
|
|
17584
17338
|
_: 1 /* STABLE */
|
|
17585
17339
|
})]),
|
|
17586
17340
|
_: 1 /* STABLE */
|
|
17587
|
-
}
|
|
17588
|
-
|
|
17589
|
-
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) == 'azimuth' ? 'is-active' : null),
|
|
17590
|
-
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).azimuth
|
|
17341
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
17342
|
+
gutter: 10
|
|
17591
17343
|
}, {
|
|
17592
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(
|
|
17593
|
-
|
|
17594
|
-
}, {
|
|
17595
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconAzimuthMeasure))]),
|
|
17596
|
-
_: 1 /* STABLE */
|
|
17597
|
-
})]),
|
|
17598
|
-
_: 1 /* STABLE */
|
|
17599
|
-
}, 8 /* PROPS */, ["class", "title"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(mode) == 'space']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
17600
|
-
onClick: _cache[5] || (_cache[5] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('coordinate'), ["stop"])),
|
|
17601
|
-
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) == 'coordinate' ? 'is-active' : null),
|
|
17602
|
-
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).coordinate
|
|
17603
|
-
}, {
|
|
17604
|
-
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_icon, {
|
|
17605
|
-
size: 24
|
|
17344
|
+
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, {
|
|
17345
|
+
span: 7
|
|
17606
17346
|
}, {
|
|
17607
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.
|
|
17347
|
+
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_3, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).flatteningShow), 1 /* TEXT */)]),
|
|
17608
17348
|
_: 1 /* STABLE */
|
|
17609
|
-
})
|
|
17610
|
-
|
|
17611
|
-
}, 8 /* PROPS */, ["class", "title"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(mode) == 'space']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
17612
|
-
onClick: _cache[6] || (_cache[6] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('slope'), ["stop"])),
|
|
17613
|
-
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) == 'slope' ? 'is-active' : null),
|
|
17614
|
-
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).slope
|
|
17615
|
-
}, {
|
|
17616
|
-
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_icon, {
|
|
17617
|
-
size: 24
|
|
17349
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
17350
|
+
span: 11
|
|
17618
17351
|
}, {
|
|
17619
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(
|
|
17352
|
+
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_switch, {
|
|
17353
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).flatteningShow,
|
|
17354
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).flatteningShow = $event),
|
|
17355
|
+
onChange: onChangeFlatteningShow
|
|
17356
|
+
}, null, 8 /* PROPS */, ["modelValue"])]),
|
|
17620
17357
|
_: 1 /* STABLE */
|
|
17621
17358
|
})]),
|
|
17622
17359
|
_: 1 /* STABLE */
|
|
17623
|
-
}
|
|
17624
|
-
|
|
17625
|
-
plain: "",
|
|
17626
|
-
onClick: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)(clearMeasure, ["stop"]),
|
|
17627
|
-
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear
|
|
17360
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
17361
|
+
class: "kq3d-model-flat-tip"
|
|
17628
17362
|
}, {
|
|
17629
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.
|
|
17630
|
-
class: "icon-delete",
|
|
17631
|
-
size: 24
|
|
17632
|
-
}, {
|
|
17633
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(icons_vue_.Delete))]),
|
|
17634
|
-
_: 1 /* STABLE */
|
|
17635
|
-
})]),
|
|
17363
|
+
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 /* TEXT */)]),
|
|
17636
17364
|
_: 1 /* STABLE */
|
|
17637
|
-
}
|
|
17638
|
-
|
|
17639
|
-
|
|
17640
|
-
|
|
17641
|
-
onChange: onChangeUnit
|
|
17365
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_4, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
17366
|
+
onClick: _cache[6] || (_cache[6] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startOperation(), ["stop"])),
|
|
17367
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startOperation,
|
|
17368
|
+
type: "primary"
|
|
17642
17369
|
}, {
|
|
17643
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(
|
|
17644
|
-
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_option, {
|
|
17645
|
-
key: item.value,
|
|
17646
|
-
label: item.label,
|
|
17647
|
-
value: item.value
|
|
17648
|
-
}, null, 8 /* PROPS */, ["label", "value"]);
|
|
17649
|
-
}), 128 /* KEYED_FRAGMENT */))]),
|
|
17370
|
+
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 /* TEXT */)]),
|
|
17650
17371
|
_: 1 /* STABLE */
|
|
17651
|
-
}, 8 /* PROPS */, ["
|
|
17652
|
-
|
|
17653
|
-
|
|
17654
|
-
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(areaUnit) ? areaUnit.value = $event : areaUnit = $event),
|
|
17655
|
-
onChange: onChangeUnit
|
|
17372
|
+
}, 8 /* PROPS */, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
17373
|
+
onClick: _cache[7] || (_cache[7] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clear(), ["stop"])),
|
|
17374
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear
|
|
17656
17375
|
}, {
|
|
17657
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(
|
|
17658
|
-
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_option, {
|
|
17659
|
-
key: item.value,
|
|
17660
|
-
label: item.label,
|
|
17661
|
-
value: item.value
|
|
17662
|
-
}, null, 8 /* PROPS */, ["label", "value"]);
|
|
17663
|
-
}), 128 /* KEYED_FRAGMENT */))]),
|
|
17376
|
+
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 /* TEXT */)]),
|
|
17664
17377
|
_: 1 /* STABLE */
|
|
17665
|
-
}, 8 /* PROPS */, ["
|
|
17378
|
+
}, 8 /* PROPS */, ["title"])])], 512 /* NEED_PATCH */)], 2 /* CLASS */);
|
|
17666
17379
|
};
|
|
17667
17380
|
}
|
|
17668
17381
|
}));
|
|
17669
|
-
;// CONCATENATED MODULE: ./src/webgl/
|
|
17382
|
+
;// CONCATENATED MODULE: ./src/webgl/modelFlat/ModelFlat.vue?vue&type=script&setup=true&lang=js
|
|
17670
17383
|
|
|
17671
|
-
;// CONCATENATED MODULE: ./src/webgl/
|
|
17384
|
+
;// CONCATENATED MODULE: ./src/webgl/modelFlat/ModelFlat.vue
|
|
17672
17385
|
|
|
17673
17386
|
|
|
17674
17387
|
|
|
17675
|
-
const __exports__ =
|
|
17388
|
+
const __exports__ = ModelFlatvue_type_script_setup_true_lang_js;
|
|
17676
17389
|
|
|
17677
|
-
/* harmony default export */ var
|
|
17390
|
+
/* harmony default export */ var ModelFlat = (__exports__);
|
|
17678
17391
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
17679
17392
|
var init_js_ = __webpack_require__(7997);
|
|
17680
17393
|
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
17681
|
-
;// CONCATENATED MODULE: ./src/webgl/
|
|
17394
|
+
;// CONCATENATED MODULE: ./src/webgl/modelFlat/index.js
|
|
17682
17395
|
/*
|
|
17683
17396
|
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
17684
17397
|
* All rights reserved.
|
|
@@ -17686,25 +17399,25 @@ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
|
17686
17399
|
|
|
17687
17400
|
|
|
17688
17401
|
|
|
17689
|
-
|
|
17402
|
+
ModelFlat.install = (Vue, opts) => {
|
|
17690
17403
|
init_js_default()(Vue, opts);
|
|
17691
|
-
Vue.component(
|
|
17404
|
+
Vue.component(ModelFlat.name, ModelFlat);
|
|
17692
17405
|
};
|
|
17693
17406
|
|
|
17694
17407
|
|
|
17695
17408
|
/***/ }),
|
|
17696
17409
|
|
|
17697
|
-
/***/
|
|
17410
|
+
/***/ 698:
|
|
17698
17411
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17699
17412
|
|
|
17700
17413
|
"use strict";
|
|
17701
17414
|
|
|
17702
17415
|
// EXPORTS
|
|
17703
17416
|
__webpack_require__.d(__webpack_exports__, {
|
|
17704
|
-
"default": function() { return /* reexport */
|
|
17417
|
+
"default": function() { return /* reexport */ ModelExcavate; }
|
|
17705
17418
|
});
|
|
17706
17419
|
|
|
17707
|
-
// UNUSED EXPORTS:
|
|
17420
|
+
// UNUSED EXPORTS: ModelExcavateViewModel
|
|
17708
17421
|
|
|
17709
17422
|
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
17710
17423
|
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
|
|
@@ -17714,69 +17427,66 @@ var gis_utils_ = __webpack_require__(7135);
|
|
|
17714
17427
|
var defineProperty = __webpack_require__(5301);
|
|
17715
17428
|
// EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
|
|
17716
17429
|
var es_array_push_js_ = __webpack_require__(2118);
|
|
17717
|
-
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.constructor.js"
|
|
17718
|
-
var esnext_iterator_constructor_js_ = __webpack_require__(8470);
|
|
17719
|
-
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.for-each.js"
|
|
17720
|
-
var esnext_iterator_for_each_js_ = __webpack_require__(1058);
|
|
17721
17430
|
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
17722
17431
|
var message = __webpack_require__(1349);
|
|
17723
|
-
;// CONCATENATED MODULE: ./src/webgl/
|
|
17724
|
-
|
|
17725
|
-
|
|
17432
|
+
;// CONCATENATED MODULE: ./src/webgl/modelexcavate/ModelExcavateViewModel.js
|
|
17726
17433
|
|
|
17727
17434
|
|
|
17728
17435
|
/*
|
|
17729
17436
|
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
17730
17437
|
* All rights reserved.
|
|
17731
17438
|
*/
|
|
17732
|
-
|
|
17439
|
+
//模型开挖逻辑类
|
|
17733
17440
|
|
|
17734
|
-
class
|
|
17735
|
-
constructor(scenceView,
|
|
17441
|
+
class ModelExcavateViewModel {
|
|
17442
|
+
constructor(scenceView, options) {
|
|
17736
17443
|
(0,defineProperty/* default */.Z)(this, "_viewer", null);
|
|
17737
17444
|
//三维viewer对象
|
|
17738
|
-
(0,defineProperty/* default */.Z)(this, "_drawManager", null);
|
|
17739
|
-
//绘制管理对象
|
|
17740
17445
|
(0,defineProperty/* default */.Z)(this, "_options", {});
|
|
17741
|
-
|
|
17446
|
+
//Box裁剪存储参数对象
|
|
17447
|
+
(0,defineProperty/* default */.Z)(this, "_Kq3dTerrainExcavation", null);
|
|
17742
17448
|
(0,defineProperty/* default */.Z)(this, "_removeEventListener", null);
|
|
17743
17449
|
//绘制完成监听事件
|
|
17744
17450
|
(0,defineProperty/* default */.Z)(this, "_measureHandler", null);
|
|
17745
17451
|
//测量三维对象
|
|
17746
17452
|
(0,defineProperty/* default */.Z)(this, "_measureResult", null);
|
|
17747
17453
|
//测量结果
|
|
17748
|
-
(0,defineProperty/* default */.Z)(this, "
|
|
17749
|
-
//
|
|
17750
|
-
(0,defineProperty/* default */.Z)(this, "
|
|
17751
|
-
//平整辅助面数组
|
|
17752
|
-
(0,defineProperty/* default */.Z)(this, "currentFlatPolygonIndex", -1);
|
|
17454
|
+
(0,defineProperty/* default */.Z)(this, "_wallPrimitive", void 0);
|
|
17455
|
+
//Kq3dWallPrimitive
|
|
17456
|
+
(0,defineProperty/* default */.Z)(this, "entity0", null);
|
|
17753
17457
|
(0,defineProperty/* default */.Z)(this, "_language", {});
|
|
17754
|
-
this
|
|
17755
|
-
this
|
|
17756
|
-
this
|
|
17458
|
+
(0,defineProperty/* default */.Z)(this, "wall", null);
|
|
17459
|
+
(0,defineProperty/* default */.Z)(this, "ratio", 0.01);
|
|
17460
|
+
(0,defineProperty/* default */.Z)(this, "ii", 1);
|
|
17461
|
+
(0,defineProperty/* default */.Z)(this, "scratchCartesian2", new window.Cesium.Cartesian3());
|
|
17462
|
+
(0,defineProperty/* default */.Z)(this, "scratchCartesian3", new window.Cesium.Cartesian3());
|
|
17463
|
+
(0,defineProperty/* default */.Z)(this, "scratchCartesian4", new window.Cesium.Cartesian3());
|
|
17464
|
+
(0,defineProperty/* default */.Z)(this, "scratchCartesian5", new window.Cesium.Cartesian3());
|
|
17465
|
+
(0,defineProperty/* default */.Z)(this, "scratchCartesian6", new window.Cesium.Cartesian3());
|
|
17466
|
+
(0,defineProperty/* default */.Z)(this, "scratchCartesian7", new window.Cesium.Cartesian3());
|
|
17467
|
+
(0,defineProperty/* default */.Z)(this, "intervalId", null);
|
|
17468
|
+
(0,defineProperty/* default */.Z)(this, "g_flattenedPolygonTexture", null);
|
|
17757
17469
|
this._language = scenceView._language;
|
|
17758
|
-
this.
|
|
17759
|
-
|
|
17470
|
+
this._viewer = scenceView._viewer;
|
|
17471
|
+
this._options = options;
|
|
17472
|
+
this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
|
|
17760
17473
|
var that = this;
|
|
17761
17474
|
if (scenceView.g_flattenedPolygonTexture) {
|
|
17762
|
-
this.
|
|
17475
|
+
this.g_flattenedPolygonTexture = scenceView.g_flattenedPolygonTexture;
|
|
17763
17476
|
} else {
|
|
17764
17477
|
let kq3dFlattenning = new window.Cesium.Kq3dFlattenning(this._viewer, {});
|
|
17765
|
-
this.
|
|
17478
|
+
this.g_flattenedPolygonTexture = kq3dFlattenning.createFlattenedPolygonTexture();
|
|
17766
17479
|
var models = this._viewer.scene.primitives._primitives;
|
|
17767
17480
|
for (let i = 0; i < models.length; i++) {
|
|
17768
17481
|
if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
|
|
17769
|
-
|
|
17482
|
+
models[i].enableFlattenning = true;
|
|
17483
|
+
models[i].flattenDiscard = true;
|
|
17484
|
+
models[i].readyPromise.then(function (tileset) {
|
|
17485
|
+
that.g_flattenedPolygonTexture.attachTileset(tileset);
|
|
17486
|
+
});
|
|
17770
17487
|
}
|
|
17771
17488
|
}
|
|
17772
17489
|
}
|
|
17773
|
-
// this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
17774
|
-
// if (shape) {
|
|
17775
|
-
// that._options.positions = shape._controlPoints;
|
|
17776
|
-
// that.createFlat();
|
|
17777
|
-
// that._drawManager.clear();
|
|
17778
|
-
// }
|
|
17779
|
-
// });
|
|
17780
17490
|
this._measureHandler = new Cesium.Kq3dMeasureHandler(this._viewer);
|
|
17781
17491
|
this._measureHandler.measureEvent.addEventListener(function (result) {
|
|
17782
17492
|
that._measureResult = result;
|
|
@@ -17786,48 +17496,138 @@ class ModelFlatViewModel {
|
|
|
17786
17496
|
if (ret == false) {
|
|
17787
17497
|
if (that._measureResult) {
|
|
17788
17498
|
that._options.positions = that._measureResult.positions;
|
|
17789
|
-
that.
|
|
17499
|
+
that.createDynamicExcavationEffect();
|
|
17790
17500
|
that._measureResult.measureResult.destroy();
|
|
17791
17501
|
}
|
|
17792
17502
|
}
|
|
17793
17503
|
});
|
|
17794
17504
|
}
|
|
17795
|
-
|
|
17796
|
-
|
|
17797
|
-
|
|
17798
|
-
|
|
17799
|
-
|
|
17800
|
-
|
|
17801
|
-
|
|
17802
|
-
|
|
17803
|
-
|
|
17505
|
+
|
|
17506
|
+
// 创建开挖模型
|
|
17507
|
+
createDynamicExcavationEffect() {
|
|
17508
|
+
this._Kq3dTerrainExcavation && this._Kq3dTerrainExcavation.destroy();
|
|
17509
|
+
this._Kq3dTerrainExcavation = new window.Cesium.Kq3dTerrainExcavation({
|
|
17510
|
+
viewer: this._viewer,
|
|
17511
|
+
height: this._options.height,
|
|
17512
|
+
positions: this._options.positions,
|
|
17513
|
+
hasWall: false
|
|
17804
17514
|
});
|
|
17805
|
-
this.
|
|
17806
|
-
|
|
17515
|
+
if (this._wallPrimitive) {
|
|
17516
|
+
this._viewer.scene.primitives.remove(this._wallPrimitive);
|
|
17517
|
+
this._wallPrimitive = undefined;
|
|
17518
|
+
}
|
|
17519
|
+
this._wallPrimitive = new window.Cesium.Kq3dWallPrimitive({
|
|
17520
|
+
viewer: this._viewer,
|
|
17521
|
+
height: this._options.height,
|
|
17807
17522
|
positions: this._options.positions,
|
|
17808
|
-
|
|
17523
|
+
elevationOnTerrain: false
|
|
17524
|
+
});
|
|
17525
|
+
this._viewer.scene.primitives.add(this._wallPrimitive);
|
|
17526
|
+
let that = this;
|
|
17527
|
+
this._wallPrimitive._readyEvent.addEventListener(function (eventType) {
|
|
17528
|
+
if (eventType != "Ready") {
|
|
17529
|
+
return;
|
|
17530
|
+
}
|
|
17531
|
+
that.g_flattenedPolygonTexture && that.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
|
|
17532
|
+
var myPolygon = window.Cesium.PolygonGeometry.fromPositions({
|
|
17533
|
+
positions: that._options.positions,
|
|
17534
|
+
height: window.Cesium.Cartographic.fromCartesian(that._options.positions[0]).height
|
|
17535
|
+
});
|
|
17536
|
+
that.g_flattenedPolygonTexture && that.g_flattenedPolygonTexture.addFlattenedPolygon(myPolygon);
|
|
17537
|
+
|
|
17538
|
+
// that.intervalId = setInterval(function () {
|
|
17539
|
+
// if (that.ii > 100) {
|
|
17540
|
+
// if (that.entity0) {
|
|
17541
|
+
// that._viewer.scene.primitives.remove(that.entity0);
|
|
17542
|
+
// that.entity0 = undefined;
|
|
17543
|
+
// }
|
|
17544
|
+
// if (that.wall) {
|
|
17545
|
+
// that._viewer.scene.primitives.remove(that.wall);
|
|
17546
|
+
// that.wall = undefined;
|
|
17547
|
+
// }
|
|
17548
|
+
// clearInterval(that.intervalId);
|
|
17549
|
+
// that.ii = 0;
|
|
17550
|
+
// return;
|
|
17551
|
+
// }
|
|
17552
|
+
|
|
17553
|
+
// var carto2 = window.Cesium.Cartesian3.lerp(that._options.positions[0], that._options.positions[3], that.ratio * that.ii, that.scratchCartesian2);
|
|
17554
|
+
// var carto3 = window.Cesium.Cartesian3.lerp(that._options.positions[1], that._options.positions[2], that.ratio * that.ii, that.scratchCartesian3);
|
|
17555
|
+
|
|
17556
|
+
// if (that.entity0) {
|
|
17557
|
+
// that._viewer.scene.primitives.remove(that.entity0);
|
|
17558
|
+
// that.entity0 = undefined;
|
|
17559
|
+
// }
|
|
17560
|
+
|
|
17561
|
+
// that.entity0 = that.createPolyline([carto2, carto3]);
|
|
17562
|
+
|
|
17563
|
+
// that.ii++;
|
|
17564
|
+
// that.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
|
|
17565
|
+
|
|
17566
|
+
// var myPolygon = window.Cesium.PolygonGeometry.fromPositions({
|
|
17567
|
+
// positions: [that._options.positions[0], that._options.positions[1], carto3, carto2],
|
|
17568
|
+
// height: window.Cesium.Cartographic.fromCartesian(that._options.positions[0]).height
|
|
17569
|
+
// });
|
|
17570
|
+
// that.g_flattenedPolygonTexture.addFlattenedPolygon(myPolygon);
|
|
17571
|
+
// }, 100);
|
|
17809
17572
|
});
|
|
17810
|
-
this._flatteningPolygonTex && this._flatteningPolygonTex.addFlattenedPolygon(myPolygon);
|
|
17811
17573
|
}
|
|
17812
|
-
|
|
17813
|
-
|
|
17814
|
-
|
|
17574
|
+
createPolyline(positions) {
|
|
17575
|
+
var material = window.Cesium.Material.fromType("Kq3dLightningMaterial", {});
|
|
17576
|
+
if (this.wall) {
|
|
17577
|
+
this._viewer.scene.primitives.remove(this.wall);
|
|
17578
|
+
this.wall = undefined;
|
|
17579
|
+
}
|
|
17580
|
+
var geometryInstances = [];
|
|
17581
|
+
geometryInstances.push(new window.Cesium.GeometryInstance({
|
|
17582
|
+
geometry: new window.Cesium.WallGeometry({
|
|
17583
|
+
positions: positions,
|
|
17584
|
+
maximumHeights: [10, 10],
|
|
17585
|
+
minimumHeights: [-10, -10],
|
|
17586
|
+
vertexFormat: window.Cesium.VertexFormat.POSITION_NORMAL_AND_ST
|
|
17587
|
+
})
|
|
17588
|
+
}));
|
|
17589
|
+
this.wall = new window.Cesium.Primitive({
|
|
17590
|
+
geometryInstances: geometryInstances,
|
|
17591
|
+
appearance: new window.Cesium.MaterialAppearance({
|
|
17592
|
+
material: material
|
|
17593
|
+
})
|
|
17594
|
+
});
|
|
17595
|
+
this._viewer.scene.primitives.add(this.wall);
|
|
17596
|
+
var geo = new window.Cesium.GroundPolylineGeometry({
|
|
17597
|
+
positions: positions,
|
|
17598
|
+
width: 40.0,
|
|
17599
|
+
vertexFormat: window.Cesium.PolylineMaterialAppearance.VERTEX_FORMAT
|
|
17600
|
+
});
|
|
17601
|
+
var primitive = new window.Cesium.GroundPolylinePrimitive({
|
|
17602
|
+
asynchronous: false,
|
|
17603
|
+
classificationType: window.Cesium.ClassificationType.BOTH,
|
|
17604
|
+
geometryInstances: new window.Cesium.GeometryInstance({
|
|
17605
|
+
geometry: geo
|
|
17606
|
+
}),
|
|
17607
|
+
appearance: new window.Cesium.PolylineMaterialAppearance({
|
|
17608
|
+
material: material
|
|
17609
|
+
})
|
|
17610
|
+
});
|
|
17611
|
+
return this._viewer.scene.primitives.add(primitive);
|
|
17815
17612
|
}
|
|
17816
|
-
// 开始分析
|
|
17817
17613
|
start() {
|
|
17818
17614
|
// 判断是否添加了模型
|
|
17819
17615
|
var flag = false;
|
|
17616
|
+
var that = this;
|
|
17820
17617
|
var models = this._viewer.scene.primitives._primitives;
|
|
17821
17618
|
for (let i = 0; i < models.length; i++) {
|
|
17822
17619
|
if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
|
|
17823
|
-
models[i].
|
|
17620
|
+
models[i].enableFlattenning = true;
|
|
17621
|
+
models[i].flattenDiscard = true;
|
|
17622
|
+
// models[i].readyPromise.then(function (tileset) {
|
|
17623
|
+
// that.g_flattenedPolygonTexture.attachTileset(tileset);
|
|
17624
|
+
// });
|
|
17824
17625
|
flag = true;
|
|
17825
17626
|
}
|
|
17826
17627
|
}
|
|
17827
17628
|
if (flag) {
|
|
17828
|
-
this.remove(
|
|
17629
|
+
this.remove();
|
|
17829
17630
|
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.HorizontalArea);
|
|
17830
|
-
// this._drawManager.startDraw("polygon", { clampToGround: true });
|
|
17831
17631
|
} else {
|
|
17832
17632
|
(0,message/* default */.Z)({
|
|
17833
17633
|
message: this._language["addModelTips"],
|
|
@@ -17837,50 +17637,40 @@ class ModelFlatViewModel {
|
|
|
17837
17637
|
}
|
|
17838
17638
|
// 切换高度重新计算
|
|
17839
17639
|
setHeight(val) {
|
|
17840
|
-
this._options.
|
|
17841
|
-
if (this.currentFlatPolygonIndex == -1) {
|
|
17842
|
-
this._flatteningPolygonTex.setFlattenedPolygonHeight(-1, Number(val));
|
|
17843
|
-
} else {
|
|
17844
|
-
this._flatteningPolygonTex.setFlattenedPolygonHeight(this.currentFlatPolygonIndex, Number(val));
|
|
17845
|
-
}
|
|
17846
|
-
}
|
|
17847
|
-
// 切换辅助面显示
|
|
17848
|
-
setFlatteningShow(val) {
|
|
17849
|
-
this._options.flatteningShow = val;
|
|
17850
|
-
if (val) {
|
|
17851
|
-
this._assistPolygons.forEach(item => {
|
|
17852
|
-
item.show = true;
|
|
17853
|
-
});
|
|
17854
|
-
} else {
|
|
17855
|
-
this._assistPolygons.forEach(item => {
|
|
17856
|
-
item.show = false;
|
|
17857
|
-
});
|
|
17858
|
-
}
|
|
17859
|
-
}
|
|
17860
|
-
// 设置平整实例
|
|
17861
|
-
setCurrentFlatPolygonIndex(val) {
|
|
17862
|
-
this.currentFlatPolygonIndex = val;
|
|
17640
|
+
this._options.height = Number(val);
|
|
17863
17641
|
}
|
|
17864
|
-
|
|
17865
|
-
|
|
17866
|
-
this.
|
|
17867
|
-
|
|
17868
|
-
this.
|
|
17869
|
-
|
|
17870
|
-
this._viewer.
|
|
17642
|
+
remove() {
|
|
17643
|
+
// 销毁地形开挖
|
|
17644
|
+
if (this.intervalId) {
|
|
17645
|
+
clearInterval(this.intervalId);
|
|
17646
|
+
this.ii = 0;
|
|
17647
|
+
if (this.entity0) {
|
|
17648
|
+
this._viewer.scene.primitives.remove(this.entity0);
|
|
17649
|
+
this.entity0 = undefined;
|
|
17871
17650
|
}
|
|
17872
|
-
this.
|
|
17651
|
+
if (this.wall) {
|
|
17652
|
+
this._viewer.scene.primitives.remove(this.wall);
|
|
17653
|
+
this.wall = undefined;
|
|
17654
|
+
}
|
|
17655
|
+
}
|
|
17656
|
+
if (this._wallPrimitive) {
|
|
17657
|
+
this._viewer.scene.primitives.remove(this._wallPrimitive);
|
|
17658
|
+
this._wallPrimitive = undefined;
|
|
17873
17659
|
}
|
|
17660
|
+
this._Kq3dTerrainExcavation && this._Kq3dTerrainExcavation.destroy();
|
|
17661
|
+
this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
|
|
17874
17662
|
}
|
|
17875
17663
|
// 清除
|
|
17876
17664
|
clear() {
|
|
17877
|
-
this.remove(true);
|
|
17878
17665
|
this._measureResult = null;
|
|
17879
17666
|
this._measureHandler.clear();
|
|
17667
|
+
this.remove();
|
|
17880
17668
|
}
|
|
17881
17669
|
//销毁
|
|
17882
17670
|
destroy() {
|
|
17883
17671
|
this.clear();
|
|
17672
|
+
// this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.detachAllTileset();
|
|
17673
|
+
// this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.destroy();
|
|
17884
17674
|
this._measureHandler && this._measureHandler.destroy();
|
|
17885
17675
|
this._measureHandler = null;
|
|
17886
17676
|
}
|
|
@@ -17891,20 +17681,17 @@ var client_icons_vue_ = __webpack_require__(348);
|
|
|
17891
17681
|
var util_ = __webpack_require__(3458);
|
|
17892
17682
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
17893
17683
|
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
17894
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/
|
|
17684
|
+
;// 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
|
|
17895
17685
|
|
|
17896
17686
|
const _hoisted_1 = {
|
|
17897
|
-
class: "kq3d-model-
|
|
17687
|
+
class: "kq3d-model-excavate-box",
|
|
17898
17688
|
ref: "ref_box"
|
|
17899
17689
|
};
|
|
17900
17690
|
const _hoisted_2 = {
|
|
17901
|
-
class: "kq3d-model-
|
|
17691
|
+
class: "kq3d-model-excavate-span"
|
|
17902
17692
|
};
|
|
17903
17693
|
const _hoisted_3 = {
|
|
17904
|
-
class: "kq3d-model-
|
|
17905
|
-
};
|
|
17906
|
-
const _hoisted_4 = {
|
|
17907
|
-
class: "kq3d-model-flat-footer"
|
|
17694
|
+
class: "kq3d-model-excavate-footer"
|
|
17908
17695
|
};
|
|
17909
17696
|
|
|
17910
17697
|
|
|
@@ -17912,14 +17699,15 @@ const _hoisted_4 = {
|
|
|
17912
17699
|
|
|
17913
17700
|
|
|
17914
17701
|
|
|
17915
|
-
|
|
17916
17702
|
//语言
|
|
17917
17703
|
|
|
17918
17704
|
const __default__ = {
|
|
17919
|
-
name: "
|
|
17705
|
+
name: "Kq3dModelExcavate"
|
|
17920
17706
|
};
|
|
17921
|
-
/* harmony default export */ var
|
|
17707
|
+
/* harmony default export */ var ModelExcavatevue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
17922
17708
|
props: {
|
|
17709
|
+
//指定组件绑定的viewer对象的div的id
|
|
17710
|
+
mapTarget: String,
|
|
17923
17711
|
// 设置参数
|
|
17924
17712
|
settingParams: {
|
|
17925
17713
|
type: Object
|
|
@@ -17950,7 +17738,7 @@ const __default__ = {
|
|
|
17950
17738
|
// HeaderTemp图标
|
|
17951
17739
|
headerTempIcon: {
|
|
17952
17740
|
type: [Object, String],
|
|
17953
|
-
default: client_icons_vue_.
|
|
17741
|
+
default: client_icons_vue_.IconModelExcavation
|
|
17954
17742
|
},
|
|
17955
17743
|
// HeaderTemp Title&Icon的位置
|
|
17956
17744
|
isRight: {
|
|
@@ -17967,19 +17755,16 @@ const __default__ = {
|
|
|
17967
17755
|
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
17968
17756
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]);
|
|
17969
17757
|
let viewModel = null;
|
|
17758
|
+
let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.locale);
|
|
17970
17759
|
|
|
17971
17760
|
// 获取组件传参
|
|
17972
17761
|
|
|
17973
17762
|
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
17974
|
-
|
|
17975
|
-
//
|
|
17976
|
-
|
|
17977
|
-
//
|
|
17978
|
-
|
|
17979
|
-
// 模型平整深度范围最大值
|
|
17980
|
-
flatteningShow: props.settingParams && props.settingParams.maxExcavationDepth || true,
|
|
17981
|
-
// 压平面是否显示
|
|
17982
|
-
showFlattenedPolygons: props.settingParams && props.settingParams.showFlattenedPolygons || false // 是否显示多个压平面分析结果
|
|
17763
|
+
excavationDepth: props.settingParams && props.settingParams.excavationDepth || 20,
|
|
17764
|
+
// 地形开挖深度
|
|
17765
|
+
minExcavationDepth: props.settingParams && props.settingParams.minExcavationDepth || 0,
|
|
17766
|
+
// 地形开挖深度范围最小值
|
|
17767
|
+
maxExcavationDepth: props.settingParams && props.settingParams.maxExcavationDepth || 100 // 地形开挖深度范围最大值
|
|
17983
17768
|
});
|
|
17984
17769
|
|
|
17985
17770
|
// 组件容器Ref
|
|
@@ -17997,7 +17782,7 @@ const __default__ = {
|
|
|
17997
17782
|
let headerTempTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
17998
17783
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => locale.value, (newVal, oldVal) => {
|
|
17999
17784
|
language.value = messages.value[newVal]["webgl"];
|
|
18000
|
-
headerTempTitle.value = language.value.
|
|
17785
|
+
headerTempTitle.value = language.value.modelExcavateTitle;
|
|
18001
17786
|
});
|
|
18002
17787
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
18003
17788
|
(0,util_.updatePosition)(boxRef.value, props);
|
|
@@ -18006,13 +17791,18 @@ const __default__ = {
|
|
|
18006
17791
|
});
|
|
18007
17792
|
watchCreateHeaderTemp();
|
|
18008
17793
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
18009
|
-
|
|
17794
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
17795
|
+
watchCreateHeaderTemp();
|
|
17796
|
+
});
|
|
18010
17797
|
});
|
|
18011
17798
|
|
|
18012
17799
|
//父组件ScenceView初始化完成后执行
|
|
18013
17800
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
18014
17801
|
if (scenceView) {
|
|
18015
|
-
viewModel = new
|
|
17802
|
+
viewModel = new ModelExcavateViewModel(scenceView, {
|
|
17803
|
+
height: formItem.excavationDepth
|
|
17804
|
+
});
|
|
17805
|
+
window.scenceView = scenceView;
|
|
18016
17806
|
}
|
|
18017
17807
|
});
|
|
18018
17808
|
});
|
|
@@ -18026,21 +17816,9 @@ const __default__ = {
|
|
|
18026
17816
|
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
18027
17817
|
}
|
|
18028
17818
|
};
|
|
18029
|
-
//
|
|
17819
|
+
// 调整开挖深度
|
|
18030
17820
|
function changeHeight() {
|
|
18031
|
-
viewModel && viewModel.setHeight(formItem.
|
|
18032
|
-
}
|
|
18033
|
-
// 调整压平面是否显示
|
|
18034
|
-
function onChangeFlatteningShow() {
|
|
18035
|
-
viewModel && viewModel.setFlatteningShow(formItem.flatteningShow);
|
|
18036
|
-
}
|
|
18037
|
-
// 获取平整分析个数
|
|
18038
|
-
function getFlatCount() {
|
|
18039
|
-
return viewModel && viewModel.getFlatCount();
|
|
18040
|
-
}
|
|
18041
|
-
// 设置操作平整实例
|
|
18042
|
-
function setCurrentFlatPolygonIndex(val) {
|
|
18043
|
-
viewModel && viewModel.setCurrentFlatPolygonIndex(val);
|
|
17821
|
+
viewModel && viewModel.setHeight(formItem.excavationDepth);
|
|
18044
17822
|
}
|
|
18045
17823
|
// 开始分析
|
|
18046
17824
|
function startOperation() {
|
|
@@ -18056,8 +17834,6 @@ const __default__ = {
|
|
|
18056
17834
|
viewModel && viewModel.destroy();
|
|
18057
17835
|
});
|
|
18058
17836
|
__expose({
|
|
18059
|
-
getFlatCount,
|
|
18060
|
-
setCurrentFlatPolygonIndex,
|
|
18061
17837
|
clear
|
|
18062
17838
|
});
|
|
18063
17839
|
return (_ctx, _cache) => {
|
|
@@ -18065,10 +17841,9 @@ const __default__ = {
|
|
|
18065
17841
|
const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
|
|
18066
17842
|
const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
|
|
18067
17843
|
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
18068
|
-
const _component_kq_switch = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-switch");
|
|
18069
17844
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
18070
17845
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
18071
|
-
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-model-
|
|
17846
|
+
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-model-excavate", {
|
|
18072
17847
|
'kq-box-shadow': __props.showShadow
|
|
18073
17848
|
}]),
|
|
18074
17849
|
ref_key: "boxRef",
|
|
@@ -18081,35 +17856,35 @@ const __default__ = {
|
|
|
18081
17856
|
gutter: 10
|
|
18082
17857
|
}, {
|
|
18083
17858
|
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, {
|
|
18084
|
-
span: 7
|
|
17859
|
+
span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 7 : 10
|
|
18085
17860
|
}, {
|
|
18086
|
-
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).
|
|
17861
|
+
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 /* TEXT */)]),
|
|
18087
17862
|
_: 1 /* STABLE */
|
|
18088
|
-
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
18089
|
-
span: 11
|
|
17863
|
+
}, 8 /* PROPS */, ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
17864
|
+
span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 11 : 8
|
|
18090
17865
|
}, {
|
|
18091
17866
|
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, {
|
|
18092
|
-
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).
|
|
18093
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).
|
|
17867
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).excavationDepth,
|
|
17868
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).excavationDepth = $event),
|
|
18094
17869
|
step: 1,
|
|
18095
|
-
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).
|
|
18096
|
-
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).
|
|
17870
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minExcavationDepth,
|
|
17871
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxExcavationDepth,
|
|
18097
17872
|
onChange: _cache[1] || (_cache[1] = $event => changeHeight()),
|
|
18098
17873
|
onClick: _cache[2] || (_cache[2] = $event => changeHeight())
|
|
18099
17874
|
}, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
|
|
18100
17875
|
_: 1 /* STABLE */
|
|
18101
|
-
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
17876
|
+
}, 8 /* PROPS */, ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
18102
17877
|
span: 6,
|
|
18103
17878
|
style: {
|
|
18104
17879
|
"text-align": "end"
|
|
18105
17880
|
}
|
|
18106
17881
|
}, {
|
|
18107
17882
|
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, {
|
|
18108
|
-
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).
|
|
18109
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).
|
|
18110
|
-
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).
|
|
17883
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).excavationDepth,
|
|
17884
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).excavationDepth = $event),
|
|
17885
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minExcavationDepth,
|
|
18111
17886
|
step: 1,
|
|
18112
|
-
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).
|
|
17887
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxExcavationDepth,
|
|
18113
17888
|
"controls-position": "right",
|
|
18114
17889
|
onInput: _cache[4] || (_cache[4] = $event => changeHeight())
|
|
18115
17890
|
}, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
|
|
@@ -18117,38 +17892,19 @@ const __default__ = {
|
|
|
18117
17892
|
})]),
|
|
18118
17893
|
_: 1 /* STABLE */
|
|
18119
17894
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
18120
|
-
|
|
18121
|
-
}, {
|
|
18122
|
-
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, {
|
|
18123
|
-
span: 7
|
|
18124
|
-
}, {
|
|
18125
|
-
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_3, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).flatteningShow), 1 /* TEXT */)]),
|
|
18126
|
-
_: 1 /* STABLE */
|
|
18127
|
-
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
18128
|
-
span: 11
|
|
18129
|
-
}, {
|
|
18130
|
-
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_switch, {
|
|
18131
|
-
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).flatteningShow,
|
|
18132
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).flatteningShow = $event),
|
|
18133
|
-
onChange: onChangeFlatteningShow
|
|
18134
|
-
}, null, 8 /* PROPS */, ["modelValue"])]),
|
|
18135
|
-
_: 1 /* STABLE */
|
|
18136
|
-
})]),
|
|
18137
|
-
_: 1 /* STABLE */
|
|
18138
|
-
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
18139
|
-
class: "kq3d-model-flat-tip"
|
|
17895
|
+
class: "kq3d-model-excavate-tip"
|
|
18140
17896
|
}, {
|
|
18141
17897
|
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 /* TEXT */)]),
|
|
18142
17898
|
_: 1 /* STABLE */
|
|
18143
|
-
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div",
|
|
18144
|
-
onClick: _cache[
|
|
17899
|
+
}), (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, {
|
|
17900
|
+
onClick: _cache[5] || (_cache[5] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startOperation(), ["stop"])),
|
|
18145
17901
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startOperation,
|
|
18146
17902
|
type: "primary"
|
|
18147
17903
|
}, {
|
|
18148
17904
|
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 /* TEXT */)]),
|
|
18149
17905
|
_: 1 /* STABLE */
|
|
18150
17906
|
}, 8 /* PROPS */, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
18151
|
-
onClick: _cache[
|
|
17907
|
+
onClick: _cache[6] || (_cache[6] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clear(), ["stop"])),
|
|
18152
17908
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear
|
|
18153
17909
|
}, {
|
|
18154
17910
|
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 /* TEXT */)]),
|
|
@@ -18157,19 +17913,19 @@ const __default__ = {
|
|
|
18157
17913
|
};
|
|
18158
17914
|
}
|
|
18159
17915
|
}));
|
|
18160
|
-
;// CONCATENATED MODULE: ./src/webgl/
|
|
17916
|
+
;// CONCATENATED MODULE: ./src/webgl/modelexcavate/ModelExcavate.vue?vue&type=script&setup=true&lang=js
|
|
18161
17917
|
|
|
18162
|
-
;// CONCATENATED MODULE: ./src/webgl/
|
|
17918
|
+
;// CONCATENATED MODULE: ./src/webgl/modelexcavate/ModelExcavate.vue
|
|
18163
17919
|
|
|
18164
17920
|
|
|
18165
17921
|
|
|
18166
|
-
const __exports__ =
|
|
17922
|
+
const __exports__ = ModelExcavatevue_type_script_setup_true_lang_js;
|
|
18167
17923
|
|
|
18168
|
-
/* harmony default export */ var
|
|
17924
|
+
/* harmony default export */ var ModelExcavate = (__exports__);
|
|
18169
17925
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
18170
17926
|
var init_js_ = __webpack_require__(7997);
|
|
18171
17927
|
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
18172
|
-
;// CONCATENATED MODULE: ./src/webgl/
|
|
17928
|
+
;// CONCATENATED MODULE: ./src/webgl/modelexcavate/index.js
|
|
18173
17929
|
/*
|
|
18174
17930
|
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
18175
17931
|
* All rights reserved.
|
|
@@ -18177,25 +17933,25 @@ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
|
18177
17933
|
|
|
18178
17934
|
|
|
18179
17935
|
|
|
18180
|
-
|
|
17936
|
+
ModelExcavate.install = (Vue, opts) => {
|
|
18181
17937
|
init_js_default()(Vue, opts);
|
|
18182
|
-
Vue.component(
|
|
17938
|
+
Vue.component(ModelExcavate.name, ModelExcavate);
|
|
18183
17939
|
};
|
|
18184
17940
|
|
|
18185
17941
|
|
|
18186
17942
|
/***/ }),
|
|
18187
17943
|
|
|
18188
|
-
/***/
|
|
17944
|
+
/***/ 4075:
|
|
18189
17945
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18190
17946
|
|
|
18191
17947
|
"use strict";
|
|
18192
17948
|
|
|
18193
17949
|
// EXPORTS
|
|
18194
17950
|
__webpack_require__.d(__webpack_exports__, {
|
|
18195
|
-
"default": function() { return /* reexport */
|
|
17951
|
+
"default": function() { return /* reexport */ ModelFilter; }
|
|
18196
17952
|
});
|
|
18197
17953
|
|
|
18198
|
-
// UNUSED EXPORTS:
|
|
17954
|
+
// UNUSED EXPORTS: ModelFilterViewModel
|
|
18199
17955
|
|
|
18200
17956
|
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
18201
17957
|
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
|
|
@@ -18205,252 +17961,109 @@ var gis_utils_ = __webpack_require__(7135);
|
|
|
18205
17961
|
var defineProperty = __webpack_require__(5301);
|
|
18206
17962
|
// EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
|
|
18207
17963
|
var es_array_push_js_ = __webpack_require__(2118);
|
|
17964
|
+
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.constructor.js"
|
|
17965
|
+
var esnext_iterator_constructor_js_ = __webpack_require__(8470);
|
|
17966
|
+
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.find.js"
|
|
17967
|
+
var esnext_iterator_find_js_ = __webpack_require__(8697);
|
|
18208
17968
|
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
18209
17969
|
var message = __webpack_require__(1349);
|
|
18210
|
-
;// CONCATENATED MODULE: ./src/webgl/
|
|
17970
|
+
;// CONCATENATED MODULE: ./src/webgl/modelfilter/ModelFilterViewModel.js
|
|
18211
17971
|
|
|
18212
17972
|
|
|
18213
|
-
|
|
18214
|
-
|
|
18215
|
-
|
|
17973
|
+
|
|
17974
|
+
|
|
17975
|
+
/*
|
|
17976
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
17977
|
+
* All rights reserved.
|
|
18216
17978
|
*/
|
|
18217
|
-
|
|
17979
|
+
//模型滤镜逻辑类
|
|
18218
17980
|
|
|
18219
|
-
class
|
|
17981
|
+
class ModelFilterViewModel {
|
|
18220
17982
|
constructor(scenceView, options) {
|
|
18221
17983
|
(0,defineProperty/* default */.Z)(this, "_viewer", null);
|
|
18222
17984
|
//三维viewer对象
|
|
18223
17985
|
(0,defineProperty/* default */.Z)(this, "_options", {});
|
|
18224
17986
|
//Box裁剪存储参数对象
|
|
18225
|
-
(0,defineProperty/* default */.Z)(this, "
|
|
18226
|
-
|
|
18227
|
-
|
|
18228
|
-
|
|
18229
|
-
|
|
18230
|
-
|
|
18231
|
-
|
|
18232
|
-
|
|
18233
|
-
|
|
18234
|
-
(0,defineProperty/* default */.Z)(this, "entity0", null);
|
|
18235
|
-
(0,defineProperty/* default */.Z)(this, "_language", {});
|
|
18236
|
-
(0,defineProperty/* default */.Z)(this, "wall", null);
|
|
18237
|
-
(0,defineProperty/* default */.Z)(this, "ratio", 0.01);
|
|
18238
|
-
(0,defineProperty/* default */.Z)(this, "ii", 1);
|
|
18239
|
-
(0,defineProperty/* default */.Z)(this, "scratchCartesian2", new window.Cesium.Cartesian3());
|
|
18240
|
-
(0,defineProperty/* default */.Z)(this, "scratchCartesian3", new window.Cesium.Cartesian3());
|
|
18241
|
-
(0,defineProperty/* default */.Z)(this, "scratchCartesian4", new window.Cesium.Cartesian3());
|
|
18242
|
-
(0,defineProperty/* default */.Z)(this, "scratchCartesian5", new window.Cesium.Cartesian3());
|
|
18243
|
-
(0,defineProperty/* default */.Z)(this, "scratchCartesian6", new window.Cesium.Cartesian3());
|
|
18244
|
-
(0,defineProperty/* default */.Z)(this, "scratchCartesian7", new window.Cesium.Cartesian3());
|
|
18245
|
-
(0,defineProperty/* default */.Z)(this, "intervalId", null);
|
|
18246
|
-
(0,defineProperty/* default */.Z)(this, "g_flattenedPolygonTexture", null);
|
|
18247
|
-
this._language = scenceView._language;
|
|
17987
|
+
(0,defineProperty/* default */.Z)(this, "_defaultOptions", {
|
|
17988
|
+
//默认参数对象
|
|
17989
|
+
brightness: 1,
|
|
17990
|
+
contrast: 1,
|
|
17991
|
+
tone: 0,
|
|
17992
|
+
saturation: 1,
|
|
17993
|
+
gamma: 1
|
|
17994
|
+
});
|
|
17995
|
+
this._options = Object.assign({}, options, this._defaultOptions);
|
|
18248
17996
|
this._viewer = scenceView._viewer;
|
|
18249
|
-
this._options =
|
|
18250
|
-
|
|
18251
|
-
|
|
18252
|
-
|
|
18253
|
-
|
|
18254
|
-
|
|
18255
|
-
|
|
18256
|
-
|
|
18257
|
-
|
|
18258
|
-
|
|
18259
|
-
|
|
18260
|
-
|
|
18261
|
-
|
|
18262
|
-
models[i].readyPromise.then(function (tileset) {
|
|
18263
|
-
that.g_flattenedPolygonTexture.attachTileset(tileset);
|
|
18264
|
-
});
|
|
18265
|
-
}
|
|
17997
|
+
this._options.viewer = this._viewer;
|
|
17998
|
+
}
|
|
17999
|
+
|
|
18000
|
+
// 查找所有3dtiles模型对象
|
|
18001
|
+
findLayers() {
|
|
18002
|
+
let tilesets = [];
|
|
18003
|
+
const primitives = this._viewer.scene.primitives._primitives;
|
|
18004
|
+
for (let m = 0; m < primitives.length; m++) {
|
|
18005
|
+
if (primitives[m] instanceof Cesium.Cesium3DTileset) {
|
|
18006
|
+
tilesets.push({
|
|
18007
|
+
guid: primitives[m].guid,
|
|
18008
|
+
name: primitives[m].name ? primitives[m].name : primitives[m].guid
|
|
18009
|
+
});
|
|
18266
18010
|
}
|
|
18267
18011
|
}
|
|
18268
|
-
|
|
18269
|
-
this._measureHandler.measureEvent.addEventListener(function (result) {
|
|
18270
|
-
that._measureResult = result;
|
|
18271
|
-
result.measureResult.label.show = false;
|
|
18272
|
-
});
|
|
18273
|
-
this._measureHandler.activeEvent.addEventListener(function (ret) {
|
|
18274
|
-
if (ret == false) {
|
|
18275
|
-
if (that._measureResult) {
|
|
18276
|
-
that._options.positions = that._measureResult.positions;
|
|
18277
|
-
that.createDynamicExcavationEffect();
|
|
18278
|
-
that._measureResult.measureResult.destroy();
|
|
18279
|
-
}
|
|
18280
|
-
}
|
|
18281
|
-
});
|
|
18012
|
+
return tilesets;
|
|
18282
18013
|
}
|
|
18283
18014
|
|
|
18284
|
-
//
|
|
18285
|
-
|
|
18286
|
-
|
|
18287
|
-
|
|
18288
|
-
|
|
18289
|
-
|
|
18290
|
-
|
|
18291
|
-
hasWall: false
|
|
18292
|
-
});
|
|
18293
|
-
if (this._wallPrimitive) {
|
|
18294
|
-
this._viewer.scene.primitives.remove(this._wallPrimitive);
|
|
18295
|
-
this._wallPrimitive = undefined;
|
|
18015
|
+
// 设置过滤对象
|
|
18016
|
+
setLayer(layerId) {
|
|
18017
|
+
if (layerId) {
|
|
18018
|
+
this.clear();
|
|
18019
|
+
this._options.tileset = this.findLayerById(layerId);
|
|
18020
|
+
this._viewer.flyTo(this._options.tileset);
|
|
18021
|
+
this._options.tileset.colorCorrectEnable = true;
|
|
18296
18022
|
}
|
|
18297
|
-
|
|
18298
|
-
viewer: this._viewer,
|
|
18299
|
-
height: this._options.height,
|
|
18300
|
-
positions: this._options.positions,
|
|
18301
|
-
elevationOnTerrain: false
|
|
18302
|
-
});
|
|
18303
|
-
this._viewer.scene.primitives.add(this._wallPrimitive);
|
|
18304
|
-
let that = this;
|
|
18305
|
-
this._wallPrimitive._readyEvent.addEventListener(function (eventType) {
|
|
18306
|
-
if (eventType != "Ready") {
|
|
18307
|
-
return;
|
|
18308
|
-
}
|
|
18309
|
-
that.g_flattenedPolygonTexture && that.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
|
|
18310
|
-
var myPolygon = window.Cesium.PolygonGeometry.fromPositions({
|
|
18311
|
-
positions: that._options.positions,
|
|
18312
|
-
height: window.Cesium.Cartographic.fromCartesian(that._options.positions[0]).height
|
|
18313
|
-
});
|
|
18314
|
-
that.g_flattenedPolygonTexture && that.g_flattenedPolygonTexture.addFlattenedPolygon(myPolygon);
|
|
18315
|
-
|
|
18316
|
-
// that.intervalId = setInterval(function () {
|
|
18317
|
-
// if (that.ii > 100) {
|
|
18318
|
-
// if (that.entity0) {
|
|
18319
|
-
// that._viewer.scene.primitives.remove(that.entity0);
|
|
18320
|
-
// that.entity0 = undefined;
|
|
18321
|
-
// }
|
|
18322
|
-
// if (that.wall) {
|
|
18323
|
-
// that._viewer.scene.primitives.remove(that.wall);
|
|
18324
|
-
// that.wall = undefined;
|
|
18325
|
-
// }
|
|
18326
|
-
// clearInterval(that.intervalId);
|
|
18327
|
-
// that.ii = 0;
|
|
18328
|
-
// return;
|
|
18329
|
-
// }
|
|
18330
|
-
|
|
18331
|
-
// var carto2 = window.Cesium.Cartesian3.lerp(that._options.positions[0], that._options.positions[3], that.ratio * that.ii, that.scratchCartesian2);
|
|
18332
|
-
// var carto3 = window.Cesium.Cartesian3.lerp(that._options.positions[1], that._options.positions[2], that.ratio * that.ii, that.scratchCartesian3);
|
|
18333
|
-
|
|
18334
|
-
// if (that.entity0) {
|
|
18335
|
-
// that._viewer.scene.primitives.remove(that.entity0);
|
|
18336
|
-
// that.entity0 = undefined;
|
|
18337
|
-
// }
|
|
18338
|
-
|
|
18339
|
-
// that.entity0 = that.createPolyline([carto2, carto3]);
|
|
18340
|
-
|
|
18341
|
-
// that.ii++;
|
|
18342
|
-
// that.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
|
|
18023
|
+
}
|
|
18343
18024
|
|
|
18344
|
-
|
|
18345
|
-
|
|
18346
|
-
|
|
18347
|
-
|
|
18348
|
-
|
|
18349
|
-
// }, 100);
|
|
18025
|
+
//根据id获取tileset对象
|
|
18026
|
+
findLayerById(id) {
|
|
18027
|
+
const primitives = this._options.viewer.scene.primitives._primitives;
|
|
18028
|
+
const tileset = primitives.find(function (item) {
|
|
18029
|
+
return item.guid === id;
|
|
18350
18030
|
});
|
|
18031
|
+
return tileset;
|
|
18351
18032
|
}
|
|
18352
|
-
|
|
18353
|
-
|
|
18354
|
-
|
|
18355
|
-
this._viewer.scene.primitives.remove(this.wall);
|
|
18356
|
-
this.wall = undefined;
|
|
18357
|
-
}
|
|
18358
|
-
var geometryInstances = [];
|
|
18359
|
-
geometryInstances.push(new window.Cesium.GeometryInstance({
|
|
18360
|
-
geometry: new window.Cesium.WallGeometry({
|
|
18361
|
-
positions: positions,
|
|
18362
|
-
maximumHeights: [10, 10],
|
|
18363
|
-
minimumHeights: [-10, -10],
|
|
18364
|
-
vertexFormat: window.Cesium.VertexFormat.POSITION_NORMAL_AND_ST
|
|
18365
|
-
})
|
|
18366
|
-
}));
|
|
18367
|
-
this.wall = new window.Cesium.Primitive({
|
|
18368
|
-
geometryInstances: geometryInstances,
|
|
18369
|
-
appearance: new window.Cesium.MaterialAppearance({
|
|
18370
|
-
material: material
|
|
18371
|
-
})
|
|
18372
|
-
});
|
|
18373
|
-
this._viewer.scene.primitives.add(this.wall);
|
|
18374
|
-
var geo = new window.Cesium.GroundPolylineGeometry({
|
|
18375
|
-
positions: positions,
|
|
18376
|
-
width: 40.0,
|
|
18377
|
-
vertexFormat: window.Cesium.PolylineMaterialAppearance.VERTEX_FORMAT
|
|
18378
|
-
});
|
|
18379
|
-
var primitive = new window.Cesium.GroundPolylinePrimitive({
|
|
18380
|
-
asynchronous: false,
|
|
18381
|
-
classificationType: window.Cesium.ClassificationType.BOTH,
|
|
18382
|
-
geometryInstances: new window.Cesium.GeometryInstance({
|
|
18383
|
-
geometry: geo
|
|
18384
|
-
}),
|
|
18385
|
-
appearance: new window.Cesium.PolylineMaterialAppearance({
|
|
18386
|
-
material: material
|
|
18387
|
-
})
|
|
18388
|
-
});
|
|
18389
|
-
return this._viewer.scene.primitives.add(primitive);
|
|
18033
|
+
// 设置亮度
|
|
18034
|
+
setBrightness(newValue) {
|
|
18035
|
+
this._options.tileset.brightness = Number(newValue);
|
|
18390
18036
|
}
|
|
18391
|
-
|
|
18392
|
-
|
|
18393
|
-
|
|
18394
|
-
var that = this;
|
|
18395
|
-
var models = this._viewer.scene.primitives._primitives;
|
|
18396
|
-
for (let i = 0; i < models.length; i++) {
|
|
18397
|
-
if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
|
|
18398
|
-
models[i].enableFlattenning = true;
|
|
18399
|
-
models[i].flattenDiscard = true;
|
|
18400
|
-
// models[i].readyPromise.then(function (tileset) {
|
|
18401
|
-
// that.g_flattenedPolygonTexture.attachTileset(tileset);
|
|
18402
|
-
// });
|
|
18403
|
-
flag = true;
|
|
18404
|
-
}
|
|
18405
|
-
}
|
|
18406
|
-
if (flag) {
|
|
18407
|
-
this.remove();
|
|
18408
|
-
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.HorizontalArea);
|
|
18409
|
-
} else {
|
|
18410
|
-
(0,message/* default */.Z)({
|
|
18411
|
-
message: this._language["addModelTips"],
|
|
18412
|
-
type: "warning"
|
|
18413
|
-
});
|
|
18414
|
-
}
|
|
18037
|
+
// 设置对比
|
|
18038
|
+
setContrast(newValue) {
|
|
18039
|
+
this._options.tileset.contrast = Number(newValue);
|
|
18415
18040
|
}
|
|
18416
|
-
//
|
|
18417
|
-
|
|
18418
|
-
this._options.
|
|
18041
|
+
// 设置色调
|
|
18042
|
+
setTone(newValue) {
|
|
18043
|
+
this._options.tileset.hue = Number(newValue);
|
|
18419
18044
|
}
|
|
18420
|
-
|
|
18421
|
-
|
|
18422
|
-
|
|
18423
|
-
clearInterval(this.intervalId);
|
|
18424
|
-
this.ii = 0;
|
|
18425
|
-
if (this.entity0) {
|
|
18426
|
-
this._viewer.scene.primitives.remove(this.entity0);
|
|
18427
|
-
this.entity0 = undefined;
|
|
18428
|
-
}
|
|
18429
|
-
if (this.wall) {
|
|
18430
|
-
this._viewer.scene.primitives.remove(this.wall);
|
|
18431
|
-
this.wall = undefined;
|
|
18432
|
-
}
|
|
18433
|
-
}
|
|
18434
|
-
if (this._wallPrimitive) {
|
|
18435
|
-
this._viewer.scene.primitives.remove(this._wallPrimitive);
|
|
18436
|
-
this._wallPrimitive = undefined;
|
|
18437
|
-
}
|
|
18438
|
-
this._Kq3dTerrainExcavation && this._Kq3dTerrainExcavation.destroy();
|
|
18439
|
-
this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
|
|
18045
|
+
// 设置饱和
|
|
18046
|
+
setSaturation(newValue) {
|
|
18047
|
+
this._options.tileset.saturation = Number(newValue);
|
|
18440
18048
|
}
|
|
18441
|
-
//
|
|
18049
|
+
// 设置伽马
|
|
18050
|
+
setGamma(newValue) {
|
|
18051
|
+
this._options.tileset.gamma = Number(newValue);
|
|
18052
|
+
}
|
|
18053
|
+
//清除
|
|
18442
18054
|
clear() {
|
|
18443
|
-
this.
|
|
18444
|
-
|
|
18445
|
-
|
|
18055
|
+
if (this._options.tileset) {
|
|
18056
|
+
this._options.tileset.brightness = 1;
|
|
18057
|
+
this._options.tileset.contrast = 1;
|
|
18058
|
+
this._options.tileset.hue = 0;
|
|
18059
|
+
this._options.tileset.saturation = 1;
|
|
18060
|
+
this._options.tileset.gamma = 1;
|
|
18061
|
+
}
|
|
18446
18062
|
}
|
|
18063
|
+
|
|
18447
18064
|
//销毁
|
|
18448
18065
|
destroy() {
|
|
18449
18066
|
this.clear();
|
|
18450
|
-
// this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.detachAllTileset();
|
|
18451
|
-
// this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.destroy();
|
|
18452
|
-
this._measureHandler && this._measureHandler.destroy();
|
|
18453
|
-
this._measureHandler = null;
|
|
18454
18067
|
}
|
|
18455
18068
|
}
|
|
18456
18069
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
@@ -18459,17 +18072,27 @@ var client_icons_vue_ = __webpack_require__(348);
|
|
|
18459
18072
|
var util_ = __webpack_require__(3458);
|
|
18460
18073
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
18461
18074
|
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
18462
|
-
|
|
18075
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue"
|
|
18076
|
+
var client_common_vue_ = __webpack_require__(7064);
|
|
18077
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/modelfilter/ModelFilter.vue?vue&type=script&setup=true&lang=js
|
|
18463
18078
|
|
|
18464
18079
|
const _hoisted_1 = {
|
|
18465
|
-
class: "kq3d-model-
|
|
18466
|
-
ref: "ref_box"
|
|
18080
|
+
class: "kq3d-model-filter-span"
|
|
18467
18081
|
};
|
|
18468
18082
|
const _hoisted_2 = {
|
|
18469
|
-
class: "kq3d-model-
|
|
18083
|
+
class: "kq3d-model-filter-span"
|
|
18470
18084
|
};
|
|
18471
18085
|
const _hoisted_3 = {
|
|
18472
|
-
class: "kq3d-model-
|
|
18086
|
+
class: "kq3d-model-filter-span"
|
|
18087
|
+
};
|
|
18088
|
+
const _hoisted_4 = {
|
|
18089
|
+
class: "kq3d-model-filter-span"
|
|
18090
|
+
};
|
|
18091
|
+
const _hoisted_5 = {
|
|
18092
|
+
class: "kq3d-model-filter-span"
|
|
18093
|
+
};
|
|
18094
|
+
const _hoisted_6 = {
|
|
18095
|
+
class: "kq3d-model-filter-span"
|
|
18473
18096
|
};
|
|
18474
18097
|
|
|
18475
18098
|
|
|
@@ -18477,15 +18100,14 @@ const _hoisted_3 = {
|
|
|
18477
18100
|
|
|
18478
18101
|
|
|
18479
18102
|
|
|
18103
|
+
|
|
18480
18104
|
//语言
|
|
18481
18105
|
|
|
18482
18106
|
const __default__ = {
|
|
18483
|
-
name: "
|
|
18107
|
+
name: "Kq3dModelFilter"
|
|
18484
18108
|
};
|
|
18485
|
-
/* harmony default export */ var
|
|
18109
|
+
/* harmony default export */ var ModelFiltervue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
18486
18110
|
props: {
|
|
18487
|
-
//指定组件绑定的viewer对象的div的id
|
|
18488
|
-
mapTarget: String,
|
|
18489
18111
|
// 设置参数
|
|
18490
18112
|
settingParams: {
|
|
18491
18113
|
type: Object
|
|
@@ -18516,7 +18138,7 @@ const __default__ = {
|
|
|
18516
18138
|
// HeaderTemp图标
|
|
18517
18139
|
headerTempIcon: {
|
|
18518
18140
|
type: [Object, String],
|
|
18519
|
-
default: client_icons_vue_.
|
|
18141
|
+
default: client_icons_vue_.IconModelFiltering
|
|
18520
18142
|
},
|
|
18521
18143
|
// HeaderTemp Title&Icon的位置
|
|
18522
18144
|
isRight: {
|
|
@@ -18532,22 +18154,29 @@ const __default__ = {
|
|
|
18532
18154
|
proxy
|
|
18533
18155
|
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
18534
18156
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]);
|
|
18157
|
+
let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
|
|
18535
18158
|
let viewModel = null;
|
|
18536
|
-
let
|
|
18537
|
-
|
|
18159
|
+
let ref_box = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
18160
|
+
let tiles = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
18538
18161
|
// 获取组件传参
|
|
18539
18162
|
|
|
18540
|
-
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
18541
|
-
excavationDepth: props.settingParams && props.settingParams.excavationDepth || 20,
|
|
18542
|
-
// 地形开挖深度
|
|
18543
|
-
minExcavationDepth: props.settingParams && props.settingParams.minExcavationDepth || 0,
|
|
18544
|
-
// 地形开挖深度范围最小值
|
|
18545
|
-
maxExcavationDepth: props.settingParams && props.settingParams.maxExcavationDepth || 100 // 地形开挖深度范围最大值
|
|
18546
|
-
});
|
|
18547
|
-
|
|
18548
18163
|
// 组件容器Ref
|
|
18549
18164
|
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
18550
18165
|
|
|
18166
|
+
//模型滤镜参数
|
|
18167
|
+
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
18168
|
+
tileset: props.settingParams && props.settingParams.tileset || null,
|
|
18169
|
+
brightness: props.settingParams && props.settingParams.brightness || 1,
|
|
18170
|
+
// 亮度
|
|
18171
|
+
contrast: props.settingParams && props.settingParams.contrast || 1,
|
|
18172
|
+
// 对比
|
|
18173
|
+
tone: props.settingParams && props.settingParams.tone || 0,
|
|
18174
|
+
// 色调
|
|
18175
|
+
saturation: props.settingParams && props.settingParams.saturation || 1,
|
|
18176
|
+
// 饱和
|
|
18177
|
+
gamma: props.settingParams && props.settingParams.gamma || 1 // 伽马
|
|
18178
|
+
});
|
|
18179
|
+
|
|
18551
18180
|
// 生成组件默认header
|
|
18552
18181
|
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
18553
18182
|
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
@@ -18560,7 +18189,7 @@ const __default__ = {
|
|
|
18560
18189
|
let headerTempTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
18561
18190
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => locale.value, (newVal, oldVal) => {
|
|
18562
18191
|
language.value = messages.value[newVal]["webgl"];
|
|
18563
|
-
headerTempTitle.value = language.value.
|
|
18192
|
+
headerTempTitle.value = language.value.modelFilterPick;
|
|
18564
18193
|
});
|
|
18565
18194
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
18566
18195
|
(0,util_.updatePosition)(boxRef.value, props);
|
|
@@ -18569,18 +18198,30 @@ const __default__ = {
|
|
|
18569
18198
|
});
|
|
18570
18199
|
watchCreateHeaderTemp();
|
|
18571
18200
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
18572
|
-
|
|
18201
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
18202
|
+
watchCreateHeaderTemp();
|
|
18203
|
+
});
|
|
18573
18204
|
});
|
|
18574
|
-
|
|
18205
|
+
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
18575
18206
|
//父组件ScenceView初始化完成后执行
|
|
18576
18207
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
18577
18208
|
if (scenceView) {
|
|
18578
|
-
|
|
18579
|
-
|
|
18580
|
-
|
|
18581
|
-
|
|
18209
|
+
let options = {
|
|
18210
|
+
tileset: formItem.tileset,
|
|
18211
|
+
brightness: formItem.brightness,
|
|
18212
|
+
contrast: formItem.contrast,
|
|
18213
|
+
tone: formItem.tone,
|
|
18214
|
+
saturation: formItem.saturation,
|
|
18215
|
+
gamma: formItem.gamma
|
|
18216
|
+
};
|
|
18217
|
+
viewModel = new ModelFilterViewModel(scenceView, options);
|
|
18582
18218
|
}
|
|
18583
18219
|
});
|
|
18220
|
+
setTimeout(() => {
|
|
18221
|
+
if (viewModel) {
|
|
18222
|
+
tiles.value = viewModel.findLayers(); // 获取所有tileset对象
|
|
18223
|
+
}
|
|
18224
|
+
}, 1000);
|
|
18584
18225
|
});
|
|
18585
18226
|
|
|
18586
18227
|
/**
|
|
@@ -18592,17 +18233,42 @@ const __default__ = {
|
|
|
18592
18233
|
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
18593
18234
|
}
|
|
18594
18235
|
};
|
|
18595
|
-
|
|
18596
|
-
|
|
18597
|
-
|
|
18598
|
-
|
|
18599
|
-
|
|
18600
|
-
|
|
18601
|
-
|
|
18236
|
+
function paramsChanged(value) {
|
|
18237
|
+
if (formItem.tileset) {
|
|
18238
|
+
switch (value) {
|
|
18239
|
+
case "tileset":
|
|
18240
|
+
viewModel.setLayer(formItem.tileset);
|
|
18241
|
+
viewModel.setBrightness(formItem.brightness);
|
|
18242
|
+
viewModel.setContrast(formItem.contrast);
|
|
18243
|
+
viewModel.setTone(formItem.tone);
|
|
18244
|
+
viewModel.setSaturation(formItem.saturation);
|
|
18245
|
+
viewModel.setGamma(formItem.gamma);
|
|
18246
|
+
break;
|
|
18247
|
+
case "brightness":
|
|
18248
|
+
viewModel.setBrightness(formItem.brightness);
|
|
18249
|
+
break;
|
|
18250
|
+
case "contrast":
|
|
18251
|
+
viewModel.setContrast(formItem.contrast);
|
|
18252
|
+
break;
|
|
18253
|
+
case "tone":
|
|
18254
|
+
viewModel.setTone(formItem.tone);
|
|
18255
|
+
break;
|
|
18256
|
+
case "saturation":
|
|
18257
|
+
viewModel.setSaturation(formItem.saturation);
|
|
18258
|
+
break;
|
|
18259
|
+
case "gamma":
|
|
18260
|
+
viewModel.setGamma(formItem.gamma);
|
|
18261
|
+
break;
|
|
18262
|
+
}
|
|
18263
|
+
}
|
|
18602
18264
|
}
|
|
18603
|
-
// 清除
|
|
18604
18265
|
function clear() {
|
|
18605
|
-
viewModel
|
|
18266
|
+
viewModel.clear();
|
|
18267
|
+
formItem.brightness = 1;
|
|
18268
|
+
formItem.contrast = 1;
|
|
18269
|
+
formItem.tone = 0;
|
|
18270
|
+
formItem.saturation = 1;
|
|
18271
|
+
formItem.gamma = 1;
|
|
18606
18272
|
}
|
|
18607
18273
|
|
|
18608
18274
|
// 销毁
|
|
@@ -18610,16 +18276,18 @@ const __default__ = {
|
|
|
18610
18276
|
viewModel && viewModel.destroy();
|
|
18611
18277
|
});
|
|
18612
18278
|
__expose({
|
|
18613
|
-
clear
|
|
18279
|
+
clear,
|
|
18280
|
+
paramsChanged
|
|
18614
18281
|
});
|
|
18615
18282
|
return (_ctx, _cache) => {
|
|
18616
18283
|
const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
|
|
18284
|
+
const _component_kq_option = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-option");
|
|
18285
|
+
const _component_kq_select = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-select");
|
|
18286
|
+
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
18617
18287
|
const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
|
|
18618
18288
|
const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
|
|
18619
|
-
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
18620
|
-
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
18621
18289
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
18622
|
-
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-model-
|
|
18290
|
+
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-model-filter", {
|
|
18623
18291
|
'kq-box-shadow': __props.showShadow
|
|
18624
18292
|
}]),
|
|
18625
18293
|
ref_key: "boxRef",
|
|
@@ -18628,26 +18296,65 @@ const __default__ = {
|
|
|
18628
18296
|
key: 0,
|
|
18629
18297
|
ref_key: "headerTempRef",
|
|
18630
18298
|
ref: headerTempRef
|
|
18631
|
-
}, null, 512 /* NEED_PATCH */)) : (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",
|
|
18299
|
+
}, null, 512 /* NEED_PATCH */)) : (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", {
|
|
18300
|
+
class: "kq3d-model-filter-box",
|
|
18301
|
+
ref_key: "ref_box",
|
|
18302
|
+
ref: ref_box
|
|
18303
|
+
}, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
18632
18304
|
gutter: 10
|
|
18633
18305
|
}, {
|
|
18634
18306
|
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, {
|
|
18635
18307
|
span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 7 : 10
|
|
18636
18308
|
}, {
|
|
18637
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span",
|
|
18309
|
+
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_1, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).modelFilterLayer), 1 /* TEXT */)]),
|
|
18310
|
+
_: 1 /* STABLE */
|
|
18311
|
+
}, 8 /* PROPS */, ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
18312
|
+
span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 17 : 14
|
|
18313
|
+
}, {
|
|
18314
|
+
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_select, {
|
|
18315
|
+
style: {
|
|
18316
|
+
"width": "100%"
|
|
18317
|
+
},
|
|
18318
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).tileset,
|
|
18319
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).tileset = $event),
|
|
18320
|
+
onChange: _cache[1] || (_cache[1] = $event => paramsChanged('tileset')),
|
|
18321
|
+
clearable: "",
|
|
18322
|
+
onClear: clear
|
|
18323
|
+
}, {
|
|
18324
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.Fragment, null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.renderList)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(tiles), (item, index) => {
|
|
18325
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_option, {
|
|
18326
|
+
key: index,
|
|
18327
|
+
value: item.guid,
|
|
18328
|
+
label: item.name
|
|
18329
|
+
}, {
|
|
18330
|
+
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)(item.name), 1 /* TEXT */)]),
|
|
18331
|
+
_: 2 /* DYNAMIC */
|
|
18332
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["value", "label"]);
|
|
18333
|
+
}), 128 /* KEYED_FRAGMENT */))]),
|
|
18334
|
+
_: 1 /* STABLE */
|
|
18335
|
+
}, 8 /* PROPS */, ["modelValue"])]),
|
|
18336
|
+
_: 1 /* STABLE */
|
|
18337
|
+
}, 8 /* PROPS */, ["span"])]),
|
|
18338
|
+
_: 1 /* STABLE */
|
|
18339
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
18340
|
+
gutter: 10
|
|
18341
|
+
}, {
|
|
18342
|
+
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, {
|
|
18343
|
+
span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 7 : 10
|
|
18344
|
+
}, {
|
|
18345
|
+
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).brightness), 1 /* TEXT */)]),
|
|
18638
18346
|
_: 1 /* STABLE */
|
|
18639
18347
|
}, 8 /* PROPS */, ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
18640
18348
|
span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 11 : 8
|
|
18641
18349
|
}, {
|
|
18642
18350
|
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, {
|
|
18643
|
-
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).
|
|
18644
|
-
"onUpdate:modelValue": _cache[
|
|
18645
|
-
step: 1,
|
|
18646
|
-
min:
|
|
18647
|
-
max:
|
|
18648
|
-
|
|
18649
|
-
|
|
18650
|
-
}, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
|
|
18351
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).brightness,
|
|
18352
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).brightness = $event),
|
|
18353
|
+
step: 0.1,
|
|
18354
|
+
min: 0,
|
|
18355
|
+
max: 5,
|
|
18356
|
+
onInput: _cache[3] || (_cache[3] = $event => paramsChanged('brightness'))
|
|
18357
|
+
}, null, 8 /* PROPS */, ["modelValue", "step"])]),
|
|
18651
18358
|
_: 1 /* STABLE */
|
|
18652
18359
|
}, 8 /* PROPS */, ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
18653
18360
|
span: 6,
|
|
@@ -18656,535 +18363,54 @@ const __default__ = {
|
|
|
18656
18363
|
}
|
|
18657
18364
|
}, {
|
|
18658
18365
|
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, {
|
|
18659
|
-
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).
|
|
18660
|
-
"onUpdate:modelValue": _cache[
|
|
18661
|
-
min:
|
|
18662
|
-
|
|
18663
|
-
|
|
18366
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).brightness,
|
|
18367
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).brightness = $event),
|
|
18368
|
+
min: 0,
|
|
18369
|
+
max: 5,
|
|
18370
|
+
step: 0.1,
|
|
18664
18371
|
"controls-position": "right",
|
|
18665
|
-
onInput: _cache[
|
|
18666
|
-
}, null, 8 /* PROPS */, ["modelValue", "
|
|
18372
|
+
onInput: _cache[5] || (_cache[5] = $event => paramsChanged('brightness'))
|
|
18373
|
+
}, null, 8 /* PROPS */, ["modelValue", "step"])]),
|
|
18667
18374
|
_: 1 /* STABLE */
|
|
18668
18375
|
})]),
|
|
18669
18376
|
_: 1 /* STABLE */
|
|
18670
18377
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
18671
|
-
|
|
18378
|
+
gutter: 10
|
|
18672
18379
|
}, {
|
|
18673
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.
|
|
18674
|
-
|
|
18675
|
-
|
|
18676
|
-
|
|
18677
|
-
|
|
18678
|
-
|
|
18679
|
-
|
|
18680
|
-
|
|
18681
|
-
|
|
18682
|
-
|
|
18683
|
-
|
|
18684
|
-
|
|
18685
|
-
|
|
18686
|
-
|
|
18687
|
-
|
|
18688
|
-
|
|
18689
|
-
|
|
18690
|
-
|
|
18691
|
-
|
|
18692
|
-
|
|
18693
|
-
|
|
18694
|
-
|
|
18695
|
-
|
|
18696
|
-
|
|
18697
|
-
|
|
18698
|
-
|
|
18699
|
-
|
|
18700
|
-
|
|
18701
|
-
|
|
18702
|
-
|
|
18703
|
-
|
|
18704
|
-
|
|
18705
|
-
/*
|
|
18706
|
-
|
|
18707
|
-
* All rights reserved.
|
|
18708
|
-
*/
|
|
18709
|
-
|
|
18710
|
-
|
|
18711
|
-
|
|
18712
|
-
ModelExcavate.install = (Vue, opts) => {
|
|
18713
|
-
init_js_default()(Vue, opts);
|
|
18714
|
-
Vue.component(ModelExcavate.name, ModelExcavate);
|
|
18715
|
-
};
|
|
18716
|
-
|
|
18717
|
-
|
|
18718
|
-
/***/ }),
|
|
18719
|
-
|
|
18720
|
-
/***/ 4075:
|
|
18721
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18722
|
-
|
|
18723
|
-
"use strict";
|
|
18724
|
-
|
|
18725
|
-
// EXPORTS
|
|
18726
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
18727
|
-
"default": function() { return /* reexport */ ModelFilter; }
|
|
18728
|
-
});
|
|
18729
|
-
|
|
18730
|
-
// UNUSED EXPORTS: ModelFilterViewModel
|
|
18731
|
-
|
|
18732
|
-
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
18733
|
-
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
|
|
18734
|
-
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
18735
|
-
var gis_utils_ = __webpack_require__(7135);
|
|
18736
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js + 3 modules
|
|
18737
|
-
var defineProperty = __webpack_require__(5301);
|
|
18738
|
-
// EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
|
|
18739
|
-
var es_array_push_js_ = __webpack_require__(2118);
|
|
18740
|
-
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.constructor.js"
|
|
18741
|
-
var esnext_iterator_constructor_js_ = __webpack_require__(8470);
|
|
18742
|
-
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.find.js"
|
|
18743
|
-
var esnext_iterator_find_js_ = __webpack_require__(8697);
|
|
18744
|
-
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
18745
|
-
var message = __webpack_require__(1349);
|
|
18746
|
-
;// CONCATENATED MODULE: ./src/webgl/modelfilter/ModelFilterViewModel.js
|
|
18747
|
-
|
|
18748
|
-
|
|
18749
|
-
|
|
18750
|
-
|
|
18751
|
-
/*
|
|
18752
|
-
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
18753
|
-
* All rights reserved.
|
|
18754
|
-
*/
|
|
18755
|
-
//模型滤镜逻辑类
|
|
18756
|
-
|
|
18757
|
-
class ModelFilterViewModel {
|
|
18758
|
-
constructor(scenceView, options) {
|
|
18759
|
-
(0,defineProperty/* default */.Z)(this, "_viewer", null);
|
|
18760
|
-
//三维viewer对象
|
|
18761
|
-
(0,defineProperty/* default */.Z)(this, "_options", {});
|
|
18762
|
-
//Box裁剪存储参数对象
|
|
18763
|
-
(0,defineProperty/* default */.Z)(this, "_defaultOptions", {
|
|
18764
|
-
//默认参数对象
|
|
18765
|
-
brightness: 1,
|
|
18766
|
-
contrast: 1,
|
|
18767
|
-
tone: 0,
|
|
18768
|
-
saturation: 1,
|
|
18769
|
-
gamma: 1
|
|
18770
|
-
});
|
|
18771
|
-
this._options = Object.assign({}, options, this._defaultOptions);
|
|
18772
|
-
this._viewer = scenceView._viewer;
|
|
18773
|
-
this._options.viewer = this._viewer;
|
|
18774
|
-
}
|
|
18775
|
-
|
|
18776
|
-
// 查找所有3dtiles模型对象
|
|
18777
|
-
findLayers() {
|
|
18778
|
-
let tilesets = [];
|
|
18779
|
-
const primitives = this._viewer.scene.primitives._primitives;
|
|
18780
|
-
for (let m = 0; m < primitives.length; m++) {
|
|
18781
|
-
if (primitives[m] instanceof Cesium.Cesium3DTileset) {
|
|
18782
|
-
tilesets.push({
|
|
18783
|
-
guid: primitives[m].guid,
|
|
18784
|
-
name: primitives[m].name ? primitives[m].name : primitives[m].guid
|
|
18785
|
-
});
|
|
18786
|
-
}
|
|
18787
|
-
}
|
|
18788
|
-
return tilesets;
|
|
18789
|
-
}
|
|
18790
|
-
|
|
18791
|
-
// 设置过滤对象
|
|
18792
|
-
setLayer(layerId) {
|
|
18793
|
-
if (layerId) {
|
|
18794
|
-
this.clear();
|
|
18795
|
-
this._options.tileset = this.findLayerById(layerId);
|
|
18796
|
-
this._viewer.flyTo(this._options.tileset);
|
|
18797
|
-
this._options.tileset.colorCorrectEnable = true;
|
|
18798
|
-
}
|
|
18799
|
-
}
|
|
18800
|
-
|
|
18801
|
-
//根据id获取tileset对象
|
|
18802
|
-
findLayerById(id) {
|
|
18803
|
-
const primitives = this._options.viewer.scene.primitives._primitives;
|
|
18804
|
-
const tileset = primitives.find(function (item) {
|
|
18805
|
-
return item.guid === id;
|
|
18806
|
-
});
|
|
18807
|
-
return tileset;
|
|
18808
|
-
}
|
|
18809
|
-
// 设置亮度
|
|
18810
|
-
setBrightness(newValue) {
|
|
18811
|
-
this._options.tileset.brightness = Number(newValue);
|
|
18812
|
-
}
|
|
18813
|
-
// 设置对比
|
|
18814
|
-
setContrast(newValue) {
|
|
18815
|
-
this._options.tileset.contrast = Number(newValue);
|
|
18816
|
-
}
|
|
18817
|
-
// 设置色调
|
|
18818
|
-
setTone(newValue) {
|
|
18819
|
-
this._options.tileset.hue = Number(newValue);
|
|
18820
|
-
}
|
|
18821
|
-
// 设置饱和
|
|
18822
|
-
setSaturation(newValue) {
|
|
18823
|
-
this._options.tileset.saturation = Number(newValue);
|
|
18824
|
-
}
|
|
18825
|
-
// 设置伽马
|
|
18826
|
-
setGamma(newValue) {
|
|
18827
|
-
this._options.tileset.gamma = Number(newValue);
|
|
18828
|
-
}
|
|
18829
|
-
//清除
|
|
18830
|
-
clear() {
|
|
18831
|
-
if (this._options.tileset) {
|
|
18832
|
-
this._options.tileset.brightness = 1;
|
|
18833
|
-
this._options.tileset.contrast = 1;
|
|
18834
|
-
this._options.tileset.hue = 0;
|
|
18835
|
-
this._options.tileset.saturation = 1;
|
|
18836
|
-
this._options.tileset.gamma = 1;
|
|
18837
|
-
}
|
|
18838
|
-
}
|
|
18839
|
-
|
|
18840
|
-
//销毁
|
|
18841
|
-
destroy() {
|
|
18842
|
-
this.clear();
|
|
18843
|
-
}
|
|
18844
|
-
}
|
|
18845
|
-
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
18846
|
-
var client_icons_vue_ = __webpack_require__(348);
|
|
18847
|
-
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
18848
|
-
var util_ = __webpack_require__(3458);
|
|
18849
|
-
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
18850
|
-
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
18851
|
-
// EXTERNAL MODULE: external "@kq_npm/client_common_vue"
|
|
18852
|
-
var client_common_vue_ = __webpack_require__(7064);
|
|
18853
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/modelfilter/ModelFilter.vue?vue&type=script&setup=true&lang=js
|
|
18854
|
-
|
|
18855
|
-
const _hoisted_1 = {
|
|
18856
|
-
class: "kq3d-model-filter-span"
|
|
18857
|
-
};
|
|
18858
|
-
const _hoisted_2 = {
|
|
18859
|
-
class: "kq3d-model-filter-span"
|
|
18860
|
-
};
|
|
18861
|
-
const _hoisted_3 = {
|
|
18862
|
-
class: "kq3d-model-filter-span"
|
|
18863
|
-
};
|
|
18864
|
-
const _hoisted_4 = {
|
|
18865
|
-
class: "kq3d-model-filter-span"
|
|
18866
|
-
};
|
|
18867
|
-
const _hoisted_5 = {
|
|
18868
|
-
class: "kq3d-model-filter-span"
|
|
18869
|
-
};
|
|
18870
|
-
const _hoisted_6 = {
|
|
18871
|
-
class: "kq3d-model-filter-span"
|
|
18872
|
-
};
|
|
18873
|
-
|
|
18874
|
-
|
|
18875
|
-
|
|
18876
|
-
|
|
18877
|
-
|
|
18878
|
-
|
|
18879
|
-
|
|
18880
|
-
//语言
|
|
18881
|
-
|
|
18882
|
-
const __default__ = {
|
|
18883
|
-
name: "Kq3dModelFilter"
|
|
18884
|
-
};
|
|
18885
|
-
/* harmony default export */ var ModelFiltervue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
18886
|
-
props: {
|
|
18887
|
-
// 设置参数
|
|
18888
|
-
settingParams: {
|
|
18889
|
-
type: Object
|
|
18890
|
-
},
|
|
18891
|
-
// 是否显示阴影效果
|
|
18892
|
-
showShadow: {
|
|
18893
|
-
type: Boolean,
|
|
18894
|
-
default: true
|
|
18895
|
-
},
|
|
18896
|
-
/**
|
|
18897
|
-
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
18898
|
-
*/
|
|
18899
|
-
position: [String, Object],
|
|
18900
|
-
// 是否生成HeaderTemp
|
|
18901
|
-
showHeaderTemp: {
|
|
18902
|
-
type: Boolean,
|
|
18903
|
-
default: false
|
|
18904
|
-
},
|
|
18905
|
-
// 是否折叠HeaderTemp,showHeaderTemp为true时生效
|
|
18906
|
-
isCollapseHeaderTemp: {
|
|
18907
|
-
type: Boolean,
|
|
18908
|
-
default: false
|
|
18909
|
-
},
|
|
18910
|
-
// HeaderTemp标题
|
|
18911
|
-
headerTempTitle: {
|
|
18912
|
-
type: String
|
|
18913
|
-
},
|
|
18914
|
-
// HeaderTemp图标
|
|
18915
|
-
headerTempIcon: {
|
|
18916
|
-
type: [Object, String],
|
|
18917
|
-
default: client_icons_vue_.IconModelFiltering
|
|
18918
|
-
},
|
|
18919
|
-
// HeaderTemp Title&Icon的位置
|
|
18920
|
-
isRight: {
|
|
18921
|
-
type: Boolean,
|
|
18922
|
-
default: true
|
|
18923
|
-
}
|
|
18924
|
-
},
|
|
18925
|
-
setup(__props, {
|
|
18926
|
-
expose: __expose
|
|
18927
|
-
}) {
|
|
18928
|
-
const props = __props;
|
|
18929
|
-
const {
|
|
18930
|
-
proxy
|
|
18931
|
-
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
18932
|
-
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]);
|
|
18933
|
-
let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
|
|
18934
|
-
let viewModel = null;
|
|
18935
|
-
let ref_box = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
18936
|
-
let tiles = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
18937
|
-
// 获取组件传参
|
|
18938
|
-
|
|
18939
|
-
// 组件容器Ref
|
|
18940
|
-
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
18941
|
-
|
|
18942
|
-
//模型滤镜参数
|
|
18943
|
-
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
18944
|
-
tileset: props.settingParams && props.settingParams.tileset || null,
|
|
18945
|
-
brightness: props.settingParams && props.settingParams.brightness || 1,
|
|
18946
|
-
// 亮度
|
|
18947
|
-
contrast: props.settingParams && props.settingParams.contrast || 1,
|
|
18948
|
-
// 对比
|
|
18949
|
-
tone: props.settingParams && props.settingParams.tone || 0,
|
|
18950
|
-
// 色调
|
|
18951
|
-
saturation: props.settingParams && props.settingParams.saturation || 1,
|
|
18952
|
-
// 饱和
|
|
18953
|
-
gamma: props.settingParams && props.settingParams.gamma || 1 // 伽马
|
|
18954
|
-
});
|
|
18955
|
-
|
|
18956
|
-
// 生成组件默认header
|
|
18957
|
-
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
18958
|
-
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
18959
|
-
|
|
18960
|
-
// 国际化
|
|
18961
|
-
let {
|
|
18962
|
-
locale,
|
|
18963
|
-
messages
|
|
18964
|
-
} = (0,vue_i18n_cjs_js_.useI18n)();
|
|
18965
|
-
let headerTempTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
18966
|
-
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => locale.value, (newVal, oldVal) => {
|
|
18967
|
-
language.value = messages.value[newVal]["webgl"];
|
|
18968
|
-
headerTempTitle.value = language.value.modelFilterPick;
|
|
18969
|
-
});
|
|
18970
|
-
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
18971
|
-
(0,util_.updatePosition)(boxRef.value, props);
|
|
18972
|
-
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
18973
|
-
(0,util_.updatePosition)(boxRef.value, props);
|
|
18974
|
-
});
|
|
18975
|
-
watchCreateHeaderTemp();
|
|
18976
|
-
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
18977
|
-
watchCreateHeaderTemp();
|
|
18978
|
-
});
|
|
18979
|
-
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
18980
|
-
//父组件ScenceView初始化完成后执行
|
|
18981
|
-
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
18982
|
-
if (scenceView) {
|
|
18983
|
-
let options = {
|
|
18984
|
-
tileset: formItem.tileset,
|
|
18985
|
-
brightness: formItem.brightness,
|
|
18986
|
-
contrast: formItem.contrast,
|
|
18987
|
-
tone: formItem.tone,
|
|
18988
|
-
saturation: formItem.saturation,
|
|
18989
|
-
gamma: formItem.gamma
|
|
18990
|
-
};
|
|
18991
|
-
viewModel = new ModelFilterViewModel(scenceView, options);
|
|
18992
|
-
}
|
|
18993
|
-
});
|
|
18994
|
-
setTimeout(() => {
|
|
18995
|
-
if (viewModel) {
|
|
18996
|
-
tiles.value = viewModel.findLayers(); // 获取所有tileset对象
|
|
18997
|
-
}
|
|
18998
|
-
}, 1000);
|
|
18999
|
-
});
|
|
19000
|
-
|
|
19001
|
-
/**
|
|
19002
|
-
* @description 监听header生成
|
|
19003
|
-
*/
|
|
19004
|
-
const watchCreateHeaderTemp = () => {
|
|
19005
|
-
if (props.showHeaderTemp) {
|
|
19006
|
-
// 生成headerTemp
|
|
19007
|
-
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
19008
|
-
}
|
|
19009
|
-
};
|
|
19010
|
-
function paramsChanged(value) {
|
|
19011
|
-
if (formItem.tileset) {
|
|
19012
|
-
switch (value) {
|
|
19013
|
-
case "tileset":
|
|
19014
|
-
viewModel.setLayer(formItem.tileset);
|
|
19015
|
-
viewModel.setBrightness(formItem.brightness);
|
|
19016
|
-
viewModel.setContrast(formItem.contrast);
|
|
19017
|
-
viewModel.setTone(formItem.tone);
|
|
19018
|
-
viewModel.setSaturation(formItem.saturation);
|
|
19019
|
-
viewModel.setGamma(formItem.gamma);
|
|
19020
|
-
break;
|
|
19021
|
-
case "brightness":
|
|
19022
|
-
viewModel.setBrightness(formItem.brightness);
|
|
19023
|
-
break;
|
|
19024
|
-
case "contrast":
|
|
19025
|
-
viewModel.setContrast(formItem.contrast);
|
|
19026
|
-
break;
|
|
19027
|
-
case "tone":
|
|
19028
|
-
viewModel.setTone(formItem.tone);
|
|
19029
|
-
break;
|
|
19030
|
-
case "saturation":
|
|
19031
|
-
viewModel.setSaturation(formItem.saturation);
|
|
19032
|
-
break;
|
|
19033
|
-
case "gamma":
|
|
19034
|
-
viewModel.setGamma(formItem.gamma);
|
|
19035
|
-
break;
|
|
19036
|
-
}
|
|
19037
|
-
}
|
|
19038
|
-
}
|
|
19039
|
-
function clear() {
|
|
19040
|
-
viewModel.clear();
|
|
19041
|
-
formItem.brightness = 1;
|
|
19042
|
-
formItem.contrast = 1;
|
|
19043
|
-
formItem.tone = 0;
|
|
19044
|
-
formItem.saturation = 1;
|
|
19045
|
-
formItem.gamma = 1;
|
|
19046
|
-
}
|
|
19047
|
-
|
|
19048
|
-
// 销毁
|
|
19049
|
-
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
19050
|
-
viewModel && viewModel.destroy();
|
|
19051
|
-
});
|
|
19052
|
-
__expose({
|
|
19053
|
-
clear,
|
|
19054
|
-
paramsChanged
|
|
19055
|
-
});
|
|
19056
|
-
return (_ctx, _cache) => {
|
|
19057
|
-
const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
|
|
19058
|
-
const _component_kq_option = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-option");
|
|
19059
|
-
const _component_kq_select = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-select");
|
|
19060
|
-
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
19061
|
-
const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
|
|
19062
|
-
const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
|
|
19063
|
-
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
19064
|
-
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-model-filter", {
|
|
19065
|
-
'kq-box-shadow': __props.showShadow
|
|
19066
|
-
}]),
|
|
19067
|
-
ref_key: "boxRef",
|
|
19068
|
-
ref: boxRef
|
|
19069
|
-
}, [__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)), {
|
|
19070
|
-
key: 0,
|
|
19071
|
-
ref_key: "headerTempRef",
|
|
19072
|
-
ref: headerTempRef
|
|
19073
|
-
}, null, 512 /* NEED_PATCH */)) : (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", {
|
|
19074
|
-
class: "kq3d-model-filter-box",
|
|
19075
|
-
ref_key: "ref_box",
|
|
19076
|
-
ref: ref_box
|
|
19077
|
-
}, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
19078
|
-
gutter: 10
|
|
19079
|
-
}, {
|
|
19080
|
-
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, {
|
|
19081
|
-
span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 7 : 10
|
|
19082
|
-
}, {
|
|
19083
|
-
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_1, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).modelFilterLayer), 1 /* TEXT */)]),
|
|
19084
|
-
_: 1 /* STABLE */
|
|
19085
|
-
}, 8 /* PROPS */, ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
19086
|
-
span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 17 : 14
|
|
19087
|
-
}, {
|
|
19088
|
-
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_select, {
|
|
19089
|
-
style: {
|
|
19090
|
-
"width": "100%"
|
|
19091
|
-
},
|
|
19092
|
-
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).tileset,
|
|
19093
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).tileset = $event),
|
|
19094
|
-
onChange: _cache[1] || (_cache[1] = $event => paramsChanged('tileset')),
|
|
19095
|
-
clearable: "",
|
|
19096
|
-
onClear: clear
|
|
19097
|
-
}, {
|
|
19098
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.Fragment, null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.renderList)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(tiles), (item, index) => {
|
|
19099
|
-
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_option, {
|
|
19100
|
-
key: index,
|
|
19101
|
-
value: item.guid,
|
|
19102
|
-
label: item.name
|
|
19103
|
-
}, {
|
|
19104
|
-
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)(item.name), 1 /* TEXT */)]),
|
|
19105
|
-
_: 2 /* DYNAMIC */
|
|
19106
|
-
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["value", "label"]);
|
|
19107
|
-
}), 128 /* KEYED_FRAGMENT */))]),
|
|
19108
|
-
_: 1 /* STABLE */
|
|
19109
|
-
}, 8 /* PROPS */, ["modelValue"])]),
|
|
19110
|
-
_: 1 /* STABLE */
|
|
19111
|
-
}, 8 /* PROPS */, ["span"])]),
|
|
19112
|
-
_: 1 /* STABLE */
|
|
19113
|
-
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
19114
|
-
gutter: 10
|
|
19115
|
-
}, {
|
|
19116
|
-
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, {
|
|
19117
|
-
span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 7 : 10
|
|
19118
|
-
}, {
|
|
19119
|
-
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).brightness), 1 /* TEXT */)]),
|
|
19120
|
-
_: 1 /* STABLE */
|
|
19121
|
-
}, 8 /* PROPS */, ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
19122
|
-
span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 11 : 8
|
|
19123
|
-
}, {
|
|
19124
|
-
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, {
|
|
19125
|
-
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).brightness,
|
|
19126
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).brightness = $event),
|
|
19127
|
-
step: 0.1,
|
|
19128
|
-
min: 0,
|
|
19129
|
-
max: 5,
|
|
19130
|
-
onInput: _cache[3] || (_cache[3] = $event => paramsChanged('brightness'))
|
|
19131
|
-
}, null, 8 /* PROPS */, ["modelValue", "step"])]),
|
|
19132
|
-
_: 1 /* STABLE */
|
|
19133
|
-
}, 8 /* PROPS */, ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
19134
|
-
span: 6,
|
|
19135
|
-
style: {
|
|
19136
|
-
"text-align": "end"
|
|
19137
|
-
}
|
|
19138
|
-
}, {
|
|
19139
|
-
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, {
|
|
19140
|
-
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).brightness,
|
|
19141
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).brightness = $event),
|
|
19142
|
-
min: 0,
|
|
19143
|
-
max: 5,
|
|
19144
|
-
step: 0.1,
|
|
19145
|
-
"controls-position": "right",
|
|
19146
|
-
onInput: _cache[5] || (_cache[5] = $event => paramsChanged('brightness'))
|
|
19147
|
-
}, null, 8 /* PROPS */, ["modelValue", "step"])]),
|
|
19148
|
-
_: 1 /* STABLE */
|
|
19149
|
-
})]),
|
|
19150
|
-
_: 1 /* STABLE */
|
|
19151
|
-
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
19152
|
-
gutter: 10
|
|
19153
|
-
}, {
|
|
19154
|
-
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, {
|
|
19155
|
-
span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 7 : 10
|
|
19156
|
-
}, {
|
|
19157
|
-
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_3, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).contrast), 1 /* TEXT */)]),
|
|
19158
|
-
_: 1 /* STABLE */
|
|
19159
|
-
}, 8 /* PROPS */, ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
19160
|
-
span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 11 : 8
|
|
19161
|
-
}, {
|
|
19162
|
-
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, {
|
|
19163
|
-
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).contrast,
|
|
19164
|
-
"onUpdate:modelValue": _cache[6] || (_cache[6] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).contrast = $event),
|
|
19165
|
-
step: 0.1,
|
|
19166
|
-
min: 0,
|
|
19167
|
-
max: 5,
|
|
19168
|
-
onInput: _cache[7] || (_cache[7] = $event => paramsChanged('contrast'))
|
|
19169
|
-
}, null, 8 /* PROPS */, ["modelValue", "step"])]),
|
|
19170
|
-
_: 1 /* STABLE */
|
|
19171
|
-
}, 8 /* PROPS */, ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
19172
|
-
span: 6,
|
|
19173
|
-
style: {
|
|
19174
|
-
"text-align": "end"
|
|
19175
|
-
}
|
|
19176
|
-
}, {
|
|
19177
|
-
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, {
|
|
19178
|
-
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).contrast,
|
|
19179
|
-
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).contrast = $event),
|
|
19180
|
-
min: 0,
|
|
19181
|
-
max: 5,
|
|
19182
|
-
step: 0.1,
|
|
19183
|
-
"controls-position": "right",
|
|
19184
|
-
onInput: _cache[9] || (_cache[9] = $event => paramsChanged('contrast'))
|
|
19185
|
-
}, null, 8 /* PROPS */, ["modelValue", "step"])]),
|
|
19186
|
-
_: 1 /* STABLE */
|
|
19187
|
-
})]),
|
|
18380
|
+
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, {
|
|
18381
|
+
span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 7 : 10
|
|
18382
|
+
}, {
|
|
18383
|
+
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_3, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).contrast), 1 /* TEXT */)]),
|
|
18384
|
+
_: 1 /* STABLE */
|
|
18385
|
+
}, 8 /* PROPS */, ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
18386
|
+
span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 11 : 8
|
|
18387
|
+
}, {
|
|
18388
|
+
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, {
|
|
18389
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).contrast,
|
|
18390
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).contrast = $event),
|
|
18391
|
+
step: 0.1,
|
|
18392
|
+
min: 0,
|
|
18393
|
+
max: 5,
|
|
18394
|
+
onInput: _cache[7] || (_cache[7] = $event => paramsChanged('contrast'))
|
|
18395
|
+
}, null, 8 /* PROPS */, ["modelValue", "step"])]),
|
|
18396
|
+
_: 1 /* STABLE */
|
|
18397
|
+
}, 8 /* PROPS */, ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
18398
|
+
span: 6,
|
|
18399
|
+
style: {
|
|
18400
|
+
"text-align": "end"
|
|
18401
|
+
}
|
|
18402
|
+
}, {
|
|
18403
|
+
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, {
|
|
18404
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).contrast,
|
|
18405
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).contrast = $event),
|
|
18406
|
+
min: 0,
|
|
18407
|
+
max: 5,
|
|
18408
|
+
step: 0.1,
|
|
18409
|
+
"controls-position": "right",
|
|
18410
|
+
onInput: _cache[9] || (_cache[9] = $event => paramsChanged('contrast'))
|
|
18411
|
+
}, null, 8 /* PROPS */, ["modelValue", "step"])]),
|
|
18412
|
+
_: 1 /* STABLE */
|
|
18413
|
+
})]),
|
|
19188
18414
|
_: 1 /* STABLE */
|
|
19189
18415
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
19190
18416
|
gutter: 10
|
|
@@ -19739,7 +18965,9 @@ const __default__ = {
|
|
|
19739
18965
|
});
|
|
19740
18966
|
watchCreateHeaderTemp();
|
|
19741
18967
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
19742
|
-
|
|
18968
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
18969
|
+
watchCreateHeaderTemp();
|
|
18970
|
+
});
|
|
19743
18971
|
});
|
|
19744
18972
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
19745
18973
|
if (scenceView) {
|
|
@@ -20332,7 +19560,9 @@ const __default__ = {
|
|
|
20332
19560
|
});
|
|
20333
19561
|
watchCreateHeaderTemp();
|
|
20334
19562
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
20335
|
-
|
|
19563
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
19564
|
+
watchCreateHeaderTemp();
|
|
19565
|
+
});
|
|
20336
19566
|
});
|
|
20337
19567
|
|
|
20338
19568
|
//父组件ScenceView初始化完成后执行
|
|
@@ -20839,7 +20069,9 @@ const __default__ = {
|
|
|
20839
20069
|
});
|
|
20840
20070
|
watchCreateHeaderTemp();
|
|
20841
20071
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
20842
|
-
|
|
20072
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
20073
|
+
watchCreateHeaderTemp();
|
|
20074
|
+
});
|
|
20843
20075
|
});
|
|
20844
20076
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
20845
20077
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
@@ -21716,7 +20948,9 @@ const __default__ = {
|
|
|
21716
20948
|
});
|
|
21717
20949
|
watchCreateHeaderTemp();
|
|
21718
20950
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
21719
|
-
|
|
20951
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
20952
|
+
watchCreateHeaderTemp();
|
|
20953
|
+
});
|
|
21720
20954
|
});
|
|
21721
20955
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
21722
20956
|
//父组 件ScenceView初始化完成后执行
|
|
@@ -22519,7 +21753,9 @@ const __default__ = {
|
|
|
22519
21753
|
});
|
|
22520
21754
|
watchCreateHeaderTemp();
|
|
22521
21755
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
22522
|
-
|
|
21756
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
21757
|
+
watchCreateHeaderTemp();
|
|
21758
|
+
});
|
|
22523
21759
|
});
|
|
22524
21760
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
22525
21761
|
if (scenceView) {
|
|
@@ -23331,7 +22567,9 @@ const __default__ = {
|
|
|
23331
22567
|
});
|
|
23332
22568
|
watchCreateHeaderTemp();
|
|
23333
22569
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
23334
|
-
|
|
22570
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
22571
|
+
watchCreateHeaderTemp();
|
|
22572
|
+
});
|
|
23335
22573
|
});
|
|
23336
22574
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
23337
22575
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
@@ -24029,7 +23267,7 @@ class SceneAdvancedToImageViewModel {
|
|
|
24029
23267
|
let lat = Cesium.Math.toDegrees(cartographic.latitude);
|
|
24030
23268
|
let lng = Cesium.Math.toDegrees(cartographic.longitude);
|
|
24031
23269
|
let pos = Cesium.Cartesian3.fromDegrees(lng, lat, this._options.height);
|
|
24032
|
-
this._satellitePyramidPrimitive = this._viewer.scene.primitives.add(new
|
|
23270
|
+
this._satellitePyramidPrimitive = this._viewer.scene.primitives.add(new Cesium.Kq3dSatellitePyramidPrimitive(this._viewer, {
|
|
24033
23271
|
position: pos,
|
|
24034
23272
|
angle1: this._options.leftRightAngle,
|
|
24035
23273
|
angle2: this._options.frontAndRearAngle,
|
|
@@ -24373,7 +23611,9 @@ const __default__ = {
|
|
|
24373
23611
|
});
|
|
24374
23612
|
watchCreateHeaderTemp();
|
|
24375
23613
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
24376
|
-
|
|
23614
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
23615
|
+
watchCreateHeaderTemp();
|
|
23616
|
+
});
|
|
24377
23617
|
});
|
|
24378
23618
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
24379
23619
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
@@ -24786,7 +24026,7 @@ SceneAdvancedToImage.install = (Vue, opts) => {
|
|
|
24786
24026
|
|
|
24787
24027
|
/***/ }),
|
|
24788
24028
|
|
|
24789
|
-
/***/
|
|
24029
|
+
/***/ 7913:
|
|
24790
24030
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
24791
24031
|
|
|
24792
24032
|
"use strict";
|
|
@@ -24994,12 +24234,14 @@ const resourceApi = {
|
|
|
24994
24234
|
}
|
|
24995
24235
|
};
|
|
24996
24236
|
/* harmony default export */ var api_resourceApi = (resourceApi);
|
|
24997
|
-
// EXTERNAL MODULE:
|
|
24998
|
-
var
|
|
24237
|
+
// EXTERNAL MODULE: ./src/webgl/measure/Measure.vue + 2 modules
|
|
24238
|
+
var Measure = __webpack_require__(7226);
|
|
24999
24239
|
// EXTERNAL MODULE: external "@element-plus/icons-vue"
|
|
25000
24240
|
var icons_vue_ = __webpack_require__(8422);
|
|
25001
24241
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
25002
24242
|
var client_icons_vue_ = __webpack_require__(348);
|
|
24243
|
+
// EXTERNAL MODULE: external "@kq_npm/client3d_webgl_vue"
|
|
24244
|
+
var client3d_webgl_vue_ = __webpack_require__(6459);
|
|
25003
24245
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
25004
24246
|
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
25005
24247
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/sceneapp/components/AppToolBar.vue?vue&type=script&setup=true&lang=js
|
|
@@ -26282,10 +25524,9 @@ elink.href=_url;elink.setAttribute("download","shapefile.zip");elink.style.displ
|
|
|
26282
25524
|
* @param coordinates
|
|
26283
25525
|
*/function removeCPointFromCoordinates(coordinates){for(let i=0;i<coordinates.length;i++){let points=coordinates[i];for(let m=points.length-2;m>=0;m--){let p=points[m];let q=points[m+1];if(p[0]===q[0]&&p[1]===q[1]){points.splice(m+1,1);}}}}/**
|
|
26284
25526
|
* 导出txt
|
|
26285
|
-
* @param {string} dataUrl //通用geometry服务
|
|
26286
25527
|
* @param {string} outPrj //导出的坐标系
|
|
26287
25528
|
* @param {object} features //要导出的坐标
|
|
26288
|
-
*/function exportTXT(
|
|
25529
|
+
*/function exportTXT(outPrj,features){if(["4490","4326","4610"].includes(outPrj)){let txtBodys=createTxtBody(features);let drawTTitle="[属性描述] \r\n格式版本号=1.0 \r\n数据生产单位=国土资源部 \r\n数据产生日期=[datatime] \r\n坐标系=墨卡托 \r\n投影类型=高斯克吕格 \r\n计量单位=米 \r\n[地块坐标] \r\n";let date=new Date();let time=date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate();drawTTitle=drawTTitle.replace("[datatime]",time);// 设置生成日期
|
|
26289
25530
|
let evalue=drawTTitle+txtBodys;saveTXT(evalue,"","地块坐标信息.txt");}else{let dataFeatures=[];for(let d=0;d<features.length;d++){let f=features[d].geometry;projToAssign(f,outPrj,"4326");let feature={type:"Feature",geometry:f};dataFeatures.push(feature);}let txtBodys=createTxtBody(dataFeatures);let drawTTitle="[属性描述] \r\n格式版本号=1.0 \r\n数据生产单位=国土资源部 \r\n数据产生日期=[datatime] \r\n坐标系=墨卡托 \r\n投影类型=高斯克吕格 \r\n计量单位=米 \r\n[地块坐标] \r\n";let date=new Date();let time=date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate();drawTTitle=drawTTitle.replace("[datatime]",time);// 设置生成日期
|
|
26290
25531
|
let evalue=drawTTitle+txtBodys;saveTXT(evalue,"","地块坐标信息.txt");}}// 导出txt方法--总方法
|
|
26291
25532
|
function createTxtBody(features){let txtBodys="";for(let k in features){let geometry=features[k]["geometry"];let geoType=geometry["type"];let coordinates=geometry["coordinates"];// let RKZQBM = features[k]['properties']['XZQDM'] === undefined ? '' : features[k]['properties']['XZQDM'];
|
|
@@ -26705,7 +25946,7 @@ let getTooBox = ({
|
|
|
26705
25946
|
}, {
|
|
26706
25947
|
label: webgl.floodModel + webgl.floodAnalysis1,
|
|
26707
25948
|
icon: client_icons_vue_.IconFloodAnalysis,
|
|
26708
|
-
value: "
|
|
25949
|
+
value: "Kq3dModelFloodAnalysis"
|
|
26709
25950
|
}, {
|
|
26710
25951
|
label: webgl.geologyBodyAnalysis,
|
|
26711
25952
|
icon: client_icons_vue_.IconGeologicalAnalysis,
|
|
@@ -26902,7 +26143,7 @@ const __default__ = {
|
|
|
26902
26143
|
case "Kq3dLimitHeightAnalysis":
|
|
26903
26144
|
openBaseWindow(client3d_webgl_vue_.Kq3dLimitHeightAnalysis, language.webgl.limitHeightAnalysis, client_icons_vue_.IconHeightLimitAnalysis);
|
|
26904
26145
|
break;
|
|
26905
|
-
case "
|
|
26146
|
+
case "Kq3dModelFloodAnalysis":
|
|
26906
26147
|
openBaseWindow(client3d_webgl_vue_.Kq3dFloodAnalysis, language.webgl.floodModel + language.webgl.floodAnalysis1, client_icons_vue_.IconFloodAnalysis, {
|
|
26907
26148
|
isShowMode: false,
|
|
26908
26149
|
settingParams: {
|
|
@@ -27085,23 +26326,23 @@ const __default__ = {
|
|
|
27085
26326
|
}));
|
|
27086
26327
|
;// CONCATENATED MODULE: ./src/webgl/sceneapp/components/AppToolBox.vue?vue&type=script&setup=true&lang=js
|
|
27087
26328
|
|
|
27088
|
-
// 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/sceneapp/components/AppToolBox.vue?vue&type=style&index=0&id=
|
|
27089
|
-
var
|
|
27090
|
-
;// 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/sceneapp/components/AppToolBox.vue?vue&type=style&index=0&id=
|
|
26329
|
+
// 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/sceneapp/components/AppToolBox.vue?vue&type=style&index=0&id=7ea2a24f&lang=scss
|
|
26330
|
+
var AppToolBoxvue_type_style_index_0_id_7ea2a24f_lang_scss = __webpack_require__(8008);
|
|
26331
|
+
;// 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/sceneapp/components/AppToolBox.vue?vue&type=style&index=0&id=7ea2a24f&lang=scss
|
|
27091
26332
|
|
|
27092
26333
|
|
|
27093
26334
|
|
|
27094
|
-
var
|
|
26335
|
+
var AppToolBoxvue_type_style_index_0_id_7ea2a24f_lang_scss_options = {};
|
|
27095
26336
|
|
|
27096
|
-
|
|
27097
|
-
|
|
26337
|
+
AppToolBoxvue_type_style_index_0_id_7ea2a24f_lang_scss_options.insert = "head";
|
|
26338
|
+
AppToolBoxvue_type_style_index_0_id_7ea2a24f_lang_scss_options.singleton = false;
|
|
27098
26339
|
|
|
27099
|
-
var
|
|
26340
|
+
var AppToolBoxvue_type_style_index_0_id_7ea2a24f_lang_scss_update = injectStylesIntoStyleTag_default()(AppToolBoxvue_type_style_index_0_id_7ea2a24f_lang_scss/* default */.Z, AppToolBoxvue_type_style_index_0_id_7ea2a24f_lang_scss_options);
|
|
27100
26341
|
|
|
27101
26342
|
|
|
27102
26343
|
|
|
27103
|
-
/* harmony default export */ var
|
|
27104
|
-
;// CONCATENATED MODULE: ./src/webgl/sceneapp/components/AppToolBox.vue?vue&type=style&index=0&id=
|
|
26344
|
+
/* harmony default export */ var components_AppToolBoxvue_type_style_index_0_id_7ea2a24f_lang_scss = (AppToolBoxvue_type_style_index_0_id_7ea2a24f_lang_scss/* default.locals */.Z.locals || {});
|
|
26345
|
+
;// CONCATENATED MODULE: ./src/webgl/sceneapp/components/AppToolBox.vue?vue&type=style&index=0&id=7ea2a24f&lang=scss
|
|
27105
26346
|
|
|
27106
26347
|
;// CONCATENATED MODULE: ./src/webgl/sceneapp/components/AppToolBox.vue
|
|
27107
26348
|
|
|
@@ -27423,8 +26664,8 @@ const SceneAppvue_type_script_setup_true_lang_js_default_ = {
|
|
|
27423
26664
|
// 工具按钮
|
|
27424
26665
|
let components = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
27425
26666
|
let components_default = ["kqlayertree", "kqbookmark", "kqlabel"];
|
|
27426
|
-
let
|
|
27427
|
-
component: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.markRaw)(
|
|
26667
|
+
let compCollection3d = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)([{
|
|
26668
|
+
component: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.markRaw)(Measure/* default */.Z),
|
|
27428
26669
|
props: {
|
|
27429
26670
|
showShadow: true,
|
|
27430
26671
|
showHeaderTemp: true,
|
|
@@ -27686,7 +26927,6 @@ const SceneAppvue_type_script_setup_true_lang_js_default_ = {
|
|
|
27686
26927
|
}
|
|
27687
26928
|
return geojsonStyle;
|
|
27688
26929
|
}
|
|
27689
|
-
|
|
27690
26930
|
// geojson数据条件过滤后是否显示
|
|
27691
26931
|
const isGeojsonFilterShow = (properties, filters) => {
|
|
27692
26932
|
if (filters.length === 1) return true;
|
|
@@ -27877,9 +27117,9 @@ const SceneAppvue_type_script_setup_true_lang_js_default_ = {
|
|
|
27877
27117
|
components: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(components)
|
|
27878
27118
|
}, null, 8 /* PROPS */, ["components"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_common_vue_.KqToolCollection), {
|
|
27879
27119
|
class: "map-measure",
|
|
27880
|
-
components: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(
|
|
27120
|
+
components: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(compCollection3d),
|
|
27881
27121
|
position: {
|
|
27882
|
-
bottom:
|
|
27122
|
+
bottom: 170,
|
|
27883
27123
|
right: 16
|
|
27884
27124
|
}
|
|
27885
27125
|
}, null, 8 /* PROPS */, ["components"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(AppToolBar), {
|
|
@@ -27926,7 +27166,7 @@ SceneApp.install = (Vue, opts) => {
|
|
|
27926
27166
|
|
|
27927
27167
|
/***/ }),
|
|
27928
27168
|
|
|
27929
|
-
/***/
|
|
27169
|
+
/***/ 2549:
|
|
27930
27170
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
27931
27171
|
|
|
27932
27172
|
"use strict";
|
|
@@ -28487,7 +27727,9 @@ const __default__ = {
|
|
|
28487
27727
|
});
|
|
28488
27728
|
watchCreateHeaderTemp();
|
|
28489
27729
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
28490
|
-
|
|
27730
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
27731
|
+
watchCreateHeaderTemp();
|
|
27732
|
+
});
|
|
28491
27733
|
});
|
|
28492
27734
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
28493
27735
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
@@ -29479,9 +28721,9 @@ const __default__ = {
|
|
|
29479
28721
|
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
|
|
29480
28722
|
var injectStylesIntoStyleTag = __webpack_require__(3379);
|
|
29481
28723
|
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
|
|
29482
|
-
// 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=
|
|
29483
|
-
var
|
|
29484
|
-
;// 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=
|
|
28724
|
+
// 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=62fb637b&lang=scss
|
|
28725
|
+
var SceneSetvue_type_style_index_0_id_62fb637b_lang_scss = __webpack_require__(4188);
|
|
28726
|
+
;// 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=62fb637b&lang=scss
|
|
29485
28727
|
|
|
29486
28728
|
|
|
29487
28729
|
|
|
@@ -29490,12 +28732,12 @@ var options = {};
|
|
|
29490
28732
|
options.insert = "head";
|
|
29491
28733
|
options.singleton = false;
|
|
29492
28734
|
|
|
29493
|
-
var update = injectStylesIntoStyleTag_default()(
|
|
28735
|
+
var update = injectStylesIntoStyleTag_default()(SceneSetvue_type_style_index_0_id_62fb637b_lang_scss/* default */.Z, options);
|
|
29494
28736
|
|
|
29495
28737
|
|
|
29496
28738
|
|
|
29497
|
-
/* harmony default export */ var
|
|
29498
|
-
;// CONCATENATED MODULE: ./src/webgl/sceneset/SceneSet.vue?vue&type=style&index=0&id=
|
|
28739
|
+
/* harmony default export */ var sceneset_SceneSetvue_type_style_index_0_id_62fb637b_lang_scss = (SceneSetvue_type_style_index_0_id_62fb637b_lang_scss/* default.locals */.Z.locals || {});
|
|
28740
|
+
;// CONCATENATED MODULE: ./src/webgl/sceneset/SceneSet.vue?vue&type=style&index=0&id=62fb637b&lang=scss
|
|
29499
28741
|
|
|
29500
28742
|
;// CONCATENATED MODULE: ./src/webgl/sceneset/SceneSet.vue
|
|
29501
28743
|
|
|
@@ -29775,7 +29017,9 @@ const __default__ = {
|
|
|
29775
29017
|
});
|
|
29776
29018
|
watchCreateHeaderTemp();
|
|
29777
29019
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
29778
|
-
|
|
29020
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
29021
|
+
watchCreateHeaderTemp();
|
|
29022
|
+
});
|
|
29779
29023
|
});
|
|
29780
29024
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
29781
29025
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
@@ -33826,7 +33070,9 @@ const __default__ = {
|
|
|
33826
33070
|
});
|
|
33827
33071
|
watchCreateHeaderTemp();
|
|
33828
33072
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
33829
|
-
|
|
33073
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
33074
|
+
watchCreateHeaderTemp();
|
|
33075
|
+
});
|
|
33830
33076
|
});
|
|
33831
33077
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
33832
33078
|
if (scenceView) {
|
|
@@ -34477,7 +33723,9 @@ const __default__ = {
|
|
|
34477
33723
|
});
|
|
34478
33724
|
watchCreateHeaderTemp();
|
|
34479
33725
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
34480
|
-
|
|
33726
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
33727
|
+
watchCreateHeaderTemp();
|
|
33728
|
+
});
|
|
34481
33729
|
});
|
|
34482
33730
|
time.value = [formItem.startTime, formItem.endTime];
|
|
34483
33731
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
@@ -35418,7 +34666,9 @@ const __default__ = {
|
|
|
35418
34666
|
});
|
|
35419
34667
|
watchCreateHeaderTemp();
|
|
35420
34668
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
35421
|
-
|
|
34669
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
34670
|
+
watchCreateHeaderTemp();
|
|
34671
|
+
});
|
|
35422
34672
|
});
|
|
35423
34673
|
|
|
35424
34674
|
//父组件ScenceView初始化完成后执行
|
|
@@ -36058,7 +35308,9 @@ const __default__ = {
|
|
|
36058
35308
|
});
|
|
36059
35309
|
watchCreateHeaderTemp();
|
|
36060
35310
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
36061
|
-
|
|
35311
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
35312
|
+
watchCreateHeaderTemp();
|
|
35313
|
+
});
|
|
36062
35314
|
});
|
|
36063
35315
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
36064
35316
|
if (scenceView) {
|
|
@@ -36840,7 +36092,9 @@ const __default__ = {
|
|
|
36840
36092
|
});
|
|
36841
36093
|
watchCreateHeaderTemp();
|
|
36842
36094
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
36843
|
-
|
|
36095
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
36096
|
+
watchCreateHeaderTemp();
|
|
36097
|
+
});
|
|
36844
36098
|
});
|
|
36845
36099
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
36846
36100
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
@@ -37789,7 +37043,9 @@ const __default__ = {
|
|
|
37789
37043
|
});
|
|
37790
37044
|
watchCreateHeaderTemp();
|
|
37791
37045
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
37792
|
-
|
|
37046
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
37047
|
+
watchCreateHeaderTemp();
|
|
37048
|
+
});
|
|
37793
37049
|
});
|
|
37794
37050
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
37795
37051
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
@@ -38956,7 +38212,9 @@ const __default__ = {
|
|
|
38956
38212
|
});
|
|
38957
38213
|
watchCreateHeaderTemp();
|
|
38958
38214
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
38959
|
-
|
|
38215
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
38216
|
+
watchCreateHeaderTemp();
|
|
38217
|
+
});
|
|
38960
38218
|
});
|
|
38961
38219
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
38962
38220
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
@@ -39484,7 +38742,9 @@ const __default__ = {
|
|
|
39484
38742
|
});
|
|
39485
38743
|
watchCreateHeaderTemp();
|
|
39486
38744
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
39487
|
-
|
|
38745
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
38746
|
+
watchCreateHeaderTemp();
|
|
38747
|
+
});
|
|
39488
38748
|
});
|
|
39489
38749
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
39490
38750
|
//父组件ScenceView初始化完成后执行
|
|
@@ -40167,7 +39427,9 @@ const __default__ = {
|
|
|
40167
39427
|
});
|
|
40168
39428
|
watchCreateHeaderTemp();
|
|
40169
39429
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
40170
|
-
|
|
39430
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
39431
|
+
watchCreateHeaderTemp();
|
|
39432
|
+
});
|
|
40171
39433
|
});
|
|
40172
39434
|
|
|
40173
39435
|
//父组 件ScenceView初始化完成后执行
|
|
@@ -41215,7 +40477,9 @@ const __default__ = {
|
|
|
41215
40477
|
});
|
|
41216
40478
|
watchCreateHeaderTemp();
|
|
41217
40479
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
41218
|
-
|
|
40480
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
40481
|
+
watchCreateHeaderTemp();
|
|
40482
|
+
});
|
|
41219
40483
|
});
|
|
41220
40484
|
|
|
41221
40485
|
//父组 件ScenceView初始化完成后执行
|
|
@@ -42179,7 +41443,9 @@ const __default__ = {
|
|
|
42179
41443
|
});
|
|
42180
41444
|
watchCreateHeaderTemp();
|
|
42181
41445
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
42182
|
-
|
|
41446
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
41447
|
+
watchCreateHeaderTemp();
|
|
41448
|
+
});
|
|
42183
41449
|
});
|
|
42184
41450
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言类型
|
|
42185
41451
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
@@ -42762,7 +42028,9 @@ const __default__ = {
|
|
|
42762
42028
|
});
|
|
42763
42029
|
watchCreateHeaderTemp();
|
|
42764
42030
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
42765
|
-
|
|
42031
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
42032
|
+
watchCreateHeaderTemp();
|
|
42033
|
+
});
|
|
42766
42034
|
});
|
|
42767
42035
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
42768
42036
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
@@ -43373,7 +42641,9 @@ const __default__ = {
|
|
|
43373
42641
|
});
|
|
43374
42642
|
watchCreateHeaderTemp();
|
|
43375
42643
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
43376
|
-
|
|
42644
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
42645
|
+
watchCreateHeaderTemp();
|
|
42646
|
+
});
|
|
43377
42647
|
});
|
|
43378
42648
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
43379
42649
|
//父组件ScenceView初始化完成后执行
|
|
@@ -43595,7 +42865,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".tool-bar-wrapper .tool-bar-wrapper-it
|
|
|
43595
42865
|
|
|
43596
42866
|
/***/ }),
|
|
43597
42867
|
|
|
43598
|
-
/***/
|
|
42868
|
+
/***/ 8008:
|
|
43599
42869
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
43600
42870
|
|
|
43601
42871
|
"use strict";
|
|
@@ -43612,7 +42882,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".tool-box-wrapper-3d .kq-icon_grid{col
|
|
|
43612
42882
|
|
|
43613
42883
|
/***/ }),
|
|
43614
42884
|
|
|
43615
|
-
/***/
|
|
42885
|
+
/***/ 4188:
|
|
43616
42886
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
43617
42887
|
|
|
43618
42888
|
"use strict";
|
|
@@ -43939,6 +43209,792 @@ module.exports = function (list, options) {
|
|
|
43939
43209
|
|
|
43940
43210
|
/***/ }),
|
|
43941
43211
|
|
|
43212
|
+
/***/ 7226:
|
|
43213
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
43214
|
+
|
|
43215
|
+
"use strict";
|
|
43216
|
+
|
|
43217
|
+
// EXPORTS
|
|
43218
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
43219
|
+
"Z": function() { return /* binding */ Measure; }
|
|
43220
|
+
});
|
|
43221
|
+
|
|
43222
|
+
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.constructor.js"
|
|
43223
|
+
var esnext_iterator_constructor_js_ = __webpack_require__(8470);
|
|
43224
|
+
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.for-each.js"
|
|
43225
|
+
var esnext_iterator_for_each_js_ = __webpack_require__(1058);
|
|
43226
|
+
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
43227
|
+
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
|
|
43228
|
+
// EXTERNAL MODULE: external "@element-plus/icons-vue"
|
|
43229
|
+
var icons_vue_ = __webpack_require__(8422);
|
|
43230
|
+
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
43231
|
+
var client_icons_vue_ = __webpack_require__(348);
|
|
43232
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
43233
|
+
var gis_utils_ = __webpack_require__(7135);
|
|
43234
|
+
// EXTERNAL MODULE: ./src/webgl/measure/MeasureViewModel.js
|
|
43235
|
+
var MeasureViewModel = __webpack_require__(193);
|
|
43236
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
43237
|
+
var util_ = __webpack_require__(3458);
|
|
43238
|
+
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
43239
|
+
var message = __webpack_require__(1349);
|
|
43240
|
+
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
43241
|
+
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
43242
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/measure/Measure.vue?vue&type=script&setup=true&lang=js
|
|
43243
|
+
|
|
43244
|
+
|
|
43245
|
+
|
|
43246
|
+
const _hoisted_1 = {
|
|
43247
|
+
class: "kq-measure3d-box"
|
|
43248
|
+
};
|
|
43249
|
+
const _hoisted_2 = {
|
|
43250
|
+
class: "kq-measure3d-mode"
|
|
43251
|
+
};
|
|
43252
|
+
const _hoisted_3 = {
|
|
43253
|
+
class: "panel"
|
|
43254
|
+
};
|
|
43255
|
+
const _hoisted_4 = {
|
|
43256
|
+
class: "title",
|
|
43257
|
+
style: {
|
|
43258
|
+
"line-height": "14px"
|
|
43259
|
+
}
|
|
43260
|
+
};
|
|
43261
|
+
const _hoisted_5 = {
|
|
43262
|
+
class: "kq-measure3d-btns"
|
|
43263
|
+
};
|
|
43264
|
+
const _hoisted_6 = {
|
|
43265
|
+
key: 0,
|
|
43266
|
+
class: "kq-measure3d-tip"
|
|
43267
|
+
};
|
|
43268
|
+
const _hoisted_7 = {
|
|
43269
|
+
key: 0
|
|
43270
|
+
};
|
|
43271
|
+
const _hoisted_8 = {
|
|
43272
|
+
key: 1
|
|
43273
|
+
};
|
|
43274
|
+
const _hoisted_9 = {
|
|
43275
|
+
key: 1,
|
|
43276
|
+
class: "kq-measure3d-result"
|
|
43277
|
+
};
|
|
43278
|
+
const _hoisted_10 = {
|
|
43279
|
+
class: "kq-measure3d-result-panel"
|
|
43280
|
+
};
|
|
43281
|
+
const _hoisted_11 = {
|
|
43282
|
+
key: 0,
|
|
43283
|
+
class: "panel"
|
|
43284
|
+
};
|
|
43285
|
+
const _hoisted_12 = {
|
|
43286
|
+
class: "title"
|
|
43287
|
+
};
|
|
43288
|
+
const _hoisted_13 = {
|
|
43289
|
+
class: "panel"
|
|
43290
|
+
};
|
|
43291
|
+
const _hoisted_14 = {
|
|
43292
|
+
class: "title"
|
|
43293
|
+
};
|
|
43294
|
+
const _hoisted_15 = {
|
|
43295
|
+
key: 0,
|
|
43296
|
+
class: "result"
|
|
43297
|
+
};
|
|
43298
|
+
const _hoisted_16 = {
|
|
43299
|
+
class: "tit"
|
|
43300
|
+
};
|
|
43301
|
+
const _hoisted_17 = {
|
|
43302
|
+
class: "res"
|
|
43303
|
+
};
|
|
43304
|
+
const _hoisted_18 = {
|
|
43305
|
+
class: "tit"
|
|
43306
|
+
};
|
|
43307
|
+
const _hoisted_19 = {
|
|
43308
|
+
class: "res"
|
|
43309
|
+
};
|
|
43310
|
+
const _hoisted_20 = {
|
|
43311
|
+
class: "tit"
|
|
43312
|
+
};
|
|
43313
|
+
const _hoisted_21 = {
|
|
43314
|
+
class: "res"
|
|
43315
|
+
};
|
|
43316
|
+
const _hoisted_22 = {
|
|
43317
|
+
class: "tit"
|
|
43318
|
+
};
|
|
43319
|
+
const _hoisted_23 = {
|
|
43320
|
+
class: "res"
|
|
43321
|
+
};
|
|
43322
|
+
const _hoisted_24 = {
|
|
43323
|
+
key: 1,
|
|
43324
|
+
class: "result"
|
|
43325
|
+
};
|
|
43326
|
+
const _hoisted_25 = {
|
|
43327
|
+
class: "tit"
|
|
43328
|
+
};
|
|
43329
|
+
const _hoisted_26 = {
|
|
43330
|
+
class: "res"
|
|
43331
|
+
};
|
|
43332
|
+
const _hoisted_27 = {
|
|
43333
|
+
class: "tit"
|
|
43334
|
+
};
|
|
43335
|
+
const _hoisted_28 = {
|
|
43336
|
+
class: "res"
|
|
43337
|
+
};
|
|
43338
|
+
const _hoisted_29 = {
|
|
43339
|
+
class: "tit"
|
|
43340
|
+
};
|
|
43341
|
+
const _hoisted_30 = {
|
|
43342
|
+
class: "res"
|
|
43343
|
+
};
|
|
43344
|
+
const _hoisted_31 = {
|
|
43345
|
+
key: 2,
|
|
43346
|
+
class: "result"
|
|
43347
|
+
};
|
|
43348
|
+
const _hoisted_32 = {
|
|
43349
|
+
class: "tit"
|
|
43350
|
+
};
|
|
43351
|
+
const _hoisted_33 = {
|
|
43352
|
+
class: "res"
|
|
43353
|
+
};
|
|
43354
|
+
const _hoisted_34 = {
|
|
43355
|
+
class: "tit"
|
|
43356
|
+
};
|
|
43357
|
+
const _hoisted_35 = {
|
|
43358
|
+
class: "res"
|
|
43359
|
+
};
|
|
43360
|
+
const _hoisted_36 = {
|
|
43361
|
+
key: 3,
|
|
43362
|
+
class: "result"
|
|
43363
|
+
};
|
|
43364
|
+
const _hoisted_37 = {
|
|
43365
|
+
class: "tit"
|
|
43366
|
+
};
|
|
43367
|
+
const _hoisted_38 = {
|
|
43368
|
+
class: "res"
|
|
43369
|
+
};
|
|
43370
|
+
|
|
43371
|
+
|
|
43372
|
+
|
|
43373
|
+
|
|
43374
|
+
|
|
43375
|
+
|
|
43376
|
+
|
|
43377
|
+
|
|
43378
|
+
const __default__ = {
|
|
43379
|
+
name: "Kq3dMeasure"
|
|
43380
|
+
};
|
|
43381
|
+
/* harmony default export */ var Measurevue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
43382
|
+
props: {
|
|
43383
|
+
//指定组件绑定的viewer对象的div的id
|
|
43384
|
+
target: String,
|
|
43385
|
+
// 设置参数
|
|
43386
|
+
settingParams: {
|
|
43387
|
+
type: Object
|
|
43388
|
+
},
|
|
43389
|
+
// 是否显示阴影效果
|
|
43390
|
+
showShadow: {
|
|
43391
|
+
type: Boolean,
|
|
43392
|
+
default: true
|
|
43393
|
+
},
|
|
43394
|
+
/**
|
|
43395
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
43396
|
+
*/
|
|
43397
|
+
position: [String, Object],
|
|
43398
|
+
// 是否生成HeaderTemp
|
|
43399
|
+
showHeaderTemp: {
|
|
43400
|
+
type: Boolean,
|
|
43401
|
+
default: false
|
|
43402
|
+
},
|
|
43403
|
+
// 是否折叠HeaderTemp,showHeaderTemp为true时生效
|
|
43404
|
+
isCollapseHeaderTemp: {
|
|
43405
|
+
type: Boolean,
|
|
43406
|
+
default: false
|
|
43407
|
+
},
|
|
43408
|
+
// HeaderTemp标题
|
|
43409
|
+
headerTempTitle: {
|
|
43410
|
+
type: String
|
|
43411
|
+
},
|
|
43412
|
+
// HeaderTemp图标
|
|
43413
|
+
headerTempIcon: {
|
|
43414
|
+
type: [Object, String],
|
|
43415
|
+
default: client_icons_vue_.IconMeasure2D
|
|
43416
|
+
},
|
|
43417
|
+
// HeaderTemp Title&Icon的位置
|
|
43418
|
+
isRight: {
|
|
43419
|
+
type: Boolean,
|
|
43420
|
+
default: true
|
|
43421
|
+
}
|
|
43422
|
+
},
|
|
43423
|
+
setup(__props, {
|
|
43424
|
+
expose: __expose
|
|
43425
|
+
}) {
|
|
43426
|
+
const props = __props;
|
|
43427
|
+
let measureType = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 测量类型
|
|
43428
|
+
let isActive = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
43429
|
+
let isResult = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
43430
|
+
let isTips = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
43431
|
+
let distanceValue = null;
|
|
43432
|
+
// 默认显示距离的单位
|
|
43433
|
+
let distanceUnit = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.settingParams && props.settingParams.distanceUnit || "");
|
|
43434
|
+
// 海里单位选择
|
|
43435
|
+
let nauticalMileUnit = props.settingParams && props.settingParams.nauticalMileUnit || "nmi";
|
|
43436
|
+
// 面积单位
|
|
43437
|
+
let areaUnit = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.settingParams && props.settingParams.areaUnit || "");
|
|
43438
|
+
let result = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(0);
|
|
43439
|
+
const {
|
|
43440
|
+
proxy
|
|
43441
|
+
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
43442
|
+
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(Object.assign({}, proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"], proxy.$i18n.global.messages[proxy.$i18n.global.locale]["leaflet"]));
|
|
43443
|
+
let mode = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("space");
|
|
43444
|
+
let modeList = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(loadModeData());
|
|
43445
|
+
let viewModel = null;
|
|
43446
|
+
// 国际化
|
|
43447
|
+
let {
|
|
43448
|
+
locale,
|
|
43449
|
+
messages
|
|
43450
|
+
} = (0,vue_i18n_cjs_js_.useI18n)();
|
|
43451
|
+
let measureTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
43452
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => locale.value, (newVal, oldVal) => {
|
|
43453
|
+
language.value = Object.assign({}, messages.value[newVal]["webgl"], messages.value[newVal]["leaflet"]);
|
|
43454
|
+
measureTitle.value = language.value.measure;
|
|
43455
|
+
modeList.value = loadModeData();
|
|
43456
|
+
distanceUnits.value = setDistanceUnits();
|
|
43457
|
+
areaUnits.value = setAreaUnits();
|
|
43458
|
+
});
|
|
43459
|
+
|
|
43460
|
+
// 距离测量单位
|
|
43461
|
+
let distanceUnits = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
43462
|
+
let setDistanceUnits = () => {
|
|
43463
|
+
return [{
|
|
43464
|
+
label: language.value.kilometre,
|
|
43465
|
+
value: "km"
|
|
43466
|
+
}, {
|
|
43467
|
+
label: language.value.metre,
|
|
43468
|
+
value: "m"
|
|
43469
|
+
}, {
|
|
43470
|
+
label: language.value.nauticalMile,
|
|
43471
|
+
value: nauticalMileUnit
|
|
43472
|
+
}];
|
|
43473
|
+
};
|
|
43474
|
+
distanceUnits.value = setDistanceUnits();
|
|
43475
|
+
// 面积测量单位
|
|
43476
|
+
let areaUnits = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
43477
|
+
let setAreaUnits = () => {
|
|
43478
|
+
return [{
|
|
43479
|
+
label: language.value.squareKilometers,
|
|
43480
|
+
value: "km²"
|
|
43481
|
+
}, {
|
|
43482
|
+
label: language.value.squareMeter,
|
|
43483
|
+
value: "m²"
|
|
43484
|
+
}, {
|
|
43485
|
+
label: language.value.mu,
|
|
43486
|
+
value: "mu"
|
|
43487
|
+
}, {
|
|
43488
|
+
label: language.value.hectare,
|
|
43489
|
+
value: "ha"
|
|
43490
|
+
}];
|
|
43491
|
+
};
|
|
43492
|
+
areaUnits.value = setAreaUnits();
|
|
43493
|
+
|
|
43494
|
+
// 组件容器Ref
|
|
43495
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
43496
|
+
|
|
43497
|
+
// 生成组件默认header
|
|
43498
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
43499
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
43500
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
43501
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
43502
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
43503
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
43504
|
+
});
|
|
43505
|
+
watchCreateHeaderTemp();
|
|
43506
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
43507
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
43508
|
+
watchCreateHeaderTemp();
|
|
43509
|
+
});
|
|
43510
|
+
});
|
|
43511
|
+
gis_utils_.utils.getWebMap(props.target, scenceView => {
|
|
43512
|
+
if (scenceView) {
|
|
43513
|
+
viewModel = new MeasureViewModel/* default */.Z(scenceView._viewer);
|
|
43514
|
+
viewModel.nauticalMileUnit = nauticalMileUnit;
|
|
43515
|
+
//注册测量事件,以获取测量结果
|
|
43516
|
+
viewModel.measureEvent.addEventListener(function (res) {
|
|
43517
|
+
if (measureType.value === "distance") {
|
|
43518
|
+
if (res.distance) {
|
|
43519
|
+
distanceValue = res.distance;
|
|
43520
|
+
if (props.settingParams && props.settingParams.distanceUnit) {
|
|
43521
|
+
distanceUnit.value = props.settingParams && props.settingParams.distanceUnit || "";
|
|
43522
|
+
onChangeUnit(distanceUnit.value);
|
|
43523
|
+
} else {
|
|
43524
|
+
result.value = formatDistance(res.distance);
|
|
43525
|
+
}
|
|
43526
|
+
}
|
|
43527
|
+
} else if (measureType.value === "height" && res) {
|
|
43528
|
+
result.value = {
|
|
43529
|
+
spaceDistance: res.distance ? res.distance.toFixed(2) : 0,
|
|
43530
|
+
horizontalDistance: res.hDistance ? res.hDistance.toFixed(2) : 0,
|
|
43531
|
+
verticalDistance: res.vDistance ? res.vDistance.toFixed(2) : 0,
|
|
43532
|
+
angle: res.angle ? res.angle.toFixed(2).replace(/\.?0+$/, '') : 0
|
|
43533
|
+
};
|
|
43534
|
+
} else if (measureType.value === "area") {
|
|
43535
|
+
if (res && res.area || res && res.area == 0) {
|
|
43536
|
+
distanceValue = res.area;
|
|
43537
|
+
if (props.settingParams && props.settingParams.areaUnit) {
|
|
43538
|
+
areaUnit.value = props.settingParams && props.settingParams.areaUnit || "";
|
|
43539
|
+
onChangeUnit(areaUnit.value);
|
|
43540
|
+
} else {
|
|
43541
|
+
result.value = formatArea(res.area);
|
|
43542
|
+
}
|
|
43543
|
+
}
|
|
43544
|
+
} else if (measureType.value === "azimuth" && res) {
|
|
43545
|
+
if (res.positions && res.positions.length > 0) {
|
|
43546
|
+
result.value = {
|
|
43547
|
+
azimuth: res.azimuth.toFixed(4),
|
|
43548
|
+
distance: res.distance.toFixed(2)
|
|
43549
|
+
};
|
|
43550
|
+
} else result.value = 0;
|
|
43551
|
+
} else if (measureType.value === "slope" && res) {
|
|
43552
|
+
if (res.positions && res.positions.length > 0) {
|
|
43553
|
+
result.value = res.slopeAngle.toFixed(2).replace(/\.?0+$/, '') + " °";
|
|
43554
|
+
} else result.value = 0;
|
|
43555
|
+
} else if (measureType.value === "coordinate") {
|
|
43556
|
+
if (res && res.coordinate) {
|
|
43557
|
+
let convertValue = null;
|
|
43558
|
+
if (props.settingParams && props.settingParams.isConvert) {
|
|
43559
|
+
result.value = {
|
|
43560
|
+
longitude: res.coordinate.longitude ? convertXY(res.coordinate.longitude) : 0,
|
|
43561
|
+
latitude: res.coordinate.latitude ? convertXY(res.coordinate.latitude) : 0,
|
|
43562
|
+
height: res.coordinate.height ? res.coordinate.height.toFixed(2) : 0
|
|
43563
|
+
};
|
|
43564
|
+
convertValue = [result.value.longitude, result.value.latitude];
|
|
43565
|
+
} else {
|
|
43566
|
+
result.value = {
|
|
43567
|
+
longitude: res.coordinate.longitude ? res.coordinate.longitude.toFixed(5) + "°" : 0,
|
|
43568
|
+
latitude: res.coordinate.latitude ? res.coordinate.latitude.toFixed(5) + "°" : 0,
|
|
43569
|
+
height: res.coordinate.height ? res.coordinate.height.toFixed(2) : 0
|
|
43570
|
+
};
|
|
43571
|
+
}
|
|
43572
|
+
if (res.measureResult && res.measureResult.labels && res.measureResult.labels.length > 0) {
|
|
43573
|
+
res.measureResult.labels._labels.forEach(label => {
|
|
43574
|
+
label.text = label.text.replace('X', language.value.longitude).replace('Y', language.value.latitude).replace('Z', language.value.elevation).replace(/\n/g, '°\n');
|
|
43575
|
+
if (convertValue) {
|
|
43576
|
+
label.text = label.text.replace(res.coordinate.longitude.toFixed(5) + "°", convertValue[0]).replace(res.coordinate.latitude.toFixed(5) + "°", convertValue[1]);
|
|
43577
|
+
}
|
|
43578
|
+
});
|
|
43579
|
+
}
|
|
43580
|
+
}
|
|
43581
|
+
}
|
|
43582
|
+
});
|
|
43583
|
+
viewModel.activeEvent.addEventListener(function (active) {
|
|
43584
|
+
if (!active) {
|
|
43585
|
+
// isActive.value = null;
|
|
43586
|
+
isTips.value = false;
|
|
43587
|
+
if (result.value === 0) return;
|
|
43588
|
+
if (measureType.value === "height" && result.value.angle === 0) return;
|
|
43589
|
+
if (measureType.value === "azimuth" && result.value === 0) return;
|
|
43590
|
+
isResult.value = true;
|
|
43591
|
+
}
|
|
43592
|
+
});
|
|
43593
|
+
let handler = new Cesium.ScreenSpaceEventHandler(scenceView._viewer.scene.canvas);
|
|
43594
|
+
handler.setInputAction(function () {
|
|
43595
|
+
if (!viewModel._measureHandler.active) return;
|
|
43596
|
+
let isDrawing = viewModel._measureHandler.isDrawing;
|
|
43597
|
+
if (!isDrawing) {
|
|
43598
|
+
let measureResults = viewModel._measureHandler.measureResults;
|
|
43599
|
+
if (measureResults && measureResults.length > 0) {
|
|
43600
|
+
measureResults[0].destroy();
|
|
43601
|
+
}
|
|
43602
|
+
if (measureType.value === "coordinate") {
|
|
43603
|
+
isTips.value = false;
|
|
43604
|
+
isResult.value = true;
|
|
43605
|
+
} else {
|
|
43606
|
+
isTips.value = true;
|
|
43607
|
+
isResult.value = false;
|
|
43608
|
+
}
|
|
43609
|
+
}
|
|
43610
|
+
if (isDrawing) {
|
|
43611
|
+
if (measureType.value !== 'distance' && measureType.value !== 'area') {
|
|
43612
|
+
continueMeasure();
|
|
43613
|
+
}
|
|
43614
|
+
}
|
|
43615
|
+
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
43616
|
+
handler.setInputAction(function () {
|
|
43617
|
+
let isDrawing = viewModel._measureHandler.isDrawing;
|
|
43618
|
+
if (!isDrawing) {
|
|
43619
|
+
isActive.value = null;
|
|
43620
|
+
viewModel.stopMeasure();
|
|
43621
|
+
} else {
|
|
43622
|
+
continueMeasure();
|
|
43623
|
+
}
|
|
43624
|
+
}, Cesium.ScreenSpaceEventType.RIGHT_CLICK);
|
|
43625
|
+
window.measureClickHandler = handler;
|
|
43626
|
+
}
|
|
43627
|
+
});
|
|
43628
|
+
});
|
|
43629
|
+
// 经纬度转度分秒
|
|
43630
|
+
function convertXY(val) {
|
|
43631
|
+
if (!val) {
|
|
43632
|
+
return "";
|
|
43633
|
+
}
|
|
43634
|
+
// 度=经纬度的整数部分
|
|
43635
|
+
let d = Math.floor(Number(val));
|
|
43636
|
+
// 经纬度的小数部分*60
|
|
43637
|
+
let temp1 = (Number(val) - Number(d)) * 60;
|
|
43638
|
+
// 分=(经纬度的小数部分*60)的整数部分
|
|
43639
|
+
let f = Math.floor(Number(temp1));
|
|
43640
|
+
// 秒=(经纬度的小数部分*60-分)*60
|
|
43641
|
+
let m = Math.floor((Number(temp1) - Number(f)) * 60);
|
|
43642
|
+
return d + "°" + f + "′" + m + "″";
|
|
43643
|
+
}
|
|
43644
|
+
/**
|
|
43645
|
+
* @description 监听header生成
|
|
43646
|
+
*/
|
|
43647
|
+
const watchCreateHeaderTemp = () => {
|
|
43648
|
+
if (props.showHeaderTemp) {
|
|
43649
|
+
// 生成headerTemp
|
|
43650
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, measureTitle);
|
|
43651
|
+
}
|
|
43652
|
+
};
|
|
43653
|
+
|
|
43654
|
+
//加载测量模式数据
|
|
43655
|
+
function loadModeData() {
|
|
43656
|
+
return [{
|
|
43657
|
+
label: language.value.spaceMeasure,
|
|
43658
|
+
value: "space"
|
|
43659
|
+
}, {
|
|
43660
|
+
label: language.value.groundMeasure,
|
|
43661
|
+
value: "ground"
|
|
43662
|
+
}, {
|
|
43663
|
+
label: language.value.modelMeasure,
|
|
43664
|
+
value: "model"
|
|
43665
|
+
}];
|
|
43666
|
+
}
|
|
43667
|
+
function formatDistance(dis) {
|
|
43668
|
+
if (dis > 5000) {
|
|
43669
|
+
dis = dis / 1000;
|
|
43670
|
+
distanceUnit.value = "km";
|
|
43671
|
+
} else {
|
|
43672
|
+
distanceUnit.value = "m";
|
|
43673
|
+
}
|
|
43674
|
+
return dis.toFixed(2) + " " + distanceUnit.value;
|
|
43675
|
+
}
|
|
43676
|
+
function formatArea(area) {
|
|
43677
|
+
areaUnit.value = "m²";
|
|
43678
|
+
if (area > 1000000) {
|
|
43679
|
+
area = area / 1000000;
|
|
43680
|
+
areaUnit.value = "km²";
|
|
43681
|
+
}
|
|
43682
|
+
return area.toFixed(2) + " " + areaUnit.value;
|
|
43683
|
+
}
|
|
43684
|
+
|
|
43685
|
+
/**
|
|
43686
|
+
* @description 监听单位变化操作
|
|
43687
|
+
* @param {string} unit - 单位
|
|
43688
|
+
*/
|
|
43689
|
+
function onChangeUnit(unit) {
|
|
43690
|
+
result.value = convertValueUnitTotal(distanceValue, unit);
|
|
43691
|
+
viewModel && viewModel.updateDistanceUnit(distanceValue, unit);
|
|
43692
|
+
}
|
|
43693
|
+
|
|
43694
|
+
/**
|
|
43695
|
+
* @description 测量距离数值单位换算
|
|
43696
|
+
* @param {string} value - 原始数值
|
|
43697
|
+
* @param {string} unit - 单位
|
|
43698
|
+
* @returns {string} 新数值
|
|
43699
|
+
*/
|
|
43700
|
+
function convertValueUnitTotal(value, unit) {
|
|
43701
|
+
let newValue = "";
|
|
43702
|
+
switch (unit) {
|
|
43703
|
+
case "m":
|
|
43704
|
+
newValue = value.toFixed(2) + " m";
|
|
43705
|
+
break;
|
|
43706
|
+
case "km":
|
|
43707
|
+
newValue = (value / 1000).toFixed(2) + " km";
|
|
43708
|
+
break;
|
|
43709
|
+
case nauticalMileUnit:
|
|
43710
|
+
newValue = (value / 1852).toFixed(2) + " " + nauticalMileUnit;
|
|
43711
|
+
break;
|
|
43712
|
+
case "m²":
|
|
43713
|
+
newValue = value.toFixed(2) + " m²";
|
|
43714
|
+
break;
|
|
43715
|
+
case "km²":
|
|
43716
|
+
newValue = (value / 1000000).toFixed(2) + " km²";
|
|
43717
|
+
break;
|
|
43718
|
+
case "mu":
|
|
43719
|
+
newValue = (value * 2 / 3).toFixed(2) + " mu";
|
|
43720
|
+
break;
|
|
43721
|
+
case "ha":
|
|
43722
|
+
newValue = (value / 10000).toFixed(2) + " ha";
|
|
43723
|
+
break;
|
|
43724
|
+
default:
|
|
43725
|
+
break;
|
|
43726
|
+
}
|
|
43727
|
+
return newValue;
|
|
43728
|
+
}
|
|
43729
|
+
|
|
43730
|
+
// 销毁
|
|
43731
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
43732
|
+
clearMeasure();
|
|
43733
|
+
if (window.measureClickHandler) {
|
|
43734
|
+
window.measureClickHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
43735
|
+
window.measureClickHandler.removeInputAction(Cesium.ScreenSpaceEventType.RIGHT_CLICK);
|
|
43736
|
+
}
|
|
43737
|
+
});
|
|
43738
|
+
|
|
43739
|
+
//开始测量
|
|
43740
|
+
function startMeasure(type) {
|
|
43741
|
+
if (mode.value === "ground") {
|
|
43742
|
+
if (!viewModel.checkTerrainAdded()) {
|
|
43743
|
+
(0,message/* default */.Z)({
|
|
43744
|
+
message: language.value["measuretAddTerrainTips"],
|
|
43745
|
+
type: "warning"
|
|
43746
|
+
});
|
|
43747
|
+
return;
|
|
43748
|
+
}
|
|
43749
|
+
}
|
|
43750
|
+
if (mode.value === "model") {
|
|
43751
|
+
if (!viewModel.checkModelAdded()) {
|
|
43752
|
+
(0,message/* default */.Z)({
|
|
43753
|
+
message: language.value["measuretAddModelTips"],
|
|
43754
|
+
type: "warning"
|
|
43755
|
+
});
|
|
43756
|
+
return;
|
|
43757
|
+
}
|
|
43758
|
+
}
|
|
43759
|
+
viewModel.clear();
|
|
43760
|
+
result.value = 0;
|
|
43761
|
+
isTips.value = true;
|
|
43762
|
+
isResult.value = false;
|
|
43763
|
+
measureType.value = type;
|
|
43764
|
+
isActive.value = type;
|
|
43765
|
+
switch (type) {
|
|
43766
|
+
case "distance":
|
|
43767
|
+
viewModel.distanceMeasure(mode.value);
|
|
43768
|
+
break;
|
|
43769
|
+
case "area":
|
|
43770
|
+
viewModel.areaMeasure(mode.value);
|
|
43771
|
+
break;
|
|
43772
|
+
case "height":
|
|
43773
|
+
viewModel.heightMeasure();
|
|
43774
|
+
break;
|
|
43775
|
+
case "coordinate":
|
|
43776
|
+
viewModel.coordinateMeasure();
|
|
43777
|
+
break;
|
|
43778
|
+
case "azimuth":
|
|
43779
|
+
viewModel.azimuthMeasure();
|
|
43780
|
+
break;
|
|
43781
|
+
case "slope":
|
|
43782
|
+
if (mode.value === "ground") {
|
|
43783
|
+
viewModel.terrainSlopeMeasure();
|
|
43784
|
+
} else if (mode.value === "model") {
|
|
43785
|
+
viewModel.sceneSlopeMeasure();
|
|
43786
|
+
}
|
|
43787
|
+
break;
|
|
43788
|
+
default:
|
|
43789
|
+
break;
|
|
43790
|
+
}
|
|
43791
|
+
}
|
|
43792
|
+
function continueMeasure() {
|
|
43793
|
+
setTimeout(() => {
|
|
43794
|
+
switch (measureType.value) {
|
|
43795
|
+
case "distance":
|
|
43796
|
+
viewModel.distanceMeasure(mode.value);
|
|
43797
|
+
break;
|
|
43798
|
+
case "area":
|
|
43799
|
+
viewModel.areaMeasure(mode.value);
|
|
43800
|
+
break;
|
|
43801
|
+
case "height":
|
|
43802
|
+
viewModel.heightMeasure();
|
|
43803
|
+
break;
|
|
43804
|
+
case "coordinate":
|
|
43805
|
+
viewModel.coordinateMeasure();
|
|
43806
|
+
break;
|
|
43807
|
+
case "azimuth":
|
|
43808
|
+
viewModel.azimuthMeasure();
|
|
43809
|
+
break;
|
|
43810
|
+
case "slope":
|
|
43811
|
+
if (mode.value === "ground") {
|
|
43812
|
+
viewModel.terrainSlopeMeasure();
|
|
43813
|
+
} else if (mode.value === "model") {
|
|
43814
|
+
viewModel.sceneSlopeMeasure();
|
|
43815
|
+
}
|
|
43816
|
+
break;
|
|
43817
|
+
default:
|
|
43818
|
+
break;
|
|
43819
|
+
}
|
|
43820
|
+
}, 300);
|
|
43821
|
+
}
|
|
43822
|
+
|
|
43823
|
+
/**
|
|
43824
|
+
* 清除测量
|
|
43825
|
+
*/
|
|
43826
|
+
function clearMeasure() {
|
|
43827
|
+
viewModel && viewModel.clear();
|
|
43828
|
+
measureType.value = null;
|
|
43829
|
+
isActive.value = null;
|
|
43830
|
+
isTips.value = false;
|
|
43831
|
+
isResult.value = false;
|
|
43832
|
+
}
|
|
43833
|
+
__expose({
|
|
43834
|
+
loadModeData,
|
|
43835
|
+
formatDistance,
|
|
43836
|
+
formatArea,
|
|
43837
|
+
startMeasure,
|
|
43838
|
+
clearMeasure
|
|
43839
|
+
});
|
|
43840
|
+
return (_ctx, _cache) => {
|
|
43841
|
+
const _component_kq_option = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-option");
|
|
43842
|
+
const _component_kq_select = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-select");
|
|
43843
|
+
const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-icon");
|
|
43844
|
+
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
43845
|
+
const _component_kq_divider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-divider");
|
|
43846
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
43847
|
+
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq-measure3d", {
|
|
43848
|
+
'kq-box-shadow': __props.showShadow
|
|
43849
|
+
}]),
|
|
43850
|
+
ref_key: "boxRef",
|
|
43851
|
+
ref: boxRef
|
|
43852
|
+
}, [__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)), {
|
|
43853
|
+
key: 0,
|
|
43854
|
+
ref_key: "headerTempRef",
|
|
43855
|
+
ref: headerTempRef
|
|
43856
|
+
}, null, 512 /* NEED_PATCH */)) : (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_.createElementVNode)("div", _hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_3, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_4, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).mode), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_select, {
|
|
43857
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(mode),
|
|
43858
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(mode) ? mode.value = $event : mode = $event)
|
|
43859
|
+
}, {
|
|
43860
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.Fragment, null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.renderList)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(modeList), item => {
|
|
43861
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_option, {
|
|
43862
|
+
key: item.value,
|
|
43863
|
+
label: item.label,
|
|
43864
|
+
value: item.value
|
|
43865
|
+
}, null, 8 /* PROPS */, ["label", "value"]);
|
|
43866
|
+
}), 128 /* KEYED_FRAGMENT */))]),
|
|
43867
|
+
_: 1 /* STABLE */
|
|
43868
|
+
}, 8 /* PROPS */, ["modelValue"])])]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_5, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
43869
|
+
onClick: _cache[1] || (_cache[1] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('distance'), ["stop"])),
|
|
43870
|
+
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) == 'distance' ? 'is-active' : null),
|
|
43871
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).distance
|
|
43872
|
+
}, {
|
|
43873
|
+
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_icon, {
|
|
43874
|
+
size: 24
|
|
43875
|
+
}, {
|
|
43876
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconMeasureDistance))]),
|
|
43877
|
+
_: 1 /* STABLE */
|
|
43878
|
+
})]),
|
|
43879
|
+
_: 1 /* STABLE */
|
|
43880
|
+
}, 8 /* PROPS */, ["class", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
43881
|
+
onClick: _cache[2] || (_cache[2] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('area'), ["stop"])),
|
|
43882
|
+
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) == 'area' ? 'is-active' : null),
|
|
43883
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).area
|
|
43884
|
+
}, {
|
|
43885
|
+
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_icon, {
|
|
43886
|
+
size: 24
|
|
43887
|
+
}, {
|
|
43888
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconMeasureArea))]),
|
|
43889
|
+
_: 1 /* STABLE */
|
|
43890
|
+
})]),
|
|
43891
|
+
_: 1 /* STABLE */
|
|
43892
|
+
}, 8 /* PROPS */, ["class", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
43893
|
+
onClick: _cache[3] || (_cache[3] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('height'), ["stop"])),
|
|
43894
|
+
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) == 'height' ? 'is-active' : null),
|
|
43895
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).height
|
|
43896
|
+
}, {
|
|
43897
|
+
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_icon, {
|
|
43898
|
+
size: 24
|
|
43899
|
+
}, {
|
|
43900
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconMeasureCoordinate))]),
|
|
43901
|
+
_: 1 /* STABLE */
|
|
43902
|
+
})]),
|
|
43903
|
+
_: 1 /* STABLE */
|
|
43904
|
+
}, 8 /* PROPS */, ["class", "title"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(mode) == 'space']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
43905
|
+
onClick: _cache[4] || (_cache[4] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('azimuth'), ["stop"])),
|
|
43906
|
+
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) == 'azimuth' ? 'is-active' : null),
|
|
43907
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).azimuth
|
|
43908
|
+
}, {
|
|
43909
|
+
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_icon, {
|
|
43910
|
+
size: 24
|
|
43911
|
+
}, {
|
|
43912
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconAzimuthMeasure))]),
|
|
43913
|
+
_: 1 /* STABLE */
|
|
43914
|
+
})]),
|
|
43915
|
+
_: 1 /* STABLE */
|
|
43916
|
+
}, 8 /* PROPS */, ["class", "title"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(mode) == 'space']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
43917
|
+
onClick: _cache[5] || (_cache[5] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('coordinate'), ["stop"])),
|
|
43918
|
+
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) == 'coordinate' ? 'is-active' : null),
|
|
43919
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).coordinate
|
|
43920
|
+
}, {
|
|
43921
|
+
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_icon, {
|
|
43922
|
+
size: 24
|
|
43923
|
+
}, {
|
|
43924
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconGroundSurvey))]),
|
|
43925
|
+
_: 1 /* STABLE */
|
|
43926
|
+
})]),
|
|
43927
|
+
_: 1 /* STABLE */
|
|
43928
|
+
}, 8 /* PROPS */, ["class", "title"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(mode) == 'space']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
43929
|
+
onClick: _cache[6] || (_cache[6] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('slope'), ["stop"])),
|
|
43930
|
+
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) == 'slope' ? 'is-active' : null),
|
|
43931
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).slope
|
|
43932
|
+
}, {
|
|
43933
|
+
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_icon, {
|
|
43934
|
+
size: 24
|
|
43935
|
+
}, {
|
|
43936
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconSlopeMeasure))]),
|
|
43937
|
+
_: 1 /* STABLE */
|
|
43938
|
+
})]),
|
|
43939
|
+
_: 1 /* STABLE */
|
|
43940
|
+
}, 8 /* PROPS */, ["class", "title"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(mode) != 'space']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
43941
|
+
type: "danger",
|
|
43942
|
+
plain: "",
|
|
43943
|
+
onClick: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)(clearMeasure, ["stop"]),
|
|
43944
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear
|
|
43945
|
+
}, {
|
|
43946
|
+
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_icon, {
|
|
43947
|
+
class: "icon-delete",
|
|
43948
|
+
size: 24
|
|
43949
|
+
}, {
|
|
43950
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(icons_vue_.Delete))]),
|
|
43951
|
+
_: 1 /* STABLE */
|
|
43952
|
+
})]),
|
|
43953
|
+
_: 1 /* STABLE */
|
|
43954
|
+
}, 8 /* PROPS */, ["onClick", "title"])]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isTips) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_6, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_divider), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'height' || (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'azimuth' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("p", _hoisted_7, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).measureTips1), 1 /* TEXT */)) : ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("p", _hoisted_8, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).measureTips), 1 /* TEXT */))])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isResult) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_9, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_divider), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_10, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'distance' || (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'area' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_11, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_12, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).unit), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'distance' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_select, {
|
|
43955
|
+
key: 0,
|
|
43956
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(distanceUnit),
|
|
43957
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(distanceUnit) ? distanceUnit.value = $event : distanceUnit = $event),
|
|
43958
|
+
onChange: onChangeUnit
|
|
43959
|
+
}, {
|
|
43960
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.Fragment, null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.renderList)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(distanceUnits), item => {
|
|
43961
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_option, {
|
|
43962
|
+
key: item.value,
|
|
43963
|
+
label: item.label,
|
|
43964
|
+
value: item.value
|
|
43965
|
+
}, null, 8 /* PROPS */, ["label", "value"]);
|
|
43966
|
+
}), 128 /* KEYED_FRAGMENT */))]),
|
|
43967
|
+
_: 1 /* STABLE */
|
|
43968
|
+
}, 8 /* PROPS */, ["modelValue"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'area' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_select, {
|
|
43969
|
+
key: 1,
|
|
43970
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(areaUnit),
|
|
43971
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(areaUnit) ? areaUnit.value = $event : areaUnit = $event),
|
|
43972
|
+
onChange: onChangeUnit
|
|
43973
|
+
}, {
|
|
43974
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.Fragment, null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.renderList)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(areaUnits), item => {
|
|
43975
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_option, {
|
|
43976
|
+
key: item.value,
|
|
43977
|
+
label: item.label,
|
|
43978
|
+
value: item.value
|
|
43979
|
+
}, null, 8 /* PROPS */, ["label", "value"]);
|
|
43980
|
+
}), 128 /* KEYED_FRAGMENT */))]),
|
|
43981
|
+
_: 1 /* STABLE */
|
|
43982
|
+
}, 8 /* PROPS */, ["modelValue"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)])) : (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_13, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_14, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).measureResult), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'height' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_15, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_16, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).spaceDistance), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_17, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).spaceDistance) + " m", 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_18, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).horizontalDistance), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_19, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).horizontalDistance) + " m", 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_20, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).verticalDistance), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_21, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).verticalDistance) + " m", 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_22, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).angle), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_23, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).angle) + " °", 1 /* TEXT */)])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'coordinate' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_24, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_25, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).longitude), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_26, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).longitude), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_27, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).latitude), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_28, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).latitude), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_29, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).elevation), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_30, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).height) + " m", 1 /* TEXT */)])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'azimuth' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_31, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_32, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).azimuth), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_33, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).azimuth) + " °", 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_34, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).distance), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_35, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).distance) + " m", 1 /* TEXT */)])) : ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_36, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_37, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language)[(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType)]), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_38, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result)), 1 /* TEXT */)]))])])])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)])], 2 /* CLASS */);
|
|
43983
|
+
};
|
|
43984
|
+
}
|
|
43985
|
+
}));
|
|
43986
|
+
;// CONCATENATED MODULE: ./src/webgl/measure/Measure.vue?vue&type=script&setup=true&lang=js
|
|
43987
|
+
|
|
43988
|
+
;// CONCATENATED MODULE: ./src/webgl/measure/Measure.vue
|
|
43989
|
+
|
|
43990
|
+
|
|
43991
|
+
|
|
43992
|
+
const __exports__ = Measurevue_type_script_setup_true_lang_js;
|
|
43993
|
+
|
|
43994
|
+
/* harmony default export */ var Measure = (__exports__);
|
|
43995
|
+
|
|
43996
|
+
/***/ }),
|
|
43997
|
+
|
|
43942
43998
|
/***/ 8422:
|
|
43943
43999
|
/***/ (function(module) {
|
|
43944
44000
|
|