@kq_npm/client3d_webgl_vue 1.0.4-beta → 1.0.5-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/compass/index.js CHANGED
@@ -148,7 +148,6 @@ const __default__ = {
148
148
  };
149
149
  /* harmony default export */ var Compassvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
150
150
  props: {
151
- mapTarget: String,
152
151
  // 按钮图标大小
153
152
  iconSize: {
154
153
  type: Number,
@@ -51,8 +51,8 @@ __webpack_require__.r(__webpack_exports__);
51
51
 
52
52
  // EXPORTS
53
53
  __webpack_require__.d(__webpack_exports__, {
54
- "FixedZoomViewModel": function() { return /* reexport */ FixedZoomViewModel; },
55
- "default": function() { return /* reexport */ FixedZoom; }
54
+ "FixedZoomin3dViewModel": function() { return /* reexport */ FixedZoomin3dViewModel; },
55
+ "default": function() { return /* reexport */ FixedZoomin3d; }
56
56
  });
57
57
 
58
58
  ;// CONCATENATED MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
@@ -74,10 +74,10 @@ function _defineProperty(obj, key, value) {
74
74
 
75
75
  return obj;
76
76
  }
77
- ;// CONCATENATED MODULE: ./src/webgl/fixedzoom/FixedZoomViewModel.js
77
+ ;// CONCATENATED MODULE: ./src/webgl/fixedzoomin3d/FixedZoomin3dViewModel.js
78
78
 
79
79
  // 三维固定缩放逻辑
80
- class FixedZoomViewModel {
80
+ class FixedZoomin3dViewModel {
81
81
  //三维viewer对象
82
82
  constructor(viewer) {
83
83
  _defineProperty(this, "_viewer", null);
@@ -143,7 +143,7 @@ class FixedZoomViewModel {
143
143
  }
144
144
  ;// CONCATENATED MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
145
145
  var gis_utils_namespaceObject = require("@kq_npm/client_common_vue/_utils/gis-utils");
146
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/fixedzoom/FixedZoom.vue?vue&type=script&setup=true&lang=js
146
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/fixedzoomin3d/FixedZoomin3d.vue?vue&type=script&setup=true&lang=js
147
147
 
148
148
 
149
149
 
@@ -151,16 +151,10 @@ var gis_utils_namespaceObject = require("@kq_npm/client_common_vue/_utils/gis-ut
151
151
  // 获取组件传参
152
152
 
153
153
  const __default__ = {
154
- name: "Kq3dFixedZoom"
154
+ name: "Kq3dFixedZoomin3d"
155
155
  };
156
- /* harmony default export */ var FixedZoomvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
156
+ /* harmony default export */ var FixedZoomin3dvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
157
157
  props: {
158
- mapTarget: String,
159
- // 切换按钮是固定放大还是固定缩小,值:zoomIn 或 zoomOut
160
- isZoomInOrOut: {
161
- type: Boolean,
162
- default: true
163
- },
164
158
  // 按钮图标大小
165
159
  iconSize: {
166
160
  type: Number,
@@ -182,14 +176,14 @@ const __default__ = {
182
176
  gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
183
177
  if (scenceView) {
184
178
  language.value = scenceView._language;
185
- viewModel = new FixedZoomViewModel(scenceView._viewer);
179
+ viewModel = new FixedZoomin3dViewModel(scenceView._viewer);
186
180
  }
187
181
  });
188
182
  }); // 按钮点击事件
189
183
 
190
184
  function btnClick() {
191
185
  btn.value.$el.blur();
192
- viewModel && viewModel.zoom(props.isZoomInOrOut ? 0.5 : 2);
186
+ viewModel && viewModel.zoom(2);
193
187
  }
194
188
 
195
189
  return (_ctx, _cache) => {
@@ -198,24 +192,13 @@ const __default__ = {
198
192
  const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-button");
199
193
 
200
194
  return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createBlock)(_component_kq_button, {
201
- title: __props.isZoomInOrOut ? (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).zoomIn : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).zoomOut,
195
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).zoomIn,
202
196
  ref_key: "btn",
203
197
  ref: btn,
204
198
  onClick: btnClick,
205
199
  style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeStyle)('width:' + __props.buttonSize)
206
200
  }, {
207
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [__props.isZoomInOrOut ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createBlock)(_component_kq_icon, {
208
- key: 0,
209
- size: __props.iconSize
210
- }, {
211
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(icons_vue_namespaceObject.Plus))]),
212
- _: 1
213
- /* STABLE */
214
-
215
- }, 8
216
- /* PROPS */
217
- , ["size"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createCommentVNode)("v-if", true), !__props.isZoomInOrOut ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createBlock)(_component_kq_icon, {
218
- key: 1,
201
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_icon, {
219
202
  size: __props.iconSize
220
203
  }, {
221
204
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(icons_vue_namespaceObject.Minus))]),
@@ -224,7 +207,7 @@ const __default__ = {
224
207
 
225
208
  }, 8
226
209
  /* PROPS */
227
- , ["size"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createCommentVNode)("v-if", true)]),
210
+ , ["size"])]),
228
211
  _: 1
229
212
  /* STABLE */
230
213
 
@@ -235,26 +218,26 @@ const __default__ = {
235
218
  }
236
219
 
237
220
  }));
238
- ;// CONCATENATED MODULE: ./src/webgl/fixedzoom/FixedZoom.vue?vue&type=script&setup=true&lang=js
221
+ ;// CONCATENATED MODULE: ./src/webgl/fixedzoomin3d/FixedZoomin3d.vue?vue&type=script&setup=true&lang=js
239
222
 
240
- ;// CONCATENATED MODULE: ./src/webgl/fixedzoom/FixedZoom.vue
223
+ ;// CONCATENATED MODULE: ./src/webgl/fixedzoomin3d/FixedZoomin3d.vue
241
224
 
242
225
 
243
226
 
244
- const __exports__ = FixedZoomvue_type_script_setup_true_lang_js;
227
+ const __exports__ = FixedZoomin3dvue_type_script_setup_true_lang_js;
245
228
 
246
- /* harmony default export */ var FixedZoom = (__exports__);
229
+ /* harmony default export */ var FixedZoomin3d = (__exports__);
247
230
  ;// CONCATENATED MODULE: external "@kq_npm/client_common_vue/init.js"
248
231
  var init_js_namespaceObject = require("@kq_npm/client_common_vue/init.js");
249
232
  var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_namespaceObject);
250
- ;// CONCATENATED MODULE: ./src/webgl/fixedzoom/index.js
233
+ ;// CONCATENATED MODULE: ./src/webgl/fixedzoomin3d/index.js
251
234
 
252
235
 
253
236
 
254
237
 
255
- FixedZoom.install = (Vue, opts) => {
238
+ FixedZoomin3d.install = (Vue, opts) => {
256
239
  init_js_default()(Vue, opts);
257
- Vue.component(FixedZoom.name, FixedZoom);
240
+ Vue.component(FixedZoomin3d.name, FixedZoomin3d);
258
241
  };
259
242
 
260
243
 
@@ -0,0 +1,246 @@
1
+ /******/ (function() { // webpackBootstrap
2
+ /******/ "use strict";
3
+ /******/ // The require scope
4
+ /******/ var __webpack_require__ = {};
5
+ /******/
6
+ /************************************************************************/
7
+ /******/ /* webpack/runtime/compat get default export */
8
+ /******/ !function() {
9
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
10
+ /******/ __webpack_require__.n = function(module) {
11
+ /******/ var getter = module && module.__esModule ?
12
+ /******/ function() { return module['default']; } :
13
+ /******/ function() { return module; };
14
+ /******/ __webpack_require__.d(getter, { a: getter });
15
+ /******/ return getter;
16
+ /******/ };
17
+ /******/ }();
18
+ /******/
19
+ /******/ /* webpack/runtime/define property getters */
20
+ /******/ !function() {
21
+ /******/ // define getter functions for harmony exports
22
+ /******/ __webpack_require__.d = function(exports, definition) {
23
+ /******/ for(var key in definition) {
24
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
25
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
26
+ /******/ }
27
+ /******/ }
28
+ /******/ };
29
+ /******/ }();
30
+ /******/
31
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
32
+ /******/ !function() {
33
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
34
+ /******/ }();
35
+ /******/
36
+ /******/ /* webpack/runtime/make namespace object */
37
+ /******/ !function() {
38
+ /******/ // define __esModule on exports
39
+ /******/ __webpack_require__.r = function(exports) {
40
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
41
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
42
+ /******/ }
43
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
44
+ /******/ };
45
+ /******/ }();
46
+ /******/
47
+ /************************************************************************/
48
+ var __webpack_exports__ = {};
49
+ // ESM COMPAT FLAG
50
+ __webpack_require__.r(__webpack_exports__);
51
+
52
+ // EXPORTS
53
+ __webpack_require__.d(__webpack_exports__, {
54
+ "FixedZoomout3dViewModel": function() { return /* reexport */ FixedZoomout3dViewModel; },
55
+ "default": function() { return /* reexport */ FixedZoomout3d; }
56
+ });
57
+
58
+ ;// CONCATENATED MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
59
+ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject = require("vue");
60
+ ;// CONCATENATED MODULE: external "@element-plus/icons-vue"
61
+ var icons_vue_namespaceObject = require("@element-plus/icons-vue");
62
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
63
+ function _defineProperty(obj, key, value) {
64
+ if (key in obj) {
65
+ Object.defineProperty(obj, key, {
66
+ value: value,
67
+ enumerable: true,
68
+ configurable: true,
69
+ writable: true
70
+ });
71
+ } else {
72
+ obj[key] = value;
73
+ }
74
+
75
+ return obj;
76
+ }
77
+ ;// CONCATENATED MODULE: ./src/webgl/fixedzoomout3d/FixedZoomout3dViewModel.js
78
+
79
+ // 三维固定缩放逻辑
80
+ class FixedZoomout3dViewModel {
81
+ //三维viewer对象
82
+ constructor(viewer) {
83
+ _defineProperty(this, "_viewer", null);
84
+
85
+ this._viewer = viewer;
86
+ } //获取相机焦点
87
+
88
+
89
+ getCameraFocus() {
90
+ if (!this._viewer) return;
91
+ var scene = this._viewer.scene;
92
+ var camera = scene.camera;
93
+ var rayScratch = new Cesium.Ray();
94
+ rayScratch.origin = camera.positionWC;
95
+ rayScratch.direction = camera.directionWC;
96
+ var result = new Cesium.Cartesian3();
97
+ result = scene.globe.pick(rayScratch, scene, result);
98
+
99
+ if (result) {
100
+ result = camera.worldToCameraCoordinatesPoint(result, result);
101
+ }
102
+
103
+ return result;
104
+ } //地图缩放
105
+
106
+
107
+ zoom(scale) {
108
+ if (!this._viewer) return;
109
+ var scene = this._viewer.scene;
110
+ var camera = scene.camera;
111
+ var focus = this.getCameraFocus();
112
+ var orientation;
113
+
114
+ if (!focus) {
115
+ // Camera direction is not pointing at the globe, so use the ellipsoid horizon point as
116
+ // the focal point.
117
+ var ray = new Cesium.Ray(camera.worldToCameraCoordinatesPoint(scene.globe.ellipsoid.cartographicToCartesian(camera.positionCartographic)), camera.directionWC);
118
+ focus = Cesium.IntersectionTests.grazingAltitudeLocation(ray, scene.globe.ellipsoid);
119
+ orientation = {
120
+ heading: camera.heading,
121
+ pitch: camera.pitch,
122
+ roll: camera.roll
123
+ };
124
+ } else {
125
+ orientation = {
126
+ direction: camera.direction,
127
+ up: camera.up
128
+ };
129
+ }
130
+
131
+ var cartesian3Scratch = new Cesium.Cartesian3();
132
+ var direction = Cesium.Cartesian3.subtract(camera.position, focus, cartesian3Scratch);
133
+ var movementVector = Cesium.Cartesian3.multiplyByScalar(direction, scale, direction);
134
+ var endPosition = Cesium.Cartesian3.add(focus, movementVector, focus);
135
+ camera.flyTo({
136
+ destination: endPosition,
137
+ orientation: orientation,
138
+ duration: 0.5,
139
+ convert: false
140
+ });
141
+ }
142
+
143
+ }
144
+ ;// CONCATENATED MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
145
+ var gis_utils_namespaceObject = require("@kq_npm/client_common_vue/_utils/gis-utils");
146
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/fixedzoomout3d/FixedZoomout3d.vue?vue&type=script&setup=true&lang=js
147
+
148
+
149
+
150
+
151
+ // 获取组件传参
152
+
153
+ const __default__ = {
154
+ name: "Kq3dFixedZoomout3d"
155
+ };
156
+ /* harmony default export */ var FixedZoomout3dvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
157
+ props: {
158
+ // 按钮图标大小
159
+ iconSize: {
160
+ type: Number,
161
+ default: 16
162
+ },
163
+ // 按钮大小
164
+ buttonSize: {
165
+ type: String,
166
+ default: "32px"
167
+ }
168
+ },
169
+
170
+ setup(__props) {
171
+ const props = __props;
172
+ let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)({});
173
+ let viewModel = null;
174
+ let btn = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null);
175
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
176
+ gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
177
+ if (scenceView) {
178
+ language.value = scenceView._language;
179
+ viewModel = new FixedZoomout3dViewModel(scenceView._viewer);
180
+ }
181
+ });
182
+ }); // 按钮点击事件
183
+
184
+ function btnClick() {
185
+ btn.value.$el.blur();
186
+ viewModel && viewModel.zoom(0.5);
187
+ }
188
+
189
+ return (_ctx, _cache) => {
190
+ const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-icon");
191
+
192
+ const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-button");
193
+
194
+ return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createBlock)(_component_kq_button, {
195
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).zoomOut,
196
+ ref_key: "btn",
197
+ ref: btn,
198
+ onClick: btnClick,
199
+ style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeStyle)('width:' + __props.buttonSize)
200
+ }, {
201
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_icon, {
202
+ size: __props.iconSize
203
+ }, {
204
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(icons_vue_namespaceObject.Plus))]),
205
+ _: 1
206
+ /* STABLE */
207
+
208
+ }, 8
209
+ /* PROPS */
210
+ , ["size"])]),
211
+ _: 1
212
+ /* STABLE */
213
+
214
+ }, 8
215
+ /* PROPS */
216
+ , ["title", "style"]);
217
+ };
218
+ }
219
+
220
+ }));
221
+ ;// CONCATENATED MODULE: ./src/webgl/fixedzoomout3d/FixedZoomout3d.vue?vue&type=script&setup=true&lang=js
222
+
223
+ ;// CONCATENATED MODULE: ./src/webgl/fixedzoomout3d/FixedZoomout3d.vue
224
+
225
+
226
+
227
+ const __exports__ = FixedZoomout3dvue_type_script_setup_true_lang_js;
228
+
229
+ /* harmony default export */ var FixedZoomout3d = (__exports__);
230
+ ;// CONCATENATED MODULE: external "@kq_npm/client_common_vue/init.js"
231
+ var init_js_namespaceObject = require("@kq_npm/client_common_vue/init.js");
232
+ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_namespaceObject);
233
+ ;// CONCATENATED MODULE: ./src/webgl/fixedzoomout3d/index.js
234
+
235
+
236
+
237
+
238
+ FixedZoomout3d.install = (Vue, opts) => {
239
+ init_js_default()(Vue, opts);
240
+ Vue.component(FixedZoomout3d.name, FixedZoomout3d);
241
+ };
242
+
243
+
244
+ module.exports = __webpack_exports__;
245
+ /******/ })()
246
+ ;
package/index.js CHANGED
@@ -446,6 +446,7 @@ __webpack_require__.r(__webpack_exports__);
446
446
 
447
447
  // EXPORTS
448
448
  __webpack_require__.d(__webpack_exports__, {
449
+ "Kq3dAddData": function() { return /* reexport */ AddData; },
449
450
  "Kq3dAddDataViewModel": function() { return /* reexport */ AddDataViewModel; },
450
451
  "Kq3dAspectAnalysis": function() { return /* reexport */ AspectAnalysis; },
451
452
  "Kq3dAspectAnalysisViewModel": function() { return /* reexport */ AspectAnalysisViewModels; },
@@ -459,8 +460,10 @@ __webpack_require__.d(__webpack_exports__, {
459
460
  "Kq3dCompassViewModel": function() { return /* reexport */ CompassViewModel; },
460
461
  "Kq3dExcavateFillAnalysis": function() { return /* reexport */ ExcavateFillAnalysis; },
461
462
  "Kq3dExcavateFillAnalysisViewModel": function() { return /* reexport */ ExcavateFillAnalysisViewModel; },
462
- "Kq3dFixedZoom": function() { return /* reexport */ FixedZoom; },
463
- "Kq3dFixedZoomViewModel": function() { return /* reexport */ FixedZoomViewModel; },
463
+ "Kq3dFixedZoomin3d": function() { return /* reexport */ FixedZoomin3d; },
464
+ "Kq3dFixedZoomin3dViewModel": function() { return /* reexport */ FixedZoomin3dViewModel; },
465
+ "Kq3dFixedZoomout3d": function() { return /* reexport */ FixedZoomout3d; },
466
+ "Kq3dFixedZoomout3dViewModel": function() { return /* reexport */ FixedZoomout3dViewModel; },
464
467
  "Kq3dFlight": function() { return /* reexport */ Flight; },
465
468
  "Kq3dFlightViewModel": function() { return /* reexport */ FlightViewModel; },
466
469
  "Kq3dFloodAnalysis": function() { return /* reexport */ FloodAnalysis; },
@@ -495,8 +498,12 @@ __webpack_require__.d(__webpack_exports__, {
495
498
  "Kq3dSkylineAnalysisViewModel": function() { return /* reexport */ SkylineAnalysisViewModel; },
496
499
  "Kq3dSlopeAnalysis": function() { return /* reexport */ SlopeAnalysis; },
497
500
  "Kq3dSlopeAnalysisViewModel": function() { return /* reexport */ SlopeAnalysisViewModel; },
501
+ "Kq3dStatusBar": function() { return /* reexport */ StatusBar; },
502
+ "Kq3dStatusBarViewModel": function() { return /* reexport */ StatusBarViewModel; },
498
503
  "Kq3dTerrainOperation": function() { return /* reexport */ TerrainOperation; },
499
504
  "Kq3dTerrainOperationViewModel": function() { return /* reexport */ TerrainOperationViewModel; },
505
+ "Kq3dUnderground": function() { return /* reexport */ Underground; },
506
+ "Kq3dUndergroundViewModel": function() { return /* reexport */ UndergroundViewModel; },
500
507
  "Kq3dViewshedAnalysis": function() { return /* reexport */ ViewshedAnalysis; },
501
508
  "Kq3dViewshedAnalysisViewModel": function() { return /* reexport */ ViewshedAnalysisViewModel; },
502
509
  "Kq3dWeatherEffect": function() { return /* reexport */ WeatherEffect; },
@@ -504,9 +511,6 @@ __webpack_require__.d(__webpack_exports__, {
504
511
  "KqScenceView": function() { return /* reexport */ ScenceView; },
505
512
  "KqScenceViewViewModel": function() { return /* reexport */ ScenceViewViewModel; },
506
513
  "default": function() { return /* binding */ webgl; },
507
- "kq3dUnderground": function() { return /* reexport */ Underground; },
508
- "kq3dUndergroundViewModel": function() { return /* reexport */ UndergroundViewModel; },
509
- "kqAddData": function() { return /* reexport */ AddData; },
510
514
  "webglComponents": function() { return /* reexport */ webglComponents; }
511
515
  });
512
516
 
@@ -2439,7 +2443,8 @@ class ScenceViewViewModel extends (mitt_default()) {
2439
2443
  }
2440
2444
  }
2441
2445
 
2442
- this._viewer = new Cesium.Viewer(this._viewerId, defaultOptions); // this._viewer.scene.globe.depthTestAgainstTerrain = true;
2446
+ this._viewer = new Cesium.Viewer(this._viewerId, defaultOptions);
2447
+ this._viewer.statusBar.show = false; // this._viewer.scene.globe.depthTestAgainstTerrain = true;
2443
2448
 
2444
2449
  this.initManagerClass();
2445
2450
  global_event_default().setWebMap(this._viewerId, "cesium", this);
@@ -2882,10 +2887,10 @@ ScenceView.install = (Vue, opts) => {
2882
2887
 
2883
2888
  ;// CONCATENATED MODULE: external "@element-plus/icons-vue"
2884
2889
  var icons_vue_namespaceObject = require("@element-plus/icons-vue");
2885
- ;// CONCATENATED MODULE: ./src/webgl/fixedzoom/FixedZoomViewModel.js
2890
+ ;// CONCATENATED MODULE: ./src/webgl/fixedzoomout3d/FixedZoomout3dViewModel.js
2886
2891
 
2887
2892
  // 三维固定缩放逻辑
2888
- class FixedZoomViewModel {
2893
+ class FixedZoomout3dViewModel {
2889
2894
  //三维viewer对象
2890
2895
  constructor(viewer) {
2891
2896
  _defineProperty(this, "_viewer", null);
@@ -2951,24 +2956,18 @@ class FixedZoomViewModel {
2951
2956
  }
2952
2957
  ;// CONCATENATED MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
2953
2958
  var gis_utils_namespaceObject = require("@kq_npm/client_common_vue/_utils/gis-utils");
2954
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/fixedzoom/FixedZoom.vue?vue&type=script&setup=true&lang=js
2959
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/fixedzoomout3d/FixedZoomout3d.vue?vue&type=script&setup=true&lang=js
2955
2960
 
2956
2961
 
2957
2962
 
2958
2963
 
2959
2964
  // 获取组件传参
2960
2965
 
2961
- const FixedZoomvue_type_script_setup_true_lang_js_default_ = {
2962
- name: "Kq3dFixedZoom"
2966
+ const FixedZoomout3dvue_type_script_setup_true_lang_js_default_ = {
2967
+ name: "Kq3dFixedZoomout3d"
2963
2968
  };
2964
- /* harmony default export */ var FixedZoomvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(FixedZoomvue_type_script_setup_true_lang_js_default_, {
2969
+ /* harmony default export */ var FixedZoomout3dvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(FixedZoomout3dvue_type_script_setup_true_lang_js_default_, {
2965
2970
  props: {
2966
- mapTarget: String,
2967
- // 切换按钮是固定放大还是固定缩小,值:zoomIn 或 zoomOut
2968
- isZoomInOrOut: {
2969
- type: Boolean,
2970
- default: true
2971
- },
2972
2971
  // 按钮图标大小
2973
2972
  iconSize: {
2974
2973
  type: Number,
@@ -2990,14 +2989,14 @@ const FixedZoomvue_type_script_setup_true_lang_js_default_ = {
2990
2989
  gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
2991
2990
  if (scenceView) {
2992
2991
  language.value = scenceView._language;
2993
- viewModel = new FixedZoomViewModel(scenceView._viewer);
2992
+ viewModel = new FixedZoomout3dViewModel(scenceView._viewer);
2994
2993
  }
2995
2994
  });
2996
2995
  }); // 按钮点击事件
2997
2996
 
2998
2997
  function btnClick() {
2999
2998
  btn.value.$el.blur();
3000
- viewModel && viewModel.zoom(props.isZoomInOrOut ? 0.5 : 2);
2999
+ viewModel && viewModel.zoom(0.5);
3001
3000
  }
3002
3001
 
3003
3002
  return (_ctx, _cache) => {
@@ -3006,14 +3005,13 @@ const FixedZoomvue_type_script_setup_true_lang_js_default_ = {
3006
3005
  const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-button");
3007
3006
 
3008
3007
  return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createBlock)(_component_kq_button, {
3009
- title: __props.isZoomInOrOut ? (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).zoomIn : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).zoomOut,
3008
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).zoomOut,
3010
3009
  ref_key: "btn",
3011
3010
  ref: btn,
3012
3011
  onClick: btnClick,
3013
3012
  style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeStyle)('width:' + __props.buttonSize)
3014
3013
  }, {
3015
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [__props.isZoomInOrOut ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createBlock)(_component_kq_icon, {
3016
- key: 0,
3014
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_icon, {
3017
3015
  size: __props.iconSize
3018
3016
  }, {
3019
3017
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(icons_vue_namespaceObject.Plus))]),
@@ -3022,8 +3020,160 @@ const FixedZoomvue_type_script_setup_true_lang_js_default_ = {
3022
3020
 
3023
3021
  }, 8
3024
3022
  /* PROPS */
3025
- , ["size"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createCommentVNode)("v-if", true), !__props.isZoomInOrOut ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createBlock)(_component_kq_icon, {
3026
- key: 1,
3023
+ , ["size"])]),
3024
+ _: 1
3025
+ /* STABLE */
3026
+
3027
+ }, 8
3028
+ /* PROPS */
3029
+ , ["title", "style"]);
3030
+ };
3031
+ }
3032
+
3033
+ }));
3034
+ ;// CONCATENATED MODULE: ./src/webgl/fixedzoomout3d/FixedZoomout3d.vue?vue&type=script&setup=true&lang=js
3035
+
3036
+ ;// CONCATENATED MODULE: ./src/webgl/fixedzoomout3d/FixedZoomout3d.vue
3037
+
3038
+
3039
+
3040
+ const FixedZoomout3d_exports_ = FixedZoomout3dvue_type_script_setup_true_lang_js;
3041
+
3042
+ /* harmony default export */ var FixedZoomout3d = (FixedZoomout3d_exports_);
3043
+ ;// CONCATENATED MODULE: ./src/webgl/fixedzoomout3d/index.js
3044
+
3045
+
3046
+
3047
+
3048
+ FixedZoomout3d.install = (Vue, opts) => {
3049
+ init_js_default()(Vue, opts);
3050
+ Vue.component(FixedZoomout3d.name, FixedZoomout3d);
3051
+ };
3052
+
3053
+
3054
+ ;// CONCATENATED MODULE: ./src/webgl/fixedzoomin3d/FixedZoomin3dViewModel.js
3055
+
3056
+ // 三维固定缩放逻辑
3057
+ class FixedZoomin3dViewModel {
3058
+ //三维viewer对象
3059
+ constructor(viewer) {
3060
+ _defineProperty(this, "_viewer", null);
3061
+
3062
+ this._viewer = viewer;
3063
+ } //获取相机焦点
3064
+
3065
+
3066
+ getCameraFocus() {
3067
+ if (!this._viewer) return;
3068
+ var scene = this._viewer.scene;
3069
+ var camera = scene.camera;
3070
+ var rayScratch = new Cesium.Ray();
3071
+ rayScratch.origin = camera.positionWC;
3072
+ rayScratch.direction = camera.directionWC;
3073
+ var result = new Cesium.Cartesian3();
3074
+ result = scene.globe.pick(rayScratch, scene, result);
3075
+
3076
+ if (result) {
3077
+ result = camera.worldToCameraCoordinatesPoint(result, result);
3078
+ }
3079
+
3080
+ return result;
3081
+ } //地图缩放
3082
+
3083
+
3084
+ zoom(scale) {
3085
+ if (!this._viewer) return;
3086
+ var scene = this._viewer.scene;
3087
+ var camera = scene.camera;
3088
+ var focus = this.getCameraFocus();
3089
+ var orientation;
3090
+
3091
+ if (!focus) {
3092
+ // Camera direction is not pointing at the globe, so use the ellipsoid horizon point as
3093
+ // the focal point.
3094
+ var ray = new Cesium.Ray(camera.worldToCameraCoordinatesPoint(scene.globe.ellipsoid.cartographicToCartesian(camera.positionCartographic)), camera.directionWC);
3095
+ focus = Cesium.IntersectionTests.grazingAltitudeLocation(ray, scene.globe.ellipsoid);
3096
+ orientation = {
3097
+ heading: camera.heading,
3098
+ pitch: camera.pitch,
3099
+ roll: camera.roll
3100
+ };
3101
+ } else {
3102
+ orientation = {
3103
+ direction: camera.direction,
3104
+ up: camera.up
3105
+ };
3106
+ }
3107
+
3108
+ var cartesian3Scratch = new Cesium.Cartesian3();
3109
+ var direction = Cesium.Cartesian3.subtract(camera.position, focus, cartesian3Scratch);
3110
+ var movementVector = Cesium.Cartesian3.multiplyByScalar(direction, scale, direction);
3111
+ var endPosition = Cesium.Cartesian3.add(focus, movementVector, focus);
3112
+ camera.flyTo({
3113
+ destination: endPosition,
3114
+ orientation: orientation,
3115
+ duration: 0.5,
3116
+ convert: false
3117
+ });
3118
+ }
3119
+
3120
+ }
3121
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/fixedzoomin3d/FixedZoomin3d.vue?vue&type=script&setup=true&lang=js
3122
+
3123
+
3124
+
3125
+
3126
+ // 获取组件传参
3127
+
3128
+ const FixedZoomin3dvue_type_script_setup_true_lang_js_default_ = {
3129
+ name: "Kq3dFixedZoomin3d"
3130
+ };
3131
+ /* harmony default export */ var FixedZoomin3dvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(FixedZoomin3dvue_type_script_setup_true_lang_js_default_, {
3132
+ props: {
3133
+ // 按钮图标大小
3134
+ iconSize: {
3135
+ type: Number,
3136
+ default: 16
3137
+ },
3138
+ // 按钮大小
3139
+ buttonSize: {
3140
+ type: String,
3141
+ default: "32px"
3142
+ }
3143
+ },
3144
+
3145
+ setup(__props) {
3146
+ const props = __props;
3147
+ let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)({});
3148
+ let viewModel = null;
3149
+ let btn = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null);
3150
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
3151
+ gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
3152
+ if (scenceView) {
3153
+ language.value = scenceView._language;
3154
+ viewModel = new FixedZoomin3dViewModel(scenceView._viewer);
3155
+ }
3156
+ });
3157
+ }); // 按钮点击事件
3158
+
3159
+ function btnClick() {
3160
+ btn.value.$el.blur();
3161
+ viewModel && viewModel.zoom(2);
3162
+ }
3163
+
3164
+ return (_ctx, _cache) => {
3165
+ const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-icon");
3166
+
3167
+ const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-button");
3168
+
3169
+ return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createBlock)(_component_kq_button, {
3170
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).zoomIn,
3171
+ ref_key: "btn",
3172
+ ref: btn,
3173
+ onClick: btnClick,
3174
+ style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeStyle)('width:' + __props.buttonSize)
3175
+ }, {
3176
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_icon, {
3027
3177
  size: __props.iconSize
3028
3178
  }, {
3029
3179
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(icons_vue_namespaceObject.Minus))]),
@@ -3032,7 +3182,7 @@ const FixedZoomvue_type_script_setup_true_lang_js_default_ = {
3032
3182
 
3033
3183
  }, 8
3034
3184
  /* PROPS */
3035
- , ["size"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createCommentVNode)("v-if", true)]),
3185
+ , ["size"])]),
3036
3186
  _: 1
3037
3187
  /* STABLE */
3038
3188
 
@@ -3043,23 +3193,23 @@ const FixedZoomvue_type_script_setup_true_lang_js_default_ = {
3043
3193
  }
3044
3194
 
3045
3195
  }));
3046
- ;// CONCATENATED MODULE: ./src/webgl/fixedzoom/FixedZoom.vue?vue&type=script&setup=true&lang=js
3196
+ ;// CONCATENATED MODULE: ./src/webgl/fixedzoomin3d/FixedZoomin3d.vue?vue&type=script&setup=true&lang=js
3047
3197
 
3048
- ;// CONCATENATED MODULE: ./src/webgl/fixedzoom/FixedZoom.vue
3198
+ ;// CONCATENATED MODULE: ./src/webgl/fixedzoomin3d/FixedZoomin3d.vue
3049
3199
 
3050
3200
 
3051
3201
 
3052
- const FixedZoom_exports_ = FixedZoomvue_type_script_setup_true_lang_js;
3202
+ const FixedZoomin3d_exports_ = FixedZoomin3dvue_type_script_setup_true_lang_js;
3053
3203
 
3054
- /* harmony default export */ var FixedZoom = (FixedZoom_exports_);
3055
- ;// CONCATENATED MODULE: ./src/webgl/fixedzoom/index.js
3204
+ /* harmony default export */ var FixedZoomin3d = (FixedZoomin3d_exports_);
3205
+ ;// CONCATENATED MODULE: ./src/webgl/fixedzoomin3d/index.js
3056
3206
 
3057
3207
 
3058
3208
 
3059
3209
 
3060
- FixedZoom.install = (Vue, opts) => {
3210
+ FixedZoomin3d.install = (Vue, opts) => {
3061
3211
  init_js_default()(Vue, opts);
3062
- Vue.component(FixedZoom.name, FixedZoom);
3212
+ Vue.component(FixedZoomin3d.name, FixedZoomin3d);
3063
3213
  };
3064
3214
 
3065
3215
 
@@ -3092,7 +3242,6 @@ const ResetViewvue_type_script_setup_true_lang_js_default_ = {
3092
3242
  };
3093
3243
  /* harmony default export */ var ResetViewvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(ResetViewvue_type_script_setup_true_lang_js_default_, {
3094
3244
  props: {
3095
- mapTarget: String,
3096
3245
  // 按钮图标大小
3097
3246
  iconSize: {
3098
3247
  type: Number,
@@ -3250,7 +3399,6 @@ const Compassvue_type_script_setup_true_lang_js_default_ = {
3250
3399
  };
3251
3400
  /* harmony default export */ var Compassvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(Compassvue_type_script_setup_true_lang_js_default_, {
3252
3401
  props: {
3253
- mapTarget: String,
3254
3402
  // 按钮图标大小
3255
3403
  iconSize: {
3256
3404
  type: Number,
@@ -21753,6 +21901,108 @@ Underground.install = (Vue, opts) => {
21753
21901
  };
21754
21902
 
21755
21903
 
21904
+ ;// CONCATENATED MODULE: ./src/webgl/statusbar/StatusBarViewModel.js
21905
+ // 地图状态栏逻辑类
21906
+ class StatusBarViewModel {
21907
+ constructor(viewer, options) {
21908
+ viewer.statusBar.show = true;
21909
+ viewer.statusBar.readyPromise.then(() => {
21910
+ if (options.hideResolution) {
21911
+ viewer.statusBar.hideResolution();
21912
+ }
21913
+
21914
+ if (options.hideScale) {
21915
+ viewer.statusBar.hideScale();
21916
+ }
21917
+
21918
+ if (options.hideLonLat) {
21919
+ viewer.statusBar.hideLonLat();
21920
+ }
21921
+
21922
+ if (options.hideEyeAlt) {
21923
+ viewer.statusBar.hideEyeAlt();
21924
+ }
21925
+
21926
+ if (options.hideCopyright) {
21927
+ viewer.statusBar.hideCopyright();
21928
+ }
21929
+
21930
+ if (options.copyrightText) {
21931
+ viewer.statusBar.setCopyrightText(options.copyrightText);
21932
+ }
21933
+ });
21934
+ }
21935
+
21936
+ }
21937
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/statusbar/StatusBar.vue?vue&type=script&setup=true&lang=js
21938
+
21939
+
21940
+
21941
+ /**
21942
+ * 支持传入属性:
21943
+ * hideResolution - 隐藏分辨率
21944
+ * hideScale - 隐藏比例尺
21945
+ * hideLonLat - 隐藏经纬度
21946
+ * hideEyeAlt - 隐藏视点高
21947
+ * hideCopyright - 隐藏版权信息
21948
+ * copyrightText - 版权信息文字
21949
+ */
21950
+
21951
+ const StatusBarvue_type_script_setup_true_lang_js_default_ = {
21952
+ name: "Kq3dStatusBar"
21953
+ };
21954
+ /* harmony default export */ var StatusBarvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(StatusBarvue_type_script_setup_true_lang_js_default_, {
21955
+ props: {
21956
+ // 隐藏分辨率
21957
+ hideResolution: Boolean,
21958
+ // 隐藏比例尺
21959
+ hideScale: Boolean,
21960
+ // 隐藏经纬度
21961
+ hideLonLat: Boolean,
21962
+ // 隐藏视点高
21963
+ hideEyeAlt: Boolean,
21964
+ // 隐藏版权信息
21965
+ hideCopyright: Boolean,
21966
+ // 版权信息文字
21967
+ copyrightText: String
21968
+ },
21969
+
21970
+ setup(__props) {
21971
+ const props = __props;
21972
+ let viewModel = null;
21973
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
21974
+ gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
21975
+ if (scenceView) {
21976
+ viewModel = new StatusBarViewModel(scenceView._viewer, props);
21977
+ }
21978
+ });
21979
+ });
21980
+ return (_ctx, _cache) => {
21981
+ return null;
21982
+ };
21983
+ }
21984
+
21985
+ }));
21986
+ ;// CONCATENATED MODULE: ./src/webgl/statusbar/StatusBar.vue?vue&type=script&setup=true&lang=js
21987
+
21988
+ ;// CONCATENATED MODULE: ./src/webgl/statusbar/StatusBar.vue
21989
+
21990
+
21991
+
21992
+ const StatusBar_exports_ = StatusBarvue_type_script_setup_true_lang_js;
21993
+
21994
+ /* harmony default export */ var StatusBar = (StatusBar_exports_);
21995
+ ;// CONCATENATED MODULE: ./src/webgl/statusbar/index.js
21996
+
21997
+
21998
+
21999
+
22000
+ StatusBar.install = (Vue, opts) => {
22001
+ init_js_default()(Vue, opts);
22002
+ Vue.component(StatusBar.name, StatusBar);
22003
+ };
22004
+
22005
+
21756
22006
  ;// CONCATENATED MODULE: ./src/webgl/components.js
21757
22007
  /**
21758
22008
  * Author: 朱鹏超
@@ -21768,6 +22018,8 @@ Underground.install = (Vue, opts) => {
21768
22018
 
21769
22019
 
21770
22020
 
22021
+
22022
+
21771
22023
  // 在线地形
21772
22024
 
21773
22025
 
@@ -21819,6 +22071,8 @@ Underground.install = (Vue, opts) => {
21819
22071
 
21820
22072
 
21821
22073
 
22074
+
22075
+
21822
22076
 
21823
22077
 
21824
22078
 
@@ -21842,17 +22096,19 @@ const webglComponents = {
21842
22096
  Kq3dIsolineAnalysis: IsolineAnalysis,
21843
22097
  Kq3dBoxClip: BoxClip,
21844
22098
  Kq3dPlaneClip: PlaneClip,
21845
- kqAddData: AddData,
22099
+ Kq3dAddData: AddData,
21846
22100
  Kq3dParticleEffect: ParticleEffect,
21847
22101
  Kq3dWeatherEffect: WeatherEffect,
21848
22102
  Kq3dCompareMap: CompareMap,
21849
22103
  Kq3dHawkeye: Hawkeye,
21850
22104
  Kq3dRoller: Roller,
21851
22105
  Kq3dScreenShot: Screenshot,
21852
- Kq3dFixedZoom: FixedZoom,
22106
+ Kq3dFixedZoomout3d: FixedZoomout3d,
22107
+ Kq3dFixedZoomin3d: FixedZoomin3d,
21853
22108
  Kq3dResetView: ResetView,
21854
22109
  Kq3dCompass: Compass,
21855
- kq3dUnderground: Underground
22110
+ Kq3dUnderground: Underground,
22111
+ Kq3dStatusBar: StatusBar
21856
22112
  }; // 全局引入
21857
22113
 
21858
22114
  const install = function (Vue, opts = {}) {
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"1.0.4-beta","homepage":"","keywords":["KQGIS","webGL","Vue"],"browserslist":["> 1%","last 2 versions","not dead","not ie 11"],"author":"KQWEB GROUP","license":"Apache-2.0","dependencies":{"colorcolor":"^1.1.1","echarts":"^5.3.3","js-cookie":"^3.0.1","omit.js":"^2.0.2","save":"^2.5.0","tinycolor2":"^1.4.2","vue-i18n":"^9.2.0-beta.36","xlsx":"^0.18.5","css-vars-ponyfill":"^2.4.8","xe-utils":"^3.5.4"}}
1
+ {"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"1.0.5-beta","homepage":"","keywords":["KQGIS","webGL","Vue"],"browserslist":["> 1%","last 2 versions","not dead","not ie 11"],"author":"KQWEB GROUP","license":"Apache-2.0","dependencies":{"colorcolor":"^1.1.1","echarts":"^5.3.3","js-cookie":"^3.0.1","omit.js":"^2.0.2","save":"^2.5.0","tinycolor2":"^1.4.2","vue-i18n":"^9.2.0-beta.36","xlsx":"^0.18.5","css-vars-ponyfill":"^2.4.8","xe-utils":"^3.5.4"}}
@@ -105,7 +105,6 @@ const __default__ = {
105
105
  };
106
106
  /* harmony default export */ var ResetViewvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
107
107
  props: {
108
- mapTarget: String,
109
108
  // 按钮图标大小
110
109
  iconSize: {
111
110
  type: Number,
@@ -1984,7 +1984,8 @@ class ScenceViewViewModel extends (mitt_default()) {
1984
1984
  }
1985
1985
  }
1986
1986
 
1987
- this._viewer = new Cesium.Viewer(this._viewerId, defaultOptions); // this._viewer.scene.globe.depthTestAgainstTerrain = true;
1987
+ this._viewer = new Cesium.Viewer(this._viewerId, defaultOptions);
1988
+ this._viewer.statusBar.show = false; // this._viewer.scene.globe.depthTestAgainstTerrain = true;
1988
1989
 
1989
1990
  this.initManagerClass();
1990
1991
  global_event_default().setWebMap(this._viewerId, "cesium", this);
@@ -0,0 +1,169 @@
1
+ /******/ (function() { // webpackBootstrap
2
+ /******/ "use strict";
3
+ /******/ // The require scope
4
+ /******/ var __webpack_require__ = {};
5
+ /******/
6
+ /************************************************************************/
7
+ /******/ /* webpack/runtime/compat get default export */
8
+ /******/ !function() {
9
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
10
+ /******/ __webpack_require__.n = function(module) {
11
+ /******/ var getter = module && module.__esModule ?
12
+ /******/ function() { return module['default']; } :
13
+ /******/ function() { return module; };
14
+ /******/ __webpack_require__.d(getter, { a: getter });
15
+ /******/ return getter;
16
+ /******/ };
17
+ /******/ }();
18
+ /******/
19
+ /******/ /* webpack/runtime/define property getters */
20
+ /******/ !function() {
21
+ /******/ // define getter functions for harmony exports
22
+ /******/ __webpack_require__.d = function(exports, definition) {
23
+ /******/ for(var key in definition) {
24
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
25
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
26
+ /******/ }
27
+ /******/ }
28
+ /******/ };
29
+ /******/ }();
30
+ /******/
31
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
32
+ /******/ !function() {
33
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
34
+ /******/ }();
35
+ /******/
36
+ /******/ /* webpack/runtime/make namespace object */
37
+ /******/ !function() {
38
+ /******/ // define __esModule on exports
39
+ /******/ __webpack_require__.r = function(exports) {
40
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
41
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
42
+ /******/ }
43
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
44
+ /******/ };
45
+ /******/ }();
46
+ /******/
47
+ /************************************************************************/
48
+ var __webpack_exports__ = {};
49
+ // ESM COMPAT FLAG
50
+ __webpack_require__.r(__webpack_exports__);
51
+
52
+ // EXPORTS
53
+ __webpack_require__.d(__webpack_exports__, {
54
+ "StatusBarViewModel": function() { return /* reexport */ StatusBarViewModel; },
55
+ "default": function() { return /* reexport */ StatusBar; }
56
+ });
57
+
58
+ ;// CONCATENATED MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
59
+ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject = require("vue");
60
+ ;// CONCATENATED MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
61
+ var gis_utils_namespaceObject = require("@kq_npm/client_common_vue/_utils/gis-utils");
62
+ ;// CONCATENATED MODULE: ./src/webgl/statusbar/StatusBarViewModel.js
63
+ // 地图状态栏逻辑类
64
+ class StatusBarViewModel {
65
+ constructor(viewer, options) {
66
+ viewer.statusBar.show = true;
67
+ viewer.statusBar.readyPromise.then(() => {
68
+ if (options.hideResolution) {
69
+ viewer.statusBar.hideResolution();
70
+ }
71
+
72
+ if (options.hideScale) {
73
+ viewer.statusBar.hideScale();
74
+ }
75
+
76
+ if (options.hideLonLat) {
77
+ viewer.statusBar.hideLonLat();
78
+ }
79
+
80
+ if (options.hideEyeAlt) {
81
+ viewer.statusBar.hideEyeAlt();
82
+ }
83
+
84
+ if (options.hideCopyright) {
85
+ viewer.statusBar.hideCopyright();
86
+ }
87
+
88
+ if (options.copyrightText) {
89
+ viewer.statusBar.setCopyrightText(options.copyrightText);
90
+ }
91
+ });
92
+ }
93
+
94
+ }
95
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/statusbar/StatusBar.vue?vue&type=script&setup=true&lang=js
96
+
97
+
98
+
99
+ /**
100
+ * 支持传入属性:
101
+ * hideResolution - 隐藏分辨率
102
+ * hideScale - 隐藏比例尺
103
+ * hideLonLat - 隐藏经纬度
104
+ * hideEyeAlt - 隐藏视点高
105
+ * hideCopyright - 隐藏版权信息
106
+ * copyrightText - 版权信息文字
107
+ */
108
+
109
+ const __default__ = {
110
+ name: "Kq3dStatusBar"
111
+ };
112
+ /* harmony default export */ var StatusBarvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
113
+ props: {
114
+ // 隐藏分辨率
115
+ hideResolution: Boolean,
116
+ // 隐藏比例尺
117
+ hideScale: Boolean,
118
+ // 隐藏经纬度
119
+ hideLonLat: Boolean,
120
+ // 隐藏视点高
121
+ hideEyeAlt: Boolean,
122
+ // 隐藏版权信息
123
+ hideCopyright: Boolean,
124
+ // 版权信息文字
125
+ copyrightText: String
126
+ },
127
+
128
+ setup(__props) {
129
+ const props = __props;
130
+ let viewModel = null;
131
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
132
+ gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
133
+ if (scenceView) {
134
+ viewModel = new StatusBarViewModel(scenceView._viewer, props);
135
+ }
136
+ });
137
+ });
138
+ return (_ctx, _cache) => {
139
+ return null;
140
+ };
141
+ }
142
+
143
+ }));
144
+ ;// CONCATENATED MODULE: ./src/webgl/statusbar/StatusBar.vue?vue&type=script&setup=true&lang=js
145
+
146
+ ;// CONCATENATED MODULE: ./src/webgl/statusbar/StatusBar.vue
147
+
148
+
149
+
150
+ const __exports__ = StatusBarvue_type_script_setup_true_lang_js;
151
+
152
+ /* harmony default export */ var StatusBar = (__exports__);
153
+ ;// CONCATENATED MODULE: external "@kq_npm/client_common_vue/init.js"
154
+ var init_js_namespaceObject = require("@kq_npm/client_common_vue/init.js");
155
+ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_namespaceObject);
156
+ ;// CONCATENATED MODULE: ./src/webgl/statusbar/index.js
157
+
158
+
159
+
160
+
161
+ StatusBar.install = (Vue, opts) => {
162
+ init_js_default()(Vue, opts);
163
+ Vue.component(StatusBar.name, StatusBar);
164
+ };
165
+
166
+
167
+ module.exports = __webpack_exports__;
168
+ /******/ })()
169
+ ;