@kq_npm/client3d_webgl_vue 4.5.29-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 +27088 -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 +20310 -7159
- 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 +27088 -14116
- package/sceneset/index.js +864 -350
- package/scenetohdimage/index.js +297 -159
- package/scenetohdimage/style/scenetohdimage.css +1 -1
- package/sceneview/index.js +27088 -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/particleeffect/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/_utils/const-image"), require("@kq_npm/client_common_vue/_utils/util"), 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/_utils/const-image", "@kq_npm/client_common_vue/_utils/util", "@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/_utils/const-image", "@kq_npm/client_common_vue/_utils/util", "@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/_utils/const-image"), require("@kq_npm/client_common_vue/_utils/util"), 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/_utils/const-image"], root["@kq_npm/client_common_vue/_utils/util"], root["@kq_npm/client_common_vue/init.js"]);
|
|
10
10
|
})(this, function(__WEBPACK_EXTERNAL_MODULE__1895__, __WEBPACK_EXTERNAL_MODULE__7135__, __WEBPACK_EXTERNAL_MODULE__6277__, __WEBPACK_EXTERNAL_MODULE__3458__, __WEBPACK_EXTERNAL_MODULE__7997__) {
|
|
11
11
|
return /******/ (function() { // webpackBootstrap
|
|
12
12
|
/******/ "use strict";
|
|
@@ -19,27 +19,6 @@ module.exports = require("@kq_npm/client_icons_vue");
|
|
|
19
19
|
|
|
20
20
|
/***/ }),
|
|
21
21
|
|
|
22
|
-
/***/ 2118:
|
|
23
|
-
/***/ (function(module) {
|
|
24
|
-
|
|
25
|
-
module.exports = require("core-js/modules/es.array.push.js");
|
|
26
|
-
|
|
27
|
-
/***/ }),
|
|
28
|
-
|
|
29
|
-
/***/ 8470:
|
|
30
|
-
/***/ (function(module) {
|
|
31
|
-
|
|
32
|
-
module.exports = require("core-js/modules/esnext.iterator.constructor.js");
|
|
33
|
-
|
|
34
|
-
/***/ }),
|
|
35
|
-
|
|
36
|
-
/***/ 1058:
|
|
37
|
-
/***/ (function(module) {
|
|
38
|
-
|
|
39
|
-
module.exports = require("core-js/modules/esnext.iterator.for-each.js");
|
|
40
|
-
|
|
41
|
-
/***/ }),
|
|
42
|
-
|
|
43
22
|
/***/ 7080:
|
|
44
23
|
/***/ (function(module) {
|
|
45
24
|
|
|
@@ -82,59 +61,27 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
|
|
|
82
61
|
|
|
83
62
|
/***/ }),
|
|
84
63
|
|
|
85
|
-
/***/
|
|
64
|
+
/***/ 8270:
|
|
86
65
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
87
66
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
102
|
-
}, _typeof(o);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
106
|
-
|
|
107
|
-
function toPrimitive(t, r) {
|
|
108
|
-
if ("object" != _typeof(t) || !t) return t;
|
|
109
|
-
var e = t[Symbol.toPrimitive];
|
|
110
|
-
if (void 0 !== e) {
|
|
111
|
-
var i = e.call(t, r || "default");
|
|
112
|
-
if ("object" != _typeof(i)) return i;
|
|
113
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
67
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
68
|
+
/* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
|
|
69
|
+
/* harmony export */ });
|
|
70
|
+
function _defineProperty(obj, key, value) {
|
|
71
|
+
if (key in obj) {
|
|
72
|
+
Object.defineProperty(obj, key, {
|
|
73
|
+
value: value,
|
|
74
|
+
enumerable: true,
|
|
75
|
+
configurable: true,
|
|
76
|
+
writable: true
|
|
77
|
+
});
|
|
78
|
+
} else {
|
|
79
|
+
obj[key] = value;
|
|
114
80
|
}
|
|
115
|
-
return ("string" === r ? String : Number)(t);
|
|
116
|
-
}
|
|
117
81
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
function toPropertyKey(t) {
|
|
122
|
-
var i = toPrimitive(t, "string");
|
|
123
|
-
return "symbol" == _typeof(i) ? i : i + "";
|
|
82
|
+
return obj;
|
|
124
83
|
}
|
|
125
84
|
|
|
126
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
127
|
-
|
|
128
|
-
function _defineProperty(e, r, t) {
|
|
129
|
-
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
130
|
-
value: t,
|
|
131
|
-
enumerable: !0,
|
|
132
|
-
configurable: !0,
|
|
133
|
-
writable: !0
|
|
134
|
-
}) : e[r] = t, e;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
|
|
138
85
|
/***/ })
|
|
139
86
|
|
|
140
87
|
/******/ });
|
|
@@ -223,60 +170,61 @@ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(
|
|
|
223
170
|
var gis_utils_ = __webpack_require__(7135);
|
|
224
171
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
225
172
|
var client_icons_vue_ = __webpack_require__(348);
|
|
226
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
227
|
-
var defineProperty = __webpack_require__(
|
|
228
|
-
// EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
|
|
229
|
-
var es_array_push_js_ = __webpack_require__(2118);
|
|
230
|
-
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.constructor.js"
|
|
231
|
-
var esnext_iterator_constructor_js_ = __webpack_require__(8470);
|
|
232
|
-
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.for-each.js"
|
|
233
|
-
var esnext_iterator_for_each_js_ = __webpack_require__(1058);
|
|
173
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
174
|
+
var defineProperty = __webpack_require__(8270);
|
|
234
175
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/const-image"
|
|
235
176
|
var const_image_ = __webpack_require__(6277);
|
|
236
177
|
;// CONCATENATED MODULE: ./src/webgl/particleeffect/ParticleEffectViewModel.js
|
|
237
178
|
|
|
238
179
|
|
|
239
|
-
|
|
240
|
-
|
|
241
180
|
/*
|
|
242
181
|
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
243
182
|
* All rights reserved.
|
|
244
183
|
*/
|
|
245
184
|
|
|
246
185
|
let _gravityScratch = null;
|
|
247
|
-
let _gravity = 1.0;
|
|
248
|
-
|
|
186
|
+
let _gravity = 1.0; //粒子特效逻辑类
|
|
187
|
+
|
|
249
188
|
class ParticleEffectViewModel {
|
|
189
|
+
//三维球场景视图对象
|
|
190
|
+
//粒子特效集合
|
|
191
|
+
//绘制管理对象
|
|
192
|
+
//绘制完成监听事件
|
|
193
|
+
//粒子特效存储参数对象
|
|
194
|
+
//火焰图片url地址
|
|
250
195
|
//烟雾图片url地址
|
|
251
|
-
|
|
252
196
|
constructor(scenceView) {
|
|
253
197
|
(0,defineProperty/* default */.Z)(this, "_scene", null);
|
|
254
|
-
|
|
198
|
+
|
|
255
199
|
(0,defineProperty/* default */.Z)(this, "_particleSystemList", []);
|
|
256
|
-
|
|
200
|
+
|
|
257
201
|
(0,defineProperty/* default */.Z)(this, "_drawManager", null);
|
|
258
|
-
|
|
202
|
+
|
|
259
203
|
(0,defineProperty/* default */.Z)(this, "_removeEventListener", null);
|
|
260
|
-
|
|
204
|
+
|
|
261
205
|
(0,defineProperty/* default */.Z)(this, "_options", null);
|
|
262
|
-
|
|
206
|
+
|
|
263
207
|
(0,defineProperty/* default */.Z)(this, "_fireImage", const_image_.FIRE_URL);
|
|
264
|
-
|
|
208
|
+
|
|
265
209
|
(0,defineProperty/* default */.Z)(this, "_smokeImage", const_image_.SMOKE_URL);
|
|
210
|
+
|
|
266
211
|
scenceView._viewer.clock.shouldAnimate = true;
|
|
267
212
|
scenceView._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
268
213
|
this._scene = scenceView._viewer.scene;
|
|
269
|
-
this._drawManager = scenceView._drawManager;
|
|
270
|
-
|
|
214
|
+
this._drawManager = scenceView._drawManager; // 启动连续绘制
|
|
215
|
+
|
|
271
216
|
this._drawManager.enableMultiDraw(true);
|
|
217
|
+
|
|
272
218
|
_gravityScratch = new Cesium.Cartesian3();
|
|
273
219
|
var that = this;
|
|
274
220
|
that._removeEventListener = that._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
275
221
|
if (shape && shape.type === "marker") {
|
|
276
222
|
// that._drawManager.clear();
|
|
277
223
|
let position = shape.position;
|
|
224
|
+
|
|
278
225
|
if (position) {
|
|
279
226
|
let matrix = new Cesium.Matrix4.fromTranslation(position);
|
|
227
|
+
|
|
280
228
|
if (that._options.mode === "flame") {
|
|
281
229
|
let fireParticle = new Cesium.ParticleSystem({
|
|
282
230
|
emissionRate: that._options.particleNum,
|
|
@@ -296,7 +244,9 @@ class ParticleEffectViewModel {
|
|
|
296
244
|
sizeInMeters: true,
|
|
297
245
|
updateCallback: that.applyGravity
|
|
298
246
|
});
|
|
247
|
+
|
|
299
248
|
that._scene.primitives.add(fireParticle);
|
|
249
|
+
|
|
300
250
|
that._particleSystemList.push(fireParticle);
|
|
301
251
|
} else if (that._options.mode === "smoke") {
|
|
302
252
|
let smokeParticle = new Cesium.ParticleSystem({
|
|
@@ -314,8 +264,7 @@ class ParticleEffectViewModel {
|
|
|
314
264
|
endColor: new Cesium.Color.fromCssColorString("#5c5c5c"),
|
|
315
265
|
emitter: new Cesium.ConeEmitter(70),
|
|
316
266
|
sizeInMeters: true,
|
|
317
|
-
bursts: [
|
|
318
|
-
// 随着时间改变产生越来越多的粒子
|
|
267
|
+
bursts: [// 随着时间改变产生越来越多的粒子
|
|
319
268
|
new Cesium.ParticleBurst({
|
|
320
269
|
time: 5.0,
|
|
321
270
|
minimum: 1,
|
|
@@ -331,61 +280,74 @@ class ParticleEffectViewModel {
|
|
|
331
280
|
})],
|
|
332
281
|
updateCallback: that.applyGravity
|
|
333
282
|
});
|
|
283
|
+
|
|
334
284
|
that._scene.primitives.add(smokeParticle);
|
|
285
|
+
|
|
335
286
|
that._particleSystemList.push(smokeParticle);
|
|
336
287
|
}
|
|
337
288
|
}
|
|
338
289
|
}
|
|
339
290
|
});
|
|
340
291
|
}
|
|
292
|
+
|
|
341
293
|
applyGravity(particle, dt) {
|
|
342
294
|
_gravityScratch = Cesium.Cartesian3.normalize(particle.position, _gravityScratch);
|
|
343
295
|
Cesium.Cartesian3.multiplyByScalar(_gravityScratch, _gravity * dt, _gravityScratch);
|
|
344
296
|
particle.velocity = Cesium.Cartesian3.add(particle.velocity, _gravityScratch, particle.velocity);
|
|
345
|
-
}
|
|
297
|
+
} //添加粒子特效
|
|
298
|
+
|
|
346
299
|
|
|
347
|
-
//添加粒子特效
|
|
348
300
|
addParticleEffect(options) {
|
|
349
301
|
let mode = options.mode;
|
|
302
|
+
|
|
350
303
|
if (mode !== "flame" && mode !== "smoke") {
|
|
351
304
|
console.log("This mode is not supported.");
|
|
352
305
|
return;
|
|
353
306
|
}
|
|
307
|
+
|
|
354
308
|
if (options.gravity) this.setGravity(options.gravity);
|
|
355
309
|
this._options = options;
|
|
310
|
+
|
|
356
311
|
this._drawManager.startDraw("marker", {
|
|
357
312
|
image: null
|
|
358
313
|
});
|
|
359
|
-
}
|
|
314
|
+
} //清除粒子特效
|
|
315
|
+
|
|
360
316
|
|
|
361
|
-
//清除粒子特效
|
|
362
317
|
clear() {
|
|
363
318
|
this._drawManager.stopDraw();
|
|
319
|
+
|
|
364
320
|
this._drawManager.clear();
|
|
321
|
+
|
|
365
322
|
for (let i = 0; i < this._particleSystemList.length; i++) {
|
|
366
323
|
this._scene.primitives.remove(this._particleSystemList[i]);
|
|
367
324
|
}
|
|
325
|
+
|
|
368
326
|
this._particleSystemList = [];
|
|
369
|
-
}
|
|
327
|
+
} //销毁
|
|
328
|
+
|
|
370
329
|
|
|
371
|
-
//销毁
|
|
372
330
|
destroy() {
|
|
373
331
|
this.clear();
|
|
374
|
-
|
|
375
|
-
//移除监听事件
|
|
332
|
+
|
|
333
|
+
this._drawManager.enableMultiDraw(false); //移除监听事件
|
|
334
|
+
|
|
335
|
+
|
|
376
336
|
this._removeEventListener && this._removeEventListener();
|
|
377
337
|
this._removeEventListener = null;
|
|
378
|
-
}
|
|
338
|
+
} //设置粒子数量
|
|
339
|
+
|
|
379
340
|
|
|
380
|
-
//设置粒子数量
|
|
381
341
|
setParticleNumber(number) {
|
|
382
342
|
this._particleSystemList.forEach(particle => {
|
|
383
343
|
particle.emissionRate = number;
|
|
384
344
|
});
|
|
385
|
-
}
|
|
386
|
-
|
|
345
|
+
} //设置粒子大小
|
|
346
|
+
|
|
347
|
+
|
|
387
348
|
setParticleSize(size) {
|
|
388
349
|
let mode = this._options.mode;
|
|
350
|
+
|
|
389
351
|
this._particleSystemList.forEach(particle => {
|
|
390
352
|
if (mode === "flame") {
|
|
391
353
|
particle.minimumImageSize = new Cesium.Cartesian2(size, 2 * size);
|
|
@@ -395,53 +357,61 @@ class ParticleEffectViewModel {
|
|
|
395
357
|
particle.maximumImageSize = new Cesium.Cartesian2(size, size);
|
|
396
358
|
}
|
|
397
359
|
});
|
|
398
|
-
}
|
|
399
|
-
|
|
360
|
+
} //设置最小生命周期
|
|
361
|
+
|
|
362
|
+
|
|
400
363
|
setMinLifeCycle(minLifeCycle) {
|
|
401
364
|
this._particleSystemList.forEach(particle => {
|
|
402
365
|
particle.minimumParticleLife = minLifeCycle;
|
|
403
366
|
});
|
|
404
|
-
}
|
|
405
|
-
|
|
367
|
+
} //设置最大生命周期
|
|
368
|
+
|
|
369
|
+
|
|
406
370
|
setmaxLifeCycle(maxLifeCycle) {
|
|
407
371
|
this._particleSystemList.forEach(particle => {
|
|
408
372
|
particle.maximumParticleLife = maxLifeCycle;
|
|
409
373
|
});
|
|
410
|
-
}
|
|
411
|
-
|
|
374
|
+
} //设置最小速度
|
|
375
|
+
|
|
376
|
+
|
|
412
377
|
setMinSpeed(minSpeed) {
|
|
413
378
|
this._particleSystemList.forEach(particle => {
|
|
414
379
|
particle.minimumSpeed = minSpeed;
|
|
415
380
|
});
|
|
416
|
-
}
|
|
417
|
-
|
|
381
|
+
} //设置最大速度
|
|
382
|
+
|
|
383
|
+
|
|
418
384
|
setMaxSpeed(maxSpeed) {
|
|
419
385
|
this._particleSystemList.forEach(particle => {
|
|
420
386
|
particle.maximumSpeed = maxSpeed;
|
|
421
387
|
});
|
|
422
|
-
}
|
|
423
|
-
|
|
388
|
+
} //设置初始比例
|
|
389
|
+
|
|
390
|
+
|
|
424
391
|
setStartScale(startScale) {
|
|
425
392
|
this._particleSystemList.forEach(particle => {
|
|
426
393
|
particle.startScale = startScale;
|
|
427
394
|
});
|
|
428
|
-
}
|
|
429
|
-
|
|
395
|
+
} //设置结束比例
|
|
396
|
+
|
|
397
|
+
|
|
430
398
|
setEndScale(endScale) {
|
|
431
399
|
this._particleSystemList.forEach(particle => {
|
|
432
400
|
particle.endScale = endScale;
|
|
433
401
|
});
|
|
434
|
-
}
|
|
435
|
-
|
|
402
|
+
} //设置重力
|
|
403
|
+
|
|
404
|
+
|
|
436
405
|
setGravity(gravity) {
|
|
437
406
|
_gravity = gravity;
|
|
438
407
|
}
|
|
408
|
+
|
|
439
409
|
}
|
|
440
410
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
441
411
|
var util_ = __webpack_require__(3458);
|
|
442
412
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
443
413
|
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
444
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/particleeffect/ParticleEffect.vue?vue&type=script&setup=true&lang=js
|
|
414
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/webgl/particleeffect/ParticleEffect.vue?vue&type=script&setup=true&lang=js
|
|
445
415
|
|
|
446
416
|
const _hoisted_1 = {
|
|
447
417
|
class: "kq3d-particle-effect-box"
|
|
@@ -469,6 +439,7 @@ const __default__ = {
|
|
|
469
439
|
type: Boolean,
|
|
470
440
|
default: true
|
|
471
441
|
},
|
|
442
|
+
|
|
472
443
|
/**
|
|
473
444
|
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
474
445
|
*/
|
|
@@ -498,6 +469,7 @@ const __default__ = {
|
|
|
498
469
|
default: true
|
|
499
470
|
}
|
|
500
471
|
},
|
|
472
|
+
|
|
501
473
|
setup(__props, {
|
|
502
474
|
expose: __expose
|
|
503
475
|
}) {
|
|
@@ -506,9 +478,7 @@ const __default__ = {
|
|
|
506
478
|
proxy
|
|
507
479
|
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
508
480
|
let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
|
|
509
|
-
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]);
|
|
510
|
-
|
|
511
|
-
// 获取组件传参
|
|
481
|
+
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]); // 获取组件传参
|
|
512
482
|
|
|
513
483
|
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
514
484
|
collapseValue: props.settingParams && props.settingParams.collapseValue || ((props.settingParams && props.settingParams.collapseValue) == '' ? "" : "setting"),
|
|
@@ -524,16 +494,13 @@ const __default__ = {
|
|
|
524
494
|
endScale: props.settingParams && props.settingParams.endScale || 1.0,
|
|
525
495
|
gravity: props.settingParams && props.settingParams.gravity || 0.0
|
|
526
496
|
});
|
|
527
|
-
let viewModel = null;
|
|
497
|
+
let viewModel = null; // 组件容器Ref
|
|
528
498
|
|
|
529
|
-
//
|
|
530
|
-
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
499
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
531
500
|
|
|
532
|
-
// 生成组件默认header
|
|
533
501
|
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
534
|
-
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
502
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 国际化
|
|
535
503
|
|
|
536
|
-
// 国际化
|
|
537
504
|
let {
|
|
538
505
|
locale,
|
|
539
506
|
messages
|
|
@@ -556,26 +523,29 @@ const __default__ = {
|
|
|
556
523
|
});
|
|
557
524
|
});
|
|
558
525
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
526
|
+
|
|
559
527
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
560
528
|
if (scenceView) {
|
|
561
529
|
viewModel = new ParticleEffectViewModel(scenceView);
|
|
562
530
|
}
|
|
563
531
|
});
|
|
564
532
|
});
|
|
565
|
-
|
|
566
533
|
/**
|
|
567
534
|
* @description 监听header生成
|
|
568
535
|
*/
|
|
536
|
+
|
|
569
537
|
const watchCreateHeaderTemp = () => {
|
|
570
538
|
if (props.showHeaderTemp) {
|
|
571
539
|
// 生成headerTemp
|
|
572
540
|
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
573
541
|
}
|
|
574
542
|
};
|
|
543
|
+
|
|
575
544
|
function changeMode(mode) {
|
|
576
545
|
if (formItem.mode !== mode) {
|
|
577
546
|
// viewModel && viewModel.clear();
|
|
578
547
|
formItem.mode = mode;
|
|
548
|
+
|
|
579
549
|
if (mode === "flame") {
|
|
580
550
|
formItem.particleNum = 40;
|
|
581
551
|
formItem.particleSize = 2.5;
|
|
@@ -599,66 +569,89 @@ const __default__ = {
|
|
|
599
569
|
}
|
|
600
570
|
}
|
|
601
571
|
}
|
|
572
|
+
|
|
602
573
|
function paramsChanged(key) {
|
|
603
574
|
switch (key) {
|
|
604
575
|
case "particleNum":
|
|
605
576
|
viewModel.setParticleNumber(formItem.particleNum);
|
|
606
577
|
break;
|
|
578
|
+
|
|
607
579
|
case "particleSize":
|
|
608
580
|
viewModel.setParticleSize(formItem.particleSize);
|
|
609
581
|
break;
|
|
582
|
+
|
|
610
583
|
case "minLifeCycle":
|
|
611
584
|
viewModel.setMinLifeCycle(formItem.minLifeCycle);
|
|
612
585
|
break;
|
|
586
|
+
|
|
613
587
|
case "maxLifeCycle":
|
|
614
588
|
viewModel.setmaxLifeCycle(formItem.maxLifeCycle);
|
|
615
589
|
break;
|
|
590
|
+
|
|
616
591
|
case "minSpeed":
|
|
617
592
|
viewModel.setMinSpeed(formItem.minSpeed);
|
|
618
593
|
break;
|
|
594
|
+
|
|
619
595
|
case "maxSpeed":
|
|
620
596
|
viewModel.setMaxSpeed(formItem.maxSpeed);
|
|
621
597
|
break;
|
|
598
|
+
|
|
622
599
|
case "startScale":
|
|
623
600
|
viewModel.setStartScale(formItem.startScale);
|
|
624
601
|
break;
|
|
602
|
+
|
|
625
603
|
case "endScale":
|
|
626
604
|
viewModel.setEndScale(formItem.endScale);
|
|
627
605
|
break;
|
|
606
|
+
|
|
628
607
|
case "gravity":
|
|
629
608
|
viewModel.setGravity(formItem.gravity);
|
|
630
609
|
break;
|
|
610
|
+
|
|
631
611
|
default:
|
|
632
612
|
break;
|
|
633
613
|
}
|
|
634
614
|
}
|
|
615
|
+
|
|
635
616
|
function add() {
|
|
636
617
|
viewModel && viewModel.addParticleEffect(formItem);
|
|
637
618
|
}
|
|
619
|
+
|
|
638
620
|
function clear() {
|
|
639
621
|
viewModel && viewModel.clear();
|
|
640
|
-
}
|
|
622
|
+
} // 销毁
|
|
623
|
+
|
|
641
624
|
|
|
642
|
-
// 销毁
|
|
643
625
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
644
626
|
viewModel && viewModel.destroy();
|
|
645
627
|
});
|
|
628
|
+
|
|
646
629
|
__expose({
|
|
647
630
|
changeMode,
|
|
648
631
|
paramsChanged,
|
|
649
632
|
add,
|
|
650
633
|
clear
|
|
651
634
|
});
|
|
635
|
+
|
|
652
636
|
return (_ctx, _cache) => {
|
|
653
637
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
638
|
+
|
|
654
639
|
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
640
|
+
|
|
655
641
|
const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
|
|
642
|
+
|
|
656
643
|
const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
|
|
644
|
+
|
|
657
645
|
const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
|
|
646
|
+
|
|
658
647
|
const _component_kq_form_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form-item");
|
|
648
|
+
|
|
659
649
|
const _component_kq_form = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form");
|
|
650
|
+
|
|
660
651
|
const _component_kq_collapse_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse-item");
|
|
652
|
+
|
|
661
653
|
const _component_kq_collapse = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse");
|
|
654
|
+
|
|
662
655
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
663
656
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-particle-effect", {
|
|
664
657
|
'kq-box-shadow': __props.showShadow
|
|
@@ -669,7 +662,9 @@ const __default__ = {
|
|
|
669
662
|
key: 0,
|
|
670
663
|
ref_key: "headerTempRef",
|
|
671
664
|
ref: headerTempRef
|
|
672
|
-
}, null, 512
|
|
665
|
+
}, null, 512
|
|
666
|
+
/* NEED_PATCH */
|
|
667
|
+
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
673
668
|
gutter: 20,
|
|
674
669
|
class: "rowclass"
|
|
675
670
|
}, {
|
|
@@ -678,18 +673,28 @@ const __default__ = {
|
|
|
678
673
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(['kq3d-particle-effect-btn', (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).mode === 'flame' ? 'kq3d-particle-effect-btn_active' : '']),
|
|
679
674
|
onClick: _cache[0] || (_cache[0] = $event => changeMode('flame')),
|
|
680
675
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).flame
|
|
681
|
-
}, null, 8
|
|
676
|
+
}, null, 8
|
|
677
|
+
/* PROPS */
|
|
678
|
+
, ["icon", "class", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
682
679
|
icon: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconSmoke),
|
|
683
680
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(['kq3d-particle-effect-btn', (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).mode === 'smoke' ? 'kq3d-particle-effect-btn_active' : '']),
|
|
684
681
|
onClick: _cache[1] || (_cache[1] = $event => changeMode('smoke')),
|
|
685
682
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).smoke
|
|
686
|
-
}, null, 8
|
|
687
|
-
|
|
683
|
+
}, null, 8
|
|
684
|
+
/* PROPS */
|
|
685
|
+
, ["icon", "class", "title"])]),
|
|
686
|
+
_: 1
|
|
687
|
+
/* STABLE */
|
|
688
|
+
|
|
688
689
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
689
690
|
class: "kq3d-particle-effect-tip"
|
|
690
691
|
}, {
|
|
691
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).particleTips), 1
|
|
692
|
-
|
|
692
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).particleTips), 1
|
|
693
|
+
/* TEXT */
|
|
694
|
+
)]),
|
|
695
|
+
_: 1
|
|
696
|
+
/* STABLE */
|
|
697
|
+
|
|
693
698
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_collapse, {
|
|
694
699
|
"model-value": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).collapseValue,
|
|
695
700
|
class: "kq3d-particle-effect-collapse"
|
|
@@ -721,8 +726,12 @@ const __default__ = {
|
|
|
721
726
|
min: 0,
|
|
722
727
|
max: 1000,
|
|
723
728
|
onChange: _cache[3] || (_cache[3] = $event => paramsChanged('particleNum'))
|
|
724
|
-
}, null, 8
|
|
725
|
-
|
|
729
|
+
}, null, 8
|
|
730
|
+
/* PROPS */
|
|
731
|
+
, ["modelValue"])]),
|
|
732
|
+
_: 1
|
|
733
|
+
/* STABLE */
|
|
734
|
+
|
|
726
735
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
727
736
|
span: 8
|
|
728
737
|
}, {
|
|
@@ -734,14 +743,26 @@ const __default__ = {
|
|
|
734
743
|
max: 1000,
|
|
735
744
|
onChange: _cache[5] || (_cache[5] = $event => paramsChanged('particleNum')),
|
|
736
745
|
"controls-position": "right"
|
|
737
|
-
}, null, 8
|
|
738
|
-
|
|
746
|
+
}, null, 8
|
|
747
|
+
/* PROPS */
|
|
748
|
+
, ["modelValue"])]),
|
|
749
|
+
_: 1
|
|
750
|
+
/* STABLE */
|
|
751
|
+
|
|
739
752
|
})]),
|
|
740
|
-
_: 1
|
|
753
|
+
_: 1
|
|
754
|
+
/* STABLE */
|
|
755
|
+
|
|
741
756
|
})]),
|
|
742
|
-
_: 1
|
|
743
|
-
|
|
744
|
-
|
|
757
|
+
_: 1
|
|
758
|
+
/* STABLE */
|
|
759
|
+
|
|
760
|
+
}, 8
|
|
761
|
+
/* PROPS */
|
|
762
|
+
, ["label"])]),
|
|
763
|
+
_: 1
|
|
764
|
+
/* STABLE */
|
|
765
|
+
|
|
745
766
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
746
767
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
|
|
747
768
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).particleSize
|
|
@@ -761,8 +782,12 @@ const __default__ = {
|
|
|
761
782
|
min: 0.1,
|
|
762
783
|
max: 5,
|
|
763
784
|
onChange: _cache[7] || (_cache[7] = $event => paramsChanged('particleSize'))
|
|
764
|
-
}, null, 8
|
|
765
|
-
|
|
785
|
+
}, null, 8
|
|
786
|
+
/* PROPS */
|
|
787
|
+
, ["modelValue", "step", "min"])]),
|
|
788
|
+
_: 1
|
|
789
|
+
/* STABLE */
|
|
790
|
+
|
|
766
791
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
767
792
|
span: 8
|
|
768
793
|
}, {
|
|
@@ -774,14 +799,26 @@ const __default__ = {
|
|
|
774
799
|
max: 5,
|
|
775
800
|
onChange: _cache[9] || (_cache[9] = $event => paramsChanged('particleSize')),
|
|
776
801
|
"controls-position": "right"
|
|
777
|
-
}, null, 8
|
|
778
|
-
|
|
802
|
+
}, null, 8
|
|
803
|
+
/* PROPS */
|
|
804
|
+
, ["modelValue", "step", "min"])]),
|
|
805
|
+
_: 1
|
|
806
|
+
/* STABLE */
|
|
807
|
+
|
|
779
808
|
})]),
|
|
780
|
-
_: 1
|
|
809
|
+
_: 1
|
|
810
|
+
/* STABLE */
|
|
811
|
+
|
|
781
812
|
})]),
|
|
782
|
-
_: 1
|
|
783
|
-
|
|
784
|
-
|
|
813
|
+
_: 1
|
|
814
|
+
/* STABLE */
|
|
815
|
+
|
|
816
|
+
}, 8
|
|
817
|
+
/* PROPS */
|
|
818
|
+
, ["label"])]),
|
|
819
|
+
_: 1
|
|
820
|
+
/* STABLE */
|
|
821
|
+
|
|
785
822
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
786
823
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
|
|
787
824
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).minLifeCycle
|
|
@@ -801,8 +838,12 @@ const __default__ = {
|
|
|
801
838
|
min: 0.1,
|
|
802
839
|
max: 5,
|
|
803
840
|
onChange: _cache[11] || (_cache[11] = $event => paramsChanged('minLifeCycle'))
|
|
804
|
-
}, null, 8
|
|
805
|
-
|
|
841
|
+
}, null, 8
|
|
842
|
+
/* PROPS */
|
|
843
|
+
, ["modelValue", "step", "min"])]),
|
|
844
|
+
_: 1
|
|
845
|
+
/* STABLE */
|
|
846
|
+
|
|
806
847
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
807
848
|
span: 8
|
|
808
849
|
}, {
|
|
@@ -814,14 +855,26 @@ const __default__ = {
|
|
|
814
855
|
max: 5,
|
|
815
856
|
onChange: _cache[13] || (_cache[13] = $event => paramsChanged('minLifeCycle')),
|
|
816
857
|
"controls-position": "right"
|
|
817
|
-
}, null, 8
|
|
818
|
-
|
|
858
|
+
}, null, 8
|
|
859
|
+
/* PROPS */
|
|
860
|
+
, ["modelValue", "step", "min"])]),
|
|
861
|
+
_: 1
|
|
862
|
+
/* STABLE */
|
|
863
|
+
|
|
819
864
|
})]),
|
|
820
|
-
_: 1
|
|
865
|
+
_: 1
|
|
866
|
+
/* STABLE */
|
|
867
|
+
|
|
821
868
|
})]),
|
|
822
|
-
_: 1
|
|
823
|
-
|
|
824
|
-
|
|
869
|
+
_: 1
|
|
870
|
+
/* STABLE */
|
|
871
|
+
|
|
872
|
+
}, 8
|
|
873
|
+
/* PROPS */
|
|
874
|
+
, ["label"])]),
|
|
875
|
+
_: 1
|
|
876
|
+
/* STABLE */
|
|
877
|
+
|
|
825
878
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
826
879
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
|
|
827
880
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).maxLifeCycle
|
|
@@ -841,8 +894,12 @@ const __default__ = {
|
|
|
841
894
|
min: 0.1,
|
|
842
895
|
max: 5,
|
|
843
896
|
onChange: _cache[15] || (_cache[15] = $event => paramsChanged('maxLifeCycle'))
|
|
844
|
-
}, null, 8
|
|
845
|
-
|
|
897
|
+
}, null, 8
|
|
898
|
+
/* PROPS */
|
|
899
|
+
, ["modelValue", "step", "min"])]),
|
|
900
|
+
_: 1
|
|
901
|
+
/* STABLE */
|
|
902
|
+
|
|
846
903
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
847
904
|
span: 8
|
|
848
905
|
}, {
|
|
@@ -854,14 +911,26 @@ const __default__ = {
|
|
|
854
911
|
max: 5,
|
|
855
912
|
onChange: _cache[17] || (_cache[17] = $event => paramsChanged('maxLifeCycle')),
|
|
856
913
|
"controls-position": "right"
|
|
857
|
-
}, null, 8
|
|
858
|
-
|
|
914
|
+
}, null, 8
|
|
915
|
+
/* PROPS */
|
|
916
|
+
, ["modelValue", "step", "min"])]),
|
|
917
|
+
_: 1
|
|
918
|
+
/* STABLE */
|
|
919
|
+
|
|
859
920
|
})]),
|
|
860
|
-
_: 1
|
|
921
|
+
_: 1
|
|
922
|
+
/* STABLE */
|
|
923
|
+
|
|
861
924
|
})]),
|
|
862
|
-
_: 1
|
|
863
|
-
|
|
864
|
-
|
|
925
|
+
_: 1
|
|
926
|
+
/* STABLE */
|
|
927
|
+
|
|
928
|
+
}, 8
|
|
929
|
+
/* PROPS */
|
|
930
|
+
, ["label"])]),
|
|
931
|
+
_: 1
|
|
932
|
+
/* STABLE */
|
|
933
|
+
|
|
865
934
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
866
935
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
|
|
867
936
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).minSpeed
|
|
@@ -881,8 +950,12 @@ const __default__ = {
|
|
|
881
950
|
min: 1,
|
|
882
951
|
max: 50,
|
|
883
952
|
onChange: _cache[19] || (_cache[19] = $event => paramsChanged('minSpeed'))
|
|
884
|
-
}, null, 8
|
|
885
|
-
|
|
953
|
+
}, null, 8
|
|
954
|
+
/* PROPS */
|
|
955
|
+
, ["modelValue"])]),
|
|
956
|
+
_: 1
|
|
957
|
+
/* STABLE */
|
|
958
|
+
|
|
886
959
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
887
960
|
span: 8
|
|
888
961
|
}, {
|
|
@@ -894,14 +967,26 @@ const __default__ = {
|
|
|
894
967
|
max: 50,
|
|
895
968
|
onChange: _cache[21] || (_cache[21] = $event => paramsChanged('minSpeed')),
|
|
896
969
|
"controls-position": "right"
|
|
897
|
-
}, null, 8
|
|
898
|
-
|
|
970
|
+
}, null, 8
|
|
971
|
+
/* PROPS */
|
|
972
|
+
, ["modelValue"])]),
|
|
973
|
+
_: 1
|
|
974
|
+
/* STABLE */
|
|
975
|
+
|
|
899
976
|
})]),
|
|
900
|
-
_: 1
|
|
977
|
+
_: 1
|
|
978
|
+
/* STABLE */
|
|
979
|
+
|
|
901
980
|
})]),
|
|
902
|
-
_: 1
|
|
903
|
-
|
|
904
|
-
|
|
981
|
+
_: 1
|
|
982
|
+
/* STABLE */
|
|
983
|
+
|
|
984
|
+
}, 8
|
|
985
|
+
/* PROPS */
|
|
986
|
+
, ["label"])]),
|
|
987
|
+
_: 1
|
|
988
|
+
/* STABLE */
|
|
989
|
+
|
|
905
990
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
906
991
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
|
|
907
992
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).maxSpeed
|
|
@@ -921,8 +1006,12 @@ const __default__ = {
|
|
|
921
1006
|
min: 1,
|
|
922
1007
|
max: 50,
|
|
923
1008
|
onChange: _cache[23] || (_cache[23] = $event => paramsChanged('maxSpeed'))
|
|
924
|
-
}, null, 8
|
|
925
|
-
|
|
1009
|
+
}, null, 8
|
|
1010
|
+
/* PROPS */
|
|
1011
|
+
, ["modelValue"])]),
|
|
1012
|
+
_: 1
|
|
1013
|
+
/* STABLE */
|
|
1014
|
+
|
|
926
1015
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
927
1016
|
span: 8
|
|
928
1017
|
}, {
|
|
@@ -934,14 +1023,26 @@ const __default__ = {
|
|
|
934
1023
|
max: 50,
|
|
935
1024
|
onChange: _cache[25] || (_cache[25] = $event => paramsChanged('maxSpeed')),
|
|
936
1025
|
"controls-position": "right"
|
|
937
|
-
}, null, 8
|
|
938
|
-
|
|
1026
|
+
}, null, 8
|
|
1027
|
+
/* PROPS */
|
|
1028
|
+
, ["modelValue"])]),
|
|
1029
|
+
_: 1
|
|
1030
|
+
/* STABLE */
|
|
1031
|
+
|
|
939
1032
|
})]),
|
|
940
|
-
_: 1
|
|
1033
|
+
_: 1
|
|
1034
|
+
/* STABLE */
|
|
1035
|
+
|
|
941
1036
|
})]),
|
|
942
|
-
_: 1
|
|
943
|
-
|
|
944
|
-
|
|
1037
|
+
_: 1
|
|
1038
|
+
/* STABLE */
|
|
1039
|
+
|
|
1040
|
+
}, 8
|
|
1041
|
+
/* PROPS */
|
|
1042
|
+
, ["label"])]),
|
|
1043
|
+
_: 1
|
|
1044
|
+
/* STABLE */
|
|
1045
|
+
|
|
945
1046
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
946
1047
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
|
|
947
1048
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startScale
|
|
@@ -961,8 +1062,12 @@ const __default__ = {
|
|
|
961
1062
|
max: 10.0,
|
|
962
1063
|
step: 0.1,
|
|
963
1064
|
onChange: _cache[27] || (_cache[27] = $event => paramsChanged('startScale'))
|
|
964
|
-
}, null, 8
|
|
965
|
-
|
|
1065
|
+
}, null, 8
|
|
1066
|
+
/* PROPS */
|
|
1067
|
+
, ["modelValue", "min", "max", "step"])]),
|
|
1068
|
+
_: 1
|
|
1069
|
+
/* STABLE */
|
|
1070
|
+
|
|
966
1071
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
967
1072
|
span: 8
|
|
968
1073
|
}, {
|
|
@@ -974,14 +1079,26 @@ const __default__ = {
|
|
|
974
1079
|
step: 0.1,
|
|
975
1080
|
onChange: _cache[29] || (_cache[29] = $event => paramsChanged('startScale')),
|
|
976
1081
|
"controls-position": "right"
|
|
977
|
-
}, null, 8
|
|
978
|
-
|
|
1082
|
+
}, null, 8
|
|
1083
|
+
/* PROPS */
|
|
1084
|
+
, ["modelValue", "min", "max", "step"])]),
|
|
1085
|
+
_: 1
|
|
1086
|
+
/* STABLE */
|
|
1087
|
+
|
|
979
1088
|
})]),
|
|
980
|
-
_: 1
|
|
1089
|
+
_: 1
|
|
1090
|
+
/* STABLE */
|
|
1091
|
+
|
|
981
1092
|
})]),
|
|
982
|
-
_: 1
|
|
983
|
-
|
|
984
|
-
|
|
1093
|
+
_: 1
|
|
1094
|
+
/* STABLE */
|
|
1095
|
+
|
|
1096
|
+
}, 8
|
|
1097
|
+
/* PROPS */
|
|
1098
|
+
, ["label"])]),
|
|
1099
|
+
_: 1
|
|
1100
|
+
/* STABLE */
|
|
1101
|
+
|
|
985
1102
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
986
1103
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
|
|
987
1104
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).endScale
|
|
@@ -1001,8 +1118,12 @@ const __default__ = {
|
|
|
1001
1118
|
max: 10.0,
|
|
1002
1119
|
step: 0.1,
|
|
1003
1120
|
onChange: _cache[31] || (_cache[31] = $event => paramsChanged('endScale'))
|
|
1004
|
-
}, null, 8
|
|
1005
|
-
|
|
1121
|
+
}, null, 8
|
|
1122
|
+
/* PROPS */
|
|
1123
|
+
, ["modelValue", "min", "max", "step"])]),
|
|
1124
|
+
_: 1
|
|
1125
|
+
/* STABLE */
|
|
1126
|
+
|
|
1006
1127
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
1007
1128
|
span: 8
|
|
1008
1129
|
}, {
|
|
@@ -1014,14 +1135,26 @@ const __default__ = {
|
|
|
1014
1135
|
step: 0.1,
|
|
1015
1136
|
onChange: _cache[33] || (_cache[33] = $event => paramsChanged('endScale')),
|
|
1016
1137
|
"controls-position": "right"
|
|
1017
|
-
}, null, 8
|
|
1018
|
-
|
|
1138
|
+
}, null, 8
|
|
1139
|
+
/* PROPS */
|
|
1140
|
+
, ["modelValue", "min", "max", "step"])]),
|
|
1141
|
+
_: 1
|
|
1142
|
+
/* STABLE */
|
|
1143
|
+
|
|
1019
1144
|
})]),
|
|
1020
|
-
_: 1
|
|
1145
|
+
_: 1
|
|
1146
|
+
/* STABLE */
|
|
1147
|
+
|
|
1021
1148
|
})]),
|
|
1022
|
-
_: 1
|
|
1023
|
-
|
|
1024
|
-
|
|
1149
|
+
_: 1
|
|
1150
|
+
/* STABLE */
|
|
1151
|
+
|
|
1152
|
+
}, 8
|
|
1153
|
+
/* PROPS */
|
|
1154
|
+
, ["label"])]),
|
|
1155
|
+
_: 1
|
|
1156
|
+
/* STABLE */
|
|
1157
|
+
|
|
1025
1158
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
1026
1159
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
|
|
1027
1160
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).gravity
|
|
@@ -1041,8 +1174,12 @@ const __default__ = {
|
|
|
1041
1174
|
min: 0.0,
|
|
1042
1175
|
max: 10,
|
|
1043
1176
|
onChange: _cache[35] || (_cache[35] = $event => paramsChanged('gravity'))
|
|
1044
|
-
}, null, 8
|
|
1045
|
-
|
|
1177
|
+
}, null, 8
|
|
1178
|
+
/* PROPS */
|
|
1179
|
+
, ["modelValue", "step", "min"])]),
|
|
1180
|
+
_: 1
|
|
1181
|
+
/* STABLE */
|
|
1182
|
+
|
|
1046
1183
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
1047
1184
|
span: 8
|
|
1048
1185
|
}, {
|
|
@@ -1054,36 +1191,75 @@ const __default__ = {
|
|
|
1054
1191
|
step: 0.1,
|
|
1055
1192
|
onChange: _cache[37] || (_cache[37] = $event => paramsChanged('gravity')),
|
|
1056
1193
|
"controls-position": "right"
|
|
1057
|
-
}, null, 8
|
|
1058
|
-
|
|
1194
|
+
}, null, 8
|
|
1195
|
+
/* PROPS */
|
|
1196
|
+
, ["modelValue", "min", "step"])]),
|
|
1197
|
+
_: 1
|
|
1198
|
+
/* STABLE */
|
|
1199
|
+
|
|
1059
1200
|
})]),
|
|
1060
|
-
_: 1
|
|
1201
|
+
_: 1
|
|
1202
|
+
/* STABLE */
|
|
1203
|
+
|
|
1061
1204
|
})]),
|
|
1062
|
-
_: 1
|
|
1063
|
-
|
|
1064
|
-
|
|
1205
|
+
_: 1
|
|
1206
|
+
/* STABLE */
|
|
1207
|
+
|
|
1208
|
+
}, 8
|
|
1209
|
+
/* PROPS */
|
|
1210
|
+
, ["label"])]),
|
|
1211
|
+
_: 1
|
|
1212
|
+
/* STABLE */
|
|
1213
|
+
|
|
1065
1214
|
})]),
|
|
1066
|
-
_: 1
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1215
|
+
_: 1
|
|
1216
|
+
/* STABLE */
|
|
1217
|
+
|
|
1218
|
+
}, 8
|
|
1219
|
+
/* PROPS */
|
|
1220
|
+
, ["label-width"])]),
|
|
1221
|
+
_: 1
|
|
1222
|
+
/* STABLE */
|
|
1223
|
+
|
|
1224
|
+
}, 8
|
|
1225
|
+
/* PROPS */
|
|
1226
|
+
, ["title"])]),
|
|
1227
|
+
_: 1
|
|
1228
|
+
/* STABLE */
|
|
1229
|
+
|
|
1230
|
+
}, 8
|
|
1231
|
+
/* PROPS */
|
|
1232
|
+
, ["model-value"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
1072
1233
|
onClick: _cache[38] || (_cache[38] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => add(), ["stop"])),
|
|
1073
1234
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).add,
|
|
1074
1235
|
type: "primary"
|
|
1075
1236
|
}, {
|
|
1076
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).add), 1
|
|
1077
|
-
|
|
1078
|
-
|
|
1237
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).add), 1
|
|
1238
|
+
/* TEXT */
|
|
1239
|
+
)]),
|
|
1240
|
+
_: 1
|
|
1241
|
+
/* STABLE */
|
|
1242
|
+
|
|
1243
|
+
}, 8
|
|
1244
|
+
/* PROPS */
|
|
1245
|
+
, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
1079
1246
|
onClick: _cache[39] || (_cache[39] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clear(), ["stop"])),
|
|
1080
1247
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear
|
|
1081
1248
|
}, {
|
|
1082
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear), 1
|
|
1083
|
-
|
|
1084
|
-
|
|
1249
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear), 1
|
|
1250
|
+
/* TEXT */
|
|
1251
|
+
)]),
|
|
1252
|
+
_: 1
|
|
1253
|
+
/* STABLE */
|
|
1254
|
+
|
|
1255
|
+
}, 8
|
|
1256
|
+
/* PROPS */
|
|
1257
|
+
, ["title"])])])], 2
|
|
1258
|
+
/* CLASS */
|
|
1259
|
+
);
|
|
1085
1260
|
};
|
|
1086
1261
|
}
|
|
1262
|
+
|
|
1087
1263
|
}));
|
|
1088
1264
|
;// CONCATENATED MODULE: ./src/webgl/particleeffect/ParticleEffect.vue?vue&type=script&setup=true&lang=js
|
|
1089
1265
|
|
|
@@ -1105,11 +1281,13 @@ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
|
1105
1281
|
|
|
1106
1282
|
|
|
1107
1283
|
|
|
1284
|
+
|
|
1108
1285
|
ParticleEffect.install = (Vue, opts) => {
|
|
1109
1286
|
init_js_default()(Vue, opts);
|
|
1110
1287
|
Vue.component(ParticleEffect.name, ParticleEffect);
|
|
1111
1288
|
};
|
|
1112
1289
|
|
|
1290
|
+
|
|
1113
1291
|
}();
|
|
1114
1292
|
/******/ return __webpack_exports__;
|
|
1115
1293
|
/******/ })()
|