@kq_npm/client3d_webgl_vue 4.0.5-beta → 4.0.7-beta

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