@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.
Files changed (68) hide show
  1. package/adddata/index.js +518 -262
  2. package/adddata/style/adddata.css +1 -1
  3. package/aspectanalysis/index.js +201 -123
  4. package/baseterraingallery/index.js +123 -94
  5. package/baseterraingallery/style/baseterraingallery.css +1 -1
  6. package/boxclip/index.js +442 -249
  7. package/clientPrint/index.js +27093 -14116
  8. package/clientPrint/style/clientPrint.css +1 -1
  9. package/comparemap/index.js +243 -213
  10. package/compass/index.js +68 -74
  11. package/excavatefillanalysis/index.js +225 -143
  12. package/fixedzoomin/index.js +82 -72
  13. package/fixedzoomout/index.js +80 -71
  14. package/flight/index.js +371 -257
  15. package/flight/style/flight.css +1 -1
  16. package/floodanalysis/index.js +347 -199
  17. package/geologicalbodyanalysis/index.js +260 -166
  18. package/gpuspatialquery/index.js +359 -198
  19. package/hawkeye/index.js +100 -131
  20. package/headertemp/index.js +25 -14
  21. package/heatmap3d/index.js +678 -366
  22. package/heatmap3d/style/heatmap3d.css +1 -1
  23. package/index.js +20321 -7165
  24. package/isolineanalysis/index.js +1202 -504
  25. package/light/index.js +494 -349
  26. package/limitheightanalysis/index.js +223 -159
  27. package/measure/index.js +353 -198
  28. package/modelFlat/index.js +204 -167
  29. package/modelexcavate/index.js +191 -130
  30. package/modelfilter/index.js +271 -179
  31. package/modelprofileanalysis/index.js +316 -206
  32. package/modelselect/index.js +147 -142
  33. package/package.json +1 -1
  34. package/particleeffect/index.js +403 -225
  35. package/planeclip/index.js +300 -198
  36. package/resetview/index.js +52 -66
  37. package/roller/index.js +372 -304
  38. package/scaneffect/index.js +537 -230
  39. package/sceneadvancedtoimage/index.js +358 -205
  40. package/sceneadvancedtoimage/style/sceneadvancedtoimage.css +1 -1
  41. package/sceneapp/index.js +27093 -14116
  42. package/sceneset/index.js +864 -350
  43. package/scenetohdimage/index.js +297 -159
  44. package/scenetohdimage/style/scenetohdimage.css +1 -1
  45. package/sceneview/index.js +27093 -14116
  46. package/sceneview/style/sceneview.css +1 -1
  47. package/screenshot/index.js +301 -257
  48. package/shadowanalysis/index.js +405 -217
  49. package/sightlineanalysis/index.js +271 -183
  50. package/sightlineanalysis/style/divpoint.css +1 -1
  51. package/skylineanalysis/index.js +308 -160
  52. package/slopeanalysis/index.js +397 -227
  53. package/slopeaspectanalysis/index.js +485 -259
  54. package/statusbar/index.js +65 -88
  55. package/style.css +1 -1
  56. package/terrainoperation/index.js +237 -176
  57. package/terrainprofileanalysis/index.js +138 -120
  58. package/typhoontrac/index.js +970 -234
  59. package/typhoontrac/style/typhoontrac.css +1 -1
  60. package/underground/index.js +61 -70
  61. package/videofusion/index.js +488 -265
  62. package/videoproject/index.js +490 -271
  63. package/viewshedanalysis/index.js +255 -151
  64. package/weathereffect/index.js +317 -166
  65. package/windyslicing/index.js +1947 -0
  66. package/windyslicing/style/index.js +3 -0
  67. package/windyslicing/style/windyslicing.css +1 -0
  68. package/wireframesketch/index.js +142 -110
package/light/index.js CHANGED
@@ -2,231 +2,23 @@
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/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/util", "@kq_npm/client_common_vue/init.js"], factory);
6
- else {
7
- var a = typeof exports === 'object' ? factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/_utils/util"), require("@kq_npm/client_common_vue/init.js")) : factory(root["Vue"], root["@kq_npm/client_common_vue/_utils/gis-utils"], root["@kq_npm/client_common_vue/_utils/util"], root["@kq_npm/client_common_vue/init.js"]);
8
- for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
- }
5
+ define("@kq_npm/client3d_webgl_vue", ["vue", "@kq_npm/client_common_vue/_utils/gis-utils", "@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/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/util"], root["@kq_npm/client_common_vue/init.js"]);
10
10
  })(this, function(__WEBPACK_EXTERNAL_MODULE__1895__, __WEBPACK_EXTERNAL_MODULE__7135__, __WEBPACK_EXTERNAL_MODULE__3458__, __WEBPACK_EXTERNAL_MODULE__7997__) {
11
11
  return /******/ (function() { // webpackBootstrap
12
12
  /******/ "use strict";
13
13
  /******/ var __webpack_modules__ = ({
14
14
 
15
- /***/ 348:
16
- /***/ (function(module) {
17
-
18
- module.exports = require("@kq_npm/client_icons_vue");
19
-
20
- /***/ }),
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
- /***/ 7080:
44
- /***/ (function(module) {
45
-
46
- module.exports = require("vue-i18n/dist/vue-i18n.cjs.js");
47
-
48
- /***/ }),
49
-
50
- /***/ 7135:
51
- /***/ (function(module) {
52
-
53
- module.exports = __WEBPACK_EXTERNAL_MODULE__7135__;
54
-
55
- /***/ }),
56
-
57
- /***/ 3458:
58
- /***/ (function(module) {
59
-
60
- module.exports = __WEBPACK_EXTERNAL_MODULE__3458__;
61
-
62
- /***/ }),
63
-
64
- /***/ 7997:
65
- /***/ (function(module) {
66
-
67
- module.exports = __WEBPACK_EXTERNAL_MODULE__7997__;
68
-
69
- /***/ }),
70
-
71
- /***/ 1895:
72
- /***/ (function(module) {
73
-
74
- module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
75
-
76
- /***/ }),
77
-
78
- /***/ 5301:
79
- /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
80
-
81
-
82
- // EXPORTS
83
- __webpack_require__.d(__webpack_exports__, {
84
- "Z": function() { return /* binding */ _defineProperty; }
85
- });
86
-
87
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
88
- function _typeof(o) {
89
- "@babel/helpers - typeof";
90
-
91
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
92
- return typeof o;
93
- } : function (o) {
94
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
95
- }, _typeof(o);
96
- }
97
-
98
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
99
-
100
- function toPrimitive(t, r) {
101
- if ("object" != _typeof(t) || !t) return t;
102
- var e = t[Symbol.toPrimitive];
103
- if (void 0 !== e) {
104
- var i = e.call(t, r || "default");
105
- if ("object" != _typeof(i)) return i;
106
- throw new TypeError("@@toPrimitive must return a primitive value.");
107
- }
108
- return ("string" === r ? String : Number)(t);
109
- }
110
-
111
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
112
-
113
-
114
- function toPropertyKey(t) {
115
- var i = toPrimitive(t, "string");
116
- return "symbol" == _typeof(i) ? i : i + "";
117
- }
118
-
119
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
120
-
121
- function _defineProperty(e, r, t) {
122
- return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
123
- value: t,
124
- enumerable: !0,
125
- configurable: !0,
126
- writable: !0
127
- }) : e[r] = t, e;
128
- }
129
-
130
-
131
- /***/ })
132
-
133
- /******/ });
134
- /************************************************************************/
135
- /******/ // The module cache
136
- /******/ var __webpack_module_cache__ = {};
137
- /******/
138
- /******/ // The require function
139
- /******/ function __webpack_require__(moduleId) {
140
- /******/ // Check if module is in cache
141
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
142
- /******/ if (cachedModule !== undefined) {
143
- /******/ return cachedModule.exports;
144
- /******/ }
145
- /******/ // Create a new module (and put it into the cache)
146
- /******/ var module = __webpack_module_cache__[moduleId] = {
147
- /******/ // no module.id needed
148
- /******/ // no module.loaded needed
149
- /******/ exports: {}
150
- /******/ };
151
- /******/
152
- /******/ // Execute the module function
153
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
154
- /******/
155
- /******/ // Return the exports of the module
156
- /******/ return module.exports;
157
- /******/ }
158
- /******/
159
- /************************************************************************/
160
- /******/ /* webpack/runtime/compat get default export */
161
- /******/ !function() {
162
- /******/ // getDefaultExport function for compatibility with non-harmony modules
163
- /******/ __webpack_require__.n = function(module) {
164
- /******/ var getter = module && module.__esModule ?
165
- /******/ function() { return module['default']; } :
166
- /******/ function() { return module; };
167
- /******/ __webpack_require__.d(getter, { a: getter });
168
- /******/ return getter;
169
- /******/ };
170
- /******/ }();
171
- /******/
172
- /******/ /* webpack/runtime/define property getters */
173
- /******/ !function() {
174
- /******/ // define getter functions for harmony exports
175
- /******/ __webpack_require__.d = function(exports, definition) {
176
- /******/ for(var key in definition) {
177
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
178
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
179
- /******/ }
180
- /******/ }
181
- /******/ };
182
- /******/ }();
183
- /******/
184
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
185
- /******/ !function() {
186
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
187
- /******/ }();
188
- /******/
189
- /******/ /* webpack/runtime/make namespace object */
190
- /******/ !function() {
191
- /******/ // define __esModule on exports
192
- /******/ __webpack_require__.r = function(exports) {
193
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
194
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
195
- /******/ }
196
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
197
- /******/ };
198
- /******/ }();
199
- /******/
200
- /************************************************************************/
201
- var __webpack_exports__ = {};
202
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
203
- !function() {
204
- // ESM COMPAT FLAG
205
- __webpack_require__.r(__webpack_exports__);
206
-
207
- // EXPORTS
208
- __webpack_require__.d(__webpack_exports__, {
209
- "LightViewModel": function() { return /* reexport */ LightViewModel; },
210
- "default": function() { return /* reexport */ Light; }
211
- });
212
-
213
- // EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
214
- var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
215
- // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
216
- var gis_utils_ = __webpack_require__(7135);
217
- // EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
218
- var client_icons_vue_ = __webpack_require__(348);
219
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js + 3 modules
220
- var defineProperty = __webpack_require__(5301);
221
- // EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
222
- var es_array_push_js_ = __webpack_require__(2118);
223
- // EXTERNAL MODULE: external "core-js/modules/esnext.iterator.constructor.js"
224
- var esnext_iterator_constructor_js_ = __webpack_require__(8470);
225
- // EXTERNAL MODULE: external "core-js/modules/esnext.iterator.for-each.js"
226
- var esnext_iterator_for_each_js_ = __webpack_require__(1058);
227
- ;// CONCATENATED MODULE: ./src/webgl/light/LightViewModel.js
228
-
15
+ /***/ 2257:
16
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
229
17
 
18
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
19
+ /* harmony export */ "Z": function() { return /* binding */ LightViewModel; }
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__(8270);
230
22
 
231
23
 
232
24
  /*
@@ -235,34 +27,45 @@ var esnext_iterator_for_each_js_ = __webpack_require__(1058);
235
27
  */
236
28
  //灯光特效逻辑类
237
29
  class LightViewModel {
30
+ //灯光对象
31
+ // 灯光模型对象
32
+ // 灯光模型集合
33
+ //绘制管理对象
34
+ //绘制完成监听事件
35
+ //灯光存储参数对象
238
36
  //灯光对象集合
239
-
240
37
  constructor(scenceView, options) {
241
- (0,defineProperty/* default */.Z)(this, "_viewer", null);
242
- (0,defineProperty/* default */.Z)(this, "_light", null);
243
- //灯光对象
244
- (0,defineProperty/* default */.Z)(this, "_lightModel", null);
245
- // 灯光模型对象
246
- (0,defineProperty/* default */.Z)(this, "_lightModelDs", null);
247
- // 灯光模型集合
248
- (0,defineProperty/* default */.Z)(this, "_drawManager", null);
249
- //绘制管理对象
250
- (0,defineProperty/* default */.Z)(this, "_removeEventListener", null);
251
- //绘制完成监听事件
252
- (0,defineProperty/* default */.Z)(this, "_options", null);
253
- //灯光存储参数对象
254
- (0,defineProperty/* default */.Z)(this, "_lightList", []);
38
+ (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_viewer", null);
39
+
40
+ (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_light", null);
41
+
42
+ (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_lightModel", null);
43
+
44
+ (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_lightModelDs", null);
45
+
46
+ (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_drawManager", null);
47
+
48
+ (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_removeEventListener", null);
49
+
50
+ (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_options", null);
51
+
52
+ (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_lightList", []);
53
+
255
54
  this._options = options;
256
55
  this._viewer = scenceView._viewer;
257
56
  this._drawManager = scenceView._drawManager;
258
57
  this._drawHandler = this._drawManager._drawHandler.drawHandler;
259
58
  this._lightModelDs = new Cesium.CustomDataSource("LightModel");
59
+
260
60
  this._viewer.dataSources.add(this._lightModelDs);
61
+
261
62
  var that = this;
262
63
  that._removeEventListener = that._drawManager.drawFinishedEvent.addEventListener(shape => {
263
64
  if (shape && shape.type === "marker") {
264
65
  that._drawManager.clear();
66
+
265
67
  let position = shape.position;
68
+
266
69
  if (position) {
267
70
  if (that._options.mode == "point") {
268
71
  that.addPointLight(position);
@@ -273,19 +76,23 @@ class LightViewModel {
273
76
  }
274
77
  });
275
78
  that._handler = new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas);
79
+
276
80
  that._handler.setInputAction(function () {
277
81
  if (that._drawHandler._shapeObject && that._drawHandler._shapeObject.type === "polyline") {
278
82
  let positions = that._drawHandler._shapeObject.controlPoints;
83
+
279
84
  if (positions.length === 3) {
280
85
  that._drawManager.stopDraw();
86
+
281
87
  if (that._options.mode == "parallel") {
282
88
  that.addParallelLight(positions[0], positions[1]);
283
89
  }
284
90
  }
285
91
  }
286
92
  }, Cesium.ScreenSpaceEventType.LEFT_CLICK);
287
- }
288
- //添加灯光
93
+ } //添加灯光
94
+
95
+
289
96
  addLight() {
290
97
  if (this._options) {
291
98
  if (this._options.mode == "point" || this._options.mode == "spot") {
@@ -298,10 +105,12 @@ class LightViewModel {
298
105
  });
299
106
  }
300
107
  }
301
- }
302
- //添加点光源
108
+ } //添加点光源
109
+
110
+
303
111
  addPointLight(position) {
304
112
  let color = Cesium.Color.fromCssColorString(this._options.color);
113
+
305
114
  if (Cesium.SplitDirection) {
306
115
  this._light = new Cesium.Kq3dPointLight({
307
116
  position: position,
@@ -311,6 +120,7 @@ class LightViewModel {
311
120
  decay: this._options.decay,
312
121
  lightIntensity: this._options.intensity
313
122
  });
123
+
314
124
  this._viewer.scene.kq3dLightManager.add(this._light);
315
125
  } else if (Cesium.ImagerySplitDirection) {
316
126
  this._light = new Cesium.Kq3dPointLight({
@@ -323,6 +133,7 @@ class LightViewModel {
323
133
  lightIntensity: this._options.intensity
324
134
  });
325
135
  }
136
+
326
137
  this._lightModel = this._lightModelDs.entities.add({
327
138
  show: this._options.showModel,
328
139
  position: position,
@@ -332,9 +143,11 @@ class LightViewModel {
332
143
  material: color
333
144
  }
334
145
  });
146
+
335
147
  this._lightList.push(this._light);
336
- }
337
- //添加聚光灯
148
+ } //添加聚光灯
149
+
150
+
338
151
  addSpotLight(position) {
339
152
  let color = Cesium.Color.fromCssColorString(this._options.color);
340
153
  let lights = [{
@@ -342,6 +155,7 @@ class LightViewModel {
342
155
  offset: new Cesium.Cartesian3(),
343
156
  direction: new Cesium.Cartesian3(0, 0, -1.0)
344
157
  }];
158
+
345
159
  if (Cesium.SplitDirection) {
346
160
  this._light = new Cesium.Kq3dSpotLightStage({
347
161
  viewer: this._viewer,
@@ -363,8 +177,11 @@ class LightViewModel {
363
177
  lightIntensity: this._options.intensity
364
178
  });
365
179
  }
180
+
366
181
  this._viewer.effects.add(this._light);
182
+
367
183
  this._lightList.push(this._light);
184
+
368
185
  this._lightModel = this._lightModelDs.entities.add({
369
186
  show: this._options.showModel,
370
187
  position: position,
@@ -374,8 +191,9 @@ class LightViewModel {
374
191
  material: color
375
192
  }
376
193
  });
377
- }
378
- //添加平行光
194
+ } //添加平行光
195
+
196
+
379
197
  addParallelLight(positionA, positionB) {
380
198
  let color = Cesium.Color.fromCssColorString(this._options.color);
381
199
  let direction = Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(positionB, positionA, new Cesium.Cartesian3()), new Cesium.Cartesian3());
@@ -384,8 +202,7 @@ class LightViewModel {
384
202
  color: color,
385
203
  intensity: this._options.intensity
386
204
  });
387
- this._viewer.scene.light = this._light;
388
- // this._lightList.push(this._light);
205
+ this._viewer.scene.light = this._light; // this._lightList.push(this._light);
389
206
  // this._lightModel = this._lightModelDs.entities.add({
390
207
  // show: this._options.showModel,
391
208
  // position: positionA,
@@ -395,17 +212,22 @@ class LightViewModel {
395
212
  // material: color
396
213
  // }
397
214
  // });
398
- }
399
- //清除
215
+ } //清除
216
+
217
+
400
218
  clear() {
401
219
  this._drawManager.stopDraw();
220
+
402
221
  this._drawManager.clear();
222
+
403
223
  this._lightModelDs.entities.removeAll();
224
+
404
225
  this.clearLights();
405
226
  this._light = null;
406
227
  this._lightModel = null;
407
- }
408
- // 清除所有灯光
228
+ } // 清除所有灯光
229
+
230
+
409
231
  clearLights() {
410
232
  this._lightList.forEach(light => {
411
233
  if (light._postProcessStage) {
@@ -414,32 +236,38 @@ class LightViewModel {
414
236
  this._viewer.scene.kq3dLightManager.remove(light);
415
237
  }
416
238
  }, this);
417
- this._lightList = [];
418
- // 清除平行光
239
+
240
+ this._lightList = []; // 清除平行光
241
+
419
242
  if (!(this._viewer.scene.light instanceof Cesium.SunLight)) {
420
243
  this._viewer.scene.light = new Cesium.SunLight();
421
244
  }
422
- }
423
- //销毁
245
+ } //销毁
246
+
247
+
424
248
  destroy() {
425
- this.clear();
426
- //移除监听事件
249
+ this.clear(); //移除监听事件
250
+
427
251
  this._removeEventListener && this._removeEventListener();
428
252
  this._removeEventListener = null;
429
253
  this._handler && this._handler.destroy();
430
- }
431
- //设置光源颜色
254
+ } //设置光源颜色
255
+
256
+
432
257
  setColor(color) {
433
258
  let cesiumColor = Cesium.Color.fromCssColorString(color);
259
+
434
260
  if (this._light) {
435
261
  this._light.color = cesiumColor;
436
- }
437
- // 设置光源模型颜色
262
+ } // 设置光源模型颜色
263
+
264
+
438
265
  if (this._lightModel) {
439
266
  this._lightModel.ellipsoid.material = cesiumColor;
440
267
  }
441
- }
442
- //设置扩散距离
268
+ } //设置扩散距离
269
+
270
+
443
271
  setDistance(distance) {
444
272
  if (this._light) {
445
273
  if (Cesium.SplitDirection) {
@@ -452,14 +280,16 @@ class LightViewModel {
452
280
  this._light.cutoffDistance = Number(distance);
453
281
  }
454
282
  }
455
- }
456
- //设置衰减因子
283
+ } //设置衰减因子
284
+
285
+
457
286
  setDecay(decay) {
458
287
  if (this._light) {
459
288
  this._light.decay = Number(decay);
460
289
  }
461
- }
462
- //设置光源强度
290
+ } //设置光源强度
291
+
292
+
463
293
  setIntensity(intensity) {
464
294
  if (this._light) {
465
295
  if (this._options.mode == "parallel") {
@@ -472,26 +302,185 @@ class LightViewModel {
472
302
  }
473
303
  }
474
304
  }
475
- }
476
- //光源模型显隐控制
305
+ } //光源模型显隐控制
306
+
307
+
477
308
  showModel(isShow) {
478
309
  if (this._lightModel) {
479
310
  this._lightModel.show = isShow;
480
- }
481
- //this._lightModelDs.show = isShow;
482
- }
483
- // 设置聚光灯角度
311
+ } //this._lightModelDs.show = isShow;
312
+
313
+ } // 设置聚光灯角度
314
+
315
+
484
316
  showAngle(angle) {
485
317
  if (this._light) {
486
318
  this._light.angle = Number(angle);
487
319
  }
488
320
  }
321
+
489
322
  }
323
+
324
+ /***/ }),
325
+
326
+ /***/ 348:
327
+ /***/ (function(module) {
328
+
329
+ module.exports = require("@kq_npm/client_icons_vue");
330
+
331
+ /***/ }),
332
+
333
+ /***/ 7080:
334
+ /***/ (function(module) {
335
+
336
+ module.exports = require("vue-i18n/dist/vue-i18n.cjs.js");
337
+
338
+ /***/ }),
339
+
340
+ /***/ 7135:
341
+ /***/ (function(module) {
342
+
343
+ module.exports = __WEBPACK_EXTERNAL_MODULE__7135__;
344
+
345
+ /***/ }),
346
+
347
+ /***/ 3458:
348
+ /***/ (function(module) {
349
+
350
+ module.exports = __WEBPACK_EXTERNAL_MODULE__3458__;
351
+
352
+ /***/ }),
353
+
354
+ /***/ 7997:
355
+ /***/ (function(module) {
356
+
357
+ module.exports = __WEBPACK_EXTERNAL_MODULE__7997__;
358
+
359
+ /***/ }),
360
+
361
+ /***/ 1895:
362
+ /***/ (function(module) {
363
+
364
+ module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
365
+
366
+ /***/ }),
367
+
368
+ /***/ 8270:
369
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
370
+
371
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
372
+ /* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
373
+ /* harmony export */ });
374
+ function _defineProperty(obj, key, value) {
375
+ if (key in obj) {
376
+ Object.defineProperty(obj, key, {
377
+ value: value,
378
+ enumerable: true,
379
+ configurable: true,
380
+ writable: true
381
+ });
382
+ } else {
383
+ obj[key] = value;
384
+ }
385
+
386
+ return obj;
387
+ }
388
+
389
+ /***/ })
390
+
391
+ /******/ });
392
+ /************************************************************************/
393
+ /******/ // The module cache
394
+ /******/ var __webpack_module_cache__ = {};
395
+ /******/
396
+ /******/ // The require function
397
+ /******/ function __webpack_require__(moduleId) {
398
+ /******/ // Check if module is in cache
399
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
400
+ /******/ if (cachedModule !== undefined) {
401
+ /******/ return cachedModule.exports;
402
+ /******/ }
403
+ /******/ // Create a new module (and put it into the cache)
404
+ /******/ var module = __webpack_module_cache__[moduleId] = {
405
+ /******/ // no module.id needed
406
+ /******/ // no module.loaded needed
407
+ /******/ exports: {}
408
+ /******/ };
409
+ /******/
410
+ /******/ // Execute the module function
411
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
412
+ /******/
413
+ /******/ // Return the exports of the module
414
+ /******/ return module.exports;
415
+ /******/ }
416
+ /******/
417
+ /************************************************************************/
418
+ /******/ /* webpack/runtime/compat get default export */
419
+ /******/ !function() {
420
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
421
+ /******/ __webpack_require__.n = function(module) {
422
+ /******/ var getter = module && module.__esModule ?
423
+ /******/ function() { return module['default']; } :
424
+ /******/ function() { return module; };
425
+ /******/ __webpack_require__.d(getter, { a: getter });
426
+ /******/ return getter;
427
+ /******/ };
428
+ /******/ }();
429
+ /******/
430
+ /******/ /* webpack/runtime/define property getters */
431
+ /******/ !function() {
432
+ /******/ // define getter functions for harmony exports
433
+ /******/ __webpack_require__.d = function(exports, definition) {
434
+ /******/ for(var key in definition) {
435
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
436
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
437
+ /******/ }
438
+ /******/ }
439
+ /******/ };
440
+ /******/ }();
441
+ /******/
442
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
443
+ /******/ !function() {
444
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
445
+ /******/ }();
446
+ /******/
447
+ /******/ /* webpack/runtime/make namespace object */
448
+ /******/ !function() {
449
+ /******/ // define __esModule on exports
450
+ /******/ __webpack_require__.r = function(exports) {
451
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
452
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
453
+ /******/ }
454
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
455
+ /******/ };
456
+ /******/ }();
457
+ /******/
458
+ /************************************************************************/
459
+ var __webpack_exports__ = {};
460
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
461
+ !function() {
462
+ // ESM COMPAT FLAG
463
+ __webpack_require__.r(__webpack_exports__);
464
+
465
+ // EXPORTS
466
+ __webpack_require__.d(__webpack_exports__, {
467
+ "LightViewModel": function() { return /* reexport */ LightViewModel/* default */.Z; },
468
+ "default": function() { return /* reexport */ Light; }
469
+ });
470
+
471
+ // EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
472
+ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
473
+ // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
474
+ var gis_utils_ = __webpack_require__(7135);
475
+ // EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
476
+ var client_icons_vue_ = __webpack_require__(348);
477
+ // EXTERNAL MODULE: ./src/webgl/light/LightViewModel.js
478
+ var LightViewModel = __webpack_require__(2257);
490
479
  // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
491
480
  var util_ = __webpack_require__(3458);
492
481
  // EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
493
482
  var vue_i18n_cjs_js_ = __webpack_require__(7080);
494
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/light/Light.vue?vue&type=script&setup=true&lang=js
483
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/webgl/light/Light.vue?vue&type=script&setup=true&lang=js
495
484
 
496
485
  const _hoisted_1 = {
497
486
  class: "kq3d-light-box"
@@ -519,6 +508,7 @@ const __default__ = {
519
508
  type: Boolean,
520
509
  default: true
521
510
  },
511
+
522
512
  /**
523
513
  * 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
524
514
  */
@@ -548,6 +538,7 @@ const __default__ = {
548
538
  default: true
549
539
  }
550
540
  },
541
+
551
542
  setup(__props, {
552
543
  expose: __expose
553
544
  }) {
@@ -556,9 +547,7 @@ const __default__ = {
556
547
  proxy
557
548
  } = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
558
549
  let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
559
- let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]);
560
-
561
- // 获取组件传参
550
+ let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]); // 获取组件传参
562
551
 
563
552
  let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
564
553
  collapseValue: props.settingParams && props.settingParams.collapseValue || ((props.settingParams && props.settingParams.collapseValue) == '' ? "" : "setting"),
@@ -579,16 +568,13 @@ const __default__ = {
579
568
  maxAngle: props.settingParams && props.settingParams.maxAngle || 160,
580
569
  showModel: props.settingParams && props.settingParams.showModel || true
581
570
  });
582
- let viewModel = null;
571
+ let viewModel = null; // 组件容器Ref
583
572
 
584
- // 组件容器Ref
585
- let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
573
+ let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
586
574
 
587
- // 生成组件默认header
588
575
  let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
589
- let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
576
+ let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 国际化
590
577
 
591
- // 国际化
592
578
  let {
593
579
  locale,
594
580
  messages
@@ -611,80 +597,104 @@ const __default__ = {
611
597
  });
612
598
  });
613
599
  currentLang.value = proxy.$i18n.locale; // 获取当前语言
600
+
614
601
  gis_utils_.utils.getWebMap(null, scenceView => {
615
602
  if (scenceView) {
616
- viewModel = new LightViewModel(scenceView, formItem);
603
+ viewModel = new LightViewModel/* default */.Z(scenceView, formItem);
617
604
  }
618
605
  });
619
606
  });
620
-
621
607
  /**
622
608
  * @description 监听header生成
623
609
  */
610
+
624
611
  const watchCreateHeaderTemp = () => {
625
612
  if (props.showHeaderTemp) {
626
613
  // 生成headerTemp
627
614
  headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
628
615
  }
629
616
  };
617
+
630
618
  function changeMode(mode) {
631
619
  if (formItem.mode !== mode) {
632
620
  formItem.mode = mode;
633
621
  }
634
622
  }
623
+
635
624
  function paramsChanged(key) {
636
625
  switch (key) {
637
626
  case "color":
638
627
  viewModel && viewModel.setColor(formItem.color);
639
628
  break;
629
+
640
630
  case "distance":
641
631
  viewModel && viewModel.setDistance(formItem.distance);
642
632
  break;
633
+
643
634
  case "decay":
644
635
  viewModel && viewModel.setDecay(formItem.decay);
645
636
  break;
637
+
646
638
  case "intensity":
647
639
  viewModel && viewModel.setIntensity(formItem.intensity);
648
640
  break;
641
+
649
642
  case "showModel":
650
643
  viewModel && viewModel.showModel(formItem.showModel);
651
644
  break;
645
+
652
646
  case "angle":
653
647
  viewModel && viewModel.showAngle(formItem.angle);
654
648
  break;
649
+
655
650
  default:
656
651
  break;
657
652
  }
658
653
  }
654
+
659
655
  function add() {
660
656
  viewModel && viewModel.addLight();
661
657
  }
658
+
662
659
  function clear() {
663
660
  viewModel && viewModel.clear();
664
- }
661
+ } // 销毁
662
+
665
663
 
666
- // 销毁
667
664
  (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
668
665
  viewModel && viewModel.destroy();
669
666
  });
667
+
670
668
  __expose({
671
669
  changeMode,
672
670
  paramsChanged,
673
671
  add,
674
672
  clear
675
673
  });
674
+
676
675
  return (_ctx, _cache) => {
677
676
  const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
677
+
678
678
  const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
679
+
679
680
  const _component_kq_color_picker = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-color-picker");
681
+
680
682
  const _component_kq_form_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form-item");
683
+
681
684
  const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
685
+
682
686
  const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
687
+
683
688
  const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
689
+
684
690
  const _component_kq_switch = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-switch");
691
+
685
692
  const _component_kq_form = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form");
693
+
686
694
  const _component_kq_collapse_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse-item");
695
+
687
696
  const _component_kq_collapse = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse");
697
+
688
698
  return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
689
699
  class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-light", {
690
700
  'kq-box-shadow': __props.showShadow
@@ -695,7 +705,9 @@ const __default__ = {
695
705
  key: 0,
696
706
  ref_key: "headerTempRef",
697
707
  ref: headerTempRef
698
- }, null, 512 /* NEED_PATCH */)) : (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, {
708
+ }, null, 512
709
+ /* NEED_PATCH */
710
+ )) : (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, {
699
711
  gutter: 20,
700
712
  class: "rowclass"
701
713
  }, {
@@ -704,23 +716,35 @@ const __default__ = {
704
716
  class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(['kq3d-light-btn', (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).mode === 'point' ? 'kq3d-light-btn_active' : '']),
705
717
  onClick: _cache[0] || (_cache[0] = $event => changeMode('point')),
706
718
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).pointLightSource
707
- }, null, 8 /* PROPS */, ["icon", "class", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
719
+ }, null, 8
720
+ /* PROPS */
721
+ , ["icon", "class", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
708
722
  icon: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconSpotlight),
709
723
  class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(['kq3d-light-btn', (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).mode === 'spot' ? 'kq3d-light-btn_active' : '']),
710
724
  onClick: _cache[1] || (_cache[1] = $event => changeMode('spot')),
711
725
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).spotlight
712
- }, null, 8 /* PROPS */, ["icon", "class", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
726
+ }, null, 8
727
+ /* PROPS */
728
+ , ["icon", "class", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
713
729
  icon: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconParallelLight),
714
730
  class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(['kq3d-light-btn', (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).mode === 'parallel' ? 'kq3d-light-btn_active' : '']),
715
731
  onClick: _cache[2] || (_cache[2] = $event => changeMode('parallel')),
716
732
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).parallelLight
717
- }, null, 8 /* PROPS */, ["icon", "class", "title"])]),
718
- _: 1 /* STABLE */
733
+ }, null, 8
734
+ /* PROPS */
735
+ , ["icon", "class", "title"])]),
736
+ _: 1
737
+ /* STABLE */
738
+
719
739
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
720
740
  class: "kq3d-light-tip"
721
741
  }, {
722
- 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).lightTips), 1 /* TEXT */)]),
723
- _: 1 /* STABLE */
742
+ 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).lightTips), 1
743
+ /* TEXT */
744
+ )]),
745
+ _: 1
746
+ /* STABLE */
747
+
724
748
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_collapse, {
725
749
  "model-value": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).collapseValue,
726
750
  class: "kq3d-light-collapse"
@@ -748,12 +772,22 @@ const __default__ = {
748
772
  modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).color,
749
773
  "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).color = $event),
750
774
  onChange: _cache[4] || (_cache[4] = $event => paramsChanged('color'))
751
- }, null, 8 /* PROPS */, ["modelValue"])]),
752
- _: 1 /* STABLE */
775
+ }, null, 8
776
+ /* PROPS */
777
+ , ["modelValue"])]),
778
+ _: 1
779
+ /* STABLE */
780
+
753
781
  })]),
754
- _: 1 /* STABLE */
755
- }, 8 /* PROPS */, ["label"])]),
756
- _: 1 /* STABLE */
782
+ _: 1
783
+ /* STABLE */
784
+
785
+ }, 8
786
+ /* PROPS */
787
+ , ["label"])]),
788
+ _: 1
789
+ /* STABLE */
790
+
757
791
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
758
792
  class: "rowclass"
759
793
  }, {
@@ -775,8 +809,12 @@ const __default__ = {
775
809
  min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minDistance,
776
810
  max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxDistance,
777
811
  onChange: _cache[6] || (_cache[6] = $event => paramsChanged('distance'))
778
- }, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
779
- _: 1 /* STABLE */
812
+ }, null, 8
813
+ /* PROPS */
814
+ , ["modelValue", "min", "max"])]),
815
+ _: 1
816
+ /* STABLE */
817
+
780
818
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
781
819
  span: 8
782
820
  }, {
@@ -788,15 +826,29 @@ const __default__ = {
788
826
  max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxDistance,
789
827
  "controls-position": "right",
790
828
  onChange: _cache[8] || (_cache[8] = $event => paramsChanged('distance'))
791
- }, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
792
- _: 1 /* STABLE */
829
+ }, null, 8
830
+ /* PROPS */
831
+ , ["modelValue", "min", "max"])]),
832
+ _: 1
833
+ /* STABLE */
834
+
793
835
  })]),
794
- _: 1 /* STABLE */
836
+ _: 1
837
+ /* STABLE */
838
+
795
839
  })]),
796
- _: 1 /* STABLE */
797
- }, 8 /* PROPS */, ["label"])]),
798
- _: 1 /* STABLE */
799
- }, 512 /* NEED_PATCH */), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).mode === 'point' || (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).mode === 'spot']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
840
+ _: 1
841
+ /* STABLE */
842
+
843
+ }, 8
844
+ /* PROPS */
845
+ , ["label"])]),
846
+ _: 1
847
+ /* STABLE */
848
+
849
+ }, 512
850
+ /* NEED_PATCH */
851
+ ), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).mode === 'point' || (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).mode === 'spot']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
800
852
  class: "rowclass"
801
853
  }, {
802
854
  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, {
@@ -817,8 +869,12 @@ const __default__ = {
817
869
  min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minAngle,
818
870
  max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxAngle,
819
871
  onChange: _cache[10] || (_cache[10] = $event => paramsChanged('angle'))
820
- }, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
821
- _: 1 /* STABLE */
872
+ }, null, 8
873
+ /* PROPS */
874
+ , ["modelValue", "min", "max"])]),
875
+ _: 1
876
+ /* STABLE */
877
+
822
878
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
823
879
  span: 8
824
880
  }, {
@@ -830,15 +886,29 @@ const __default__ = {
830
886
  max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxAngle,
831
887
  "controls-position": "right",
832
888
  onChange: _cache[12] || (_cache[12] = $event => paramsChanged('angle'))
833
- }, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
834
- _: 1 /* STABLE */
889
+ }, null, 8
890
+ /* PROPS */
891
+ , ["modelValue", "min", "max"])]),
892
+ _: 1
893
+ /* STABLE */
894
+
835
895
  })]),
836
- _: 1 /* STABLE */
896
+ _: 1
897
+ /* STABLE */
898
+
837
899
  })]),
838
- _: 1 /* STABLE */
839
- }, 8 /* PROPS */, ["label"])]),
840
- _: 1 /* STABLE */
841
- }, 512 /* NEED_PATCH */), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).mode === 'spot']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
900
+ _: 1
901
+ /* STABLE */
902
+
903
+ }, 8
904
+ /* PROPS */
905
+ , ["label"])]),
906
+ _: 1
907
+ /* STABLE */
908
+
909
+ }, 512
910
+ /* NEED_PATCH */
911
+ ), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).mode === 'spot']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
842
912
  class: "rowclass"
843
913
  }, {
844
914
  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, {
@@ -859,8 +929,12 @@ const __default__ = {
859
929
  min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minDecay,
860
930
  max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxDecay,
861
931
  onChange: _cache[14] || (_cache[14] = $event => paramsChanged('decay'))
862
- }, null, 8 /* PROPS */, ["modelValue", "step", "min", "max"])]),
863
- _: 1 /* STABLE */
932
+ }, null, 8
933
+ /* PROPS */
934
+ , ["modelValue", "step", "min", "max"])]),
935
+ _: 1
936
+ /* STABLE */
937
+
864
938
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
865
939
  span: 8
866
940
  }, {
@@ -872,15 +946,29 @@ const __default__ = {
872
946
  max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxDecay,
873
947
  "controls-position": "right",
874
948
  onChange: _cache[16] || (_cache[16] = $event => paramsChanged('decay'))
875
- }, null, 8 /* PROPS */, ["modelValue", "step", "min", "max"])]),
876
- _: 1 /* STABLE */
949
+ }, null, 8
950
+ /* PROPS */
951
+ , ["modelValue", "step", "min", "max"])]),
952
+ _: 1
953
+ /* STABLE */
954
+
877
955
  })]),
878
- _: 1 /* STABLE */
956
+ _: 1
957
+ /* STABLE */
958
+
879
959
  })]),
880
- _: 1 /* STABLE */
881
- }, 8 /* PROPS */, ["label"])]),
882
- _: 1 /* STABLE */
883
- }, 512 /* NEED_PATCH */), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).mode === 'point' || (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).mode === 'spot']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
960
+ _: 1
961
+ /* STABLE */
962
+
963
+ }, 8
964
+ /* PROPS */
965
+ , ["label"])]),
966
+ _: 1
967
+ /* STABLE */
968
+
969
+ }, 512
970
+ /* NEED_PATCH */
971
+ ), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).mode === 'point' || (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).mode === 'spot']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
884
972
  class: "rowclass"
885
973
  }, {
886
974
  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, {
@@ -901,8 +989,12 @@ const __default__ = {
901
989
  min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minIntensity,
902
990
  max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxIntensity,
903
991
  onChange: _cache[18] || (_cache[18] = $event => paramsChanged('intensity'))
904
- }, null, 8 /* PROPS */, ["modelValue", "step", "min", "max"])]),
905
- _: 1 /* STABLE */
992
+ }, null, 8
993
+ /* PROPS */
994
+ , ["modelValue", "step", "min", "max"])]),
995
+ _: 1
996
+ /* STABLE */
997
+
906
998
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
907
999
  span: 8
908
1000
  }, {
@@ -914,14 +1006,26 @@ const __default__ = {
914
1006
  max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxIntensity,
915
1007
  "controls-position": "right",
916
1008
  onChange: _cache[20] || (_cache[20] = $event => paramsChanged('intensity'))
917
- }, null, 8 /* PROPS */, ["modelValue", "step", "min", "max"])]),
918
- _: 1 /* STABLE */
1009
+ }, null, 8
1010
+ /* PROPS */
1011
+ , ["modelValue", "step", "min", "max"])]),
1012
+ _: 1
1013
+ /* STABLE */
1014
+
919
1015
  })]),
920
- _: 1 /* STABLE */
1016
+ _: 1
1017
+ /* STABLE */
1018
+
921
1019
  })]),
922
- _: 1 /* STABLE */
923
- }, 8 /* PROPS */, ["label"])]),
924
- _: 1 /* STABLE */
1020
+ _: 1
1021
+ /* STABLE */
1022
+
1023
+ }, 8
1024
+ /* PROPS */
1025
+ , ["label"])]),
1026
+ _: 1
1027
+ /* STABLE */
1028
+
925
1029
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
926
1030
  class: "rowclass"
927
1031
  }, {
@@ -938,34 +1042,73 @@ const __default__ = {
938
1042
  "onUpdate:modelValue": _cache[21] || (_cache[21] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).showModel = $event),
939
1043
  "controls-position": "left",
940
1044
  onChange: _cache[22] || (_cache[22] = $event => paramsChanged('showModel'))
941
- }, null, 8 /* PROPS */, ["modelValue"])]),
942
- _: 1 /* STABLE */
1045
+ }, null, 8
1046
+ /* PROPS */
1047
+ , ["modelValue"])]),
1048
+ _: 1
1049
+ /* STABLE */
1050
+
943
1051
  })]),
944
- _: 1 /* STABLE */
945
- }, 8 /* PROPS */, ["label"])]),
946
- _: 1 /* STABLE */
947
- }, 512 /* NEED_PATCH */), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).mode === 'point' || (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).mode === 'spot']])]),
948
- _: 1 /* STABLE */
949
- }, 8 /* PROPS */, ["label-width"])]),
950
- _: 1 /* STABLE */
951
- }, 8 /* PROPS */, ["title"])]),
952
- _: 1 /* STABLE */
953
- }, 8 /* PROPS */, ["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, {
1052
+ _: 1
1053
+ /* STABLE */
1054
+
1055
+ }, 8
1056
+ /* PROPS */
1057
+ , ["label"])]),
1058
+ _: 1
1059
+ /* STABLE */
1060
+
1061
+ }, 512
1062
+ /* NEED_PATCH */
1063
+ ), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).mode === 'point' || (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).mode === 'spot']])]),
1064
+ _: 1
1065
+ /* STABLE */
1066
+
1067
+ }, 8
1068
+ /* PROPS */
1069
+ , ["label-width"])]),
1070
+ _: 1
1071
+ /* STABLE */
1072
+
1073
+ }, 8
1074
+ /* PROPS */
1075
+ , ["title"])]),
1076
+ _: 1
1077
+ /* STABLE */
1078
+
1079
+ }, 8
1080
+ /* PROPS */
1081
+ , ["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, {
954
1082
  onClick: _cache[23] || (_cache[23] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => add(), ["stop"])),
955
1083
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).add,
956
1084
  type: "primary"
957
1085
  }, {
958
- 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 /* TEXT */)]),
959
- _: 1 /* STABLE */
960
- }, 8 /* PROPS */, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
1086
+ 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
1087
+ /* TEXT */
1088
+ )]),
1089
+ _: 1
1090
+ /* STABLE */
1091
+
1092
+ }, 8
1093
+ /* PROPS */
1094
+ , ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
961
1095
  onClick: _cache[24] || (_cache[24] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clear(), ["stop"])),
962
1096
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear
963
1097
  }, {
964
- 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 /* TEXT */)]),
965
- _: 1 /* STABLE */
966
- }, 8 /* PROPS */, ["title"])])])], 2 /* CLASS */);
1098
+ 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
1099
+ /* TEXT */
1100
+ )]),
1101
+ _: 1
1102
+ /* STABLE */
1103
+
1104
+ }, 8
1105
+ /* PROPS */
1106
+ , ["title"])])])], 2
1107
+ /* CLASS */
1108
+ );
967
1109
  };
968
1110
  }
1111
+
969
1112
  }));
970
1113
  ;// CONCATENATED MODULE: ./src/webgl/light/Light.vue?vue&type=script&setup=true&lang=js
971
1114
 
@@ -987,11 +1130,13 @@ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
987
1130
 
988
1131
 
989
1132
 
1133
+
990
1134
  Light.install = (Vue, opts) => {
991
1135
  init_js_default()(Vue, opts);
992
1136
  Vue.component(Light.name, Light);
993
1137
  };
994
1138
 
1139
+
995
1140
  }();
996
1141
  /******/ return __webpack_exports__;
997
1142
  /******/ })()