@kq_npm/client3d_webgl_vue 4.3.3-beta → 4.3.4

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.
Files changed (80) hide show
  1. package/adddata/index.js +4 -35
  2. package/adddata/style/adddata.css +1 -110
  3. package/aspectanalysis/style/aspectanalysis.css +1 -101
  4. package/baseterraingallery/index.js +2 -2
  5. package/baseterraingallery/style/baseterraingallery.css +1 -88
  6. package/boxclip/index.js +0 -10
  7. package/boxclip/style/boxclip.css +1 -97
  8. package/clientPrint/index.js +15 -5
  9. package/clientPrint/style/clientPrint.css +1 -461
  10. package/comparemap/index.js +145 -136
  11. package/comparemap/style/comparemap.css +1 -35
  12. package/compass/index.js +2 -2
  13. package/excavatefillanalysis/index.js +2 -2
  14. package/excavatefillanalysis/style/excavatefillanalysis.css +1 -140
  15. package/fixedzoomin/index.js +2 -2
  16. package/fixedzoomout/index.js +2 -2
  17. package/flight/index.js +3 -13
  18. package/flight/style/flight.css +1 -150
  19. package/floodanalysis/style/floodanalysis.css +1 -95
  20. package/geologicalbodyanalysis/index.js +0 -10
  21. package/geologicalbodyanalysis/style/geologicalbodyanalysis.css +1 -64
  22. package/gpuspatialquery/index.js +0 -10
  23. package/gpuspatialquery/style/gpuspatialquery.css +1 -88
  24. package/hawkeye/index.js +2 -2
  25. package/index.js +123 -106
  26. package/isolineanalysis/style/isolineanalysis.css +1 -113
  27. package/light/index.js +169 -170
  28. package/light/style/light.css +1 -104
  29. package/limitheightanalysis/index.js +125 -126
  30. package/limitheightanalysis/style/limitheightanalysis.css +1 -88
  31. package/measure/index.js +19 -13
  32. package/measure/style/measure.css +1 -84
  33. package/modelFlat/index.js +0 -10
  34. package/modelFlat/style/modelFlat.css +1 -66
  35. package/modelexcavate/index.js +98 -60
  36. package/modelexcavate/style/modelexcavate.css +1 -66
  37. package/modelfilter/index.js +0 -10
  38. package/modelfilter/style/modelfilter.css +1 -66
  39. package/modelprofileanalysis/index.js +164 -165
  40. package/modelprofileanalysis/style/modelprofileanalysis.css +1 -94
  41. package/modelselect/index.js +0 -10
  42. package/modelselect/style/modelselect.css +1 -28
  43. package/package.json +1 -1
  44. package/particleeffect/index.js +0 -10
  45. package/particleeffect/style/particleeffect.css +1 -94
  46. package/planeclip/index.js +0 -10
  47. package/planeclip/style/planeclip.css +1 -94
  48. package/resetview/index.js +2 -2
  49. package/roller/index.js +170 -171
  50. package/roller/style/roller.css +1 -59
  51. package/scaneffect/index.js +0 -10
  52. package/scaneffect/style/scaneffect.css +1 -101
  53. package/sceneset/index.js +1 -10
  54. package/sceneset/style/sceneset.css +1 -86
  55. package/sceneview/index.js +384 -373
  56. package/sceneview/style/sceneview.css +1 -127
  57. package/screenshot/index.js +158 -159
  58. package/screenshot/style/screenshot.css +1 -53
  59. package/shadowanalysis/style/shadowanalysis.css +1 -141
  60. package/sightlineanalysis/index.js +5 -7
  61. package/sightlineanalysis/style/divpoint.css +1 -22
  62. package/sightlineanalysis/style/sightlineanalysis.css +1 -85
  63. package/skylineanalysis/style/skylineanalysis.css +1 -100
  64. package/slopeanalysis/style/slopeanalysis.css +1 -101
  65. package/statusbar/index.js +3 -12
  66. package/style.css +1 -3817
  67. package/terrainoperation/index.js +0 -10
  68. package/terrainoperation/style/terrainoperation.css +1 -66
  69. package/terrainprofileanalysis/index.js +0 -10
  70. package/terrainprofileanalysis/style/terrainprofileanalysis.css +1 -83
  71. package/underground/index.js +3 -3
  72. package/underground/style/underground.css +1 -19
  73. package/videofusion/index.js +5 -35
  74. package/videofusion/style/videofusion.css +1 -104
  75. package/videoproject/index.js +5 -35
  76. package/videoproject/style/videoproject.css +1 -104
  77. package/viewshedanalysis/style/viewshedanalysis.css +1 -88
  78. package/weathereffect/style/weathereffect.css +1 -95
  79. package/wireframesketch/index.js +0 -10
  80. package/wireframesketch/style/wireframesketch.css +1 -12
@@ -12,17 +12,133 @@ return /******/ (function() { // webpackBootstrap
12
12
  /******/ "use strict";
13
13
  /******/ var __webpack_modules__ = ({
14
14
 
15
- /***/ 348:
16
- /***/ (function(module) {
15
+ /***/ 1769:
16
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
17
17
 
18
- module.exports = require("@kq_npm/client_icons_vue");
18
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
19
+ /* harmony export */ "Z": function() { return /* binding */ LimitHeightAnalysisViewModel; }
20
+ /* harmony export */ });
21
+ /* harmony import */ var _Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8270);
22
+
23
+ //限高分析逻辑类
24
+ class LimitHeightAnalysisViewModel {
25
+ //三维viewer对象
26
+ //限高分析存储参数对象
27
+ constructor(scenceView, options) {
28
+ (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_viewer", null);
29
+
30
+ (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_options", {});
31
+
32
+ (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_drawManager", null);
33
+
34
+ (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_drawFinishedEventListener", null);
35
+
36
+ (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_limitHeightAnalysis", null);
37
+
38
+ this._viewer = scenceView._viewer;
39
+ this._options = options;
40
+ this._drawManager = scenceView._drawManager;
41
+ this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
42
+
43
+ this._viewer.scene.postProcessStages._fxaa.enabled = true;
44
+ var that = this;
45
+ this._drawFinishedEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
46
+ if (shape) {
47
+ that._options.positions = shape._controlPoints;
48
+ that.drawPolygon();
49
+
50
+ that._drawManager.clear();
51
+ }
52
+ });
53
+ } // 绘制限高分析,显示分析体
54
+
55
+
56
+ drawPolygon() {
57
+ if (!this._options.positions) return;
58
+ var newPositions = [];
59
+
60
+ this._options.positions.forEach(item => {
61
+ var newPos = window.Cesium.Cartographic.fromCartesian(item);
62
+ newPositions.push(newPos.longitude);
63
+ newPositions.push(newPos.latitude);
64
+ newPositions.push(newPos.height);
65
+ });
66
+
67
+ var options = {
68
+ viewer: this._viewer,
69
+ baseHeight: Number(this._options.baseHeight),
70
+ limitHeight: Number(this._options.limitHeight),
71
+ limitColor: window.Cesium.Color.fromCssColorString(this._options.limitHeightColor).withAlpha(this._options.limitColorAlpha),
72
+ overColor: window.Cesium.Color.fromCssColorString(this._options.overHeightColor).withAlpha(this._options.overHeightColorAlpha),
73
+ positions: newPositions,
74
+ perPositionHeight: false,
75
+ classificationType: window.Cesium.ClassificationType.CESIUM_3D_TILE
76
+ };
77
+ this._limitHeightAnalysis = new window.Cesium.Kq3dLimitHeightAnalysis(options);
78
+
79
+ this._limitHeightAnalysis.add();
80
+ } // 开始分析
81
+
82
+
83
+ start() {
84
+ this.clear();
85
+
86
+ if (this._drawManager) {
87
+ this._drawManager.startDraw("polygon", {
88
+ clampToGround: true
89
+ });
90
+ }
91
+ } // 修改基底高度
92
+
93
+
94
+ changeBaseHeight(val) {
95
+ this._options.baseHeight = val;
96
+ this.clear();
97
+ this.drawPolygon();
98
+ } // 修改限制高度
99
+
100
+
101
+ changeLimitHeight(val) {
102
+ this._options.limitHeight = val;
103
+ this.clear();
104
+ this.drawPolygon();
105
+ } // 修改限制高度颜色
106
+
107
+
108
+ changeLimitHeightColor(val) {
109
+ this._options.limitHeightColor = val;
110
+ this.clear();
111
+ this.drawPolygon();
112
+ } // 修改超出高度颜色
113
+
114
+
115
+ changeOverHeightColor(val) {
116
+ this._options.overHeightColor = val;
117
+ this.clear();
118
+ this.drawPolygon();
119
+ } // 清除全部
120
+
121
+
122
+ clear() {
123
+ this._limitHeightAnalysis && this._limitHeightAnalysis.remove();
124
+ this._drawManager && this._drawManager.stopDraw();
125
+ } // 销毁
126
+
127
+
128
+ destroy() {
129
+ this.clear();
130
+ this._drawFinishedEventListener && this._drawFinishedEventListener();
131
+ this._drawFinishedEventListener = null;
132
+ }
133
+
134
+ }
19
135
 
20
136
  /***/ }),
21
137
 
22
- /***/ 2118:
138
+ /***/ 348:
23
139
  /***/ (function(module) {
24
140
 
25
- module.exports = require("core-js/modules/es.array.push.js");
141
+ module.exports = require("@kq_npm/client_icons_vue");
26
142
 
27
143
  /***/ }),
28
144
 
@@ -160,7 +276,7 @@ __webpack_require__.r(__webpack_exports__);
160
276
 
161
277
  // EXPORTS
162
278
  __webpack_require__.d(__webpack_exports__, {
163
- "LimitHeightAnalysisViewModel": function() { return /* reexport */ LimitHeightAnalysisViewModel; },
279
+ "LimitHeightAnalysisViewModel": function() { return /* reexport */ LimitHeightAnalysisViewModel/* default */.Z; },
164
280
  "default": function() { return /* reexport */ LimitHeightAnalysis; }
165
281
  });
166
282
 
@@ -170,125 +286,8 @@ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(
170
286
  var gis_utils_ = __webpack_require__(7135);
171
287
  // EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
172
288
  var client_icons_vue_ = __webpack_require__(348);
173
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
174
- var defineProperty = __webpack_require__(8270);
175
- // EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
176
- var es_array_push_js_ = __webpack_require__(2118);
177
- ;// CONCATENATED MODULE: ./src/webgl/limitheightanalysis/LimitHeightAnalysisViewModel.js
178
-
179
-
180
- //限高分析逻辑类
181
- class LimitHeightAnalysisViewModel {
182
- //三维viewer对象
183
- //限高分析存储参数对象
184
- constructor(scenceView, options) {
185
- (0,defineProperty/* default */.Z)(this, "_viewer", null);
186
-
187
- (0,defineProperty/* default */.Z)(this, "_options", {});
188
-
189
- (0,defineProperty/* default */.Z)(this, "_drawManager", null);
190
-
191
- (0,defineProperty/* default */.Z)(this, "_drawFinishedEventListener", null);
192
-
193
- (0,defineProperty/* default */.Z)(this, "_limitHeightAnalysis", null);
194
-
195
- this._viewer = scenceView._viewer;
196
- this._options = options;
197
- this._drawManager = scenceView._drawManager;
198
- this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
199
-
200
- this._viewer.scene.postProcessStages._fxaa.enabled = true;
201
- var that = this;
202
- this._drawFinishedEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
203
- if (shape) {
204
- that._options.positions = shape._controlPoints;
205
- that.drawPolygon();
206
-
207
- that._drawManager.clear();
208
- }
209
- });
210
- } // 绘制限高分析,显示分析体
211
-
212
-
213
- drawPolygon() {
214
- if (!this._options.positions) return;
215
- var newPositions = [];
216
-
217
- this._options.positions.forEach(item => {
218
- var newPos = window.Cesium.Cartographic.fromCartesian(item);
219
- newPositions.push(newPos.longitude);
220
- newPositions.push(newPos.latitude);
221
- newPositions.push(newPos.height);
222
- });
223
-
224
- var options = {
225
- viewer: this._viewer,
226
- baseHeight: Number(this._options.baseHeight),
227
- limitHeight: Number(this._options.limitHeight),
228
- limitColor: window.Cesium.Color.fromCssColorString(this._options.limitHeightColor).withAlpha(this._options.limitColorAlpha),
229
- overColor: window.Cesium.Color.fromCssColorString(this._options.overHeightColor).withAlpha(this._options.overHeightColorAlpha),
230
- positions: newPositions,
231
- perPositionHeight: false,
232
- classificationType: window.Cesium.ClassificationType.CESIUM_3D_TILE
233
- };
234
- this._limitHeightAnalysis = new window.Cesium.Kq3dLimitHeightAnalysis(options);
235
-
236
- this._limitHeightAnalysis.add();
237
- } // 开始分析
238
-
239
-
240
- start() {
241
- this.clear();
242
-
243
- if (this._drawManager) {
244
- this._drawManager.startDraw("polygon", {
245
- clampToGround: true
246
- });
247
- }
248
- } // 修改基底高度
249
-
250
-
251
- changeBaseHeight(val) {
252
- this._options.baseHeight = val;
253
- this.clear();
254
- this.drawPolygon();
255
- } // 修改限制高度
256
-
257
-
258
- changeLimitHeight(val) {
259
- this._options.limitHeight = val;
260
- this.clear();
261
- this.drawPolygon();
262
- } // 修改限制高度颜色
263
-
264
-
265
- changeLimitHeightColor(val) {
266
- this._options.limitHeightColor = val;
267
- this.clear();
268
- this.drawPolygon();
269
- } // 修改超出高度颜色
270
-
271
-
272
- changeOverHeightColor(val) {
273
- this._options.overHeightColor = val;
274
- this.clear();
275
- this.drawPolygon();
276
- } // 清除全部
277
-
278
-
279
- clear() {
280
- this._limitHeightAnalysis && this._limitHeightAnalysis.remove();
281
- this._drawManager && this._drawManager.stopDraw();
282
- } // 销毁
283
-
284
-
285
- destroy() {
286
- this.clear();
287
- this._drawFinishedEventListener && this._drawFinishedEventListener();
288
- this._drawFinishedEventListener = null;
289
- }
290
-
291
- }
289
+ // EXTERNAL MODULE: ./src/webgl/limitheightanalysis/LimitHeightAnalysisViewModel.js
290
+ var LimitHeightAnalysisViewModel = __webpack_require__(1769);
292
291
  // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
293
292
  var util_ = __webpack_require__(3458);
294
293
  // EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
@@ -414,7 +413,7 @@ const __default__ = {
414
413
 
415
414
  gis_utils_.utils.getWebMap(null, scenceView => {
416
415
  if (scenceView) {
417
- viewModel = new LimitHeightAnalysisViewModel(scenceView, {
416
+ viewModel = new LimitHeightAnalysisViewModel/* default */.Z(scenceView, {
418
417
  baseHeight: formItem.baseHeight,
419
418
  limitHeight: formItem.limitHeight,
420
419
  limitHeightColor: formItem.limitHeightColor,
@@ -1,88 +1 @@
1
- .kq3d-limitheight-analysis {
2
- z-index: 999;
3
- border-radius: var(--kq-border-radius-base);
4
- padding: 16px;
5
- pointer-events: auto;
6
- cursor: default;
7
- background-color: var(--kq-bg-color);
8
- }
9
- .kq3d-limitheight-analysis .kq3d-limitheight-analysis-box {
10
- width: 372px;
11
- }
12
- .kq3d-limitheight-analysis .kq3d-limitheight-analysis-tip {
13
- color: var(--kq-text-color-regular);
14
- font-size: var(--kq-font-size-base);
15
- }
16
- .kq3d-limitheight-analysis .kq3d-limitheight-analysis-tip p {
17
- margin-top: 0px;
18
- margin-bottom: 16px;
19
- }
20
- .kq3d-limitheight-analysis .kq-collapse {
21
- border: unset;
22
- }
23
- .kq3d-limitheight-analysis .kq-collapse .kq-collapse-item__header {
24
- border: unset;
25
- height: 38px;
26
- background-color: var(--kq-fill-color-light);
27
- font-weight: bold;
28
- padding: 0px 16px;
29
- font-size: 16px;
30
- }
31
- .kq3d-limitheight-analysis .kq-collapse .kq-collapse-item__arrow {
32
- margin: 0 0px 0 auto;
33
- }
34
- .kq3d-limitheight-analysis .kq-collapse .kq-collapse-item__wrap .kq-collapse-item__content {
35
- padding-bottom: unset;
36
- border: unset;
37
- padding-top: 10px;
38
- }
39
- .kq3d-limitheight-analysis .kq-form-item {
40
- margin-bottom: 8px;
41
- }
42
- .kq3d-limitheight-analysis .kq-form-item__content {
43
- text-align: end;
44
- display: block;
45
- }
46
- .kq3d-limitheight-analysis .kq-row {
47
- display: block;
48
- }
49
- .kq3d-limitheight-analysis .kq-slider {
50
- width: 95%;
51
- padding-left: 7px;
52
- }
53
- .kq3d-limitheight-analysis .kq-slider .kq-slider__button {
54
- width: 14px;
55
- height: 14px;
56
- }
57
- .kq3d-limitheight-analysis .kq-input-number {
58
- width: 65px;
59
- }
60
- .kq3d-limitheight-analysis .kq-input-number .kq-input-number__increase,
61
- .kq3d-limitheight-analysis .kq-input-number .kq-input-number__decrease {
62
- width: 20px;
63
- }
64
- .kq3d-limitheight-analysis .kq-input-number .kq-input__wrapper {
65
- padding-left: 0px;
66
- padding-right: 20px;
67
- }
68
- .kq3d-limitheight-analysis .kq-col-8 .kq-input-number .kq-input__wrapper {
69
- padding-left: 0px;
70
- padding-right: 20px;
71
- }
72
- .kq3d-limitheight-analysis .kq-color-picker {
73
- width: 100%;
74
- }
75
- .kq3d-limitheight-analysis .kq-color-picker .kq-color-picker__mask {
76
- width: 100%;
77
- }
78
- .kq3d-limitheight-analysis .kq-color-picker .kq-color-picker__trigger {
79
- width: 100%;
80
- }
81
- .kq3d-limitheight-analysis .kq3d-limitheight-analysis-footer {
82
- text-align: right;
83
- padding: 16px 0px 0px;
84
- }
85
-
86
- .cesium-viewer-cesiumWidgetContainer .twipsy {
87
- display: none !important;
88
- }
1
+ .kq3d-limitheight-analysis{z-index:999;border-radius:var(--kq-border-radius-base);padding:16px;pointer-events:auto;cursor:default;background-color:var(--kq-bg-color)}.kq3d-limitheight-analysis .kq3d-limitheight-analysis-box{width:372px}.kq3d-limitheight-analysis .kq3d-limitheight-analysis-tip{color:var(--kq-text-color-regular);font-size:var(--kq-font-size-base)}.kq3d-limitheight-analysis .kq3d-limitheight-analysis-tip p{margin-top:0;margin-bottom:16px}.kq3d-limitheight-analysis .kq-collapse{border:unset}.kq3d-limitheight-analysis .kq-collapse .kq-collapse-item__header{border:unset;height:38px;background-color:var(--kq-fill-color-light);font-weight:700;padding:0 16px;font-size:16px}.kq3d-limitheight-analysis .kq-collapse .kq-collapse-item__arrow{margin:0 0 0 auto}.kq3d-limitheight-analysis .kq-collapse .kq-collapse-item__wrap .kq-collapse-item__content{padding-bottom:unset;border:unset;padding-top:10px}.kq3d-limitheight-analysis .kq-form-item{margin-bottom:8px}.kq3d-limitheight-analysis .kq-form-item__content{text-align:end;display:block}.kq3d-limitheight-analysis .kq-row{display:block}.kq3d-limitheight-analysis .kq-slider{width:95%;padding-left:7px}.kq3d-limitheight-analysis .kq-slider .kq-slider__button{width:14px;height:14px}.kq3d-limitheight-analysis .kq-input-number{width:65px}.kq3d-limitheight-analysis .kq-input-number .kq-input-number__decrease,.kq3d-limitheight-analysis .kq-input-number .kq-input-number__increase{width:20px}.kq3d-limitheight-analysis .kq-col-8 .kq-input-number .kq-input__wrapper,.kq3d-limitheight-analysis .kq-input-number .kq-input__wrapper{padding-left:0;padding-right:20px}.kq3d-limitheight-analysis .kq-color-picker,.kq3d-limitheight-analysis .kq-color-picker .kq-color-picker__mask,.kq3d-limitheight-analysis .kq-color-picker .kq-color-picker__trigger{width:100%}.kq3d-limitheight-analysis .kq3d-limitheight-analysis-footer{text-align:right;padding:16px 0 0}.cesium-viewer-cesiumWidgetContainer .twipsy{display:none!important}
package/measure/index.js CHANGED
@@ -45,7 +45,7 @@ index_full_js_namespaceObject.ElMessage.install = (Vue, opts) => {
45
45
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
46
46
  /* harmony export */ "Z": function() { return /* binding */ MeasureViewModel; }
47
47
  /* harmony export */ });
48
- /* harmony import */ var G_0929_zl_kqgis_client_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8270);
48
+ /* harmony import */ var _Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8270);
49
49
 
50
50
  //测量操作类
51
51
  class MeasureViewModel {
@@ -53,13 +53,15 @@ class MeasureViewModel {
53
53
  //测量事件
54
54
  //活动事件
55
55
  constructor(viewer) {
56
- (0,G_0929_zl_kqgis_client_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_viewer", null);
56
+ (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_viewer", null);
57
57
 
58
- (0,G_0929_zl_kqgis_client_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_measureHandler", null);
58
+ (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_measureHandler", null);
59
59
 
60
- (0,G_0929_zl_kqgis_client_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "measureEvent", null);
60
+ (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "measureEvent", null);
61
61
 
62
- (0,G_0929_zl_kqgis_client_vue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "activeEvent", null);
62
+ (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "activeEvent", null);
63
+
64
+ (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "nauticalMileUnit", "nmi");
63
65
 
64
66
  this._measureHandler = new Cesium.Kq3dMeasureHandler(viewer);
65
67
  this._viewer = viewer;
@@ -169,8 +171,8 @@ class MeasureViewModel {
169
171
  newValue = (value / 1000).toFixed(2) + " km";
170
172
  break;
171
173
 
172
- case "nmi":
173
- newValue = (value / 1852).toFixed(2) + " nmi";
174
+ case this.nauticalMileUnit:
175
+ newValue = (value / 1852).toFixed(2) + " " + this.nauticalMileUnit;
174
176
  break;
175
177
 
176
178
  case "m²":
@@ -572,8 +574,11 @@ const __default__ = {
572
574
 
573
575
  let isActive = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
574
576
  let isResult = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
575
- let distanceValue = null;
576
- let distanceUnit = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.settingParams && props.settingParams.distanceUnit || ""); // 单位
577
+ let distanceValue = null; // 默认显示距离的单位
578
+
579
+ let distanceUnit = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.settingParams && props.settingParams.distanceUnit || ""); // 海里单位选择
580
+
581
+ let nauticalMileUnit = props.settingParams && props.settingParams.nauticalMileUnit || "nmi"; // 面积单位
577
582
 
578
583
  let areaUnit = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.settingParams && props.settingParams.areaUnit || "");
579
584
  let result = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("0");
@@ -606,7 +611,7 @@ const __default__ = {
606
611
  value: "m"
607
612
  }, {
608
613
  label: language.value.nauticalMile,
609
- value: "nmi"
614
+ value: nauticalMileUnit
610
615
  }];
611
616
  };
612
617
 
@@ -647,7 +652,8 @@ const __default__ = {
647
652
  });
648
653
  gis_utils_.utils.getWebMap(props.target, scenceView => {
649
654
  if (scenceView) {
650
- viewModel = new MeasureViewModel/* default */.Z(scenceView._viewer); //注册测量事件,以获取测量结果
655
+ viewModel = new MeasureViewModel/* default */.Z(scenceView._viewer);
656
+ viewModel.nauticalMileUnit = nauticalMileUnit; //注册测量事件,以获取测量结果
651
657
 
652
658
  viewModel.measureEvent.addEventListener(function (res) {
653
659
  if (measureType.value === "distance") {
@@ -824,8 +830,8 @@ const __default__ = {
824
830
  newValue = (value / 1000).toFixed(2) + " km";
825
831
  break;
826
832
 
827
- case "nmi":
828
- newValue = (value / 1852).toFixed(2) + " nmi";
833
+ case nauticalMileUnit:
834
+ newValue = (value / 1852).toFixed(2) + " " + nauticalMileUnit;
829
835
  break;
830
836
 
831
837
  case "m²":
@@ -1,84 +1 @@
1
- .kq-measure3d {
2
- z-index: 999;
3
- border-radius: var(--kq-border-radius-base);
4
- padding: 16px;
5
- pointer-events: auto;
6
- cursor: default;
7
- background-color: var(--kq-bg-color);
8
- }
9
- .kq-measure3d .kq-measure3d-box {
10
- width: 370px;
11
- }
12
- .kq-measure3d p {
13
- margin: 0;
14
- }
15
- .kq-measure3d .kq-measure3d-mode .panel {
16
- width: 100%;
17
- }
18
- .kq-measure3d .kq-measure3d-mode .panel .title {
19
- color: var(--kq-text-color-regular);
20
- margin: 0 0 8px 0;
21
- font-size: 14px;
22
- }
23
- .kq-measure3d .kq-measure3d-mode .panel .kq-select {
24
- width: 100%;
25
- }
26
- .kq-measure3d .kq-measure3d-btns {
27
- margin-top: 12px;
28
- }
29
- .kq-measure3d .kq-measure3d-btns .kq-button {
30
- width: 48px;
31
- height: 48px;
32
- }
33
- .kq-measure3d .kq-measure3d-btns .kq-button .kq-icon {
34
- color: var(--kq-color-primary);
35
- }
36
- .kq-measure3d .kq-measure3d-btns .kq-button .icon-delete {
37
- color: var(--kq-color-danger);
38
- }
39
- .kq-measure3d .kq-measure3d-btns .kq-button:hover .icon-delete, .kq-measure3d .kq-measure3d-btns .kq-button:active .icon-delete, .kq-measure3d .kq-measure3d-btns .kq-button:focus .icon-delete {
40
- color: var(--kq-color-white) !important;
41
- }
42
- .kq-measure3d .kq-measure3d-btns .kq-button + .kq-button {
43
- margin-left: 16px;
44
- }
45
- .kq-measure3d .kq-measure3d-tip {
46
- color: var(--kq-text-color-regular);
47
- font-size: 13px;
48
- }
49
- .kq-measure3d .kq-measure3d-tip .kq-divider {
50
- margin: 16px 0;
51
- }
52
- .kq-measure3d .kq-measure3d-tip > p {
53
- margin: 0;
54
- }
55
- .kq-measure3d .kq-measure3d-result .kq-divider {
56
- margin: 16px 0;
57
- }
58
- .kq-measure3d .kq-measure3d-result .kq-measure3d-result-panel .panel {
59
- padding-bottom: 16px;
60
- }
61
- .kq-measure3d .kq-measure3d-result .kq-measure3d-result-panel .panel:last-child {
62
- padding: 0;
63
- }
64
- .kq-measure3d .kq-measure3d-result .kq-measure3d-result-panel .panel .title {
65
- color: var(--kq-text-color-regular);
66
- margin: 0 0 8px 0;
67
- font-size: 14px;
68
- }
69
- .kq-measure3d .kq-measure3d-result .kq-measure3d-result-panel .panel .kq-select {
70
- width: 100%;
71
- }
72
- .kq-measure3d .kq-measure3d-result .kq-measure3d-result-panel .panel .result {
73
- padding: 8px;
74
- background: var(--kq-sub-bg-color);
75
- border-radius: var(--kq-border-radius-base);
76
- color: var(--kq-text-color-regular);
77
- font-size: 14px;
78
- }
79
- .kq-measure3d .kq-measure3d-result .kq-measure3d-result-panel .panel .result .tit {
80
- padding-bottom: 8px;
81
- }
82
- .kq-measure3d .kq-measure3d-result .kq-measure3d-result-panel .panel .result .res + .tit {
83
- padding-top: 12px;
84
- }
1
+ .kq-measure3d{z-index:999;border-radius:var(--kq-border-radius-base);padding:16px;pointer-events:auto;cursor:default;background-color:var(--kq-bg-color)}.kq-measure3d .kq-measure3d-box{width:370px}.kq-measure3d p{margin:0}.kq-measure3d .kq-measure3d-mode .panel{width:100%}.kq-measure3d .kq-measure3d-mode .panel .title{color:var(--kq-text-color-regular);margin:0 0 8px;font-size:14px}.kq-measure3d .kq-measure3d-mode .panel .kq-select{width:100%}.kq-measure3d .kq-measure3d-btns{margin-top:12px}.kq-measure3d .kq-measure3d-btns .kq-button{width:48px;height:48px}.kq-measure3d .kq-measure3d-btns .kq-button .kq-icon{color:var(--kq-color-primary)}.kq-measure3d .kq-measure3d-btns .kq-button .icon-delete{color:var(--kq-color-danger)}.kq-measure3d .kq-measure3d-btns .kq-button:active .icon-delete,.kq-measure3d .kq-measure3d-btns .kq-button:focus .icon-delete,.kq-measure3d .kq-measure3d-btns .kq-button:hover .icon-delete{color:var(--kq-color-white)!important}.kq-measure3d .kq-measure3d-btns .kq-button+.kq-button{margin-left:16px}.kq-measure3d .kq-measure3d-tip{color:var(--kq-text-color-regular);font-size:13px}.kq-measure3d .kq-measure3d-tip .kq-divider{margin:16px 0}.kq-measure3d .kq-measure3d-tip>p{margin:0}.kq-measure3d .kq-measure3d-result .kq-divider{margin:16px 0}.kq-measure3d .kq-measure3d-result .kq-measure3d-result-panel .panel{padding-bottom:16px}.kq-measure3d .kq-measure3d-result .kq-measure3d-result-panel .panel:last-child{padding:0}.kq-measure3d .kq-measure3d-result .kq-measure3d-result-panel .panel .title{color:var(--kq-text-color-regular);margin:0 0 8px;font-size:14px}.kq-measure3d .kq-measure3d-result .kq-measure3d-result-panel .panel .kq-select{width:100%}.kq-measure3d .kq-measure3d-result .kq-measure3d-result-panel .panel .result{padding:8px;background:var(--kq-sub-bg-color);border-radius:var(--kq-border-radius-base);color:var(--kq-text-color-regular);font-size:14px}.kq-measure3d .kq-measure3d-result .kq-measure3d-result-panel .panel .result .tit{padding-bottom:8px}.kq-measure3d .kq-measure3d-result .kq-measure3d-result-panel .panel .result .res+.tit{padding-top:12px}
@@ -46,13 +46,6 @@ module.exports = require("@kq_npm/client_icons_vue");
46
46
 
47
47
  /***/ }),
48
48
 
49
- /***/ 2118:
50
- /***/ (function(module) {
51
-
52
- module.exports = require("core-js/modules/es.array.push.js");
53
-
54
- /***/ }),
55
-
56
49
  /***/ 7080:
57
50
  /***/ (function(module) {
58
51
 
@@ -197,13 +190,10 @@ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(
197
190
  var gis_utils_ = __webpack_require__(7135);
198
191
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
199
192
  var defineProperty = __webpack_require__(8270);
200
- // EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
201
- var es_array_push_js_ = __webpack_require__(2118);
202
193
  // EXTERNAL MODULE: ./src/common/_ui/message/index.js + 1 modules
203
194
  var message = __webpack_require__(3694);
204
195
  ;// CONCATENATED MODULE: ./src/webgl/modelFlat/ModelFlatViewModel.js
205
196
 
206
-
207
197
  //模型拾取逻辑类
208
198
 
209
199
  class ModelFlatViewModel {
@@ -1,66 +1 @@
1
- .kq3d-model-flat {
2
- z-index: 999;
3
- border-radius: var(--kq-border-radius-base);
4
- padding: 16px;
5
- pointer-events: auto;
6
- cursor: default;
7
- background-color: var(--kq-bg-color);
8
- }
9
- .kq3d-model-flat .kq3d-model-flat-box {
10
- width: 350px;
11
- }
12
- .kq3d-model-flat .kq-row {
13
- margin-bottom: 8px;
14
- }
15
- .kq3d-model-flat .kq-form-item {
16
- margin-bottom: 8px;
17
- }
18
- .kq3d-model-flat .kq3d-model-flat-span {
19
- color: var(--kq-text-color-regular);
20
- line-height: 32px;
21
- font-size: var(--kq-font-size-base);
22
- }
23
- .kq3d-model-flat .kq3d-model-flat-tip {
24
- color: var(--kq-text-color-regular);
25
- font-size: var(--kq-font-size-base);
26
- }
27
- .kq3d-model-flat .kq3d-model-flat-tip p {
28
- margin: 0px;
29
- display: -webkit-box;
30
- display: -ms-flexbox;
31
- display: flex;
32
- -webkit-box-align: center;
33
- -ms-flex-align: center;
34
- align-items: center;
35
- -webkit-font-feature-settings: "tnum" on, "lnum" on;
36
- font-feature-settings: "tnum" on, "lnum" on;
37
- font-family: "Noto Sans SC";
38
- font-style: normal;
39
- font-weight: 400;
40
- }
41
- .kq3d-model-flat .kq-slider {
42
- width: 100%;
43
- }
44
- .kq3d-model-flat .kq-slider .kq-slider__button {
45
- width: 14px;
46
- height: 14px;
47
- }
48
- .kq3d-model-flat .kq-input-number.is-controls-right {
49
- width: 65px;
50
- }
51
- .kq3d-model-flat .kq-input-number.is-controls-right .kq-input-number__increase,
52
- .kq3d-model-flat .kq-input-number.is-controls-right .kq-input-number__decrease {
53
- width: 20px;
54
- }
55
- .kq3d-model-flat .kq-input-number.is-controls-right .kq-input__wrapper {
56
- padding-left: 0px;
57
- padding-right: 20px;
58
- }
59
- .kq3d-model-flat .kq-col-8 .kq-input-number .kq-input__wrapper {
60
- padding-left: 0px;
61
- padding-right: 20px;
62
- }
63
- .kq3d-model-flat .kq3d-model-flat-footer {
64
- text-align: right;
65
- padding: 8px 0px 0px;
66
- }
1
+ .kq3d-model-flat{z-index:999;border-radius:var(--kq-border-radius-base);padding:16px;pointer-events:auto;cursor:default;background-color:var(--kq-bg-color)}.kq3d-model-flat .kq3d-model-flat-box{width:350px}.kq3d-model-flat .kq-form-item,.kq3d-model-flat .kq-row{margin-bottom:8px}.kq3d-model-flat .kq3d-model-flat-span{line-height:32px}.kq3d-model-flat .kq3d-model-flat-span,.kq3d-model-flat .kq3d-model-flat-tip{color:var(--kq-text-color-regular);font-size:var(--kq-font-size-base)}.kq3d-model-flat .kq3d-model-flat-tip p{margin:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-font-feature-settings:"tnum" on,"lnum" on;font-feature-settings:"tnum" on,"lnum" on;font-family:Noto Sans SC;font-style:normal;font-weight:400}.kq3d-model-flat .kq-slider{width:100%}.kq3d-model-flat .kq-slider .kq-slider__button{width:14px;height:14px}.kq3d-model-flat .kq-input-number.is-controls-right{width:65px}.kq3d-model-flat .kq-input-number.is-controls-right .kq-input-number__decrease,.kq3d-model-flat .kq-input-number.is-controls-right .kq-input-number__increase{width:20px}.kq3d-model-flat .kq-col-8 .kq-input-number .kq-input__wrapper,.kq3d-model-flat .kq-input-number.is-controls-right .kq-input__wrapper{padding-left:0;padding-right:20px}.kq3d-model-flat .kq3d-model-flat-footer{text-align:right;padding:8px 0 0}