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