@kq_npm/client3d_webgl_vue 4.5.2 → 4.5.4-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 +355 -538
- package/adddata/style/adddata.css +1 -1
- package/aspectanalysis/index.js +172 -239
- package/baseterraingallery/index.js +124 -145
- package/boxclip/index.js +300 -481
- package/clientPrint/index.js +335 -898
- package/clientPrint/style/clientPrint.css +1 -1
- package/comparemap/index.js +226 -246
- package/compass/index.js +96 -84
- package/excavatefillanalysis/index.js +193 -263
- package/fixedzoomin/index.js +91 -76
- package/fixedzoomout/index.js +91 -76
- package/flight/index.js +311 -415
- package/flight/style/flight.css +1 -1
- package/floodanalysis/index.js +255 -393
- package/geologicalbodyanalysis/index.js +215 -298
- package/gpuspatialquery/index.js +260 -402
- package/hawkeye/index.js +141 -103
- package/headertemp/index.js +25 -34
- package/heatmap3d/index.js +451 -763
- package/heatmap3d/style/heatmap3d.css +1 -1
- package/index.js +20826 -17774
- package/isolineanalysis/index.js +566 -1243
- package/light/index.js +353 -488
- package/limitheightanalysis/index.js +251 -312
- package/measure/index.js +350 -504
- package/modelFlat/index.js +214 -234
- package/modelexcavate/index.js +206 -262
- package/modelfilter/index.js +229 -308
- package/modelprofileanalysis/index.js +356 -465
- package/modelselect/index.js +192 -184
- package/package.json +1 -1
- package/particleeffect/index.js +259 -430
- package/planeclip/index.js +249 -339
- package/resetview/index.js +89 -69
- package/roller/index.js +307 -363
- package/scaneffect/index.js +285 -582
- package/sceneadvancedtoimage/index.js +1055 -0
- package/sceneadvancedtoimage/style/index.js +3 -0
- package/sceneadvancedtoimage/style/sceneadvancedtoimage.css +1 -0
- package/sceneapp/index.js +11149 -0
- package/sceneset/index.js +393 -885
- package/scenetohdimage/index.js +214 -346
- package/scenetohdimage/style/scenetohdimage.css +1 -1
- package/sceneview/index.js +22780 -19540
- package/sceneview/style/sceneview.css +1 -1
- package/screenshot/index.js +275 -312
- package/shadowanalysis/index.js +269 -448
- package/sightlineanalysis/index.js +231 -312
- package/sightlineanalysis/style/divpoint.css +1 -1
- package/skylineanalysis/index.js +213 -351
- package/slopeanalysis/index.js +282 -444
- package/slopeaspectanalysis/index.js +315 -534
- package/statusbar/index.js +194 -164
- package/style.css +1 -1
- package/terrainoperation/index.js +230 -280
- package/terrainprofileanalysis/index.js +174 -182
- package/underground/index.js +98 -82
- package/videofusion/index.js +319 -532
- package/videoproject/index.js +325 -534
- package/viewshedanalysis/index.js +178 -275
- package/weathereffect/index.js +199 -343
- package/wireframesketch/index.js +146 -150
package/fixedzoomin/index.js
CHANGED
|
@@ -7,29 +7,31 @@
|
|
|
7
7
|
var a = typeof exports === 'object' ? factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/init.js")) : factory(root["Vue"], root["@kq_npm/client_common_vue/_utils/gis-utils"], root["@kq_npm/client_common_vue/init.js"]);
|
|
8
8
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
9
|
}
|
|
10
|
-
})(this, function(
|
|
10
|
+
})(this, function(__WEBPACK_EXTERNAL_MODULE__154__, __WEBPACK_EXTERNAL_MODULE__64__, __WEBPACK_EXTERNAL_MODULE__455__) {
|
|
11
11
|
return /******/ (function() { // webpackBootstrap
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
-
/***/
|
|
15
|
+
/***/ 5592:
|
|
16
16
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17
17
|
|
|
18
18
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19
|
-
/* harmony export */
|
|
19
|
+
/* harmony export */ A: function() { return /* binding */ FixedZoomin3dViewModel; }
|
|
20
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__(
|
|
21
|
+
/* harmony import */ var _Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6913);
|
|
22
22
|
|
|
23
|
+
/*
|
|
24
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
25
|
+
* All rights reserved.
|
|
26
|
+
*/
|
|
23
27
|
// 三维固定缩放逻辑
|
|
24
28
|
class FixedZoomin3dViewModel {
|
|
25
29
|
//三维viewer对象
|
|
26
30
|
constructor(viewer) {
|
|
27
|
-
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .
|
|
28
|
-
|
|
31
|
+
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(this, "_viewer", null);
|
|
29
32
|
this._viewer = viewer;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
}
|
|
34
|
+
//获取相机焦点
|
|
33
35
|
getCameraFocus() {
|
|
34
36
|
if (!this._viewer) return;
|
|
35
37
|
var scene = this._viewer.scene;
|
|
@@ -39,22 +41,18 @@ class FixedZoomin3dViewModel {
|
|
|
39
41
|
rayScratch.direction = camera.directionWC;
|
|
40
42
|
var result = new Cesium.Cartesian3();
|
|
41
43
|
result = scene.globe.pick(rayScratch, scene, result);
|
|
42
|
-
|
|
43
44
|
if (result) {
|
|
44
45
|
result = camera.worldToCameraCoordinatesPoint(result, result);
|
|
45
46
|
}
|
|
46
|
-
|
|
47
47
|
return result;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
}
|
|
49
|
+
//地图缩放
|
|
51
50
|
zoom(scale) {
|
|
52
51
|
if (!this._viewer) return;
|
|
53
52
|
var scene = this._viewer.scene;
|
|
54
53
|
var camera = scene.camera;
|
|
55
54
|
var focus = this.getCameraFocus();
|
|
56
55
|
var orientation;
|
|
57
|
-
|
|
58
56
|
if (!focus) {
|
|
59
57
|
// Camera direction is not pointing at the globe, so use the ellipsoid horizon point as
|
|
60
58
|
// the focal point.
|
|
@@ -71,7 +69,6 @@ class FixedZoomin3dViewModel {
|
|
|
71
69
|
up: camera.up
|
|
72
70
|
};
|
|
73
71
|
}
|
|
74
|
-
|
|
75
72
|
var cartesian3Scratch = new Cesium.Cartesian3();
|
|
76
73
|
var direction = Cesium.Cartesian3.subtract(camera.position, focus, cartesian3Scratch);
|
|
77
74
|
var movementVector = Cesium.Cartesian3.multiplyByScalar(direction, scale, direction);
|
|
@@ -83,67 +80,98 @@ class FixedZoomin3dViewModel {
|
|
|
83
80
|
convert: false
|
|
84
81
|
});
|
|
85
82
|
}
|
|
86
|
-
|
|
87
83
|
}
|
|
88
84
|
|
|
89
85
|
/***/ }),
|
|
90
86
|
|
|
91
|
-
/***/
|
|
87
|
+
/***/ 9371:
|
|
92
88
|
/***/ (function(module) {
|
|
93
89
|
|
|
94
90
|
module.exports = require("@element-plus/icons-vue");
|
|
95
91
|
|
|
96
92
|
/***/ }),
|
|
97
93
|
|
|
98
|
-
/***/
|
|
94
|
+
/***/ 3579:
|
|
99
95
|
/***/ (function(module) {
|
|
100
96
|
|
|
101
97
|
module.exports = require("vue-i18n/dist/vue-i18n.cjs.js");
|
|
102
98
|
|
|
103
99
|
/***/ }),
|
|
104
100
|
|
|
105
|
-
/***/
|
|
101
|
+
/***/ 64:
|
|
106
102
|
/***/ (function(module) {
|
|
107
103
|
|
|
108
|
-
module.exports =
|
|
104
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__64__;
|
|
109
105
|
|
|
110
106
|
/***/ }),
|
|
111
107
|
|
|
112
|
-
/***/
|
|
108
|
+
/***/ 455:
|
|
113
109
|
/***/ (function(module) {
|
|
114
110
|
|
|
115
|
-
module.exports =
|
|
111
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__455__;
|
|
116
112
|
|
|
117
113
|
/***/ }),
|
|
118
114
|
|
|
119
|
-
/***/
|
|
115
|
+
/***/ 154:
|
|
120
116
|
/***/ (function(module) {
|
|
121
117
|
|
|
122
|
-
module.exports =
|
|
118
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__154__;
|
|
123
119
|
|
|
124
120
|
/***/ }),
|
|
125
121
|
|
|
126
|
-
/***/
|
|
122
|
+
/***/ 6913:
|
|
127
123
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
128
124
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
function
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
125
|
+
|
|
126
|
+
// EXPORTS
|
|
127
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
128
|
+
A: function() { return /* binding */ _defineProperty; }
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
132
|
+
function _typeof(o) {
|
|
133
|
+
"@babel/helpers - typeof";
|
|
134
|
+
|
|
135
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
136
|
+
return typeof o;
|
|
137
|
+
} : function (o) {
|
|
138
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
139
|
+
}, _typeof(o);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
143
|
+
|
|
144
|
+
function toPrimitive(t, r) {
|
|
145
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
146
|
+
var e = t[Symbol.toPrimitive];
|
|
147
|
+
if (void 0 !== e) {
|
|
148
|
+
var i = e.call(t, r || "default");
|
|
149
|
+
if ("object" != _typeof(i)) return i;
|
|
150
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
142
151
|
}
|
|
152
|
+
return ("string" === r ? String : Number)(t);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
156
|
+
|
|
143
157
|
|
|
144
|
-
|
|
158
|
+
function toPropertyKey(t) {
|
|
159
|
+
var i = toPrimitive(t, "string");
|
|
160
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
145
161
|
}
|
|
146
162
|
|
|
163
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
164
|
+
|
|
165
|
+
function _defineProperty(e, r, t) {
|
|
166
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
167
|
+
value: t,
|
|
168
|
+
enumerable: !0,
|
|
169
|
+
configurable: !0,
|
|
170
|
+
writable: !0
|
|
171
|
+
}) : e[r] = t, e;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
|
|
147
175
|
/***/ })
|
|
148
176
|
|
|
149
177
|
/******/ });
|
|
@@ -215,39 +243,38 @@ function _defineProperty(obj, key, value) {
|
|
|
215
243
|
/******/
|
|
216
244
|
/************************************************************************/
|
|
217
245
|
var __webpack_exports__ = {};
|
|
218
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
219
|
-
!function() {
|
|
220
246
|
// ESM COMPAT FLAG
|
|
221
247
|
__webpack_require__.r(__webpack_exports__);
|
|
222
248
|
|
|
223
249
|
// EXPORTS
|
|
224
250
|
__webpack_require__.d(__webpack_exports__, {
|
|
225
|
-
|
|
251
|
+
FixedZoominViewModel: function() { return /* reexport */ FixedZoominViewModel/* default */.A; },
|
|
226
252
|
"default": function() { return /* reexport */ FixedZoomin; }
|
|
227
253
|
});
|
|
228
254
|
|
|
229
255
|
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
230
|
-
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(
|
|
256
|
+
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(154);
|
|
231
257
|
// EXTERNAL MODULE: external "@element-plus/icons-vue"
|
|
232
|
-
var icons_vue_ = __webpack_require__(
|
|
258
|
+
var icons_vue_ = __webpack_require__(9371);
|
|
233
259
|
// EXTERNAL MODULE: ./src/webgl/fixedzoomin/FixedZoominViewModel.js
|
|
234
|
-
var FixedZoominViewModel = __webpack_require__(
|
|
260
|
+
var FixedZoominViewModel = __webpack_require__(5592);
|
|
235
261
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
236
|
-
var gis_utils_ = __webpack_require__(
|
|
262
|
+
var gis_utils_ = __webpack_require__(64);
|
|
237
263
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
238
|
-
var vue_i18n_cjs_js_ = __webpack_require__(
|
|
264
|
+
var vue_i18n_cjs_js_ = __webpack_require__(3579);
|
|
239
265
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/fixedzoomin/FixedZoomin.vue?vue&type=script&setup=true&lang=js
|
|
240
266
|
|
|
241
267
|
|
|
242
268
|
|
|
243
269
|
|
|
244
270
|
|
|
245
|
-
|
|
271
|
+
|
|
272
|
+
// 获取组件传参
|
|
246
273
|
|
|
247
274
|
const __default__ = {
|
|
248
275
|
name: "Kq3dFixedZoomin"
|
|
249
276
|
};
|
|
250
|
-
/* harmony default export */ var FixedZoominvue_type_script_setup_true_lang_js = (
|
|
277
|
+
/* harmony default export */ var FixedZoominvue_type_script_setup_true_lang_js = (/*@__PURE__*/Object.assign(__default__, {
|
|
251
278
|
props: {
|
|
252
279
|
// 指定组件绑定的scence对象的div的id
|
|
253
280
|
mapTarget: String,
|
|
@@ -261,13 +288,12 @@ const __default__ = {
|
|
|
261
288
|
default: false
|
|
262
289
|
}
|
|
263
290
|
},
|
|
264
|
-
|
|
265
291
|
setup(__props) {
|
|
266
292
|
const props = __props;
|
|
267
293
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
268
294
|
let viewModel = null;
|
|
269
|
-
let btn = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
270
|
-
|
|
295
|
+
let btn = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
296
|
+
// 国际化
|
|
271
297
|
let {
|
|
272
298
|
locale,
|
|
273
299
|
messages
|
|
@@ -278,21 +304,18 @@ const __default__ = {
|
|
|
278
304
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
279
305
|
gis_utils_.utils.getWebMap(props.mapTarget, scenceView => {
|
|
280
306
|
if (scenceView) {
|
|
281
|
-
viewModel = new FixedZoominViewModel/* default */.
|
|
307
|
+
viewModel = new FixedZoominViewModel/* default */.A(scenceView._viewer);
|
|
282
308
|
}
|
|
283
309
|
});
|
|
284
|
-
});
|
|
285
|
-
|
|
310
|
+
});
|
|
311
|
+
// 按钮点击事件
|
|
286
312
|
function btnClick() {
|
|
287
313
|
btn.value.$el.blur();
|
|
288
314
|
viewModel && viewModel.zoom(2);
|
|
289
315
|
}
|
|
290
|
-
|
|
291
316
|
return (_ctx, _cache) => {
|
|
292
317
|
const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-icon");
|
|
293
|
-
|
|
294
318
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
295
|
-
|
|
296
319
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_button, {
|
|
297
320
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).zoomOut,
|
|
298
321
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)([{
|
|
@@ -307,21 +330,12 @@ const __default__ = {
|
|
|
307
330
|
size: __props.size / 2
|
|
308
331
|
}, {
|
|
309
332
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(icons_vue_.Minus))]),
|
|
310
|
-
_: 1
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
/* PROPS */
|
|
315
|
-
, ["size"])]),
|
|
316
|
-
_: 1
|
|
317
|
-
/* STABLE */
|
|
318
|
-
|
|
319
|
-
}, 8
|
|
320
|
-
/* PROPS */
|
|
321
|
-
, ["title", "class", "style"]);
|
|
333
|
+
_: 1 /* STABLE */
|
|
334
|
+
}, 8 /* PROPS */, ["size"])]),
|
|
335
|
+
_: 1 /* STABLE */
|
|
336
|
+
}, 8 /* PROPS */, ["title", "class", "style"]);
|
|
322
337
|
};
|
|
323
338
|
}
|
|
324
|
-
|
|
325
339
|
}));
|
|
326
340
|
;// CONCATENATED MODULE: ./src/webgl/fixedzoomin/FixedZoomin.vue?vue&type=script&setup=true&lang=js
|
|
327
341
|
|
|
@@ -333,10 +347,13 @@ const __exports__ = FixedZoominvue_type_script_setup_true_lang_js;
|
|
|
333
347
|
|
|
334
348
|
/* harmony default export */ var FixedZoomin = (__exports__);
|
|
335
349
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
336
|
-
var init_js_ = __webpack_require__(
|
|
350
|
+
var init_js_ = __webpack_require__(455);
|
|
337
351
|
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
338
352
|
;// CONCATENATED MODULE: ./src/webgl/fixedzoomin/index.js
|
|
339
|
-
|
|
353
|
+
/*
|
|
354
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
355
|
+
* All rights reserved.
|
|
356
|
+
*/
|
|
340
357
|
|
|
341
358
|
|
|
342
359
|
|
|
@@ -345,8 +362,6 @@ FixedZoomin.install = (Vue, opts) => {
|
|
|
345
362
|
Vue.component(FixedZoomin.name, FixedZoomin);
|
|
346
363
|
};
|
|
347
364
|
|
|
348
|
-
|
|
349
|
-
}();
|
|
350
365
|
/******/ return __webpack_exports__;
|
|
351
366
|
/******/ })()
|
|
352
367
|
;
|
package/fixedzoomout/index.js
CHANGED
|
@@ -7,29 +7,31 @@
|
|
|
7
7
|
var a = typeof exports === 'object' ? factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/init.js")) : factory(root["Vue"], root["@kq_npm/client_common_vue/_utils/gis-utils"], root["@kq_npm/client_common_vue/init.js"]);
|
|
8
8
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
9
|
}
|
|
10
|
-
})(this, function(
|
|
10
|
+
})(this, function(__WEBPACK_EXTERNAL_MODULE__154__, __WEBPACK_EXTERNAL_MODULE__64__, __WEBPACK_EXTERNAL_MODULE__455__) {
|
|
11
11
|
return /******/ (function() { // webpackBootstrap
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
-
/***/
|
|
15
|
+
/***/ 5284:
|
|
16
16
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17
17
|
|
|
18
18
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19
|
-
/* harmony export */
|
|
19
|
+
/* harmony export */ A: function() { return /* binding */ FixedZoomout3dViewModel; }
|
|
20
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__(
|
|
21
|
+
/* harmony import */ var _Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6913);
|
|
22
22
|
|
|
23
|
+
/*
|
|
24
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
25
|
+
* All rights reserved.
|
|
26
|
+
*/
|
|
23
27
|
// 三维固定缩放逻辑
|
|
24
28
|
class FixedZoomout3dViewModel {
|
|
25
29
|
//三维viewer对象
|
|
26
30
|
constructor(viewer) {
|
|
27
|
-
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .
|
|
28
|
-
|
|
31
|
+
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .A)(this, "_viewer", null);
|
|
29
32
|
this._viewer = viewer;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
+
}
|
|
34
|
+
//获取相机焦点
|
|
33
35
|
getCameraFocus() {
|
|
34
36
|
if (!this._viewer) return;
|
|
35
37
|
var scene = this._viewer.scene;
|
|
@@ -39,22 +41,18 @@ class FixedZoomout3dViewModel {
|
|
|
39
41
|
rayScratch.direction = camera.directionWC;
|
|
40
42
|
var result = new Cesium.Cartesian3();
|
|
41
43
|
result = scene.globe.pick(rayScratch, scene, result);
|
|
42
|
-
|
|
43
44
|
if (result) {
|
|
44
45
|
result = camera.worldToCameraCoordinatesPoint(result, result);
|
|
45
46
|
}
|
|
46
|
-
|
|
47
47
|
return result;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
}
|
|
49
|
+
//地图缩放
|
|
51
50
|
zoom(scale) {
|
|
52
51
|
if (!this._viewer) return;
|
|
53
52
|
var scene = this._viewer.scene;
|
|
54
53
|
var camera = scene.camera;
|
|
55
54
|
var focus = this.getCameraFocus();
|
|
56
55
|
var orientation;
|
|
57
|
-
|
|
58
56
|
if (!focus) {
|
|
59
57
|
// Camera direction is not pointing at the globe, so use the ellipsoid horizon point as
|
|
60
58
|
// the focal point.
|
|
@@ -71,7 +69,6 @@ class FixedZoomout3dViewModel {
|
|
|
71
69
|
up: camera.up
|
|
72
70
|
};
|
|
73
71
|
}
|
|
74
|
-
|
|
75
72
|
var cartesian3Scratch = new Cesium.Cartesian3();
|
|
76
73
|
var direction = Cesium.Cartesian3.subtract(camera.position, focus, cartesian3Scratch);
|
|
77
74
|
var movementVector = Cesium.Cartesian3.multiplyByScalar(direction, scale, direction);
|
|
@@ -83,67 +80,98 @@ class FixedZoomout3dViewModel {
|
|
|
83
80
|
convert: false
|
|
84
81
|
});
|
|
85
82
|
}
|
|
86
|
-
|
|
87
83
|
}
|
|
88
84
|
|
|
89
85
|
/***/ }),
|
|
90
86
|
|
|
91
|
-
/***/
|
|
87
|
+
/***/ 9371:
|
|
92
88
|
/***/ (function(module) {
|
|
93
89
|
|
|
94
90
|
module.exports = require("@element-plus/icons-vue");
|
|
95
91
|
|
|
96
92
|
/***/ }),
|
|
97
93
|
|
|
98
|
-
/***/
|
|
94
|
+
/***/ 3579:
|
|
99
95
|
/***/ (function(module) {
|
|
100
96
|
|
|
101
97
|
module.exports = require("vue-i18n/dist/vue-i18n.cjs.js");
|
|
102
98
|
|
|
103
99
|
/***/ }),
|
|
104
100
|
|
|
105
|
-
/***/
|
|
101
|
+
/***/ 64:
|
|
106
102
|
/***/ (function(module) {
|
|
107
103
|
|
|
108
|
-
module.exports =
|
|
104
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__64__;
|
|
109
105
|
|
|
110
106
|
/***/ }),
|
|
111
107
|
|
|
112
|
-
/***/
|
|
108
|
+
/***/ 455:
|
|
113
109
|
/***/ (function(module) {
|
|
114
110
|
|
|
115
|
-
module.exports =
|
|
111
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__455__;
|
|
116
112
|
|
|
117
113
|
/***/ }),
|
|
118
114
|
|
|
119
|
-
/***/
|
|
115
|
+
/***/ 154:
|
|
120
116
|
/***/ (function(module) {
|
|
121
117
|
|
|
122
|
-
module.exports =
|
|
118
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__154__;
|
|
123
119
|
|
|
124
120
|
/***/ }),
|
|
125
121
|
|
|
126
|
-
/***/
|
|
122
|
+
/***/ 6913:
|
|
127
123
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
128
124
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
function
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
125
|
+
|
|
126
|
+
// EXPORTS
|
|
127
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
128
|
+
A: function() { return /* binding */ _defineProperty; }
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
132
|
+
function _typeof(o) {
|
|
133
|
+
"@babel/helpers - typeof";
|
|
134
|
+
|
|
135
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
136
|
+
return typeof o;
|
|
137
|
+
} : function (o) {
|
|
138
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
139
|
+
}, _typeof(o);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
143
|
+
|
|
144
|
+
function toPrimitive(t, r) {
|
|
145
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
146
|
+
var e = t[Symbol.toPrimitive];
|
|
147
|
+
if (void 0 !== e) {
|
|
148
|
+
var i = e.call(t, r || "default");
|
|
149
|
+
if ("object" != _typeof(i)) return i;
|
|
150
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
142
151
|
}
|
|
152
|
+
return ("string" === r ? String : Number)(t);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
156
|
+
|
|
143
157
|
|
|
144
|
-
|
|
158
|
+
function toPropertyKey(t) {
|
|
159
|
+
var i = toPrimitive(t, "string");
|
|
160
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
145
161
|
}
|
|
146
162
|
|
|
163
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
164
|
+
|
|
165
|
+
function _defineProperty(e, r, t) {
|
|
166
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
167
|
+
value: t,
|
|
168
|
+
enumerable: !0,
|
|
169
|
+
configurable: !0,
|
|
170
|
+
writable: !0
|
|
171
|
+
}) : e[r] = t, e;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
|
|
147
175
|
/***/ })
|
|
148
176
|
|
|
149
177
|
/******/ });
|
|
@@ -215,39 +243,38 @@ function _defineProperty(obj, key, value) {
|
|
|
215
243
|
/******/
|
|
216
244
|
/************************************************************************/
|
|
217
245
|
var __webpack_exports__ = {};
|
|
218
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
219
|
-
!function() {
|
|
220
246
|
// ESM COMPAT FLAG
|
|
221
247
|
__webpack_require__.r(__webpack_exports__);
|
|
222
248
|
|
|
223
249
|
// EXPORTS
|
|
224
250
|
__webpack_require__.d(__webpack_exports__, {
|
|
225
|
-
|
|
251
|
+
FixedZoomoutViewModel: function() { return /* reexport */ FixedZoomoutViewModel/* default */.A; },
|
|
226
252
|
"default": function() { return /* reexport */ FixedZoomout; }
|
|
227
253
|
});
|
|
228
254
|
|
|
229
255
|
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
230
|
-
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(
|
|
256
|
+
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(154);
|
|
231
257
|
// EXTERNAL MODULE: external "@element-plus/icons-vue"
|
|
232
|
-
var icons_vue_ = __webpack_require__(
|
|
258
|
+
var icons_vue_ = __webpack_require__(9371);
|
|
233
259
|
// EXTERNAL MODULE: ./src/webgl/fixedzoomout/FixedZoomoutViewModel.js
|
|
234
|
-
var FixedZoomoutViewModel = __webpack_require__(
|
|
260
|
+
var FixedZoomoutViewModel = __webpack_require__(5284);
|
|
235
261
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
236
|
-
var gis_utils_ = __webpack_require__(
|
|
262
|
+
var gis_utils_ = __webpack_require__(64);
|
|
237
263
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
238
|
-
var vue_i18n_cjs_js_ = __webpack_require__(
|
|
264
|
+
var vue_i18n_cjs_js_ = __webpack_require__(3579);
|
|
239
265
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/fixedzoomout/FixedZoomout.vue?vue&type=script&setup=true&lang=js
|
|
240
266
|
|
|
241
267
|
|
|
242
268
|
|
|
243
269
|
|
|
244
270
|
|
|
245
|
-
|
|
271
|
+
|
|
272
|
+
// 获取组件传参
|
|
246
273
|
|
|
247
274
|
const __default__ = {
|
|
248
275
|
name: "Kq3dFixedZoomout"
|
|
249
276
|
};
|
|
250
|
-
/* harmony default export */ var FixedZoomoutvue_type_script_setup_true_lang_js = (
|
|
277
|
+
/* harmony default export */ var FixedZoomoutvue_type_script_setup_true_lang_js = (/*@__PURE__*/Object.assign(__default__, {
|
|
251
278
|
props: {
|
|
252
279
|
// 指定组件绑定的scence对象的div的id
|
|
253
280
|
mapTarget: String,
|
|
@@ -261,13 +288,12 @@ const __default__ = {
|
|
|
261
288
|
default: false
|
|
262
289
|
}
|
|
263
290
|
},
|
|
264
|
-
|
|
265
291
|
setup(__props) {
|
|
266
292
|
const props = __props;
|
|
267
293
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
268
294
|
let viewModel = null;
|
|
269
|
-
let btn = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
270
|
-
|
|
295
|
+
let btn = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
296
|
+
// 国际化
|
|
271
297
|
let {
|
|
272
298
|
locale,
|
|
273
299
|
messages
|
|
@@ -278,21 +304,18 @@ const __default__ = {
|
|
|
278
304
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
279
305
|
gis_utils_.utils.getWebMap(props.mapTarget, scenceView => {
|
|
280
306
|
if (scenceView) {
|
|
281
|
-
viewModel = new FixedZoomoutViewModel/* default */.
|
|
307
|
+
viewModel = new FixedZoomoutViewModel/* default */.A(scenceView._viewer);
|
|
282
308
|
}
|
|
283
309
|
});
|
|
284
|
-
});
|
|
285
|
-
|
|
310
|
+
});
|
|
311
|
+
// 按钮点击事件
|
|
286
312
|
function btnClick() {
|
|
287
313
|
btn.value.$el.blur();
|
|
288
314
|
viewModel && viewModel.zoom(0.5);
|
|
289
315
|
}
|
|
290
|
-
|
|
291
316
|
return (_ctx, _cache) => {
|
|
292
317
|
const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-icon");
|
|
293
|
-
|
|
294
318
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
295
|
-
|
|
296
319
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_button, {
|
|
297
320
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).zoomIn,
|
|
298
321
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)([{
|
|
@@ -307,21 +330,12 @@ const __default__ = {
|
|
|
307
330
|
size: __props.size / 2
|
|
308
331
|
}, {
|
|
309
332
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(icons_vue_.Plus))]),
|
|
310
|
-
_: 1
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
/* PROPS */
|
|
315
|
-
, ["size"])]),
|
|
316
|
-
_: 1
|
|
317
|
-
/* STABLE */
|
|
318
|
-
|
|
319
|
-
}, 8
|
|
320
|
-
/* PROPS */
|
|
321
|
-
, ["title", "class", "style"]);
|
|
333
|
+
_: 1 /* STABLE */
|
|
334
|
+
}, 8 /* PROPS */, ["size"])]),
|
|
335
|
+
_: 1 /* STABLE */
|
|
336
|
+
}, 8 /* PROPS */, ["title", "class", "style"]);
|
|
322
337
|
};
|
|
323
338
|
}
|
|
324
|
-
|
|
325
339
|
}));
|
|
326
340
|
;// CONCATENATED MODULE: ./src/webgl/fixedzoomout/FixedZoomout.vue?vue&type=script&setup=true&lang=js
|
|
327
341
|
|
|
@@ -333,10 +347,13 @@ const __exports__ = FixedZoomoutvue_type_script_setup_true_lang_js;
|
|
|
333
347
|
|
|
334
348
|
/* harmony default export */ var FixedZoomout = (__exports__);
|
|
335
349
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
336
|
-
var init_js_ = __webpack_require__(
|
|
350
|
+
var init_js_ = __webpack_require__(455);
|
|
337
351
|
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
338
352
|
;// CONCATENATED MODULE: ./src/webgl/fixedzoomout/index.js
|
|
339
|
-
|
|
353
|
+
/*
|
|
354
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
355
|
+
* All rights reserved.
|
|
356
|
+
*/
|
|
340
357
|
|
|
341
358
|
|
|
342
359
|
|
|
@@ -345,8 +362,6 @@ FixedZoomout.install = (Vue, opts) => {
|
|
|
345
362
|
Vue.component(FixedZoomout.name, FixedZoomout);
|
|
346
363
|
};
|
|
347
364
|
|
|
348
|
-
|
|
349
|
-
}();
|
|
350
365
|
/******/ return __webpack_exports__;
|
|
351
366
|
/******/ })()
|
|
352
367
|
;
|