@kq_npm/client3d_webgl_vue 4.5.38 → 4.5.40
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 +285 -193
- package/adddata/style/adddata.css +1 -1
- package/aspectanalysis/index.js +45 -14
- package/boxclip/index.js +52 -19
- package/clientPrint/index.js +3539 -1291
- package/clientPrint/style/clientPrint.css +1 -1
- package/comparemap/index.js +699 -14
- package/excavatefillanalysis/index.js +48 -18
- package/flight/index.js +45 -4
- package/flight/style/flight.css +1 -1
- package/floodanalysis/index.js +39 -5
- package/geologicalbodyanalysis/index.js +37 -3
- package/gpuspatialquery/index.js +50 -24
- package/heatmap3d/index.js +37 -3
- package/heatmap3d/style/heatmap3d.css +1 -1
- package/index.js +3357 -1160
- package/isolineanalysis/index.js +56 -28
- package/light/index.js +19 -22
- package/limitheightanalysis/index.js +46 -16
- package/measure/index.js +56 -14
- package/modelFlat/index.js +37 -3
- package/modelexcavate/index.js +37 -3
- package/modelfilter/index.js +37 -3
- package/modelprofileanalysis/index.js +37 -3
- package/modelselect/index.js +37 -3
- package/package.json +1 -1
- package/particleeffect/index.js +26 -33
- package/planeclip/index.js +47 -18
- package/radarscananalysis/index.js +863 -0
- package/radarscananalysis/style/index.js +3 -0
- package/radarscananalysis/style/radarscananalysis.css +1 -0
- package/scaneffect/index.js +48 -20
- package/scaneffect/style/scaneffect.css +1 -1
- package/sceneadvancedtoimage/index.js +46 -16
- package/sceneadvancedtoimage/style/sceneadvancedtoimage.css +1 -1
- package/sceneapp/index.js +3538 -1290
- package/scenetohdimage/style/scenetohdimage.css +1 -1
- package/sceneview/index.js +3533 -1285
- package/sceneview/style/sceneview.css +1 -1
- package/shadowanalysis/index.js +49 -19
- package/sightlineanalysis/index.js +41 -31
- package/sightlineanalysis/style/divpoint.css +1 -1
- package/skylineanalysis/index.js +37 -3
- package/slopeanalysis/index.js +85 -54
- package/slopeaspectanalysis/index.js +520 -135
- package/style.css +1 -1
- package/terrainoperation/index.js +61 -31
- package/terrainprofileanalysis/index.js +45 -14
- package/typhoontrac/index.js +71 -11
- package/typhoontrac/style/typhoontrac.css +1 -1
- package/videofusion/index.js +37 -3
- package/videoproject/index.js +37 -3
- package/weathereffect/index.js +30 -34
- package/windyslicing/index.js +670 -306
- package/windyslicing/style/windyslicing.css +1 -1
- package/wireframesketch/index.js +37 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
.kq-scene-view{position:absolute;top:0;left:0}.kq-scene-view,.kq-scene-view .view-container{width:100%;height:100%;margin:0;padding:0;overflow:hidden}.kq-scene-view .view-container canvas{outline:0}.kq-scene-view .view-container .top-left{position:absolute;top:16px;left:16px;z-index:
|
|
1
|
+
.kq-scene-view{position:absolute;top:0;left:0}.kq-scene-view,.kq-scene-view .view-container{width:100%;height:100%;margin:0;padding:0;overflow:hidden}.kq-scene-view .view-container canvas{outline:0}.kq-scene-view .view-container .top-left{position:absolute;top:16px;left:16px;z-index:1}.kq-scene-view .view-container .top-right{position:absolute;top:16px;right:16px;z-index:1}.kq-scene-view .view-container .bottom-left{position:absolute;bottom:16px;left:16px;z-index:1}.kq-scene-view .view-container .bottom-right{position:absolute;bottom:16px;right:16px;z-index:1}.kq-scene-view .view-container .left{position:absolute;left:16px;top:50%;margin-top:-80px;z-index:1}.kq-scene-view .view-container .right{position:absolute;right:16px;top:50%;margin-top:-80px;z-index:1}.kq-scene-view .view-container .top{position:absolute;top:16px;left:50%;margin-left:-80px;z-index:1}.kq-scene-view .view-container .bottom{position:absolute;bottom:16px;left:50%;margin-left:-80px;z-index:1}.kq-scene-view .view-container .horizontal div{float:left}.kq-scene-view .view-container .horizontal .compass,.kq-scene-view .view-container .horizontal .reset-view{margin-left:16px}.kq-scene-view .view-container .vertical .compass,.kq-scene-view .view-container .vertical .reset-view{margin-top:8px}.kq-scene-view .view-container .zoomButton{border-radius:unset}.kq-scene-view .cesium-viewer-animationContainer,.kq-scene-view .cesium-viewer-timelineContainer{display:none}.kq-label-popup .triangle{display:block;height:12px;width:12px;background-color:inherit;border:inherit;position:absolute;bottom:-6px;left:calc(50% - 6px);clip-path:polygon(0 0,100% 100%,0 100%);-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg)}.kq-label-popup .close{position:absolute;top:0;right:0;border:none;text-align:center;text-decoration:none;background:transparent;width:40px;height:40px;line-height:34px;color:#fff;font-size:24px;padding:0;font-weight:400;border-radius:0 8px 0 0;-webkit-transition:all .25s ease-in-out;transition:all .25s ease-in-out}.kq-label-popup .close:hover{background:#f56c6c}
|
package/shadowanalysis/index.js
CHANGED
|
@@ -12,13 +12,32 @@ return /******/ (function() { // webpackBootstrap
|
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
+
/***/ 3789:
|
|
16
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17
|
+
|
|
18
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19
|
+
/* harmony export */ "P": function() { return /* binding */ kq_npm_client_common_vue; }
|
|
20
|
+
/* harmony export */ });
|
|
21
|
+
/* unused harmony export kq_npm_client_leaflet_vue */
|
|
22
|
+
let kq_npm_client_common_vue = (window.kq_npm_client_common_vue = window.kq_npm_client_common_vue || {});
|
|
23
|
+
|
|
24
|
+
__webpack_require__.g.kq_npm_client_common_vue = kq_npm_client_common_vue;
|
|
25
|
+
|
|
26
|
+
let kq_npm_client_leaflet_vue = (window.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue || {});
|
|
27
|
+
|
|
28
|
+
__webpack_require__.g.kq_npm_client_leaflet_vue = kq_npm_client_leaflet_vue;
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
/***/ }),
|
|
32
|
+
|
|
15
33
|
/***/ 1705:
|
|
16
34
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17
35
|
|
|
18
36
|
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9389);
|
|
19
37
|
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
20
|
-
/* harmony import */ var
|
|
21
|
-
/* harmony import */ var
|
|
38
|
+
/* harmony import */ var _common_KqGIS__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3789);
|
|
39
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7997);
|
|
40
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_2__);
|
|
22
41
|
/*
|
|
23
42
|
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
24
43
|
* All rights reserved.
|
|
@@ -27,12 +46,15 @@ return /******/ (function() { // webpackBootstrap
|
|
|
27
46
|
|
|
28
47
|
|
|
29
48
|
|
|
49
|
+
|
|
30
50
|
element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
|
|
31
|
-
|
|
51
|
+
_init__WEBPACK_IMPORTED_MODULE_2___default()(Vue, opts);
|
|
32
52
|
Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
33
53
|
};
|
|
34
54
|
|
|
35
55
|
/* harmony default export */ __webpack_exports__["Z"] = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
56
|
+
|
|
57
|
+
_common_KqGIS__WEBPACK_IMPORTED_MODULE_1__/* .kq_npm_client_common_vue.KqMessage */ .P.KqMessage = element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage;
|
|
36
58
|
|
|
37
59
|
|
|
38
60
|
/***/ }),
|
|
@@ -144,6 +166,18 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
|
|
|
144
166
|
/******/ };
|
|
145
167
|
/******/ }();
|
|
146
168
|
/******/
|
|
169
|
+
/******/ /* webpack/runtime/global */
|
|
170
|
+
/******/ !function() {
|
|
171
|
+
/******/ __webpack_require__.g = (function() {
|
|
172
|
+
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
173
|
+
/******/ try {
|
|
174
|
+
/******/ return this || new Function('return this')();
|
|
175
|
+
/******/ } catch (e) {
|
|
176
|
+
/******/ if (typeof window === 'object') return window;
|
|
177
|
+
/******/ }
|
|
178
|
+
/******/ })();
|
|
179
|
+
/******/ }();
|
|
180
|
+
/******/
|
|
147
181
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
148
182
|
/******/ !function() {
|
|
149
183
|
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
@@ -220,19 +254,7 @@ class ShadowAnalysisViewModel {
|
|
|
220
254
|
this._globaOptions.viewer.scene.postProcessStages.fxaa.enabled = true;
|
|
221
255
|
this._globaOptions.viewer.shadowMap.darkness = 0.8;
|
|
222
256
|
this._globaOptions.viewer.shadowMap.maxmimumDistance = 10000.0;
|
|
223
|
-
|
|
224
257
|
this._globaOptions._drawManager = scenceView._drawManager;
|
|
225
|
-
var that = this;
|
|
226
|
-
this._globaOptions._drawFinishedEventListener = this._globaOptions._drawManager.drawFinishedEvent.addEventListener(
|
|
227
|
-
shape => {
|
|
228
|
-
if (shape) {
|
|
229
|
-
that._globaOptions.viewModel.positions = shape._controlPoints;
|
|
230
|
-
// 实例化分析对象
|
|
231
|
-
that.setKq3dShadowAnalyse();
|
|
232
|
-
that._globaOptions._drawManager.clear();
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
);
|
|
236
258
|
}
|
|
237
259
|
// 处理绘制坐标,转成二维坐标
|
|
238
260
|
coordinateTransform(points) {
|
|
@@ -247,6 +269,7 @@ class ShadowAnalysisViewModel {
|
|
|
247
269
|
}
|
|
248
270
|
// 开始分析
|
|
249
271
|
start() {
|
|
272
|
+
var that = this;
|
|
250
273
|
// 判断是否添加了模型
|
|
251
274
|
var flag = false;
|
|
252
275
|
var models = this._globaOptions.viewer.scene.primitives._primitives;
|
|
@@ -256,7 +279,17 @@ class ShadowAnalysisViewModel {
|
|
|
256
279
|
}
|
|
257
280
|
}
|
|
258
281
|
if (flag) {
|
|
259
|
-
if (this._globaOptions._drawManager)
|
|
282
|
+
if (this._globaOptions._drawManager) {
|
|
283
|
+
this._globaOptions._drawManager.startDraw("polygon", { clampToGround: true }, (feature, { shape }) => {
|
|
284
|
+
if (!shape.groupName || shape.groupName !== "ShadowAnalysisDraw") return;
|
|
285
|
+
if (shape) {
|
|
286
|
+
that._globaOptions.viewModel.positions = shape._controlPoints;
|
|
287
|
+
// 实例化分析对象
|
|
288
|
+
that.setKq3dShadowAnalyse();
|
|
289
|
+
}
|
|
290
|
+
that._globaOptions._drawManager.clearDrawGroup("ShadowAnalysisDraw");
|
|
291
|
+
}, "ShadowAnalysisDraw");
|
|
292
|
+
}
|
|
260
293
|
} else {
|
|
261
294
|
(0,message/* default */.Z)({
|
|
262
295
|
message: this._language["addModelAnalysisTips"],
|
|
@@ -380,9 +413,6 @@ class ShadowAnalysisViewModel {
|
|
|
380
413
|
this._globaOptions.viewer.shadows = false;
|
|
381
414
|
this._globaOptions.viewer.shouldAnimate = false;
|
|
382
415
|
this._globaOptions.viewer.scene.globe.enableLighting = false;
|
|
383
|
-
//移除监听事件
|
|
384
|
-
this._globaOptions._drawFinishedEventListener && this._globaOptions._drawFinishedEventListener();
|
|
385
|
-
this._globaOptions._drawFinishedEventListener = null;
|
|
386
416
|
}
|
|
387
417
|
}
|
|
388
418
|
|
|
@@ -535,10 +535,10 @@ var update = injectStylesIntoStyleTag_default()(divpoint/* default */.Z, options
|
|
|
535
535
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/const-image"
|
|
536
536
|
var const_image_ = __webpack_require__(6277);
|
|
537
537
|
;// CONCATENATED MODULE: ./src/webgl/sightlineanalysis/SightlineAnalysisViewModel.js
|
|
538
|
-
/*
|
|
539
|
-
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
540
|
-
* All rights reserved.
|
|
541
|
-
*/
|
|
538
|
+
/*
|
|
539
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
540
|
+
* All rights reserved.
|
|
541
|
+
*/
|
|
542
542
|
|
|
543
543
|
|
|
544
544
|
//通视分析逻辑类
|
|
@@ -546,7 +546,6 @@ class SightlineAnalysisViewModel {
|
|
|
546
546
|
_viewer = null; //三维viewer对象
|
|
547
547
|
_sightlineAnalysis = null; //通视分析三维对象
|
|
548
548
|
_drawManager = null; //绘制管理对象
|
|
549
|
-
_removeEventListener = null; //绘制完成监听事件
|
|
550
549
|
_obstacleColor = Cesium.Color.RED; //障碍物颜色
|
|
551
550
|
_isLabel = false; //是否显示标注
|
|
552
551
|
_addType = 0; //添加的点的类型
|
|
@@ -576,24 +575,6 @@ class SightlineAnalysisViewModel {
|
|
|
576
575
|
this._sightlineAnalysis = new Cesium.Kq3dSightAnalysis(options);
|
|
577
576
|
|
|
578
577
|
this._drawManager = scenceView._drawManager;
|
|
579
|
-
this._drawManager.enableMultiDraw(true);
|
|
580
|
-
let that = this;
|
|
581
|
-
this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
582
|
-
if (shape && shape.type === "marker") {
|
|
583
|
-
that.createBillboard(shape.position);
|
|
584
|
-
if (that._addType === 1) {
|
|
585
|
-
that._sightlineAnalysis.setSeePoint(shape.position);
|
|
586
|
-
that.clearDisplay();
|
|
587
|
-
that.createLabels(that._sightlineAnalysis._pickedPos);
|
|
588
|
-
that.highlightObstacles(that._sightlineAnalysis._pickedFeatures);
|
|
589
|
-
} else if (that._addType === 2) {
|
|
590
|
-
let result = that._sightlineAnalysis.addTargetPoint(shape.position);
|
|
591
|
-
that.createLabels(result.cartographic);
|
|
592
|
-
that.highlightObstacles(result.id);
|
|
593
|
-
}
|
|
594
|
-
that._drawManager.clear();
|
|
595
|
-
}
|
|
596
|
-
});
|
|
597
578
|
}
|
|
598
579
|
// 创建图标
|
|
599
580
|
createBillboard(pos) {
|
|
@@ -635,7 +616,7 @@ class SightlineAnalysisViewModel {
|
|
|
635
616
|
<span class="triangle"></span>
|
|
636
617
|
</div>`;
|
|
637
618
|
html = html.replace('{X}', longitude).replace('{Y}', latitude).replace('{Z}', height);
|
|
638
|
-
if(this._language) {
|
|
619
|
+
if (this._language) {
|
|
639
620
|
html = html.replace('X', this._language.value.longitude).replace('Y', this._language.value.latitude).replace('Z', this._language.value.elevation);
|
|
640
621
|
}
|
|
641
622
|
|
|
@@ -699,18 +680,51 @@ class SightlineAnalysisViewModel {
|
|
|
699
680
|
this._highlightIds = [];
|
|
700
681
|
this.set3DTilesetColor(Cesium.Color.WHITE);
|
|
701
682
|
}
|
|
702
|
-
|
|
703
683
|
//添加观察点
|
|
704
684
|
addSeePoint() {
|
|
685
|
+
let that = this;
|
|
705
686
|
this._addType = 1;
|
|
706
|
-
this._drawManager.startDraw("point", { image: const_image_.OBSERVATION_POINT })
|
|
687
|
+
this._drawManager.startDraw("point", { image: const_image_.OBSERVATION_POINT }, (feature, { shape }) => {
|
|
688
|
+
if (!shape.groupName || shape.groupName !== "SightlineAnalysisDraw") return;
|
|
689
|
+
if (shape && shape.type === "marker") {
|
|
690
|
+
that.createBillboard(shape.position);
|
|
691
|
+
if (that._addType === 1) {
|
|
692
|
+
that._sightlineAnalysis.setSeePoint(shape.position);
|
|
693
|
+
that.clearDisplay();
|
|
694
|
+
that.createLabels(that._sightlineAnalysis._pickedPos);
|
|
695
|
+
that.highlightObstacles(that._sightlineAnalysis._pickedFeatures);
|
|
696
|
+
} else if (that._addType === 2) {
|
|
697
|
+
let result = that._sightlineAnalysis.addTargetPoint(shape.position);
|
|
698
|
+
that.createLabels(result.cartographic);
|
|
699
|
+
that.highlightObstacles(result.id);
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
that._drawManager && that._drawManager.clearDrawGroup("SightlineAnalysisDraw");
|
|
703
|
+
}, "SightlineAnalysisDraw", true);
|
|
707
704
|
}
|
|
708
705
|
|
|
709
706
|
//添加目标点
|
|
710
707
|
addTargetPoint() {
|
|
708
|
+
let that = this;
|
|
711
709
|
if (!this._sightlineAnalysis._seePoint) return;
|
|
712
710
|
this._addType = 2;
|
|
713
|
-
this._drawManager.startDraw("point", { image: const_image_.TARGET_POINT })
|
|
711
|
+
this._drawManager.startDraw("point", { image: const_image_.TARGET_POINT }, (feature, { shape }) => {
|
|
712
|
+
if (!shape.groupName || shape.groupName !== "SightlineAnalysisDraw") return;
|
|
713
|
+
if (shape && shape.type === "marker") {
|
|
714
|
+
that.createBillboard(shape.position);
|
|
715
|
+
if (that._addType === 1) {
|
|
716
|
+
that._sightlineAnalysis.setSeePoint(shape.position);
|
|
717
|
+
that.clearDisplay();
|
|
718
|
+
that.createLabels(that._sightlineAnalysis._pickedPos);
|
|
719
|
+
that.highlightObstacles(that._sightlineAnalysis._pickedFeatures);
|
|
720
|
+
} else if (that._addType === 2) {
|
|
721
|
+
let result = that._sightlineAnalysis.addTargetPoint(shape.position);
|
|
722
|
+
that.createLabels(result.cartographic);
|
|
723
|
+
that.highlightObstacles(result.id);
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
that._drawManager && that._drawManager.clearDrawGroup("SightlineAnalysisDraw");
|
|
727
|
+
}, "SightlineAnalysisDraw", true);
|
|
714
728
|
}
|
|
715
729
|
|
|
716
730
|
//清除显示结果
|
|
@@ -747,10 +761,6 @@ class SightlineAnalysisViewModel {
|
|
|
747
761
|
//销毁分析对象
|
|
748
762
|
this._sightlineAnalysis && this._sightlineAnalysis.destroy();
|
|
749
763
|
this._sightlineAnalysis = null;
|
|
750
|
-
//移除监听事件
|
|
751
|
-
this._removeEventListener && this._removeEventListener();
|
|
752
|
-
this._removeEventListener = null;
|
|
753
|
-
this._drawManager.enableMultiDraw(false);
|
|
754
764
|
}
|
|
755
765
|
|
|
756
766
|
// //设置线宽
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.coord-sightline{background:rgba(42,42,42,.8);border-radius:4px;padding:5px;color:#edffff;font-size:15px}.coord-sightline .triangle{display:block;height:16px;width:16px;background-color:inherit;border:inherit;position:absolute;bottom:-8px;left:calc(50% - 8px)
|
|
1
|
+
.coord-sightline{background:rgba(42,42,42,.8);border-radius:4px;padding:5px;color:#edffff;font-size:15px}.coord-sightline .triangle{display:block;height:16px;width:16px;background-color:inherit;border:inherit;position:absolute;bottom:-8px;left:calc(50% - 8px);clip-path:polygon(0 0,100% 100%,0 100%);-webkit-transform:rotate(-45deg);-ms-transform:rotate(-45deg);transform:rotate(-45deg)}
|
package/skylineanalysis/index.js
CHANGED
|
@@ -12,13 +12,32 @@ return /******/ (function() { // webpackBootstrap
|
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
+
/***/ 3789:
|
|
16
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17
|
+
|
|
18
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19
|
+
/* harmony export */ "P": function() { return /* binding */ kq_npm_client_common_vue; }
|
|
20
|
+
/* harmony export */ });
|
|
21
|
+
/* unused harmony export kq_npm_client_leaflet_vue */
|
|
22
|
+
let kq_npm_client_common_vue = (window.kq_npm_client_common_vue = window.kq_npm_client_common_vue || {});
|
|
23
|
+
|
|
24
|
+
__webpack_require__.g.kq_npm_client_common_vue = kq_npm_client_common_vue;
|
|
25
|
+
|
|
26
|
+
let kq_npm_client_leaflet_vue = (window.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue || {});
|
|
27
|
+
|
|
28
|
+
__webpack_require__.g.kq_npm_client_leaflet_vue = kq_npm_client_leaflet_vue;
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
/***/ }),
|
|
32
|
+
|
|
15
33
|
/***/ 1705:
|
|
16
34
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17
35
|
|
|
18
36
|
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9389);
|
|
19
37
|
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
20
|
-
/* harmony import */ var
|
|
21
|
-
/* harmony import */ var
|
|
38
|
+
/* harmony import */ var _common_KqGIS__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3789);
|
|
39
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7997);
|
|
40
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_2__);
|
|
22
41
|
/*
|
|
23
42
|
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
24
43
|
* All rights reserved.
|
|
@@ -27,12 +46,15 @@ return /******/ (function() { // webpackBootstrap
|
|
|
27
46
|
|
|
28
47
|
|
|
29
48
|
|
|
49
|
+
|
|
30
50
|
element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
|
|
31
|
-
|
|
51
|
+
_init__WEBPACK_IMPORTED_MODULE_2___default()(Vue, opts);
|
|
32
52
|
Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
33
53
|
};
|
|
34
54
|
|
|
35
55
|
/* harmony default export */ __webpack_exports__["Z"] = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
56
|
+
|
|
57
|
+
_common_KqGIS__WEBPACK_IMPORTED_MODULE_1__/* .kq_npm_client_common_vue.KqMessage */ .P.KqMessage = element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage;
|
|
36
58
|
|
|
37
59
|
|
|
38
60
|
/***/ }),
|
|
@@ -137,6 +159,18 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
|
|
|
137
159
|
/******/ };
|
|
138
160
|
/******/ }();
|
|
139
161
|
/******/
|
|
162
|
+
/******/ /* webpack/runtime/global */
|
|
163
|
+
/******/ !function() {
|
|
164
|
+
/******/ __webpack_require__.g = (function() {
|
|
165
|
+
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
166
|
+
/******/ try {
|
|
167
|
+
/******/ return this || new Function('return this')();
|
|
168
|
+
/******/ } catch (e) {
|
|
169
|
+
/******/ if (typeof window === 'object') return window;
|
|
170
|
+
/******/ }
|
|
171
|
+
/******/ })();
|
|
172
|
+
/******/ }();
|
|
173
|
+
/******/
|
|
140
174
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
141
175
|
/******/ !function() {
|
|
142
176
|
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
package/slopeanalysis/index.js
CHANGED
|
@@ -12,13 +12,32 @@ return /******/ (function() { // webpackBootstrap
|
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
+
/***/ 3789:
|
|
16
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17
|
+
|
|
18
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19
|
+
/* harmony export */ "P": function() { return /* binding */ kq_npm_client_common_vue; }
|
|
20
|
+
/* harmony export */ });
|
|
21
|
+
/* unused harmony export kq_npm_client_leaflet_vue */
|
|
22
|
+
let kq_npm_client_common_vue = (window.kq_npm_client_common_vue = window.kq_npm_client_common_vue || {});
|
|
23
|
+
|
|
24
|
+
__webpack_require__.g.kq_npm_client_common_vue = kq_npm_client_common_vue;
|
|
25
|
+
|
|
26
|
+
let kq_npm_client_leaflet_vue = (window.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue || {});
|
|
27
|
+
|
|
28
|
+
__webpack_require__.g.kq_npm_client_leaflet_vue = kq_npm_client_leaflet_vue;
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
/***/ }),
|
|
32
|
+
|
|
15
33
|
/***/ 1705:
|
|
16
34
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17
35
|
|
|
18
36
|
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9389);
|
|
19
37
|
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
20
|
-
/* harmony import */ var
|
|
21
|
-
/* harmony import */ var
|
|
38
|
+
/* harmony import */ var _common_KqGIS__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3789);
|
|
39
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7997);
|
|
40
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_2__);
|
|
22
41
|
/*
|
|
23
42
|
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
24
43
|
* All rights reserved.
|
|
@@ -27,12 +46,15 @@ return /******/ (function() { // webpackBootstrap
|
|
|
27
46
|
|
|
28
47
|
|
|
29
48
|
|
|
49
|
+
|
|
30
50
|
element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
|
|
31
|
-
|
|
51
|
+
_init__WEBPACK_IMPORTED_MODULE_2___default()(Vue, opts);
|
|
32
52
|
Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
33
53
|
};
|
|
34
54
|
|
|
35
55
|
/* harmony default export */ __webpack_exports__["Z"] = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
56
|
+
|
|
57
|
+
_common_KqGIS__WEBPACK_IMPORTED_MODULE_1__/* .kq_npm_client_common_vue.KqMessage */ .P.KqMessage = element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage;
|
|
36
58
|
|
|
37
59
|
|
|
38
60
|
/***/ }),
|
|
@@ -144,6 +166,18 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
|
|
|
144
166
|
/******/ };
|
|
145
167
|
/******/ }();
|
|
146
168
|
/******/
|
|
169
|
+
/******/ /* webpack/runtime/global */
|
|
170
|
+
/******/ !function() {
|
|
171
|
+
/******/ __webpack_require__.g = (function() {
|
|
172
|
+
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
173
|
+
/******/ try {
|
|
174
|
+
/******/ return this || new Function('return this')();
|
|
175
|
+
/******/ } catch (e) {
|
|
176
|
+
/******/ if (typeof window === 'object') return window;
|
|
177
|
+
/******/ }
|
|
178
|
+
/******/ })();
|
|
179
|
+
/******/ }();
|
|
180
|
+
/******/
|
|
147
181
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
148
182
|
/******/ !function() {
|
|
149
183
|
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
@@ -227,12 +261,12 @@ class SlopeAnalysisViewModel {
|
|
|
227
261
|
maxSlope: viewModel.maxSlope,
|
|
228
262
|
slopeColorText: viewModel.slopeColorText,
|
|
229
263
|
slopeColorAlpha: viewModel.slopeColorAlpha,
|
|
230
|
-
colorImage: this.getImagePath(viewModel.colorImage)
|
|
264
|
+
colorImage: this.getImagePath(viewModel.colorImage),
|
|
265
|
+
slopeAnalysis: true,
|
|
231
266
|
};
|
|
232
267
|
this._globaOptions.viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
|
|
233
268
|
// this._globaOptions.viewer.scene.globe.enableLighting = true;
|
|
234
269
|
this._globaOptions._drawManager = scenceView._drawManager;
|
|
235
|
-
var that = this;
|
|
236
270
|
// that._slopeAnalysis = new Cesium.Kq3dSlope({
|
|
237
271
|
// viewer: that._globaOptions.viewer,
|
|
238
272
|
// positions: [
|
|
@@ -249,51 +283,6 @@ class SlopeAnalysisViewModel {
|
|
|
249
283
|
// });
|
|
250
284
|
// that._slopeAnalysis.destroy();
|
|
251
285
|
// that._slopeAnalysis = null;
|
|
252
|
-
|
|
253
|
-
this._globaOptions._drawFinishedEventListener = this._globaOptions._drawManager.drawFinishedEvent.addEventListener(
|
|
254
|
-
shape => {
|
|
255
|
-
if (shape) {
|
|
256
|
-
that._globaOptions.viewModel.positions = shape._controlPoints;
|
|
257
|
-
// 实例化分析对象
|
|
258
|
-
if (!that._slopeAnalysis) {
|
|
259
|
-
switch (that._globaOptions.viewModel.fillStyle) {
|
|
260
|
-
case "tableColor":
|
|
261
|
-
that._slopeAnalysis = new Cesium.Kq3dSlope({
|
|
262
|
-
viewer: that._globaOptions.viewer,
|
|
263
|
-
positions: that._globaOptions.viewModel.positions,
|
|
264
|
-
isFilter: false,
|
|
265
|
-
colorTableDegree: that._globaOptions.viewModel.colorTableDegree,
|
|
266
|
-
colorTable: that._globaOptions.viewModel.colorTable
|
|
267
|
-
});
|
|
268
|
-
break;
|
|
269
|
-
case "colorImage":
|
|
270
|
-
that._slopeAnalysis = new Cesium.Kq3dSlope({
|
|
271
|
-
viewer: that._globaOptions.viewer,
|
|
272
|
-
positions: that._globaOptions.viewModel.positions,
|
|
273
|
-
isFilter: false,
|
|
274
|
-
colorImage: that._globaOptions.viewModel.imageSrc
|
|
275
|
-
});
|
|
276
|
-
break;
|
|
277
|
-
case "slopeFilter":
|
|
278
|
-
that._slopeAnalysis = new Cesium.Kq3dSlope({
|
|
279
|
-
viewer: that._globaOptions.viewer,
|
|
280
|
-
positions: that._globaOptions.viewModel.positions,
|
|
281
|
-
isFilter: true,
|
|
282
|
-
minSlope: that._globaOptions.viewModel.minSlope,
|
|
283
|
-
maxSlope: that._globaOptions.viewModel.maxSlope,
|
|
284
|
-
color: Cesium.Color.fromCssColorString(that._globaOptions.viewModel.slopeColorText).withAlpha(
|
|
285
|
-
Number(that._globaOptions.viewModel.slopeColorAlpha)
|
|
286
|
-
)
|
|
287
|
-
});
|
|
288
|
-
break;
|
|
289
|
-
}
|
|
290
|
-
} else {
|
|
291
|
-
that._slopeAnalysis.positions = that._globaOptions.viewModel.positions;
|
|
292
|
-
}
|
|
293
|
-
that._globaOptions._drawManager.clear();
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
);
|
|
297
286
|
}
|
|
298
287
|
//获取图片路径
|
|
299
288
|
getImagePath(value) {
|
|
@@ -306,6 +295,7 @@ class SlopeAnalysisViewModel {
|
|
|
306
295
|
}
|
|
307
296
|
// 开始分析
|
|
308
297
|
start() {
|
|
298
|
+
var that = this;
|
|
309
299
|
// 判断是否添加了地形
|
|
310
300
|
if (this._globaOptions.viewModel.viewer.terrainProvider.availability) {
|
|
311
301
|
if (this._globaOptions.viewModel.viewer.terrainProvider && !this._globaOptions.viewModel.viewer.terrainProvider._heightmapStructure) {
|
|
@@ -324,7 +314,51 @@ class SlopeAnalysisViewModel {
|
|
|
324
314
|
} else {
|
|
325
315
|
// this.clear();
|
|
326
316
|
if (this._globaOptions._drawManager) {
|
|
327
|
-
this._globaOptions._drawManager.startDraw("polygon", { clampToGround: true })
|
|
317
|
+
this._globaOptions._drawManager.startDraw("polygon", { clampToGround: true }, (feature, { shape }) => {
|
|
318
|
+
if (!shape.groupName || shape.groupName !== "SlopeAnalysisDraw") return;
|
|
319
|
+
if (shape) {
|
|
320
|
+
that._globaOptions.viewModel.positions = shape._controlPoints;
|
|
321
|
+
// 实例化分析对象
|
|
322
|
+
if (!that._slopeAnalysis) {
|
|
323
|
+
switch (that._globaOptions.viewModel.fillStyle) {
|
|
324
|
+
case "tableColor":
|
|
325
|
+
that._slopeAnalysis = new Cesium.Kq3dSlope({
|
|
326
|
+
viewer: that._globaOptions.viewer,
|
|
327
|
+
positions: that._globaOptions.viewModel.positions,
|
|
328
|
+
isFilter: false,
|
|
329
|
+
colorTableDegree: that._globaOptions.viewModel.colorTableDegree,
|
|
330
|
+
colorTable: that._globaOptions.viewModel.colorTable,
|
|
331
|
+
slopeAnalysis: true,
|
|
332
|
+
});
|
|
333
|
+
break;
|
|
334
|
+
case "colorImage":
|
|
335
|
+
that._slopeAnalysis = new Cesium.Kq3dSlope({
|
|
336
|
+
viewer: that._globaOptions.viewer,
|
|
337
|
+
positions: that._globaOptions.viewModel.positions,
|
|
338
|
+
isFilter: false,
|
|
339
|
+
colorImage: that._globaOptions.viewModel.imageSrc,
|
|
340
|
+
slopeAnalysis: true,
|
|
341
|
+
});
|
|
342
|
+
break;
|
|
343
|
+
case "slopeFilter":
|
|
344
|
+
that._slopeAnalysis = new Cesium.Kq3dSlope({
|
|
345
|
+
viewer: that._globaOptions.viewer,
|
|
346
|
+
positions: that._globaOptions.viewModel.positions,
|
|
347
|
+
isFilter: true,
|
|
348
|
+
minSlope: that._globaOptions.viewModel.minSlope,
|
|
349
|
+
maxSlope: that._globaOptions.viewModel.maxSlope,
|
|
350
|
+
color: Cesium.Color.fromCssColorString(that._globaOptions.viewModel.slopeColorText).withAlpha(
|
|
351
|
+
Number(that._globaOptions.viewModel.slopeColorAlpha)
|
|
352
|
+
)
|
|
353
|
+
});
|
|
354
|
+
break;
|
|
355
|
+
}
|
|
356
|
+
} else {
|
|
357
|
+
that._slopeAnalysis.positions = that._globaOptions.viewModel.positions;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
that._globaOptions._drawManager.clearDrawGroup("SlopeAnalysisDraw");
|
|
361
|
+
}, "SlopeAnalysisDraw");
|
|
328
362
|
}
|
|
329
363
|
}
|
|
330
364
|
} else {
|
|
@@ -429,9 +463,6 @@ class SlopeAnalysisViewModel {
|
|
|
429
463
|
}
|
|
430
464
|
// 销毁
|
|
431
465
|
destroy() {
|
|
432
|
-
// 移除监听事件
|
|
433
|
-
this._globaOptions._drawFinishedEventListener && this._globaOptions._drawFinishedEventListener();
|
|
434
|
-
this._globaOptions._drawFinishedEventListener = null;
|
|
435
466
|
this._slopeAnalysis && this._slopeAnalysis.destroy();
|
|
436
467
|
this._slopeAnalysis = null;
|
|
437
468
|
}
|