@kq_npm/client3d_webgl_vue 4.5.31 → 4.5.32
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 +226 -495
- package/aspectanalysis/index.js +71 -182
- package/baseterraingallery/index.js +40 -102
- package/boxclip/index.js +197 -423
- package/clientPrint/index.js +6953 -17145
- package/comparemap/index.js +165 -216
- package/compass/index.js +20 -47
- package/excavatefillanalysis/index.js +101 -206
- package/fixedzoomin/index.js +20 -43
- package/fixedzoomout/index.js +18 -42
- package/flight/index.js +206 -353
- package/floodanalysis/index.js +145 -328
- package/geologicalbodyanalysis/index.js +114 -241
- package/gpuspatialquery/index.js +146 -340
- package/hawkeye/index.js +78 -80
- package/headertemp/index.js +8 -19
- package/heatmap3d/index.js +304 -645
- package/index.js +6525 -16962
- package/isolineanalysis/index.js +451 -1183
- package/light/index.js +308 -486
- package/limitheightanalysis/index.js +107 -204
- package/measure/index.js +145 -331
- package/modelFlat/index.js +114 -183
- package/modelexcavate/index.js +78 -172
- package/modelfilter/index.js +127 -252
- package/modelprofileanalysis/index.js +154 -297
- package/modelselect/index.js +90 -128
- package/package.json +1 -1
- package/particleeffect/index.js +170 -381
- package/planeclip/index.js +146 -281
- package/resetview/index.js +12 -31
- package/roller/index.js +252 -353
- package/scaneffect/index.js +178 -518
- package/sceneadvancedtoimage/index.js +152 -337
- package/sceneapp/index.js +6953 -17145
- package/sceneset/index.js +299 -838
- package/scenetohdimage/index.js +105 -276
- package/sceneview/index.js +6953 -17145
- package/screenshot/index.js +204 -281
- package/shadowanalysis/index.js +175 -386
- package/sightlineanalysis/index.js +135 -245
- package/skylineanalysis/index.js +108 -289
- package/slopeanalysis/index.js +174 -378
- package/slopeaspectanalysis/index.js +206 -466
- package/statusbar/index.js +37 -39
- package/terrainoperation/index.js +124 -218
- package/terrainprofileanalysis/index.js +66 -118
- package/typhoontrac/index.js +165 -321
- package/underground/index.js +16 -40
- package/videofusion/index.js +214 -470
- package/videoproject/index.js +220 -472
- package/viewshedanalysis/index.js +93 -230
- package/weathereffect/index.js +111 -295
- package/windyslicing/index.js +262 -695
- package/wireframesketch/index.js +49 -106
package/compass/index.js
CHANGED
|
@@ -20,7 +20,6 @@ return /******/ (function() { // webpackBootstrap
|
|
|
20
20
|
/* harmony export */ });
|
|
21
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
22
|
|
|
23
|
-
|
|
24
23
|
/*
|
|
25
24
|
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
26
25
|
* All rights reserved.
|
|
@@ -30,29 +29,23 @@ class CompassViewModel {
|
|
|
30
29
|
//三维viewer对象
|
|
31
30
|
constructor(viewer) {
|
|
32
31
|
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_viewer", null);
|
|
33
|
-
|
|
34
32
|
this._viewer = viewer;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
}
|
|
34
|
+
//重置方向
|
|
38
35
|
resetOrientation() {
|
|
39
36
|
var camera = this._viewer.camera;
|
|
40
37
|
var scene = this._viewer.scene;
|
|
41
38
|
var depthTestAgainstTerrain = scene.globe.depthTestAgainstTerrain;
|
|
42
|
-
|
|
43
39
|
if (!depthTestAgainstTerrain) {
|
|
44
40
|
scene.globe.depthTestAgainstTerrain = true;
|
|
45
41
|
}
|
|
46
|
-
|
|
47
42
|
var canvas = scene.canvas;
|
|
48
43
|
var windowCenter = new Cesium.Cartesian2(canvas.clientWidth / 2, canvas.clientHeight / 2);
|
|
49
44
|
setTimeout(() => {
|
|
50
45
|
var center = scene.pickPosition(windowCenter);
|
|
51
|
-
|
|
52
46
|
if (!center) {
|
|
53
47
|
center = scene.camera.pickEllipsoid(windowCenter, scene.globe.ellipsoid);
|
|
54
48
|
}
|
|
55
|
-
|
|
56
49
|
scene.globe.depthTestAgainstTerrain = depthTestAgainstTerrain;
|
|
57
50
|
var distance = Cesium.Cartesian3.distance(center, camera.positionWC);
|
|
58
51
|
var heading = 6.28319;
|
|
@@ -61,27 +54,22 @@ class CompassViewModel {
|
|
|
61
54
|
camera.lookAt(center, hpr);
|
|
62
55
|
camera.lookAtTransform(Cesium.Matrix4.IDENTITY);
|
|
63
56
|
}, 300);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
|
|
57
|
+
}
|
|
58
|
+
//绑定指南针
|
|
67
59
|
bindCompassEvent(heading) {
|
|
68
60
|
var camera = this._viewer.camera;
|
|
69
61
|
this._removeEventListener = camera.changed.addEventListener(function () {
|
|
70
62
|
heading.value = camera.heading;
|
|
71
63
|
});
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
64
|
+
}
|
|
65
|
+
// 注销事件
|
|
75
66
|
destroy() {
|
|
76
67
|
if (this._removeEventListener) {
|
|
77
68
|
this._removeEventListener();
|
|
78
|
-
|
|
79
69
|
this._removeEventListener = null;
|
|
80
70
|
}
|
|
81
|
-
|
|
82
71
|
this._viewer = null;
|
|
83
72
|
}
|
|
84
|
-
|
|
85
73
|
}
|
|
86
74
|
|
|
87
75
|
/***/ }),
|
|
@@ -138,7 +126,6 @@ function _defineProperty(obj, key, value) {
|
|
|
138
126
|
} else {
|
|
139
127
|
obj[key] = value;
|
|
140
128
|
}
|
|
141
|
-
|
|
142
129
|
return obj;
|
|
143
130
|
}
|
|
144
131
|
|
|
@@ -240,7 +227,8 @@ var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
|
240
227
|
|
|
241
228
|
|
|
242
229
|
|
|
243
|
-
|
|
230
|
+
|
|
231
|
+
// 获取组件传参
|
|
244
232
|
|
|
245
233
|
const __default__ = {
|
|
246
234
|
name: "Kq3dCompass"
|
|
@@ -264,7 +252,6 @@ const __default__ = {
|
|
|
264
252
|
default: false
|
|
265
253
|
}
|
|
266
254
|
},
|
|
267
|
-
|
|
268
255
|
setup(__props) {
|
|
269
256
|
const props = __props;
|
|
270
257
|
const {
|
|
@@ -272,8 +259,8 @@ const __default__ = {
|
|
|
272
259
|
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
273
260
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]);
|
|
274
261
|
let viewModel = null;
|
|
275
|
-
let heading = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(0);
|
|
276
|
-
|
|
262
|
+
let heading = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(0);
|
|
263
|
+
// 国际化
|
|
277
264
|
let {
|
|
278
265
|
locale,
|
|
279
266
|
messages
|
|
@@ -284,26 +271,23 @@ const __default__ = {
|
|
|
284
271
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
285
272
|
gis_utils_.utils.getWebMap(props.mapTarget, scenceView => {
|
|
286
273
|
if (scenceView) {
|
|
287
|
-
viewModel = new CompassViewModel/* default */.Z(scenceView._viewer);
|
|
288
|
-
|
|
274
|
+
viewModel = new CompassViewModel/* default */.Z(scenceView._viewer);
|
|
275
|
+
//绑定指南针事件
|
|
289
276
|
viewModel.bindCompassEvent(heading);
|
|
290
277
|
}
|
|
291
278
|
});
|
|
292
|
-
});
|
|
293
|
-
|
|
279
|
+
});
|
|
280
|
+
// 按钮点击事件
|
|
294
281
|
function btnClick(e) {
|
|
295
282
|
viewModel && viewModel.resetOrientation();
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
|
|
283
|
+
}
|
|
284
|
+
// 销毁
|
|
299
285
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
300
286
|
viewModel && viewModel.destroy();
|
|
301
287
|
});
|
|
302
288
|
return (_ctx, _cache) => {
|
|
303
289
|
const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-icon");
|
|
304
|
-
|
|
305
290
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
306
|
-
|
|
307
291
|
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, {
|
|
308
292
|
onClick: btnClick,
|
|
309
293
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)([{
|
|
@@ -317,21 +301,12 @@ const __default__ = {
|
|
|
317
301
|
style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)('transform: rotate(-' + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(heading) + 'rad);-webkit-transform: rotate(-' + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(heading) + 'rad)')
|
|
318
302
|
}, {
|
|
319
303
|
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)(client_icons_vue_.IconCompass3D))]),
|
|
320
|
-
_: 1
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
/* PROPS */
|
|
325
|
-
, ["size", "style"])]),
|
|
326
|
-
_: 1
|
|
327
|
-
/* STABLE */
|
|
328
|
-
|
|
329
|
-
}, 8
|
|
330
|
-
/* PROPS */
|
|
331
|
-
, ["class", "title", "style"]);
|
|
304
|
+
_: 1 /* STABLE */
|
|
305
|
+
}, 8 /* PROPS */, ["size", "style"])]),
|
|
306
|
+
_: 1 /* STABLE */
|
|
307
|
+
}, 8 /* PROPS */, ["class", "title", "style"]);
|
|
332
308
|
};
|
|
333
309
|
}
|
|
334
|
-
|
|
335
310
|
}));
|
|
336
311
|
;// CONCATENATED MODULE: ./src/webgl/compass/Compass.vue?vue&type=script&setup=true&lang=js
|
|
337
312
|
|
|
@@ -353,13 +328,11 @@ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
|
353
328
|
|
|
354
329
|
|
|
355
330
|
|
|
356
|
-
|
|
357
331
|
Compass.install = (Vue, opts) => {
|
|
358
332
|
init_js_default()(Vue, opts);
|
|
359
333
|
Vue.component(Compass.name, Compass);
|
|
360
334
|
};
|
|
361
335
|
|
|
362
|
-
|
|
363
336
|
}();
|
|
364
337
|
/******/ return __webpack_exports__;
|
|
365
338
|
/******/ })()
|