@kq_npm/client3d_webgl_vue 4.5.1 → 4.5.3-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 +27 -23
- package/aspectanalysis/index.js +22 -21
- package/baseterraingallery/index.js +4 -2
- package/boxclip/index.js +22 -21
- package/clientPrint/index.js +3 -2
- package/comparemap/index.js +4 -2
- package/excavatefillanalysis/index.js +22 -21
- package/flight/index.js +21 -21
- package/floodanalysis/index.js +22 -21
- package/geologicalbodyanalysis/index.js +22 -21
- package/gpuspatialquery/index.js +32 -24
- package/hawkeye/index.js +4 -2
- package/headertemp/index.js +3 -2
- package/heatmap3d/index.js +70 -56
- package/index.js +45773 -33773
- package/isolineanalysis/index.js +21 -21
- package/light/index.js +4 -2
- package/limitheightanalysis/index.js +4 -2
- package/measure/index.js +21 -21
- package/modelFlat/index.js +22 -21
- package/modelexcavate/index.js +22 -21
- package/modelfilter/index.js +22 -18
- package/modelprofileanalysis/index.js +4 -2
- package/modelselect/index.js +22 -21
- package/package.json +1 -1
- package/particleeffect/index.js +4 -2
- package/planeclip/index.js +22 -21
- package/roller/index.js +4 -2
- package/scaneffect/index.js +22 -21
- package/sceneapp/index.js +12510 -0
- package/sceneset/index.js +4 -2
- package/scenetohdimage/index.js +10 -5
- package/sceneview/index.js +33009 -20952
- package/screenshot/index.js +4 -2
- package/shadowanalysis/index.js +23 -22
- package/sightlineanalysis/index.js +4 -2
- package/skylineanalysis/index.js +22 -21
- package/slopeanalysis/index.js +22 -21
- package/slopeaspectanalysis/index.js +22 -21
- package/statusbar/index.js +108 -107
- package/terrainoperation/index.js +22 -21
- package/terrainprofileanalysis/index.js +22 -21
- package/underground/index.js +4 -2
- package/videofusion/index.js +22 -21
- package/videoproject/index.js +22 -21
- package/viewshedanalysis/index.js +4 -2
- package/weathereffect/index.js +4 -2
- package/wireframesketch/index.js +22 -18
|
@@ -12,30 +12,22 @@ return /******/ (function() { // webpackBootstrap
|
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
-
/***/
|
|
15
|
+
/***/ 1349:
|
|
16
16
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
__webpack_require__
|
|
21
|
-
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
;// CONCATENATED MODULE: external "element-plus/dist/index.full.js"
|
|
25
|
-
var index_full_js_namespaceObject = require("element-plus/dist/index.full.js");
|
|
26
|
-
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
27
|
-
var init_js_ = __webpack_require__(7997);
|
|
28
|
-
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
29
|
-
;// CONCATENATED MODULE: ./src/common/_ui/message/index.js
|
|
18
|
+
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9389);
|
|
19
|
+
/* 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 _init__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7997);
|
|
21
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_1__);
|
|
30
22
|
|
|
31
23
|
|
|
32
24
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
Vue.component("KqMessage",
|
|
25
|
+
element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
|
|
26
|
+
_init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
|
|
27
|
+
Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
36
28
|
};
|
|
37
29
|
|
|
38
|
-
/* harmony default export */
|
|
30
|
+
/* harmony default export */ __webpack_exports__["Z"] = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
39
31
|
|
|
40
32
|
/***/ }),
|
|
41
33
|
|
|
@@ -46,6 +38,13 @@ module.exports = require("@kq_npm/client_icons_vue");
|
|
|
46
38
|
|
|
47
39
|
/***/ }),
|
|
48
40
|
|
|
41
|
+
/***/ 9389:
|
|
42
|
+
/***/ (function(module) {
|
|
43
|
+
|
|
44
|
+
module.exports = require("element-plus/dist/index.full.js");
|
|
45
|
+
|
|
46
|
+
/***/ }),
|
|
47
|
+
|
|
49
48
|
/***/ 7080:
|
|
50
49
|
/***/ (function(module) {
|
|
51
50
|
|
|
@@ -190,8 +189,8 @@ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(
|
|
|
190
189
|
var gis_utils_ = __webpack_require__(7135);
|
|
191
190
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
192
191
|
var defineProperty = __webpack_require__(8270);
|
|
193
|
-
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
194
|
-
var message = __webpack_require__(
|
|
192
|
+
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
193
|
+
var message = __webpack_require__(1349);
|
|
195
194
|
;// CONCATENATED MODULE: ./src/webgl/geologicalbodyanalysis/GeologicalBodyAnalysisViewModel.js
|
|
196
195
|
|
|
197
196
|
//地质体分析逻辑类
|
|
@@ -438,7 +437,7 @@ const __default__ = {
|
|
|
438
437
|
},
|
|
439
438
|
|
|
440
439
|
setup(__props, {
|
|
441
|
-
expose
|
|
440
|
+
expose: __expose
|
|
442
441
|
}) {
|
|
443
442
|
const props = __props;
|
|
444
443
|
const {
|
|
@@ -540,11 +539,13 @@ const __default__ = {
|
|
|
540
539
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
541
540
|
viewModel && viewModel.destroy();
|
|
542
541
|
});
|
|
543
|
-
|
|
542
|
+
|
|
543
|
+
__expose({
|
|
544
544
|
paramsChanged,
|
|
545
545
|
startAnalysis,
|
|
546
546
|
clear
|
|
547
547
|
});
|
|
548
|
+
|
|
548
549
|
return (_ctx, _cache) => {
|
|
549
550
|
const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
|
|
550
551
|
|
package/gpuspatialquery/index.js
CHANGED
|
@@ -12,30 +12,22 @@ return /******/ (function() { // webpackBootstrap
|
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
-
/***/
|
|
15
|
+
/***/ 1349:
|
|
16
16
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17
17
|
|
|
18
|
+
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9389);
|
|
19
|
+
/* 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 _init__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7997);
|
|
21
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_1__);
|
|
18
22
|
|
|
19
|
-
// EXPORTS
|
|
20
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
21
|
-
"Z": function() { return /* binding */ message; }
|
|
22
|
-
});
|
|
23
23
|
|
|
24
|
-
;// CONCATENATED MODULE: external "element-plus/dist/index.full.js"
|
|
25
|
-
var index_full_js_namespaceObject = require("element-plus/dist/index.full.js");
|
|
26
|
-
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
27
|
-
var init_js_ = __webpack_require__(7997);
|
|
28
|
-
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
29
|
-
;// CONCATENATED MODULE: ./src/common/_ui/message/index.js
|
|
30
24
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
init_js_default()(Vue, opts);
|
|
35
|
-
Vue.component("KqMessage", index_full_js_namespaceObject.ElMessage);
|
|
25
|
+
element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
|
|
26
|
+
_init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
|
|
27
|
+
Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
36
28
|
};
|
|
37
29
|
|
|
38
|
-
/* harmony default export */
|
|
30
|
+
/* harmony default export */ __webpack_exports__["Z"] = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
39
31
|
|
|
40
32
|
/***/ }),
|
|
41
33
|
|
|
@@ -46,6 +38,13 @@ module.exports = require("@element-plus/icons-vue");
|
|
|
46
38
|
|
|
47
39
|
/***/ }),
|
|
48
40
|
|
|
41
|
+
/***/ 9389:
|
|
42
|
+
/***/ (function(module) {
|
|
43
|
+
|
|
44
|
+
module.exports = require("element-plus/dist/index.full.js");
|
|
45
|
+
|
|
46
|
+
/***/ }),
|
|
47
|
+
|
|
49
48
|
/***/ 7080:
|
|
50
49
|
/***/ (function(module) {
|
|
51
50
|
|
|
@@ -53,6 +52,13 @@ module.exports = require("vue-i18n/dist/vue-i18n.cjs.js");
|
|
|
53
52
|
|
|
54
53
|
/***/ }),
|
|
55
54
|
|
|
55
|
+
/***/ 6869:
|
|
56
|
+
/***/ (function(module) {
|
|
57
|
+
|
|
58
|
+
module.exports = require("xe-utils");
|
|
59
|
+
|
|
60
|
+
/***/ }),
|
|
61
|
+
|
|
56
62
|
/***/ 7135:
|
|
57
63
|
/***/ (function(module) {
|
|
58
64
|
|
|
@@ -190,13 +196,13 @@ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(
|
|
|
190
196
|
var icons_vue_ = __webpack_require__(8422);
|
|
191
197
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
192
198
|
var gis_utils_ = __webpack_require__(7135);
|
|
193
|
-
|
|
194
|
-
var
|
|
195
|
-
var external_xe_utils_default = /*#__PURE__*/__webpack_require__.n(
|
|
199
|
+
// EXTERNAL MODULE: external "xe-utils"
|
|
200
|
+
var external_xe_utils_ = __webpack_require__(6869);
|
|
201
|
+
var external_xe_utils_default = /*#__PURE__*/__webpack_require__.n(external_xe_utils_);
|
|
196
202
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
197
203
|
var defineProperty = __webpack_require__(8270);
|
|
198
|
-
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
199
|
-
var message = __webpack_require__(
|
|
204
|
+
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
205
|
+
var message = __webpack_require__(1349);
|
|
200
206
|
;// CONCATENATED MODULE: ./src/webgl/gpuspatialquery/GPUSpatialQueryViewModel.js
|
|
201
207
|
|
|
202
208
|
//GPU空间查询逻辑类
|
|
@@ -582,7 +588,7 @@ const __default__ = {
|
|
|
582
588
|
},
|
|
583
589
|
|
|
584
590
|
setup(__props, {
|
|
585
|
-
expose
|
|
591
|
+
expose: __expose
|
|
586
592
|
}) {
|
|
587
593
|
const props = __props;
|
|
588
594
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
@@ -713,11 +719,13 @@ const __default__ = {
|
|
|
713
719
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
714
720
|
viewModel && viewModel.destroy();
|
|
715
721
|
});
|
|
716
|
-
|
|
722
|
+
|
|
723
|
+
__expose({
|
|
717
724
|
paramsChanged,
|
|
718
725
|
query,
|
|
719
726
|
reset
|
|
720
727
|
});
|
|
728
|
+
|
|
721
729
|
return (_ctx, _cache) => {
|
|
722
730
|
const _component_kq_option = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-option");
|
|
723
731
|
|
package/hawkeye/index.js
CHANGED
|
@@ -252,7 +252,7 @@ const __default__ = {
|
|
|
252
252
|
},
|
|
253
253
|
|
|
254
254
|
setup(__props, {
|
|
255
|
-
expose
|
|
255
|
+
expose: __expose
|
|
256
256
|
}) {
|
|
257
257
|
const props = __props;
|
|
258
258
|
let viewModel = null; // 获取组件传参
|
|
@@ -293,11 +293,13 @@ const __default__ = {
|
|
|
293
293
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
294
294
|
viewModel && viewModel.destroy();
|
|
295
295
|
});
|
|
296
|
-
|
|
296
|
+
|
|
297
|
+
__expose({
|
|
297
298
|
show,
|
|
298
299
|
hide,
|
|
299
300
|
setLayers
|
|
300
301
|
});
|
|
302
|
+
|
|
301
303
|
return (_ctx, _cache) => {
|
|
302
304
|
return null;
|
|
303
305
|
};
|
package/headertemp/index.js
CHANGED
|
@@ -158,7 +158,7 @@ const __default__ = {
|
|
|
158
158
|
},
|
|
159
159
|
|
|
160
160
|
setup(__props, {
|
|
161
|
-
expose
|
|
161
|
+
expose: __expose
|
|
162
162
|
}) {
|
|
163
163
|
const props = __props;
|
|
164
164
|
const proxy = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)(); // 获取组件传参
|
|
@@ -218,9 +218,10 @@ const __default__ = {
|
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
|
|
221
|
+
__expose({
|
|
222
222
|
btnClick
|
|
223
223
|
});
|
|
224
|
+
|
|
224
225
|
return (_ctx, _cache) => {
|
|
225
226
|
const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-icon");
|
|
226
227
|
|
package/heatmap3d/index.js
CHANGED
|
@@ -107,30 +107,22 @@ exports.Z = (sfc, props) => {
|
|
|
107
107
|
|
|
108
108
|
/***/ }),
|
|
109
109
|
|
|
110
|
-
/***/
|
|
110
|
+
/***/ 1349:
|
|
111
111
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
112
112
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
__webpack_require__
|
|
116
|
-
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
;// CONCATENATED MODULE: external "element-plus/dist/index.full.js"
|
|
120
|
-
var index_full_js_namespaceObject = require("element-plus/dist/index.full.js");
|
|
121
|
-
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
122
|
-
var init_js_ = __webpack_require__(7997);
|
|
123
|
-
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
124
|
-
;// CONCATENATED MODULE: ./src/common/_ui/message/index.js
|
|
113
|
+
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9389);
|
|
114
|
+
/* 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__);
|
|
115
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7997);
|
|
116
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_1__);
|
|
125
117
|
|
|
126
118
|
|
|
127
119
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
Vue.component("KqMessage",
|
|
120
|
+
element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
|
|
121
|
+
_init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
|
|
122
|
+
Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
131
123
|
};
|
|
132
124
|
|
|
133
|
-
/* harmony default export */
|
|
125
|
+
/* harmony default export */ __webpack_exports__["Z"] = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
134
126
|
|
|
135
127
|
/***/ }),
|
|
136
128
|
|
|
@@ -462,6 +454,13 @@ module.exports = require("core-js/modules/es.array.includes.js");
|
|
|
462
454
|
|
|
463
455
|
/***/ }),
|
|
464
456
|
|
|
457
|
+
/***/ 9389:
|
|
458
|
+
/***/ (function(module) {
|
|
459
|
+
|
|
460
|
+
module.exports = require("element-plus/dist/index.full.js");
|
|
461
|
+
|
|
462
|
+
/***/ }),
|
|
463
|
+
|
|
465
464
|
/***/ 7080:
|
|
466
465
|
/***/ (function(module) {
|
|
467
466
|
|
|
@@ -615,13 +614,13 @@ var gis_utils_ = __webpack_require__(7135);
|
|
|
615
614
|
var util_ = __webpack_require__(3458);
|
|
616
615
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
617
616
|
var defineProperty = __webpack_require__(8270);
|
|
618
|
-
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
619
|
-
var message = __webpack_require__(
|
|
617
|
+
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
618
|
+
var message = __webpack_require__(1349);
|
|
620
619
|
;// CONCATENATED MODULE: ./src/webgl/heatmap3d/Heatmap3dViewModel.js
|
|
621
620
|
|
|
622
|
-
|
|
623
621
|
//热力图
|
|
624
622
|
|
|
623
|
+
|
|
625
624
|
class Heatmap3dViewModel {
|
|
626
625
|
constructor(scenceView, options) {
|
|
627
626
|
(0,defineProperty/* default */.Z)(this, "_viewer", null);
|
|
@@ -640,6 +639,8 @@ class Heatmap3dViewModel {
|
|
|
640
639
|
|
|
641
640
|
(0,defineProperty/* default */.Z)(this, "heatmapData", null);
|
|
642
641
|
|
|
642
|
+
(0,defineProperty/* default */.Z)(this, "_heatmapHandler", null);
|
|
643
|
+
|
|
643
644
|
this._viewer = scenceView._viewer;
|
|
644
645
|
this._options = options;
|
|
645
646
|
this._viewer.scene.globe.depthTestAgainstTerrain = true; // 地图标注对象
|
|
@@ -662,11 +663,14 @@ class Heatmap3dViewModel {
|
|
|
662
663
|
}); // 地图拾取事件,交互展示
|
|
663
664
|
|
|
664
665
|
let that = this;
|
|
665
|
-
|
|
666
|
-
|
|
666
|
+
this._heatmapHandler = new window.Cesium.ScreenSpaceEventHandler(this._viewer.canvas);
|
|
667
|
+
|
|
668
|
+
this._heatmapHandler.setInputAction(function (movement) {
|
|
667
669
|
var worldPosition = that._viewer.scene.pickPosition(movement.position);
|
|
668
670
|
|
|
669
671
|
if (worldPosition) {
|
|
672
|
+
if (!that._heatmap && !that._heatmap2d) return;
|
|
673
|
+
if (!that._options.isShow) return;
|
|
670
674
|
that._mouseLabel.position = worldPosition;
|
|
671
675
|
var lonlat = Cesium.Cartographic.fromCartesian(worldPosition);
|
|
672
676
|
var lon = Cesium.Math.toDegrees(lonlat.longitude),
|
|
@@ -685,26 +689,13 @@ class Heatmap3dViewModel {
|
|
|
685
689
|
}));
|
|
686
690
|
}
|
|
687
691
|
|
|
688
|
-
document.getElementById('mouse_lonlat')
|
|
692
|
+
(0,util_.setInnerHtml)(document.getElementById('mouse_lonlat'), `<p>${that.language['longitude'] || "经度"}:${lon.toFixed(5)}</p><p>${that.language['latitude'] || "纬度"}:${lat.toFixed(5)}</p><p>${that.language['heatValue'] || "热力值"}:${val}</p>`);
|
|
689
693
|
|
|
690
694
|
that._mouseLabel.setVisible(true);
|
|
691
695
|
} else {
|
|
692
696
|
that._mouseLabel.setVisible(false);
|
|
693
697
|
}
|
|
694
698
|
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
sanitizeInput(inputHTML) {
|
|
698
|
-
const allowedTags = ['p', 'strong', 'em'];
|
|
699
|
-
const tempDiv = document.createElement('div');
|
|
700
|
-
tempDiv.innerHTML = inputHTML;
|
|
701
|
-
const childNodes = Array.from(tempDiv.childNodes);
|
|
702
|
-
childNodes.forEach(node => {
|
|
703
|
-
if (!allowedTags.includes(node.tagName.toLowerCase())) {
|
|
704
|
-
tempDiv.removeChild(node);
|
|
705
|
-
}
|
|
706
|
-
});
|
|
707
|
-
return tempDiv.innerHTML;
|
|
708
699
|
} // 创建三维热力图对象
|
|
709
700
|
|
|
710
701
|
|
|
@@ -712,7 +703,7 @@ class Heatmap3dViewModel {
|
|
|
712
703
|
this._heatmap = new Cesium.Kq3dHeatmap3D({
|
|
713
704
|
xField: 'lng',
|
|
714
705
|
yField: 'lat',
|
|
715
|
-
valueField: this._options.valueField ||
|
|
706
|
+
valueField: this._options.valueField || this.language["noSet"],
|
|
716
707
|
radius: this._options.radius,
|
|
717
708
|
scene: this._viewer.scene,
|
|
718
709
|
height: this._options.height,
|
|
@@ -720,7 +711,7 @@ class Heatmap3dViewModel {
|
|
|
720
711
|
alpha: this._options.transparents,
|
|
721
712
|
dynamic: this._options.isFollowingPerspective,
|
|
722
713
|
clampToGround: this._options.isGround,
|
|
723
|
-
show: this._options.heatmapType == "3D" ?
|
|
714
|
+
show: this._options.heatmapType == "3D" ? this._options.isShow : false
|
|
724
715
|
});
|
|
725
716
|
if (this._options.gradient) this._heatmap.gradient = this._options.gradient;
|
|
726
717
|
|
|
@@ -734,7 +725,7 @@ class Heatmap3dViewModel {
|
|
|
734
725
|
this._heatmap2d = new Cesium.Kq3dHeatmap2D({
|
|
735
726
|
xField: 'lng',
|
|
736
727
|
yField: 'lat',
|
|
737
|
-
valueField: this._options.valueField ||
|
|
728
|
+
valueField: this._options.valueField || this.language["noSet"],
|
|
738
729
|
canvasWidth: 1024,
|
|
739
730
|
canvasHeight: 1024,
|
|
740
731
|
radius: this._options.radius,
|
|
@@ -751,7 +742,7 @@ class Heatmap3dViewModel {
|
|
|
751
742
|
});
|
|
752
743
|
this._heatmap2dCountLayer = new Cesium.ImageryLayer(pv, {
|
|
753
744
|
alpha: this._options.transparents,
|
|
754
|
-
show: this._options.heatmapType == "2D" ?
|
|
745
|
+
show: this._options.heatmapType == "2D" ? this._options.isShow : false
|
|
755
746
|
});
|
|
756
747
|
|
|
757
748
|
this._viewer.imageryLayers.add(this._heatmap2dCountLayer);
|
|
@@ -889,7 +880,7 @@ class Heatmap3dViewModel {
|
|
|
889
880
|
this.initHeatmap2d(this.heatmapData);
|
|
890
881
|
} else {
|
|
891
882
|
(0,message/* default */.Z)({
|
|
892
|
-
message: "
|
|
883
|
+
message: this.language["fileTypeMessage"] + "!",
|
|
893
884
|
type: "warning",
|
|
894
885
|
duration: 2000
|
|
895
886
|
});
|
|
@@ -916,6 +907,8 @@ class Heatmap3dViewModel {
|
|
|
916
907
|
this.clear();
|
|
917
908
|
|
|
918
909
|
this._mouseLabel.destroy();
|
|
910
|
+
|
|
911
|
+
this._heatmapHandler && this._heatmapHandler.destroy();
|
|
919
912
|
}
|
|
920
913
|
|
|
921
914
|
}
|
|
@@ -937,6 +930,7 @@ const _hoisted_1 = /*#__PURE__*/_withScopeId(() => /*#__PURE__*/(0,external_root
|
|
|
937
930
|
));
|
|
938
931
|
|
|
939
932
|
|
|
933
|
+
const rangeMin = -5;
|
|
940
934
|
/* harmony default export */ var CustomColorPickerSlidervue_type_script_setup_true_lang_js = ({
|
|
941
935
|
__name: 'CustomColorPickerSlider',
|
|
942
936
|
props: ["width", "color", "percentage", "id"],
|
|
@@ -949,7 +943,6 @@ const _hoisted_1 = /*#__PURE__*/_withScopeId(() => /*#__PURE__*/(0,external_root
|
|
|
949
943
|
|
|
950
944
|
const initId = props.id;
|
|
951
945
|
const initColor = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.color);
|
|
952
|
-
const rangeMin = -5;
|
|
953
946
|
const rangeMax = props.width - 5;
|
|
954
947
|
const position = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.percentage / 100 * props.width + rangeMin);
|
|
955
948
|
const disabled = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false); // 为了防止在mouseup事件结束后,弹出颜色框
|
|
@@ -1093,6 +1086,7 @@ const CustomColorPickervue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
|
1093
1086
|
|
|
1094
1087
|
|
|
1095
1088
|
|
|
1089
|
+
const width = 257;
|
|
1096
1090
|
/* harmony default export */ var CustomColorPickervue_type_script_setup_true_lang_js = ({
|
|
1097
1091
|
__name: 'CustomColorPicker',
|
|
1098
1092
|
props: ["data"],
|
|
@@ -1103,7 +1097,6 @@ const CustomColorPickervue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
|
1103
1097
|
}) {
|
|
1104
1098
|
const props = __props; // 宽度
|
|
1105
1099
|
|
|
1106
|
-
const width = 257;
|
|
1107
1100
|
const items = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.data);
|
|
1108
1101
|
let backgroundImage = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(updateBackgroundImage()); // 更新色带条
|
|
1109
1102
|
|
|
@@ -1322,7 +1315,7 @@ const __default__ = {
|
|
|
1322
1315
|
},
|
|
1323
1316
|
|
|
1324
1317
|
setup(__props, {
|
|
1325
|
-
expose
|
|
1318
|
+
expose: __expose
|
|
1326
1319
|
}) {
|
|
1327
1320
|
const props = __props;
|
|
1328
1321
|
const {
|
|
@@ -1398,6 +1391,8 @@ const __default__ = {
|
|
|
1398
1391
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
1399
1392
|
//父组 件ScenceView初始化完成后执行
|
|
1400
1393
|
|
|
1394
|
+
weightFields.value = [language.value.noSet];
|
|
1395
|
+
if (!formItem.valueField) formItem.valueField = language.value.noSet;
|
|
1401
1396
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
1402
1397
|
if (scenceView) {
|
|
1403
1398
|
viewModel = new Heatmap3dViewModel(scenceView, formItem);
|
|
@@ -1449,7 +1444,16 @@ const __default__ = {
|
|
|
1449
1444
|
function getDataByPath() {
|
|
1450
1445
|
if (formItem && formItem.dataPath) {
|
|
1451
1446
|
Cesium.Resource.fetchJson(formItem.dataPath).then(res => {
|
|
1452
|
-
if (res && res.features
|
|
1447
|
+
if (res && res.features) {
|
|
1448
|
+
if (res.features.length === 0) {
|
|
1449
|
+
(0,message/* default */.Z)({
|
|
1450
|
+
message: "features " + language.value.noDataMessage + "!",
|
|
1451
|
+
type: "warning",
|
|
1452
|
+
duration: 2000
|
|
1453
|
+
});
|
|
1454
|
+
return;
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1453
1457
|
let heatmapArr = [];
|
|
1454
1458
|
let bigArray = [];
|
|
1455
1459
|
res.features.forEach(element => {
|
|
@@ -1459,26 +1463,34 @@ const __default__ = {
|
|
|
1459
1463
|
heatmapArr.push({
|
|
1460
1464
|
lng: element.geometry.coordinates[0],
|
|
1461
1465
|
lat: element.geometry.coordinates[1],
|
|
1462
|
-
...result.newObj
|
|
1466
|
+
...result.newObj,
|
|
1467
|
+
...{
|
|
1468
|
+
noSet: 0
|
|
1469
|
+
}
|
|
1463
1470
|
});
|
|
1464
1471
|
});
|
|
1465
1472
|
let commonArr = commonValues(bigArray);
|
|
1466
|
-
weightFields.value = commonArr;
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
paramsChanged("valueField");
|
|
1471
|
-
}
|
|
1473
|
+
weightFields.value = [language.value.noSet].concat(commonArr); // if (!formItem.valueField) {
|
|
1474
|
+
// formItem.valueField = commonArr[0];
|
|
1475
|
+
// paramsChanged("valueField");
|
|
1476
|
+
// }
|
|
1472
1477
|
|
|
1473
1478
|
if (viewModel) {
|
|
1474
1479
|
viewModel.heatmapData = heatmapArr;
|
|
1475
1480
|
viewModel.start();
|
|
1476
1481
|
}
|
|
1482
|
+
} else {
|
|
1483
|
+
(0,message/* default */.Z)({
|
|
1484
|
+
message: language.value.geojsonTypeMessage + "!",
|
|
1485
|
+
type: "warning",
|
|
1486
|
+
duration: 2000
|
|
1487
|
+
});
|
|
1488
|
+
return;
|
|
1477
1489
|
}
|
|
1478
1490
|
}).otherwise(ret => {
|
|
1479
1491
|
console.log(ret);
|
|
1480
1492
|
(0,message/* default */.Z)({
|
|
1481
|
-
message: "
|
|
1493
|
+
message: language.value.dataParsingMessage + "!",
|
|
1482
1494
|
type: "error",
|
|
1483
1495
|
duration: 2000
|
|
1484
1496
|
});
|
|
@@ -1486,7 +1498,7 @@ const __default__ = {
|
|
|
1486
1498
|
});
|
|
1487
1499
|
} else {
|
|
1488
1500
|
(0,message/* default */.Z)({
|
|
1489
|
-
message: "
|
|
1501
|
+
message: language.value.fileTypeMessage + "!",
|
|
1490
1502
|
type: "warning",
|
|
1491
1503
|
duration: 2000
|
|
1492
1504
|
});
|
|
@@ -1648,7 +1660,9 @@ const __default__ = {
|
|
|
1648
1660
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
1649
1661
|
viewModel && viewModel.destroy();
|
|
1650
1662
|
});
|
|
1651
|
-
|
|
1663
|
+
|
|
1664
|
+
__expose({});
|
|
1665
|
+
|
|
1652
1666
|
return (_ctx, _cache) => {
|
|
1653
1667
|
const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
|
|
1654
1668
|
|
|
@@ -2018,7 +2032,7 @@ const __default__ = {
|
|
|
2018
2032
|
}
|
|
2019
2033
|
}, {
|
|
2020
2034
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(CustomColorPicker, {
|
|
2021
|
-
data:
|
|
2035
|
+
data: customColors.value,
|
|
2022
2036
|
onColorChanged: colorChanged
|
|
2023
2037
|
}, null, 8
|
|
2024
2038
|
/* PROPS */
|