@kq_npm/client3d_webgl_vue 4.5.29-beta → 4.5.30
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 +518 -262
- package/adddata/style/adddata.css +1 -1
- package/aspectanalysis/index.js +201 -123
- package/baseterraingallery/index.js +123 -94
- package/baseterraingallery/style/baseterraingallery.css +1 -1
- package/boxclip/index.js +442 -249
- package/clientPrint/index.js +27088 -14116
- package/clientPrint/style/clientPrint.css +1 -1
- package/comparemap/index.js +243 -213
- package/compass/index.js +68 -74
- package/excavatefillanalysis/index.js +225 -143
- package/fixedzoomin/index.js +82 -72
- package/fixedzoomout/index.js +80 -71
- package/flight/index.js +371 -257
- package/flight/style/flight.css +1 -1
- package/floodanalysis/index.js +347 -199
- package/geologicalbodyanalysis/index.js +260 -166
- package/gpuspatialquery/index.js +359 -198
- package/hawkeye/index.js +100 -131
- package/headertemp/index.js +25 -14
- package/heatmap3d/index.js +678 -366
- package/heatmap3d/style/heatmap3d.css +1 -1
- package/index.js +20310 -7159
- package/isolineanalysis/index.js +1202 -504
- package/light/index.js +494 -349
- package/limitheightanalysis/index.js +223 -159
- package/measure/index.js +353 -198
- package/modelFlat/index.js +204 -167
- package/modelexcavate/index.js +191 -130
- package/modelfilter/index.js +271 -179
- package/modelprofileanalysis/index.js +316 -206
- package/modelselect/index.js +147 -142
- package/package.json +1 -1
- package/particleeffect/index.js +403 -225
- package/planeclip/index.js +300 -198
- package/resetview/index.js +52 -66
- package/roller/index.js +372 -304
- package/scaneffect/index.js +537 -230
- package/sceneadvancedtoimage/index.js +358 -205
- package/sceneadvancedtoimage/style/sceneadvancedtoimage.css +1 -1
- package/sceneapp/index.js +27088 -14116
- package/sceneset/index.js +864 -350
- package/scenetohdimage/index.js +297 -159
- package/scenetohdimage/style/scenetohdimage.css +1 -1
- package/sceneview/index.js +27088 -14116
- package/sceneview/style/sceneview.css +1 -1
- package/screenshot/index.js +301 -257
- package/shadowanalysis/index.js +405 -217
- package/sightlineanalysis/index.js +271 -183
- package/sightlineanalysis/style/divpoint.css +1 -1
- package/skylineanalysis/index.js +308 -160
- package/slopeanalysis/index.js +397 -227
- package/slopeaspectanalysis/index.js +485 -259
- package/statusbar/index.js +65 -88
- package/style.css +1 -1
- package/terrainoperation/index.js +237 -176
- package/terrainprofileanalysis/index.js +138 -120
- package/typhoontrac/index.js +970 -234
- package/typhoontrac/style/typhoontrac.css +1 -1
- package/underground/index.js +61 -70
- package/videofusion/index.js +488 -265
- package/videoproject/index.js +490 -271
- package/viewshedanalysis/index.js +255 -151
- package/weathereffect/index.js +317 -166
- package/windyslicing/index.js +1947 -0
- package/windyslicing/style/index.js +3 -0
- package/windyslicing/style/windyslicing.css +1 -0
- package/wireframesketch/index.js +142 -110
|
@@ -1 +1 @@
|
|
|
1
|
-
.kq3d-add-data{z-index:999;width:568px;border-radius:var(--kq-border-radius-base);padding:16px;pointer-events:auto;cursor:default;background-color:var(--kq-bg-color)}.kq3d-add-data .kq3d-add-data-box{min-width:570px}.kq3d-add-data .kq-form-item{width:100%}.kq3d-add-data .kq-tabs__item{height:28px;line-height:20px;font-weight:400;font-size:var(--kq-font-size-medium);padding:0 16px}.kq3d-add-data .kq3d-add-data-desc{margin-bottom:16px}.kq3d-add-data .kq3d-add-data-title{color:var(--kq-text-color-regular);font-size:var(--kq-font-size-base);padding-bottom:8px}.kq3d-add-data .kq3d-add-data-tip{color:var(--kq-text-color-secondary);font-size:13px;white-space:pre-wrap}.kq3d-add-data .kq3d-add-data-upload_text{color:#606266}.kq3d-add-data .kq-select{width:100%}.kq3d-add-data .kq-upload-dragger{background:var(--kq-bg-color);border:1px dashed var(--kq-border-color);border-radius:4px}.kq3d-add-data .kq3d-add-data-filelist{width:calc(100% - 2px);min-height:100px;height:auto;background:#f2f6fc;border:1px dashed #409eff;border-radius:4px}.kq3d-add-data .kq3d-add-data-filelist .kq-row{margin:10px 0;display:-webkit-box;display:-ms-flexbox;display:flex;margin-left:0!important;margin-right:0!important}.kq3d-add-data .kq3d-add-data-filelist .kq3d-add-data-file{background:#d9ecff;border-radius:4px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:0 8px;height:40px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.kq3d-add-data .kq3d-add-data-filelist .kq3d-add-data-file .kq3d-add-data-doc{font-size:28px;color:#409eff;padding:4px}.kq3d-add-data .kq3d-add-data-filelist .kq3d-add-data-file p{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.kq3d-add-data .kq3d-add-data-filelist .kq3d-add-data-file .kq3d-add-data-close{font-size:18px;color:#f56c6c;padding:4px;cursor:pointer}.kq3d-add-data .kq3d-add-data-footer{width:100%;padding-top:16px}.kq3d-add-data .kq3d-add-data-footer .btns_box{float:right;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.kq3d-add-data .kq3d-add-data-footer .kq3d-add-data-footer-upload{padding:0 12px}
|
|
1
|
+
.kq3d-add-data{z-index:999;width:568px;border-radius:var(--kq-border-radius-base);padding:16px;pointer-events:auto;cursor:default;background-color:var(--kq-bg-color)}.kq3d-add-data .kq3d-add-data-box{min-width:570px}.kq3d-add-data .kq-form-item{width:100%}.kq3d-add-data .kq-tabs__item{height:28px;line-height:20px;font-weight:400;font-size:var(--kq-font-size-medium);padding:0 16px}.kq3d-add-data .kq3d-add-data-desc{margin-bottom:16px}.kq3d-add-data .kq3d-add-data-title{color:var(--kq-text-color-regular);font-size:var(--kq-font-size-base);padding-bottom:8px}.kq3d-add-data .kq3d-add-data-tip{color:var(--kq-text-color-secondary);font-size:13px;white-space:pre-wrap}.kq3d-add-data .kq3d-add-data-upload_text{color:#606266}.kq3d-add-data .kq-select{width:100%}.kq3d-add-data .kq-upload-dragger{background:var(--kq-bg-color);border:1px dashed var(--kq-border-color);border-radius:4px}.kq3d-add-data .kq3d-add-data-filelist{width:calc(100% - 2px);min-height:100px;height:auto;background:#f2f6fc;border:1px dashed #409eff;border-radius:4px}.kq3d-add-data .kq3d-add-data-filelist .kq-row{margin:10px 0;display:-webkit-box;display:-ms-flexbox;display:flex;margin-left:0!important;margin-right:0!important}.kq3d-add-data .kq3d-add-data-filelist .kq3d-add-data-file{background:#d9ecff;border-radius:4px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:0 8px;height:40px;overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis}.kq3d-add-data .kq3d-add-data-filelist .kq3d-add-data-file .kq3d-add-data-doc{font-size:28px;color:#409eff;padding:4px}.kq3d-add-data .kq3d-add-data-filelist .kq3d-add-data-file p{overflow:hidden;white-space:nowrap;-o-text-overflow:ellipsis;text-overflow:ellipsis}.kq3d-add-data .kq3d-add-data-filelist .kq3d-add-data-file .kq3d-add-data-close{font-size:18px;color:#f56c6c;padding:4px;cursor:pointer}.kq3d-add-data .kq3d-add-data-footer{width:100%;padding-top:16px}.kq3d-add-data .kq3d-add-data-footer .btns_box{float:right;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.kq3d-add-data .kq3d-add-data-footer .kq3d-add-data-footer-upload{padding:0 12px}
|
package/aspectanalysis/index.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
3
|
module.exports = factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/init.js"), require("@kq_npm/client_common_vue/_utils/util"));
|
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
|
5
|
-
define(["vue", "@kq_npm/client_common_vue/_utils/gis-utils", "@kq_npm/client_common_vue/init.js", "@kq_npm/client_common_vue/_utils/util"], factory);
|
|
6
|
-
else
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
define("@kq_npm/client3d_webgl_vue", ["vue", "@kq_npm/client_common_vue/_utils/gis-utils", "@kq_npm/client_common_vue/init.js", "@kq_npm/client_common_vue/_utils/util"], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["@kq_npm/client3d_webgl_vue"] = factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/init.js"), require("@kq_npm/client_common_vue/_utils/util"));
|
|
8
|
+
else
|
|
9
|
+
root["@kq_npm/client3d_webgl_vue"] = factory(root["Vue"], root["@kq_npm/client_common_vue/_utils/gis-utils"], root["@kq_npm/client_common_vue/init.js"], root["@kq_npm/client_common_vue/_utils/util"]);
|
|
10
10
|
})(this, function(__WEBPACK_EXTERNAL_MODULE__1895__, __WEBPACK_EXTERNAL_MODULE__7135__, __WEBPACK_EXTERNAL_MODULE__7997__, __WEBPACK_EXTERNAL_MODULE__3458__) {
|
|
11
11
|
return /******/ (function() { // webpackBootstrap
|
|
12
12
|
/******/ "use strict";
|
|
@@ -25,10 +25,12 @@ return /******/ (function() { // webpackBootstrap
|
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
27
|
|
|
28
|
+
|
|
28
29
|
element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
|
|
29
30
|
_init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
|
|
30
31
|
Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
31
32
|
};
|
|
33
|
+
|
|
32
34
|
/* harmony default export */ __webpack_exports__["Z"] = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
33
35
|
|
|
34
36
|
/***/ }),
|
|
@@ -82,59 +84,27 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
|
|
|
82
84
|
|
|
83
85
|
/***/ }),
|
|
84
86
|
|
|
85
|
-
/***/
|
|
87
|
+
/***/ 8270:
|
|
86
88
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
87
89
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
102
|
-
}, _typeof(o);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
106
|
-
|
|
107
|
-
function toPrimitive(t, r) {
|
|
108
|
-
if ("object" != _typeof(t) || !t) return t;
|
|
109
|
-
var e = t[Symbol.toPrimitive];
|
|
110
|
-
if (void 0 !== e) {
|
|
111
|
-
var i = e.call(t, r || "default");
|
|
112
|
-
if ("object" != _typeof(i)) return i;
|
|
113
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
90
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
91
|
+
/* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
|
|
92
|
+
/* harmony export */ });
|
|
93
|
+
function _defineProperty(obj, key, value) {
|
|
94
|
+
if (key in obj) {
|
|
95
|
+
Object.defineProperty(obj, key, {
|
|
96
|
+
value: value,
|
|
97
|
+
enumerable: true,
|
|
98
|
+
configurable: true,
|
|
99
|
+
writable: true
|
|
100
|
+
});
|
|
101
|
+
} else {
|
|
102
|
+
obj[key] = value;
|
|
114
103
|
}
|
|
115
|
-
return ("string" === r ? String : Number)(t);
|
|
116
|
-
}
|
|
117
104
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
function toPropertyKey(t) {
|
|
122
|
-
var i = toPrimitive(t, "string");
|
|
123
|
-
return "symbol" == _typeof(i) ? i : i + "";
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
127
|
-
|
|
128
|
-
function _defineProperty(e, r, t) {
|
|
129
|
-
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
130
|
-
value: t,
|
|
131
|
-
enumerable: !0,
|
|
132
|
-
configurable: !0,
|
|
133
|
-
writable: !0
|
|
134
|
-
}) : e[r] = t, e;
|
|
105
|
+
return obj;
|
|
135
106
|
}
|
|
136
107
|
|
|
137
|
-
|
|
138
108
|
/***/ })
|
|
139
109
|
|
|
140
110
|
/******/ });
|
|
@@ -221,30 +191,35 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
221
191
|
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
|
|
222
192
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
223
193
|
var gis_utils_ = __webpack_require__(7135);
|
|
224
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
225
|
-
var defineProperty = __webpack_require__(
|
|
194
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
195
|
+
var defineProperty = __webpack_require__(8270);
|
|
226
196
|
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
227
197
|
var message = __webpack_require__(1349);
|
|
228
198
|
;// CONCATENATED MODULE: ./src/webgl/aspectanalysis/AspectAnalysisViewModel.js
|
|
229
199
|
|
|
200
|
+
|
|
230
201
|
/*
|
|
231
202
|
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
232
203
|
* All rights reserved.
|
|
233
204
|
*/
|
|
205
|
+
|
|
234
206
|
/**
|
|
235
207
|
* 坡向逻辑类
|
|
236
208
|
**/
|
|
237
209
|
|
|
238
210
|
class AspectAnalysisViewModel {
|
|
211
|
+
// 坡向三维对象
|
|
239
212
|
constructor(scenceView, aspect) {
|
|
240
213
|
(0,defineProperty/* default */.Z)(this, "_aspectAnalysis", null);
|
|
241
|
-
|
|
214
|
+
|
|
242
215
|
(0,defineProperty/* default */.Z)(this, "_globaOptions", {
|
|
243
216
|
//全局参数
|
|
244
217
|
viewer: null,
|
|
245
218
|
_drawManager: null
|
|
246
219
|
});
|
|
220
|
+
|
|
247
221
|
(0,defineProperty/* default */.Z)(this, "_language", {});
|
|
222
|
+
|
|
248
223
|
this._language = scenceView._language;
|
|
249
224
|
this._globaOptions.viewer = scenceView._viewer;
|
|
250
225
|
let options = {
|
|
@@ -258,23 +233,27 @@ class AspectAnalysisViewModel {
|
|
|
258
233
|
};
|
|
259
234
|
this._globaOptions.viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
|
|
260
235
|
// this._globaOptions.viewer.scene.globe.enableLighting = true;
|
|
236
|
+
|
|
261
237
|
this._globaOptions._drawManager = scenceView._drawManager;
|
|
262
238
|
var that = this;
|
|
263
239
|
this._aspectAnalysis = new Cesium.Kq3dAspect(options);
|
|
264
240
|
this._globaOptions._drawFinishedEventListener = this._globaOptions._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
265
241
|
if (shape) {
|
|
266
242
|
that._aspectAnalysis.positions = shape._controlPoints;
|
|
243
|
+
|
|
267
244
|
that._globaOptions._drawManager.clear();
|
|
268
245
|
}
|
|
269
246
|
});
|
|
270
|
-
}
|
|
271
|
-
|
|
247
|
+
} // 开始分析
|
|
248
|
+
|
|
249
|
+
|
|
272
250
|
start() {
|
|
273
251
|
// 判断是否添加了地形
|
|
274
252
|
if (this._globaOptions.viewer.terrainProvider.availability) {
|
|
275
253
|
if (this._globaOptions.viewer.terrainProvider && !this._globaOptions.viewer.terrainProvider._heightmapStructure) {
|
|
276
254
|
if (this._globaOptions._drawManager) {
|
|
277
255
|
this.clear();
|
|
256
|
+
|
|
278
257
|
this._globaOptions._drawManager.startDraw("polygon", {
|
|
279
258
|
clampToGround: true
|
|
280
259
|
});
|
|
@@ -291,25 +270,30 @@ class AspectAnalysisViewModel {
|
|
|
291
270
|
type: "warning"
|
|
292
271
|
});
|
|
293
272
|
}
|
|
294
|
-
}
|
|
295
|
-
|
|
273
|
+
} // 设置采样间隔
|
|
274
|
+
|
|
275
|
+
|
|
296
276
|
setInterval(newValue) {
|
|
297
277
|
if (this._aspectAnalysis) this._aspectAnalysis._interval = newValue;
|
|
298
|
-
}
|
|
299
|
-
|
|
278
|
+
} // 设置箭头宽度
|
|
279
|
+
|
|
280
|
+
|
|
300
281
|
setArrowWidth(newValue) {
|
|
301
282
|
if (this._aspectAnalysis) this._aspectAnalysis._width = newValue;
|
|
302
|
-
}
|
|
303
|
-
|
|
283
|
+
} // 设置箭头颜色
|
|
284
|
+
|
|
285
|
+
|
|
304
286
|
setArrowColor(newValue) {
|
|
305
287
|
if (this._aspectAnalysis) this._aspectAnalysis._color = Cesium.Color.fromCssColorString(newValue);
|
|
306
|
-
}
|
|
307
|
-
|
|
288
|
+
} // 清除全部结果
|
|
289
|
+
|
|
290
|
+
|
|
308
291
|
clear() {
|
|
309
292
|
this._globaOptions._drawManager && this._globaOptions._drawManager.stopDraw();
|
|
310
293
|
this._aspectAnalysis && this._aspectAnalysis.clear();
|
|
311
|
-
}
|
|
312
|
-
|
|
294
|
+
} // 销毁
|
|
295
|
+
|
|
296
|
+
|
|
313
297
|
destroy() {
|
|
314
298
|
// 移除监听事件
|
|
315
299
|
this._globaOptions._drawFinishedEventListener && this._globaOptions._drawFinishedEventListener();
|
|
@@ -317,6 +301,7 @@ class AspectAnalysisViewModel {
|
|
|
317
301
|
this._aspectAnalysis && this._aspectAnalysis.clear();
|
|
318
302
|
this._aspectAnalysis = null;
|
|
319
303
|
}
|
|
304
|
+
|
|
320
305
|
}
|
|
321
306
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
322
307
|
var client_icons_vue_ = __webpack_require__(348);
|
|
@@ -324,7 +309,7 @@ var client_icons_vue_ = __webpack_require__(348);
|
|
|
324
309
|
var util_ = __webpack_require__(3458);
|
|
325
310
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
326
311
|
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
327
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/aspectanalysis/AspectAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
312
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/webgl/aspectanalysis/AspectAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
328
313
|
|
|
329
314
|
const _hoisted_1 = {
|
|
330
315
|
class: "kq3d-aspect-analysis-box"
|
|
@@ -352,6 +337,7 @@ const __default__ = {
|
|
|
352
337
|
type: Boolean,
|
|
353
338
|
default: true
|
|
354
339
|
},
|
|
340
|
+
|
|
355
341
|
/**
|
|
356
342
|
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
357
343
|
*/
|
|
@@ -381,6 +367,7 @@ const __default__ = {
|
|
|
381
367
|
default: true
|
|
382
368
|
}
|
|
383
369
|
},
|
|
370
|
+
|
|
384
371
|
setup(__props, {
|
|
385
372
|
expose: __expose
|
|
386
373
|
}) {
|
|
@@ -389,13 +376,11 @@ const __default__ = {
|
|
|
389
376
|
proxy
|
|
390
377
|
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
391
378
|
let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
|
|
392
|
-
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]);
|
|
379
|
+
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]); // 获取组件传参
|
|
380
|
+
// 分析类
|
|
393
381
|
|
|
394
|
-
//
|
|
382
|
+
let viewModel = null; // 默认参数
|
|
395
383
|
|
|
396
|
-
// 分析类
|
|
397
|
-
let viewModel = null;
|
|
398
|
-
// 默认参数
|
|
399
384
|
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
400
385
|
collapseValue: props.settingParams && props.settingParams.collapseValue || ((props.settingParams && props.settingParams.collapseValue) == '' ? "" : "setting"),
|
|
401
386
|
// 默认展开属性设置
|
|
@@ -412,16 +397,14 @@ const __default__ = {
|
|
|
412
397
|
maxArrowWidth: props.settingParams && props.settingParams.maxArrowWidth || 30,
|
|
413
398
|
// 箭头宽度最大值
|
|
414
399
|
arrowColor: props.settingParams && props.settingParams.arrowColor || "#FFFF00" // 箭头颜色
|
|
415
|
-
});
|
|
416
400
|
|
|
417
|
-
// 组件容器Ref
|
|
418
|
-
|
|
401
|
+
}); // 组件容器Ref
|
|
402
|
+
|
|
403
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
419
404
|
|
|
420
|
-
// 生成组件默认header
|
|
421
405
|
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
422
|
-
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
406
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 国际化
|
|
423
407
|
|
|
424
|
-
// 国际化
|
|
425
408
|
let {
|
|
426
409
|
locale,
|
|
427
410
|
messages
|
|
@@ -444,6 +427,7 @@ const __default__ = {
|
|
|
444
427
|
});
|
|
445
428
|
});
|
|
446
429
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
430
|
+
|
|
447
431
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
448
432
|
if (scenceView) {
|
|
449
433
|
viewModel = new AspectAnalysisViewModel(scenceView, {
|
|
@@ -452,68 +436,87 @@ const __default__ = {
|
|
|
452
436
|
arrowWidth: formItem.arrowWidth,
|
|
453
437
|
// 箭头宽度
|
|
454
438
|
arrowColor: formItem.arrowColor // 箭头颜色
|
|
439
|
+
|
|
455
440
|
});
|
|
456
441
|
}
|
|
457
442
|
});
|
|
458
443
|
});
|
|
459
|
-
|
|
460
444
|
/**
|
|
461
445
|
* @description 监听header生成
|
|
462
446
|
*/
|
|
447
|
+
|
|
463
448
|
const watchCreateHeaderTemp = () => {
|
|
464
449
|
if (props.showHeaderTemp) {
|
|
465
450
|
// 生成headerTemp
|
|
466
451
|
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
467
452
|
}
|
|
468
|
-
};
|
|
453
|
+
}; // 参数改变
|
|
454
|
+
|
|
469
455
|
|
|
470
|
-
// 参数改变
|
|
471
456
|
function paramsChanged(key) {
|
|
472
457
|
switch (key) {
|
|
473
458
|
case "interval":
|
|
474
459
|
// 采样间隔
|
|
475
460
|
viewModel.setInterval(formItem.interval);
|
|
476
461
|
break;
|
|
462
|
+
|
|
477
463
|
case "arrowWidth":
|
|
478
464
|
// 箭头间隔
|
|
479
465
|
viewModel.setArrowWidth(formItem.arrowWidth);
|
|
480
466
|
break;
|
|
467
|
+
|
|
481
468
|
case "arrowColor":
|
|
482
469
|
// 箭头颜色
|
|
483
470
|
viewModel.setArrowColor(formItem.arrowColor);
|
|
484
471
|
break;
|
|
472
|
+
|
|
485
473
|
default:
|
|
486
474
|
break;
|
|
487
475
|
}
|
|
488
|
-
}
|
|
489
|
-
|
|
476
|
+
} // 开始分析
|
|
477
|
+
|
|
478
|
+
|
|
490
479
|
function startAnalysis() {
|
|
491
480
|
viewModel && viewModel.start();
|
|
492
|
-
}
|
|
493
|
-
|
|
481
|
+
} //清除结果
|
|
482
|
+
|
|
483
|
+
|
|
494
484
|
function clearResult() {
|
|
495
485
|
viewModel && viewModel.clear();
|
|
496
|
-
}
|
|
497
|
-
|
|
486
|
+
} // 销毁
|
|
487
|
+
|
|
488
|
+
|
|
498
489
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
499
490
|
viewModel && viewModel.destroy();
|
|
500
491
|
});
|
|
492
|
+
|
|
501
493
|
__expose({
|
|
502
494
|
paramsChanged,
|
|
503
495
|
startAnalysis,
|
|
504
496
|
clearResult
|
|
505
497
|
});
|
|
498
|
+
|
|
506
499
|
return (_ctx, _cache) => {
|
|
507
500
|
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
501
|
+
|
|
508
502
|
const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
|
|
503
|
+
|
|
509
504
|
const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
|
|
505
|
+
|
|
510
506
|
const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
|
|
507
|
+
|
|
511
508
|
const _component_kq_form_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form-item");
|
|
509
|
+
|
|
512
510
|
const _component_kq_color_picker = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-color-picker");
|
|
511
|
+
|
|
513
512
|
const _component_kq_form = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form");
|
|
513
|
+
|
|
514
514
|
const _component_kq_collapse_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse-item");
|
|
515
|
+
|
|
515
516
|
const _component_kq_collapse = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse");
|
|
517
|
+
|
|
516
518
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
519
|
+
|
|
517
520
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
518
521
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-aspect-analysis", {
|
|
519
522
|
'kq-box-shadow': __props.showShadow
|
|
@@ -524,11 +527,17 @@ const __default__ = {
|
|
|
524
527
|
key: 0,
|
|
525
528
|
ref_key: "headerTempRef",
|
|
526
529
|
ref: headerTempRef
|
|
527
|
-
}, null, 512
|
|
530
|
+
}, null, 512
|
|
531
|
+
/* NEED_PATCH */
|
|
532
|
+
)) : (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, {
|
|
528
533
|
class: "kq3d-aspect-analysis-tip"
|
|
529
534
|
}, {
|
|
530
|
-
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
|
|
531
|
-
|
|
535
|
+
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
|
|
536
|
+
/* TEXT */
|
|
537
|
+
)]),
|
|
538
|
+
_: 1
|
|
539
|
+
/* STABLE */
|
|
540
|
+
|
|
532
541
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_collapse, {
|
|
533
542
|
"model-value": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).collapseValue
|
|
534
543
|
}, {
|
|
@@ -559,8 +568,12 @@ const __default__ = {
|
|
|
559
568
|
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minInterval,
|
|
560
569
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxInterval,
|
|
561
570
|
onChange: _cache[1] || (_cache[1] = $event => paramsChanged('interval'))
|
|
562
|
-
}, null, 8
|
|
563
|
-
|
|
571
|
+
}, null, 8
|
|
572
|
+
/* PROPS */
|
|
573
|
+
, ["modelValue", "min", "max"])]),
|
|
574
|
+
_: 1
|
|
575
|
+
/* STABLE */
|
|
576
|
+
|
|
564
577
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
565
578
|
span: 8
|
|
566
579
|
}, {
|
|
@@ -572,14 +585,26 @@ const __default__ = {
|
|
|
572
585
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxInterval,
|
|
573
586
|
"controls-position": "right",
|
|
574
587
|
onChange: _cache[3] || (_cache[3] = $event => paramsChanged('interval'))
|
|
575
|
-
}, null, 8
|
|
576
|
-
|
|
588
|
+
}, null, 8
|
|
589
|
+
/* PROPS */
|
|
590
|
+
, ["modelValue", "min", "max"])]),
|
|
591
|
+
_: 1
|
|
592
|
+
/* STABLE */
|
|
593
|
+
|
|
577
594
|
})]),
|
|
578
|
-
_: 1
|
|
595
|
+
_: 1
|
|
596
|
+
/* STABLE */
|
|
597
|
+
|
|
579
598
|
})]),
|
|
580
|
-
_: 1
|
|
581
|
-
|
|
582
|
-
|
|
599
|
+
_: 1
|
|
600
|
+
/* STABLE */
|
|
601
|
+
|
|
602
|
+
}, 8
|
|
603
|
+
/* PROPS */
|
|
604
|
+
, ["label"])]),
|
|
605
|
+
_: 1
|
|
606
|
+
/* STABLE */
|
|
607
|
+
|
|
583
608
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
584
609
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
|
|
585
610
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).arrowWidth
|
|
@@ -599,8 +624,12 @@ const __default__ = {
|
|
|
599
624
|
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minArrowWidth,
|
|
600
625
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxArrowWidth,
|
|
601
626
|
onChange: _cache[5] || (_cache[5] = $event => paramsChanged('arrowWidth'))
|
|
602
|
-
}, null, 8
|
|
603
|
-
|
|
627
|
+
}, null, 8
|
|
628
|
+
/* PROPS */
|
|
629
|
+
, ["modelValue", "min", "max"])]),
|
|
630
|
+
_: 1
|
|
631
|
+
/* STABLE */
|
|
632
|
+
|
|
604
633
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
605
634
|
span: 8
|
|
606
635
|
}, {
|
|
@@ -612,14 +641,26 @@ const __default__ = {
|
|
|
612
641
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxArrowWidth,
|
|
613
642
|
"controls-position": "right",
|
|
614
643
|
onChange: _cache[7] || (_cache[7] = $event => paramsChanged('arrowWidth'))
|
|
615
|
-
}, null, 8
|
|
616
|
-
|
|
644
|
+
}, null, 8
|
|
645
|
+
/* PROPS */
|
|
646
|
+
, ["modelValue", "min", "max"])]),
|
|
647
|
+
_: 1
|
|
648
|
+
/* STABLE */
|
|
649
|
+
|
|
617
650
|
})]),
|
|
618
|
-
_: 1
|
|
651
|
+
_: 1
|
|
652
|
+
/* STABLE */
|
|
653
|
+
|
|
619
654
|
})]),
|
|
620
|
-
_: 1
|
|
621
|
-
|
|
622
|
-
|
|
655
|
+
_: 1
|
|
656
|
+
/* STABLE */
|
|
657
|
+
|
|
658
|
+
}, 8
|
|
659
|
+
/* PROPS */
|
|
660
|
+
, ["label"])]),
|
|
661
|
+
_: 1
|
|
662
|
+
/* STABLE */
|
|
663
|
+
|
|
623
664
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
624
665
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
|
|
625
666
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).arrowColor
|
|
@@ -628,32 +669,67 @@ const __default__ = {
|
|
|
628
669
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).arrowColor,
|
|
629
670
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).arrowColor = $event),
|
|
630
671
|
onChange: _cache[9] || (_cache[9] = $event => paramsChanged('arrowColor'))
|
|
631
|
-
}, null, 8
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
672
|
+
}, null, 8
|
|
673
|
+
/* PROPS */
|
|
674
|
+
, ["modelValue"])]),
|
|
675
|
+
_: 1
|
|
676
|
+
/* STABLE */
|
|
677
|
+
|
|
678
|
+
}, 8
|
|
679
|
+
/* PROPS */
|
|
680
|
+
, ["label"])]),
|
|
681
|
+
_: 1
|
|
682
|
+
/* STABLE */
|
|
683
|
+
|
|
635
684
|
})])]),
|
|
636
|
-
_: 1
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
685
|
+
_: 1
|
|
686
|
+
/* STABLE */
|
|
687
|
+
|
|
688
|
+
}, 8
|
|
689
|
+
/* PROPS */
|
|
690
|
+
, ["label-width"])]),
|
|
691
|
+
_: 1
|
|
692
|
+
/* STABLE */
|
|
693
|
+
|
|
694
|
+
}, 8
|
|
695
|
+
/* PROPS */
|
|
696
|
+
, ["title"])]),
|
|
697
|
+
_: 1
|
|
698
|
+
/* STABLE */
|
|
699
|
+
|
|
700
|
+
}, 8
|
|
701
|
+
/* PROPS */
|
|
702
|
+
, ["model-value"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
642
703
|
onClick: _cache[10] || (_cache[10] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startAnalysis(), ["stop"])),
|
|
643
704
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startAnalysis,
|
|
644
705
|
type: "primary"
|
|
645
706
|
}, {
|
|
646
|
-
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).startAnalysis), 1
|
|
647
|
-
|
|
648
|
-
|
|
707
|
+
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).startAnalysis), 1
|
|
708
|
+
/* TEXT */
|
|
709
|
+
)]),
|
|
710
|
+
_: 1
|
|
711
|
+
/* STABLE */
|
|
712
|
+
|
|
713
|
+
}, 8
|
|
714
|
+
/* PROPS */
|
|
715
|
+
, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
649
716
|
onClick: _cache[11] || (_cache[11] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clearResult(), ["stop"])),
|
|
650
717
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearResult
|
|
651
718
|
}, {
|
|
652
|
-
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).clearResult), 1
|
|
653
|
-
|
|
654
|
-
|
|
719
|
+
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).clearResult), 1
|
|
720
|
+
/* TEXT */
|
|
721
|
+
)]),
|
|
722
|
+
_: 1
|
|
723
|
+
/* STABLE */
|
|
724
|
+
|
|
725
|
+
}, 8
|
|
726
|
+
/* PROPS */
|
|
727
|
+
, ["title"])])])], 2
|
|
728
|
+
/* CLASS */
|
|
729
|
+
);
|
|
655
730
|
};
|
|
656
731
|
}
|
|
732
|
+
|
|
657
733
|
}));
|
|
658
734
|
;// CONCATENATED MODULE: ./src/webgl/aspectanalysis/AspectAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
659
735
|
|
|
@@ -675,11 +751,13 @@ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
|
675
751
|
|
|
676
752
|
|
|
677
753
|
|
|
754
|
+
|
|
678
755
|
AspectAnalysis.install = (Vue, opts) => {
|
|
679
756
|
init_js_default()(Vue, opts);
|
|
680
757
|
Vue.component(AspectAnalysis.name, AspectAnalysis);
|
|
681
758
|
};
|
|
682
759
|
|
|
760
|
+
|
|
683
761
|
}();
|
|
684
762
|
/******/ return __webpack_exports__;
|
|
685
763
|
/******/ })()
|