@kq_npm/client3d_webgl_vue 4.5.28-beta → 4.5.30
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 +518 -262
- package/adddata/style/adddata.css +1 -1
- package/aspectanalysis/index.js +201 -123
- package/baseterraingallery/index.js +123 -94
- package/baseterraingallery/style/baseterraingallery.css +1 -1
- package/boxclip/index.js +442 -249
- package/clientPrint/index.js +27093 -14116
- package/clientPrint/style/clientPrint.css +1 -1
- package/comparemap/index.js +243 -213
- package/compass/index.js +68 -74
- package/excavatefillanalysis/index.js +225 -143
- package/fixedzoomin/index.js +82 -72
- package/fixedzoomout/index.js +80 -71
- package/flight/index.js +371 -257
- package/flight/style/flight.css +1 -1
- package/floodanalysis/index.js +347 -199
- package/geologicalbodyanalysis/index.js +260 -166
- package/gpuspatialquery/index.js +359 -198
- package/hawkeye/index.js +100 -131
- package/headertemp/index.js +25 -14
- package/heatmap3d/index.js +678 -366
- package/heatmap3d/style/heatmap3d.css +1 -1
- package/index.js +20321 -7165
- package/isolineanalysis/index.js +1202 -504
- package/light/index.js +494 -349
- package/limitheightanalysis/index.js +223 -159
- package/measure/index.js +353 -198
- package/modelFlat/index.js +204 -167
- package/modelexcavate/index.js +191 -130
- package/modelfilter/index.js +271 -179
- package/modelprofileanalysis/index.js +316 -206
- package/modelselect/index.js +147 -142
- package/package.json +1 -1
- package/particleeffect/index.js +403 -225
- package/planeclip/index.js +300 -198
- package/resetview/index.js +52 -66
- package/roller/index.js +372 -304
- package/scaneffect/index.js +537 -230
- package/sceneadvancedtoimage/index.js +358 -205
- package/sceneadvancedtoimage/style/sceneadvancedtoimage.css +1 -1
- package/sceneapp/index.js +27093 -14116
- package/sceneset/index.js +864 -350
- package/scenetohdimage/index.js +297 -159
- package/scenetohdimage/style/scenetohdimage.css +1 -1
- package/sceneview/index.js +27093 -14116
- package/sceneview/style/sceneview.css +1 -1
- package/screenshot/index.js +301 -257
- package/shadowanalysis/index.js +405 -217
- package/sightlineanalysis/index.js +271 -183
- package/sightlineanalysis/style/divpoint.css +1 -1
- package/skylineanalysis/index.js +308 -160
- package/slopeanalysis/index.js +397 -227
- package/slopeaspectanalysis/index.js +485 -259
- package/statusbar/index.js +65 -88
- package/style.css +1 -1
- package/terrainoperation/index.js +237 -176
- package/terrainprofileanalysis/index.js +138 -120
- package/typhoontrac/index.js +970 -234
- package/typhoontrac/style/typhoontrac.css +1 -1
- package/underground/index.js +61 -70
- package/videofusion/index.js +488 -265
- package/videoproject/index.js +490 -271
- package/viewshedanalysis/index.js +255 -151
- package/weathereffect/index.js +317 -166
- package/windyslicing/index.js +1947 -0
- package/windyslicing/style/index.js +3 -0
- package/windyslicing/style/windyslicing.css +1 -0
- package/wireframesketch/index.js +142 -110
package/compass/index.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
3
|
module.exports = factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/init.js"));
|
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
|
5
|
-
define(["vue", "@kq_npm/client_common_vue/_utils/gis-utils", "@kq_npm/client_common_vue/init.js"], factory);
|
|
6
|
-
else
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
define("@kq_npm/client3d_webgl_vue", ["vue", "@kq_npm/client_common_vue/_utils/gis-utils", "@kq_npm/client_common_vue/init.js"], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["@kq_npm/client3d_webgl_vue"] = factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/init.js"));
|
|
8
|
+
else
|
|
9
|
+
root["@kq_npm/client3d_webgl_vue"] = factory(root["Vue"], root["@kq_npm/client_common_vue/_utils/gis-utils"], root["@kq_npm/client_common_vue/init.js"]);
|
|
10
10
|
})(this, function(__WEBPACK_EXTERNAL_MODULE__1895__, __WEBPACK_EXTERNAL_MODULE__7135__, __WEBPACK_EXTERNAL_MODULE__7997__) {
|
|
11
11
|
return /******/ (function() { // webpackBootstrap
|
|
12
12
|
/******/ "use strict";
|
|
@@ -18,7 +18,8 @@ return /******/ (function() { // webpackBootstrap
|
|
|
18
18
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19
19
|
/* harmony export */ "Z": function() { return /* binding */ CompassViewModel; }
|
|
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__(8270);
|
|
22
|
+
|
|
22
23
|
|
|
23
24
|
/*
|
|
24
25
|
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
@@ -29,23 +30,29 @@ class CompassViewModel {
|
|
|
29
30
|
//三维viewer对象
|
|
30
31
|
constructor(viewer) {
|
|
31
32
|
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_viewer", null);
|
|
33
|
+
|
|
32
34
|
this._viewer = viewer;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
+
} //重置方向
|
|
36
|
+
|
|
37
|
+
|
|
35
38
|
resetOrientation() {
|
|
36
39
|
var camera = this._viewer.camera;
|
|
37
40
|
var scene = this._viewer.scene;
|
|
38
41
|
var depthTestAgainstTerrain = scene.globe.depthTestAgainstTerrain;
|
|
42
|
+
|
|
39
43
|
if (!depthTestAgainstTerrain) {
|
|
40
44
|
scene.globe.depthTestAgainstTerrain = true;
|
|
41
45
|
}
|
|
46
|
+
|
|
42
47
|
var canvas = scene.canvas;
|
|
43
48
|
var windowCenter = new Cesium.Cartesian2(canvas.clientWidth / 2, canvas.clientHeight / 2);
|
|
44
49
|
setTimeout(() => {
|
|
45
50
|
var center = scene.pickPosition(windowCenter);
|
|
51
|
+
|
|
46
52
|
if (!center) {
|
|
47
53
|
center = scene.camera.pickEllipsoid(windowCenter, scene.globe.ellipsoid);
|
|
48
54
|
}
|
|
55
|
+
|
|
49
56
|
scene.globe.depthTestAgainstTerrain = depthTestAgainstTerrain;
|
|
50
57
|
var distance = Cesium.Cartesian3.distance(center, camera.positionWC);
|
|
51
58
|
var heading = 6.28319;
|
|
@@ -54,22 +61,27 @@ class CompassViewModel {
|
|
|
54
61
|
camera.lookAt(center, hpr);
|
|
55
62
|
camera.lookAtTransform(Cesium.Matrix4.IDENTITY);
|
|
56
63
|
}, 300);
|
|
57
|
-
}
|
|
58
|
-
|
|
64
|
+
} //绑定指南针
|
|
65
|
+
|
|
66
|
+
|
|
59
67
|
bindCompassEvent(heading) {
|
|
60
68
|
var camera = this._viewer.camera;
|
|
61
69
|
this._removeEventListener = camera.changed.addEventListener(function () {
|
|
62
70
|
heading.value = camera.heading;
|
|
63
71
|
});
|
|
64
|
-
}
|
|
65
|
-
|
|
72
|
+
} // 注销事件
|
|
73
|
+
|
|
74
|
+
|
|
66
75
|
destroy() {
|
|
67
76
|
if (this._removeEventListener) {
|
|
68
77
|
this._removeEventListener();
|
|
78
|
+
|
|
69
79
|
this._removeEventListener = null;
|
|
70
80
|
}
|
|
81
|
+
|
|
71
82
|
this._viewer = null;
|
|
72
83
|
}
|
|
84
|
+
|
|
73
85
|
}
|
|
74
86
|
|
|
75
87
|
/***/ }),
|
|
@@ -109,59 +121,27 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
|
|
|
109
121
|
|
|
110
122
|
/***/ }),
|
|
111
123
|
|
|
112
|
-
/***/
|
|
124
|
+
/***/ 8270:
|
|
113
125
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
114
126
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
129
|
-
}, _typeof(o);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
133
|
-
|
|
134
|
-
function toPrimitive(t, r) {
|
|
135
|
-
if ("object" != _typeof(t) || !t) return t;
|
|
136
|
-
var e = t[Symbol.toPrimitive];
|
|
137
|
-
if (void 0 !== e) {
|
|
138
|
-
var i = e.call(t, r || "default");
|
|
139
|
-
if ("object" != _typeof(i)) return i;
|
|
140
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
127
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
128
|
+
/* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
|
|
129
|
+
/* harmony export */ });
|
|
130
|
+
function _defineProperty(obj, key, value) {
|
|
131
|
+
if (key in obj) {
|
|
132
|
+
Object.defineProperty(obj, key, {
|
|
133
|
+
value: value,
|
|
134
|
+
enumerable: true,
|
|
135
|
+
configurable: true,
|
|
136
|
+
writable: true
|
|
137
|
+
});
|
|
138
|
+
} else {
|
|
139
|
+
obj[key] = value;
|
|
141
140
|
}
|
|
142
|
-
return ("string" === r ? String : Number)(t);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
146
|
-
|
|
147
141
|
|
|
148
|
-
|
|
149
|
-
var i = toPrimitive(t, "string");
|
|
150
|
-
return "symbol" == _typeof(i) ? i : i + "";
|
|
142
|
+
return obj;
|
|
151
143
|
}
|
|
152
144
|
|
|
153
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
154
|
-
|
|
155
|
-
function _defineProperty(e, r, t) {
|
|
156
|
-
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
157
|
-
value: t,
|
|
158
|
-
enumerable: !0,
|
|
159
|
-
configurable: !0,
|
|
160
|
-
writable: !0
|
|
161
|
-
}) : e[r] = t, e;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
|
|
165
145
|
/***/ })
|
|
166
146
|
|
|
167
147
|
/******/ });
|
|
@@ -254,14 +234,13 @@ var CompassViewModel = __webpack_require__(9520);
|
|
|
254
234
|
var gis_utils_ = __webpack_require__(7135);
|
|
255
235
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
256
236
|
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
257
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/compass/Compass.vue?vue&type=script&setup=true&lang=js
|
|
258
|
-
|
|
237
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/webgl/compass/Compass.vue?vue&type=script&setup=true&lang=js
|
|
259
238
|
|
|
260
239
|
|
|
261
240
|
|
|
262
241
|
|
|
263
242
|
|
|
264
|
-
// 获取组件传参
|
|
243
|
+
// 获取组件传参
|
|
265
244
|
|
|
266
245
|
const __default__ = {
|
|
267
246
|
name: "Kq3dCompass"
|
|
@@ -285,6 +264,7 @@ const __default__ = {
|
|
|
285
264
|
default: false
|
|
286
265
|
}
|
|
287
266
|
},
|
|
267
|
+
|
|
288
268
|
setup(__props) {
|
|
289
269
|
const props = __props;
|
|
290
270
|
const {
|
|
@@ -292,8 +272,8 @@ const __default__ = {
|
|
|
292
272
|
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
293
273
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]);
|
|
294
274
|
let viewModel = null;
|
|
295
|
-
let heading = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(0);
|
|
296
|
-
|
|
275
|
+
let heading = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(0); // 国际化
|
|
276
|
+
|
|
297
277
|
let {
|
|
298
278
|
locale,
|
|
299
279
|
messages
|
|
@@ -304,23 +284,26 @@ const __default__ = {
|
|
|
304
284
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
305
285
|
gis_utils_.utils.getWebMap(props.mapTarget, scenceView => {
|
|
306
286
|
if (scenceView) {
|
|
307
|
-
viewModel = new CompassViewModel/* default */.Z(scenceView._viewer);
|
|
308
|
-
|
|
287
|
+
viewModel = new CompassViewModel/* default */.Z(scenceView._viewer); //绑定指南针事件
|
|
288
|
+
|
|
309
289
|
viewModel.bindCompassEvent(heading);
|
|
310
290
|
}
|
|
311
291
|
});
|
|
312
|
-
});
|
|
313
|
-
|
|
292
|
+
}); // 按钮点击事件
|
|
293
|
+
|
|
314
294
|
function btnClick(e) {
|
|
315
295
|
viewModel && viewModel.resetOrientation();
|
|
316
|
-
}
|
|
317
|
-
|
|
296
|
+
} // 销毁
|
|
297
|
+
|
|
298
|
+
|
|
318
299
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
319
300
|
viewModel && viewModel.destroy();
|
|
320
301
|
});
|
|
321
302
|
return (_ctx, _cache) => {
|
|
322
303
|
const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-icon");
|
|
304
|
+
|
|
323
305
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
306
|
+
|
|
324
307
|
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, {
|
|
325
308
|
onClick: btnClick,
|
|
326
309
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)([{
|
|
@@ -334,12 +317,21 @@ const __default__ = {
|
|
|
334
317
|
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)')
|
|
335
318
|
}, {
|
|
336
319
|
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))]),
|
|
337
|
-
_: 1
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
320
|
+
_: 1
|
|
321
|
+
/* STABLE */
|
|
322
|
+
|
|
323
|
+
}, 8
|
|
324
|
+
/* PROPS */
|
|
325
|
+
, ["size", "style"])]),
|
|
326
|
+
_: 1
|
|
327
|
+
/* STABLE */
|
|
328
|
+
|
|
329
|
+
}, 8
|
|
330
|
+
/* PROPS */
|
|
331
|
+
, ["class", "title", "style"]);
|
|
341
332
|
};
|
|
342
333
|
}
|
|
334
|
+
|
|
343
335
|
}));
|
|
344
336
|
;// CONCATENATED MODULE: ./src/webgl/compass/Compass.vue?vue&type=script&setup=true&lang=js
|
|
345
337
|
|
|
@@ -361,11 +353,13 @@ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
|
361
353
|
|
|
362
354
|
|
|
363
355
|
|
|
356
|
+
|
|
364
357
|
Compass.install = (Vue, opts) => {
|
|
365
358
|
init_js_default()(Vue, opts);
|
|
366
359
|
Vue.component(Compass.name, Compass);
|
|
367
360
|
};
|
|
368
361
|
|
|
362
|
+
|
|
369
363
|
}();
|
|
370
364
|
/******/ return __webpack_exports__;
|
|
371
365
|
/******/ })()
|