@kq_npm/client3d_webgl_vue 4.5.30 → 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 +227 -496
- package/aspectanalysis/index.js +71 -182
- package/baseterraingallery/index.js +40 -102
- package/boxclip/index.js +197 -423
- package/clientPrint/index.js +7324 -17727
- 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 +6896 -17544
- 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 +7324 -17727
- package/sceneset/index.js +299 -838
- package/scenetohdimage/index.js +105 -276
- package/sceneview/index.js +7324 -17727
- 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 +208 -330
- 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 +545 -727
- package/wireframesketch/index.js +49 -106
package/fixedzoomin/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,11 +29,9 @@ class FixedZoomin3dViewModel {
|
|
|
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
|
getCameraFocus() {
|
|
39
36
|
if (!this._viewer) return;
|
|
40
37
|
var scene = this._viewer.scene;
|
|
@@ -44,32 +41,29 @@ class FixedZoomin3dViewModel {
|
|
|
44
41
|
rayScratch.direction = camera.directionWC;
|
|
45
42
|
var result = new Cesium.Cartesian3();
|
|
46
43
|
result = scene.globe.pick(rayScratch, scene, result);
|
|
47
|
-
|
|
48
44
|
if (result) {
|
|
49
45
|
result = camera.worldToCameraCoordinatesPoint(result, result);
|
|
50
46
|
}
|
|
51
|
-
|
|
52
47
|
return result;
|
|
53
|
-
}
|
|
54
|
-
|
|
48
|
+
}
|
|
55
49
|
|
|
50
|
+
//地图缩小
|
|
56
51
|
zoom(scale) {
|
|
57
52
|
if (this._viewer.scene.mode == Cesium.SceneMode.SCENE3D) {
|
|
58
53
|
this.zoom3D(scale);
|
|
59
54
|
} else if (this._viewer.scene.mode == Cesium.SceneMode.SCENE2D) {
|
|
60
55
|
this.zoom2D(scale);
|
|
61
56
|
}
|
|
62
|
-
}
|
|
63
|
-
|
|
57
|
+
}
|
|
64
58
|
|
|
59
|
+
// 二维模式缩小
|
|
65
60
|
zoom3D(scale) {
|
|
66
61
|
if (!this._viewer) return;
|
|
67
62
|
var scene = this._viewer.scene;
|
|
68
|
-
var camera = scene.camera;
|
|
69
|
-
|
|
63
|
+
var camera = scene.camera;
|
|
64
|
+
// camera.zoomIn(scale*100000);
|
|
70
65
|
var focus = this.getCameraFocus();
|
|
71
66
|
var orientation;
|
|
72
|
-
|
|
73
67
|
if (!focus) {
|
|
74
68
|
// Camera direction is not pointing at the globe, so use the ellipsoid horizon point as
|
|
75
69
|
// the focal point.
|
|
@@ -86,7 +80,6 @@ class FixedZoomin3dViewModel {
|
|
|
86
80
|
up: camera.up
|
|
87
81
|
};
|
|
88
82
|
}
|
|
89
|
-
|
|
90
83
|
var cartesian3Scratch = new Cesium.Cartesian3();
|
|
91
84
|
var direction = Cesium.Cartesian3.subtract(camera.position, focus, cartesian3Scratch);
|
|
92
85
|
var movementVector = Cesium.Cartesian3.multiplyByScalar(direction, scale, direction);
|
|
@@ -97,9 +90,9 @@ class FixedZoomin3dViewModel {
|
|
|
97
90
|
duration: 0.5,
|
|
98
91
|
convert: false
|
|
99
92
|
});
|
|
100
|
-
}
|
|
101
|
-
|
|
93
|
+
}
|
|
102
94
|
|
|
95
|
+
// 二维模式缩小
|
|
103
96
|
zoom2D(scale) {
|
|
104
97
|
if (!this._viewer) return;
|
|
105
98
|
var scene = this._viewer.scene;
|
|
@@ -107,7 +100,6 @@ class FixedZoomin3dViewModel {
|
|
|
107
100
|
let height = camera.positionCartographic.height;
|
|
108
101
|
camera.zoomOut(scale * height / 2);
|
|
109
102
|
}
|
|
110
|
-
|
|
111
103
|
}
|
|
112
104
|
|
|
113
105
|
/***/ }),
|
|
@@ -164,7 +156,6 @@ function _defineProperty(obj, key, value) {
|
|
|
164
156
|
} else {
|
|
165
157
|
obj[key] = value;
|
|
166
158
|
}
|
|
167
|
-
|
|
168
159
|
return obj;
|
|
169
160
|
}
|
|
170
161
|
|
|
@@ -266,7 +257,8 @@ var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
|
266
257
|
|
|
267
258
|
|
|
268
259
|
|
|
269
|
-
|
|
260
|
+
|
|
261
|
+
// 获取组件传参
|
|
270
262
|
|
|
271
263
|
const __default__ = {
|
|
272
264
|
name: "Kq3dFixedZoomin"
|
|
@@ -285,7 +277,6 @@ const __default__ = {
|
|
|
285
277
|
default: false
|
|
286
278
|
}
|
|
287
279
|
},
|
|
288
|
-
|
|
289
280
|
setup(__props) {
|
|
290
281
|
const props = __props;
|
|
291
282
|
const {
|
|
@@ -293,8 +284,8 @@ const __default__ = {
|
|
|
293
284
|
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
294
285
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]);
|
|
295
286
|
let viewModel = null;
|
|
296
|
-
let btn = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
297
|
-
|
|
287
|
+
let btn = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
288
|
+
// 国际化
|
|
298
289
|
let {
|
|
299
290
|
locale,
|
|
300
291
|
messages
|
|
@@ -308,18 +299,15 @@ const __default__ = {
|
|
|
308
299
|
viewModel = new FixedZoominViewModel/* default */.Z(scenceView._viewer);
|
|
309
300
|
}
|
|
310
301
|
});
|
|
311
|
-
});
|
|
312
|
-
|
|
302
|
+
});
|
|
303
|
+
// 按钮点击事件
|
|
313
304
|
function btnClick() {
|
|
314
305
|
btn.value.$el.blur();
|
|
315
306
|
viewModel && viewModel.zoom(2);
|
|
316
307
|
}
|
|
317
|
-
|
|
318
308
|
return (_ctx, _cache) => {
|
|
319
309
|
const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-icon");
|
|
320
|
-
|
|
321
310
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
322
|
-
|
|
323
311
|
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, {
|
|
324
312
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).zoomOut,
|
|
325
313
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)([{
|
|
@@ -334,21 +322,12 @@ const __default__ = {
|
|
|
334
322
|
size: __props.size / 2
|
|
335
323
|
}, {
|
|
336
324
|
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))]),
|
|
337
|
-
_: 1
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
/* PROPS */
|
|
342
|
-
, ["size"])]),
|
|
343
|
-
_: 1
|
|
344
|
-
/* STABLE */
|
|
345
|
-
|
|
346
|
-
}, 8
|
|
347
|
-
/* PROPS */
|
|
348
|
-
, ["title", "class", "style"]);
|
|
325
|
+
_: 1 /* STABLE */
|
|
326
|
+
}, 8 /* PROPS */, ["size"])]),
|
|
327
|
+
_: 1 /* STABLE */
|
|
328
|
+
}, 8 /* PROPS */, ["title", "class", "style"]);
|
|
349
329
|
};
|
|
350
330
|
}
|
|
351
|
-
|
|
352
331
|
}));
|
|
353
332
|
;// CONCATENATED MODULE: ./src/webgl/fixedzoomin/FixedZoomin.vue?vue&type=script&setup=true&lang=js
|
|
354
333
|
|
|
@@ -370,13 +349,11 @@ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
|
370
349
|
|
|
371
350
|
|
|
372
351
|
|
|
373
|
-
|
|
374
352
|
FixedZoomin.install = (Vue, opts) => {
|
|
375
353
|
init_js_default()(Vue, opts);
|
|
376
354
|
Vue.component(FixedZoomin.name, FixedZoomin);
|
|
377
355
|
};
|
|
378
356
|
|
|
379
|
-
|
|
380
357
|
}();
|
|
381
358
|
/******/ return __webpack_exports__;
|
|
382
359
|
/******/ })()
|
package/fixedzoomout/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,11 +29,9 @@ class FixedZoomout3dViewModel {
|
|
|
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
|
getCameraFocus() {
|
|
39
36
|
if (!this._viewer) return;
|
|
40
37
|
var scene = this._viewer.scene;
|
|
@@ -44,31 +41,27 @@ class FixedZoomout3dViewModel {
|
|
|
44
41
|
rayScratch.direction = camera.directionWC;
|
|
45
42
|
var result = new Cesium.Cartesian3();
|
|
46
43
|
result = scene.globe.pick(rayScratch, scene, result);
|
|
47
|
-
|
|
48
44
|
if (result) {
|
|
49
45
|
result = camera.worldToCameraCoordinatesPoint(result, result);
|
|
50
46
|
}
|
|
51
|
-
|
|
52
47
|
return result;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
48
|
+
}
|
|
49
|
+
//地图放大
|
|
56
50
|
zoom(scale) {
|
|
57
51
|
if (this._viewer.scene.mode == Cesium.SceneMode.SCENE3D) {
|
|
58
52
|
this.zoom3D(scale);
|
|
59
53
|
} else if (this._viewer.scene.mode == Cesium.SceneMode.SCENE2D) {
|
|
60
54
|
this.zoom2D(scale);
|
|
61
55
|
}
|
|
62
|
-
}
|
|
63
|
-
|
|
56
|
+
}
|
|
64
57
|
|
|
58
|
+
// 三维模式放大
|
|
65
59
|
zoom3D(scale) {
|
|
66
60
|
if (!this._viewer) return;
|
|
67
61
|
var scene = this._viewer.scene;
|
|
68
62
|
var camera = scene.camera;
|
|
69
63
|
var focus = this.getCameraFocus();
|
|
70
64
|
var orientation;
|
|
71
|
-
|
|
72
65
|
if (!focus) {
|
|
73
66
|
// Camera direction is not pointing at the globe, so use the ellipsoid horizon point as
|
|
74
67
|
// the focal point.
|
|
@@ -85,7 +78,6 @@ class FixedZoomout3dViewModel {
|
|
|
85
78
|
up: camera.up
|
|
86
79
|
};
|
|
87
80
|
}
|
|
88
|
-
|
|
89
81
|
var cartesian3Scratch = new Cesium.Cartesian3();
|
|
90
82
|
var direction = Cesium.Cartesian3.subtract(camera.position, focus, cartesian3Scratch);
|
|
91
83
|
var movementVector = Cesium.Cartesian3.multiplyByScalar(direction, scale, direction);
|
|
@@ -96,9 +88,9 @@ class FixedZoomout3dViewModel {
|
|
|
96
88
|
duration: 0.5,
|
|
97
89
|
convert: false
|
|
98
90
|
});
|
|
99
|
-
}
|
|
100
|
-
|
|
91
|
+
}
|
|
101
92
|
|
|
93
|
+
// 二维模式放大
|
|
102
94
|
zoom2D(scale) {
|
|
103
95
|
if (!this._viewer) return;
|
|
104
96
|
var scene = this._viewer.scene;
|
|
@@ -106,7 +98,6 @@ class FixedZoomout3dViewModel {
|
|
|
106
98
|
let height = camera.positionCartographic.height;
|
|
107
99
|
camera.zoomIn(height * scale);
|
|
108
100
|
}
|
|
109
|
-
|
|
110
101
|
}
|
|
111
102
|
|
|
112
103
|
/***/ }),
|
|
@@ -163,7 +154,6 @@ function _defineProperty(obj, key, value) {
|
|
|
163
154
|
} else {
|
|
164
155
|
obj[key] = value;
|
|
165
156
|
}
|
|
166
|
-
|
|
167
157
|
return obj;
|
|
168
158
|
}
|
|
169
159
|
|
|
@@ -265,7 +255,8 @@ var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
|
265
255
|
|
|
266
256
|
|
|
267
257
|
|
|
268
|
-
|
|
258
|
+
|
|
259
|
+
// 获取组件传参
|
|
269
260
|
|
|
270
261
|
const __default__ = {
|
|
271
262
|
name: "Kq3dFixedZoomout"
|
|
@@ -284,7 +275,6 @@ const __default__ = {
|
|
|
284
275
|
default: false
|
|
285
276
|
}
|
|
286
277
|
},
|
|
287
|
-
|
|
288
278
|
setup(__props) {
|
|
289
279
|
const props = __props;
|
|
290
280
|
const {
|
|
@@ -292,8 +282,8 @@ const __default__ = {
|
|
|
292
282
|
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
293
283
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]);
|
|
294
284
|
let viewModel = null;
|
|
295
|
-
let btn = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
296
|
-
|
|
285
|
+
let btn = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
286
|
+
// 国际化
|
|
297
287
|
let {
|
|
298
288
|
locale,
|
|
299
289
|
messages
|
|
@@ -307,18 +297,15 @@ const __default__ = {
|
|
|
307
297
|
viewModel = new FixedZoomoutViewModel/* default */.Z(scenceView._viewer);
|
|
308
298
|
}
|
|
309
299
|
});
|
|
310
|
-
});
|
|
311
|
-
|
|
300
|
+
});
|
|
301
|
+
// 按钮点击事件
|
|
312
302
|
function btnClick() {
|
|
313
303
|
btn.value.$el.blur();
|
|
314
304
|
viewModel && viewModel.zoom(0.5);
|
|
315
305
|
}
|
|
316
|
-
|
|
317
306
|
return (_ctx, _cache) => {
|
|
318
307
|
const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-icon");
|
|
319
|
-
|
|
320
308
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
321
|
-
|
|
322
309
|
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, {
|
|
323
310
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).zoomIn,
|
|
324
311
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)([{
|
|
@@ -333,21 +320,12 @@ const __default__ = {
|
|
|
333
320
|
size: __props.size / 2
|
|
334
321
|
}, {
|
|
335
322
|
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))]),
|
|
336
|
-
_: 1
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
/* PROPS */
|
|
341
|
-
, ["size"])]),
|
|
342
|
-
_: 1
|
|
343
|
-
/* STABLE */
|
|
344
|
-
|
|
345
|
-
}, 8
|
|
346
|
-
/* PROPS */
|
|
347
|
-
, ["title", "class", "style"]);
|
|
323
|
+
_: 1 /* STABLE */
|
|
324
|
+
}, 8 /* PROPS */, ["size"])]),
|
|
325
|
+
_: 1 /* STABLE */
|
|
326
|
+
}, 8 /* PROPS */, ["title", "class", "style"]);
|
|
348
327
|
};
|
|
349
328
|
}
|
|
350
|
-
|
|
351
329
|
}));
|
|
352
330
|
;// CONCATENATED MODULE: ./src/webgl/fixedzoomout/FixedZoomout.vue?vue&type=script&setup=true&lang=js
|
|
353
331
|
|
|
@@ -369,13 +347,11 @@ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
|
369
347
|
|
|
370
348
|
|
|
371
349
|
|
|
372
|
-
|
|
373
350
|
FixedZoomout.install = (Vue, opts) => {
|
|
374
351
|
init_js_default()(Vue, opts);
|
|
375
352
|
Vue.component(FixedZoomout.name, FixedZoomout);
|
|
376
353
|
};
|
|
377
354
|
|
|
378
|
-
|
|
379
355
|
}();
|
|
380
356
|
/******/ return __webpack_exports__;
|
|
381
357
|
/******/ })()
|