@kq_npm/client3d_webgl_vue 4.5.38 → 4.5.40
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 +285 -193
- package/adddata/style/adddata.css +1 -1
- package/aspectanalysis/index.js +45 -14
- package/boxclip/index.js +52 -19
- package/clientPrint/index.js +3539 -1291
- package/clientPrint/style/clientPrint.css +1 -1
- package/comparemap/index.js +699 -14
- package/excavatefillanalysis/index.js +48 -18
- package/flight/index.js +45 -4
- package/flight/style/flight.css +1 -1
- package/floodanalysis/index.js +39 -5
- package/geologicalbodyanalysis/index.js +37 -3
- package/gpuspatialquery/index.js +50 -24
- package/heatmap3d/index.js +37 -3
- package/heatmap3d/style/heatmap3d.css +1 -1
- package/index.js +3357 -1160
- package/isolineanalysis/index.js +56 -28
- package/light/index.js +19 -22
- package/limitheightanalysis/index.js +46 -16
- package/measure/index.js +56 -14
- package/modelFlat/index.js +37 -3
- package/modelexcavate/index.js +37 -3
- package/modelfilter/index.js +37 -3
- package/modelprofileanalysis/index.js +37 -3
- package/modelselect/index.js +37 -3
- package/package.json +1 -1
- package/particleeffect/index.js +26 -33
- package/planeclip/index.js +47 -18
- package/radarscananalysis/index.js +863 -0
- package/radarscananalysis/style/index.js +3 -0
- package/radarscananalysis/style/radarscananalysis.css +1 -0
- package/scaneffect/index.js +48 -20
- package/scaneffect/style/scaneffect.css +1 -1
- package/sceneadvancedtoimage/index.js +46 -16
- package/sceneadvancedtoimage/style/sceneadvancedtoimage.css +1 -1
- package/sceneapp/index.js +3538 -1290
- package/scenetohdimage/style/scenetohdimage.css +1 -1
- package/sceneview/index.js +3533 -1285
- package/sceneview/style/sceneview.css +1 -1
- package/shadowanalysis/index.js +49 -19
- package/sightlineanalysis/index.js +41 -31
- package/sightlineanalysis/style/divpoint.css +1 -1
- package/skylineanalysis/index.js +37 -3
- package/slopeanalysis/index.js +85 -54
- package/slopeaspectanalysis/index.js +520 -135
- package/style.css +1 -1
- package/terrainoperation/index.js +61 -31
- package/terrainprofileanalysis/index.js +45 -14
- package/typhoontrac/index.js +71 -11
- package/typhoontrac/style/typhoontrac.css +1 -1
- package/videofusion/index.js +37 -3
- package/videoproject/index.js +37 -3
- package/weathereffect/index.js +30 -34
- package/windyslicing/index.js +670 -306
- package/windyslicing/style/windyslicing.css +1 -1
- package/wireframesketch/index.js +37 -3
package/modelfilter/index.js
CHANGED
|
@@ -12,13 +12,32 @@ return /******/ (function() { // webpackBootstrap
|
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
+
/***/ 3789:
|
|
16
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17
|
+
|
|
18
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19
|
+
/* harmony export */ "P": function() { return /* binding */ kq_npm_client_common_vue; }
|
|
20
|
+
/* harmony export */ });
|
|
21
|
+
/* unused harmony export kq_npm_client_leaflet_vue */
|
|
22
|
+
let kq_npm_client_common_vue = (window.kq_npm_client_common_vue = window.kq_npm_client_common_vue || {});
|
|
23
|
+
|
|
24
|
+
__webpack_require__.g.kq_npm_client_common_vue = kq_npm_client_common_vue;
|
|
25
|
+
|
|
26
|
+
let kq_npm_client_leaflet_vue = (window.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue || {});
|
|
27
|
+
|
|
28
|
+
__webpack_require__.g.kq_npm_client_leaflet_vue = kq_npm_client_leaflet_vue;
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
/***/ }),
|
|
32
|
+
|
|
15
33
|
/***/ 1705:
|
|
16
34
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
17
35
|
|
|
18
36
|
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9389);
|
|
19
37
|
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
20
|
-
/* harmony import */ var
|
|
21
|
-
/* harmony import */ var
|
|
38
|
+
/* harmony import */ var _common_KqGIS__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3789);
|
|
39
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7997);
|
|
40
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_2__);
|
|
22
41
|
/*
|
|
23
42
|
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
24
43
|
* All rights reserved.
|
|
@@ -27,12 +46,15 @@ return /******/ (function() { // webpackBootstrap
|
|
|
27
46
|
|
|
28
47
|
|
|
29
48
|
|
|
49
|
+
|
|
30
50
|
element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
|
|
31
|
-
|
|
51
|
+
_init__WEBPACK_IMPORTED_MODULE_2___default()(Vue, opts);
|
|
32
52
|
Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
33
53
|
};
|
|
34
54
|
|
|
35
55
|
/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (KqMessage)));
|
|
56
|
+
|
|
57
|
+
_common_KqGIS__WEBPACK_IMPORTED_MODULE_1__/* .kq_npm_client_common_vue.KqMessage */ .P.KqMessage = element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage;
|
|
36
58
|
|
|
37
59
|
|
|
38
60
|
/***/ }),
|
|
@@ -144,6 +166,18 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
|
|
|
144
166
|
/******/ };
|
|
145
167
|
/******/ }();
|
|
146
168
|
/******/
|
|
169
|
+
/******/ /* webpack/runtime/global */
|
|
170
|
+
/******/ !function() {
|
|
171
|
+
/******/ __webpack_require__.g = (function() {
|
|
172
|
+
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
173
|
+
/******/ try {
|
|
174
|
+
/******/ return this || new Function('return this')();
|
|
175
|
+
/******/ } catch (e) {
|
|
176
|
+
/******/ if (typeof window === 'object') return window;
|
|
177
|
+
/******/ }
|
|
178
|
+
/******/ })();
|
|
179
|
+
/******/ }();
|
|
180
|
+
/******/
|
|
147
181
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
148
182
|
/******/ !function() {
|
|
149
183
|
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
@@ -12,13 +12,32 @@ return /******/ (function() { // webpackBootstrap
|
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
+
/***/ 3789:
|
|
16
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17
|
+
|
|
18
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19
|
+
/* harmony export */ "P": function() { return /* binding */ kq_npm_client_common_vue; }
|
|
20
|
+
/* harmony export */ });
|
|
21
|
+
/* unused harmony export kq_npm_client_leaflet_vue */
|
|
22
|
+
let kq_npm_client_common_vue = (window.kq_npm_client_common_vue = window.kq_npm_client_common_vue || {});
|
|
23
|
+
|
|
24
|
+
__webpack_require__.g.kq_npm_client_common_vue = kq_npm_client_common_vue;
|
|
25
|
+
|
|
26
|
+
let kq_npm_client_leaflet_vue = (window.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue || {});
|
|
27
|
+
|
|
28
|
+
__webpack_require__.g.kq_npm_client_leaflet_vue = kq_npm_client_leaflet_vue;
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
/***/ }),
|
|
32
|
+
|
|
15
33
|
/***/ 1705:
|
|
16
34
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17
35
|
|
|
18
36
|
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9389);
|
|
19
37
|
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
20
|
-
/* harmony import */ var
|
|
21
|
-
/* harmony import */ var
|
|
38
|
+
/* harmony import */ var _common_KqGIS__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3789);
|
|
39
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7997);
|
|
40
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_2__);
|
|
22
41
|
/*
|
|
23
42
|
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
24
43
|
* All rights reserved.
|
|
@@ -27,12 +46,15 @@ return /******/ (function() { // webpackBootstrap
|
|
|
27
46
|
|
|
28
47
|
|
|
29
48
|
|
|
49
|
+
|
|
30
50
|
element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
|
|
31
|
-
|
|
51
|
+
_init__WEBPACK_IMPORTED_MODULE_2___default()(Vue, opts);
|
|
32
52
|
Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
33
53
|
};
|
|
34
54
|
|
|
35
55
|
/* harmony default export */ __webpack_exports__["Z"] = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
56
|
+
|
|
57
|
+
_common_KqGIS__WEBPACK_IMPORTED_MODULE_1__/* .kq_npm_client_common_vue.KqMessage */ .P.KqMessage = element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage;
|
|
36
58
|
|
|
37
59
|
|
|
38
60
|
/***/ }),
|
|
@@ -137,6 +159,18 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
|
|
|
137
159
|
/******/ };
|
|
138
160
|
/******/ }();
|
|
139
161
|
/******/
|
|
162
|
+
/******/ /* webpack/runtime/global */
|
|
163
|
+
/******/ !function() {
|
|
164
|
+
/******/ __webpack_require__.g = (function() {
|
|
165
|
+
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
166
|
+
/******/ try {
|
|
167
|
+
/******/ return this || new Function('return this')();
|
|
168
|
+
/******/ } catch (e) {
|
|
169
|
+
/******/ if (typeof window === 'object') return window;
|
|
170
|
+
/******/ }
|
|
171
|
+
/******/ })();
|
|
172
|
+
/******/ }();
|
|
173
|
+
/******/
|
|
140
174
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
141
175
|
/******/ !function() {
|
|
142
176
|
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
package/modelselect/index.js
CHANGED
|
@@ -12,13 +12,32 @@ return /******/ (function() { // webpackBootstrap
|
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
+
/***/ 3789:
|
|
16
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17
|
+
|
|
18
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19
|
+
/* harmony export */ "P": function() { return /* binding */ kq_npm_client_common_vue; }
|
|
20
|
+
/* harmony export */ });
|
|
21
|
+
/* unused harmony export kq_npm_client_leaflet_vue */
|
|
22
|
+
let kq_npm_client_common_vue = (window.kq_npm_client_common_vue = window.kq_npm_client_common_vue || {});
|
|
23
|
+
|
|
24
|
+
__webpack_require__.g.kq_npm_client_common_vue = kq_npm_client_common_vue;
|
|
25
|
+
|
|
26
|
+
let kq_npm_client_leaflet_vue = (window.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue || {});
|
|
27
|
+
|
|
28
|
+
__webpack_require__.g.kq_npm_client_leaflet_vue = kq_npm_client_leaflet_vue;
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
/***/ }),
|
|
32
|
+
|
|
15
33
|
/***/ 1705:
|
|
16
34
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17
35
|
|
|
18
36
|
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9389);
|
|
19
37
|
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
20
|
-
/* harmony import */ var
|
|
21
|
-
/* harmony import */ var
|
|
38
|
+
/* harmony import */ var _common_KqGIS__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3789);
|
|
39
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7997);
|
|
40
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_2__);
|
|
22
41
|
/*
|
|
23
42
|
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
24
43
|
* All rights reserved.
|
|
@@ -27,12 +46,15 @@ return /******/ (function() { // webpackBootstrap
|
|
|
27
46
|
|
|
28
47
|
|
|
29
48
|
|
|
49
|
+
|
|
30
50
|
element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
|
|
31
|
-
|
|
51
|
+
_init__WEBPACK_IMPORTED_MODULE_2___default()(Vue, opts);
|
|
32
52
|
Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
33
53
|
};
|
|
34
54
|
|
|
35
55
|
/* harmony default export */ __webpack_exports__["Z"] = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
56
|
+
|
|
57
|
+
_common_KqGIS__WEBPACK_IMPORTED_MODULE_1__/* .kq_npm_client_common_vue.KqMessage */ .P.KqMessage = element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage;
|
|
36
58
|
|
|
37
59
|
|
|
38
60
|
/***/ }),
|
|
@@ -137,6 +159,18 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
|
|
|
137
159
|
/******/ };
|
|
138
160
|
/******/ }();
|
|
139
161
|
/******/
|
|
162
|
+
/******/ /* webpack/runtime/global */
|
|
163
|
+
/******/ !function() {
|
|
164
|
+
/******/ __webpack_require__.g = (function() {
|
|
165
|
+
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
166
|
+
/******/ try {
|
|
167
|
+
/******/ return this || new Function('return this')();
|
|
168
|
+
/******/ } catch (e) {
|
|
169
|
+
/******/ if (typeof window === 'object') return window;
|
|
170
|
+
/******/ }
|
|
171
|
+
/******/ })();
|
|
172
|
+
/******/ }();
|
|
173
|
+
/******/
|
|
140
174
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
141
175
|
/******/ !function() {
|
|
142
176
|
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"4.5.
|
|
1
|
+
{"jsdelivr":"./webgl.es.js","name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"4.5.40","homepage":"","keywords":["KQGIS","webGL","Vue"],"sdkNames":["@kq_npm/client_icons_vue"],"restrictedVersion":true,"validateSDK":true,"browserslist":["> 1%","last 2 versions","not dead","not ie 11"],"author":"zhupc_npm","license":"Apache-2.0","dependencies":{"html2canvas-pro":"1.5.10","save":"2.5.0","papaparse":"5.4.1"}}
|
package/particleeffect/index.js
CHANGED
|
@@ -150,10 +150,10 @@ var client_icons_vue_ = __webpack_require__(348);
|
|
|
150
150
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/const-image"
|
|
151
151
|
var const_image_ = __webpack_require__(6277);
|
|
152
152
|
;// CONCATENATED MODULE: ./src/webgl/particleeffect/ParticleEffectViewModel.js
|
|
153
|
-
/*
|
|
154
|
-
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
155
|
-
* All rights reserved.
|
|
156
|
-
*/
|
|
153
|
+
/*
|
|
154
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
155
|
+
* All rights reserved.
|
|
156
|
+
*/
|
|
157
157
|
|
|
158
158
|
let _gravityScratch = null;
|
|
159
159
|
let _gravity = 1.0;
|
|
@@ -162,7 +162,6 @@ class ParticleEffectViewModel {
|
|
|
162
162
|
_scene = null; //三维球场景视图对象
|
|
163
163
|
_particleSystemList = []; //粒子特效集合
|
|
164
164
|
_drawManager = null; //绘制管理对象
|
|
165
|
-
_removeEventListener = null; //绘制完成监听事件
|
|
166
165
|
_options = null; //粒子特效存储参数对象
|
|
167
166
|
_fireImage = const_image_.FIRE_URL; //火焰图片url地址
|
|
168
167
|
_smokeImage = const_image_.SMOKE_URL; //烟雾图片url地址
|
|
@@ -172,13 +171,28 @@ class ParticleEffectViewModel {
|
|
|
172
171
|
scenceView._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
173
172
|
this._scene = scenceView._viewer.scene;
|
|
174
173
|
this._drawManager = scenceView._drawManager;
|
|
175
|
-
// 启动连续绘制
|
|
176
|
-
this._drawManager.enableMultiDraw(true);
|
|
177
174
|
_gravityScratch = new Cesium.Cartesian3();
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
applyGravity(particle, dt) {
|
|
178
|
+
_gravityScratch = Cesium.Cartesian3.normalize(particle.position, _gravityScratch);
|
|
179
|
+
Cesium.Cartesian3.multiplyByScalar(_gravityScratch, _gravity * dt, _gravityScratch);
|
|
180
|
+
particle.velocity = Cesium.Cartesian3.add(particle.velocity, _gravityScratch, particle.velocity);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
//添加粒子特效
|
|
184
|
+
addParticleEffect(options) {
|
|
178
185
|
var that = this;
|
|
179
|
-
|
|
186
|
+
let mode = options.mode;
|
|
187
|
+
if (mode !== "flame" && mode !== "smoke") {
|
|
188
|
+
console.log("This mode is not supported.");
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
if (options.gravity) this.setGravity(options.gravity);
|
|
192
|
+
this._options = options;
|
|
193
|
+
this._drawManager.startDraw("marker", { image: null }, (feature, { shape }) => {
|
|
194
|
+
if (!shape.groupName || shape.groupName !== "ParticleEffectDraw") return;
|
|
180
195
|
if (shape && shape.type === "marker") {
|
|
181
|
-
// that._drawManager.clear();
|
|
182
196
|
let position = shape.position;
|
|
183
197
|
if (position) {
|
|
184
198
|
let matrix = new Cesium.Matrix4.fromTranslation(position);
|
|
@@ -232,31 +246,14 @@ class ParticleEffectViewModel {
|
|
|
232
246
|
}
|
|
233
247
|
}
|
|
234
248
|
}
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
applyGravity(particle, dt) {
|
|
239
|
-
_gravityScratch = Cesium.Cartesian3.normalize(particle.position, _gravityScratch);
|
|
240
|
-
Cesium.Cartesian3.multiplyByScalar(_gravityScratch, _gravity * dt, _gravityScratch);
|
|
241
|
-
particle.velocity = Cesium.Cartesian3.add(particle.velocity, _gravityScratch, particle.velocity);
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
//添加粒子特效
|
|
245
|
-
addParticleEffect(options) {
|
|
246
|
-
let mode = options.mode;
|
|
247
|
-
if (mode !== "flame" && mode !== "smoke") {
|
|
248
|
-
console.log("This mode is not supported.");
|
|
249
|
-
return;
|
|
250
|
-
}
|
|
251
|
-
if (options.gravity) this.setGravity(options.gravity);
|
|
252
|
-
this._options = options;
|
|
253
|
-
this._drawManager.startDraw("marker", { image: null });
|
|
249
|
+
that._drawManager && that._drawManager.clearDrawGroup("ParticleEffectDraw");
|
|
250
|
+
}, "ParticleEffectDraw", true);
|
|
254
251
|
}
|
|
255
252
|
|
|
256
253
|
//清除粒子特效
|
|
257
254
|
clear() {
|
|
258
255
|
this._drawManager.stopDraw();
|
|
259
|
-
this._drawManager.
|
|
256
|
+
this._drawManager && this._drawManager.clearDrawGroup("ParticleEffectDraw");
|
|
260
257
|
for (let i = 0; i < this._particleSystemList.length; i++) {
|
|
261
258
|
this._scene.primitives.remove(this._particleSystemList[i]);
|
|
262
259
|
}
|
|
@@ -266,10 +263,6 @@ class ParticleEffectViewModel {
|
|
|
266
263
|
//销毁
|
|
267
264
|
destroy() {
|
|
268
265
|
this.clear();
|
|
269
|
-
this._drawManager.enableMultiDraw(false);
|
|
270
|
-
//移除监听事件
|
|
271
|
-
this._removeEventListener && this._removeEventListener();
|
|
272
|
-
this._removeEventListener = null;
|
|
273
266
|
}
|
|
274
267
|
|
|
275
268
|
//设置粒子数量
|
package/planeclip/index.js
CHANGED
|
@@ -12,13 +12,32 @@ return /******/ (function() { // webpackBootstrap
|
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
+
/***/ 3789:
|
|
16
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17
|
+
|
|
18
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19
|
+
/* harmony export */ "P": function() { return /* binding */ kq_npm_client_common_vue; }
|
|
20
|
+
/* harmony export */ });
|
|
21
|
+
/* unused harmony export kq_npm_client_leaflet_vue */
|
|
22
|
+
let kq_npm_client_common_vue = (window.kq_npm_client_common_vue = window.kq_npm_client_common_vue || {});
|
|
23
|
+
|
|
24
|
+
__webpack_require__.g.kq_npm_client_common_vue = kq_npm_client_common_vue;
|
|
25
|
+
|
|
26
|
+
let kq_npm_client_leaflet_vue = (window.kq_npm_client_leaflet_vue = window.kq_npm_client_leaflet_vue || {});
|
|
27
|
+
|
|
28
|
+
__webpack_require__.g.kq_npm_client_leaflet_vue = kq_npm_client_leaflet_vue;
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
/***/ }),
|
|
32
|
+
|
|
15
33
|
/***/ 1705:
|
|
16
34
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17
35
|
|
|
18
36
|
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9389);
|
|
19
37
|
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
20
|
-
/* harmony import */ var
|
|
21
|
-
/* harmony import */ var
|
|
38
|
+
/* harmony import */ var _common_KqGIS__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3789);
|
|
39
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7997);
|
|
40
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_2__);
|
|
22
41
|
/*
|
|
23
42
|
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
24
43
|
* All rights reserved.
|
|
@@ -27,12 +46,15 @@ return /******/ (function() { // webpackBootstrap
|
|
|
27
46
|
|
|
28
47
|
|
|
29
48
|
|
|
49
|
+
|
|
30
50
|
element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
|
|
31
|
-
|
|
51
|
+
_init__WEBPACK_IMPORTED_MODULE_2___default()(Vue, opts);
|
|
32
52
|
Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
33
53
|
};
|
|
34
54
|
|
|
35
55
|
/* harmony default export */ __webpack_exports__["Z"] = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
56
|
+
|
|
57
|
+
_common_KqGIS__WEBPACK_IMPORTED_MODULE_1__/* .kq_npm_client_common_vue.KqMessage */ .P.KqMessage = element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage;
|
|
36
58
|
|
|
37
59
|
|
|
38
60
|
/***/ }),
|
|
@@ -137,6 +159,18 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
|
|
|
137
159
|
/******/ };
|
|
138
160
|
/******/ }();
|
|
139
161
|
/******/
|
|
162
|
+
/******/ /* webpack/runtime/global */
|
|
163
|
+
/******/ !function() {
|
|
164
|
+
/******/ __webpack_require__.g = (function() {
|
|
165
|
+
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
166
|
+
/******/ try {
|
|
167
|
+
/******/ return this || new Function('return this')();
|
|
168
|
+
/******/ } catch (e) {
|
|
169
|
+
/******/ if (typeof window === 'object') return window;
|
|
170
|
+
/******/ }
|
|
171
|
+
/******/ })();
|
|
172
|
+
/******/ }();
|
|
173
|
+
/******/
|
|
140
174
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
141
175
|
/******/ !function() {
|
|
142
176
|
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
@@ -208,7 +242,6 @@ class PlaneClipViewModel {
|
|
|
208
242
|
};
|
|
209
243
|
_planeclipAnalysis = null; //平面裁剪三维逻辑类
|
|
210
244
|
_drawManager = null; //绘制管理对象
|
|
211
|
-
_removeEventListener = null; //绘制完成事件监听
|
|
212
245
|
_language = {};
|
|
213
246
|
callbackParams = null;
|
|
214
247
|
constructor(scenceView, options, callbackParams) {
|
|
@@ -219,15 +252,6 @@ class PlaneClipViewModel {
|
|
|
219
252
|
this._language = scenceView._language;
|
|
220
253
|
this._drawManager = scenceView._drawManager;
|
|
221
254
|
this.callbackParams = callbackParams;
|
|
222
|
-
let that = this;
|
|
223
|
-
this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
224
|
-
if (shape) {
|
|
225
|
-
that._options.position = shape.position;
|
|
226
|
-
// 实例化分析对象
|
|
227
|
-
that._planeclipAnalysis = new Cesium.Kq3dBoxClip(that._options);
|
|
228
|
-
that._drawManager.clear();
|
|
229
|
-
}
|
|
230
|
-
});
|
|
231
255
|
// 事件绑定this
|
|
232
256
|
this._resetListData = this._resetListData.bind(this);
|
|
233
257
|
// 添加图层数据源变化监听
|
|
@@ -267,6 +291,7 @@ class PlaneClipViewModel {
|
|
|
267
291
|
|
|
268
292
|
// 开始分析
|
|
269
293
|
start() {
|
|
294
|
+
let that = this;
|
|
270
295
|
// 判断是否添加了模型
|
|
271
296
|
var flag = false;
|
|
272
297
|
var models = this._options.viewer.scene.primitives._primitives;
|
|
@@ -276,7 +301,15 @@ class PlaneClipViewModel {
|
|
|
276
301
|
}
|
|
277
302
|
}
|
|
278
303
|
if (flag) {
|
|
279
|
-
if (this._drawManager) this._drawManager.startDraw("marker", { image: null })
|
|
304
|
+
if (this._drawManager) this._drawManager.startDraw("marker", { image: null }, (feature, { shape }) => {
|
|
305
|
+
if (!shape.groupName || shape.groupName !== "PlaneClipDraw") return;
|
|
306
|
+
if (shape) {
|
|
307
|
+
that._options.position = shape.position;
|
|
308
|
+
// 实例化分析对象
|
|
309
|
+
that._planeclipAnalysis = new Cesium.Kq3dBoxClip(that._options);
|
|
310
|
+
}
|
|
311
|
+
that._drawManager && that._drawManager.clearDrawGroup("PlaneClipDraw");
|
|
312
|
+
}, "PlaneClipDraw");
|
|
280
313
|
} else {
|
|
281
314
|
(0,message/* default */.Z)({
|
|
282
315
|
message: this._language["addModelAnalysisTips"],
|
|
@@ -289,7 +322,6 @@ class PlaneClipViewModel {
|
|
|
289
322
|
clear() {
|
|
290
323
|
if (this._planeclipAnalysis) this._planeclipAnalysis.boxEnable = false;
|
|
291
324
|
this._planeclipAnalysis && this._planeclipAnalysis.remove();
|
|
292
|
-
// this._planeclipAnalysis = null;
|
|
293
325
|
}
|
|
294
326
|
|
|
295
327
|
//销毁
|
|
@@ -298,9 +330,6 @@ class PlaneClipViewModel {
|
|
|
298
330
|
//销毁分析对象
|
|
299
331
|
this._planeclipAnalysis && this._planeclipAnalysis.destroy();
|
|
300
332
|
this._planeclipAnalysis = null;
|
|
301
|
-
//移除监听事件
|
|
302
|
-
this._removeEventListener && this._removeEventListener();
|
|
303
|
-
this._removeEventListener = null;
|
|
304
333
|
gis_utils_.mapViewUtils.offViewEvents("resetLayerDatas", this._resetListData, this._viewer._container.id);
|
|
305
334
|
}
|
|
306
335
|
|