@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
@@ -2,41 +2,181 @@
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) {
15
+ /***/ 1248:
16
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
17
17
 
18
- module.exports = require("@kq_npm/client_icons_vue");
18
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
19
+ /* harmony export */ "Z": function() { return /* binding */ ScreenshotViewModel; }
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);
19
22
 
20
- /***/ }),
21
23
 
22
- /***/ 2118:
23
- /***/ (function(module) {
24
+ /*
25
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
26
+ * All rights reserved.
27
+ */
28
+ //截图逻辑类
29
+ class ScreenshotViewModel {
30
+ //三维viewer对象
31
+ //截图存储参数对象
32
+ //截图三维对象
33
+ constructor(viewer, options) {
34
+ (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_viewer", null);
24
35
 
25
- module.exports = require("core-js/modules/es.array.push.js");
36
+ (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_options", null);
26
37
 
27
- /***/ }),
38
+ (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_cameraToImage", null);
28
39
 
29
- /***/ 8470:
30
- /***/ (function(module) {
40
+ this._options = {
41
+ width: options.imgWidth,
42
+ height: options.imgHeight,
43
+ imageType: options.imgFormat,
44
+ fixedRatio: options.lockAspectRatio,
45
+ //锁定宽高比
46
+ style: options.tilesetStyle,
47
+ //倾斜样式
48
+ tilesetName: options.tilesetName //倾斜名称
49
+
50
+ };
51
+ this._viewer = viewer;
52
+ this._viewer.enabledFXAA = true; //声明场景出图类
31
53
 
32
- module.exports = require("core-js/modules/esnext.iterator.constructor.js");
54
+ this._cameraToImage = new Cesium.Kq3dCanvasToImage(viewer._container, {
55
+ viewer: viewer,
56
+ canvas: viewer.scene.canvas
57
+ });
58
+ let that = this;
59
+ setTimeout(() => {
60
+ let tileset = this.findLayerByName(this._options.tilesetName);
61
+
62
+ if (tileset) {
63
+ if (tileset instanceof Array && tileset.length > 0) {
64
+ tileset[0].readyPromise.then(function (tileset) {
65
+ tileset.style = new Cesium.Cesium3DTileStyle(that._options.style);
66
+ });
67
+ } else if (tileset instanceof Object) {
68
+ tileset.readyPromise.then(function (tileset) {
69
+ tileset.style = new Cesium.Cesium3DTileStyle(that._options.style);
70
+ });
71
+ }
72
+ }
73
+ }, 800);
74
+ } // 查找所有3dtiles模型对象
75
+
76
+
77
+ findLayers() {
78
+ let tilesets = [];
79
+ const primitives = this._viewer.scene.primitives._primitives;
80
+
81
+ for (let m = 0; m < primitives.length; m++) {
82
+ if (primitives[m] instanceof Cesium.Cesium3DTileset) {
83
+ tilesets.push({
84
+ guid: primitives[m].guid,
85
+ name: primitives[m].name ? primitives[m].name : primitives[m].guid
86
+ });
87
+ }
88
+ }
89
+
90
+ return tilesets;
91
+ } // 出图
92
+
93
+
94
+ sceneFigure() {
95
+ this.saveAsimages();
96
+ } // 返回base64
97
+
98
+
99
+ saveAsimages() {
100
+ //设置宽、高、图片类型
101
+ var options = {
102
+ width: this._options.width,
103
+ //图片宽度
104
+ height: this._options.height,
105
+ //图片高度
106
+ type: this._options.imageType //图片类型
107
+
108
+ }; //返回图片
109
+
110
+ var img = this._cameraToImage.saveAsimages(this._viewer.scene.canvas, options);
111
+
112
+ return img;
113
+ } // 返回base64
114
+
115
+
116
+ toDataURL() {
117
+ var base64 = this._cameraToImage.toDataURL({
118
+ width: this._options.width,
119
+ height: this._options.height,
120
+ type: Cesium.Kq3dImageFormatter.JPG
121
+ });
122
+
123
+ return base64;
124
+ } //根据id获取tileset对象
125
+
126
+
127
+ findLayerByName(name) {
128
+ const primitives = this._viewer.scene.primitives._primitives;
129
+ const tileset = primitives.find(function (item) {
130
+ return item.name === name;
131
+ });
132
+ return tileset;
133
+ } //根据宽度计算高度
134
+
135
+
136
+ calcWidthByWindowRatio(width) {
137
+ var r = this._viewer.scene.canvas.width / this._viewer.scene.canvas.height;
138
+ return parseInt(width * r);
139
+ } //根据高度计算宽度
140
+
141
+
142
+ calcHeightByWindowRatio(height) {
143
+ var r = this._viewer.scene.canvas.width / this._viewer.scene.canvas.height;
144
+ return parseInt(height / r);
145
+ } // 锁定图片宽高比
146
+
147
+
148
+ setImgAspectRatio(val) {
149
+ this._options.fixedRatio = val;
150
+ } // 设置图片宽度
151
+
152
+
153
+ setImgWidth(val) {
154
+ this._options.width = val;
155
+ } // 设置图片高度
156
+
157
+
158
+ setImgHeight(val) {
159
+ this._options.height = val;
160
+ } // 设置图片类型
161
+
162
+
163
+ setImgType(val) {
164
+ this._options.imageType = val;
165
+ } // 注销
166
+
167
+
168
+ destroy() {
169
+ if (this._cameraToImage) this._cameraToImage = null;
170
+ }
171
+
172
+ }
33
173
 
34
174
  /***/ }),
35
175
 
36
- /***/ 8697:
176
+ /***/ 348:
37
177
  /***/ (function(module) {
38
178
 
39
- module.exports = require("core-js/modules/esnext.iterator.find.js");
179
+ module.exports = require("@kq_npm/client_icons_vue");
40
180
 
41
181
  /***/ }),
42
182
 
@@ -75,59 +215,27 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
75
215
 
76
216
  /***/ }),
77
217
 
78
- /***/ 5301:
218
+ /***/ 8270:
79
219
  /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
80
220
 
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.");
221
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
222
+ /* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
223
+ /* harmony export */ });
224
+ function _defineProperty(obj, key, value) {
225
+ if (key in obj) {
226
+ Object.defineProperty(obj, key, {
227
+ value: value,
228
+ enumerable: true,
229
+ configurable: true,
230
+ writable: true
231
+ });
232
+ } else {
233
+ obj[key] = value;
107
234
  }
108
- return ("string" === r ? String : Number)(t);
109
- }
110
-
111
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
112
-
113
235
 
114
- function toPropertyKey(t) {
115
- var i = toPrimitive(t, "string");
116
- return "symbol" == _typeof(i) ? i : i + "";
236
+ return obj;
117
237
  }
118
238
 
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
239
  /***/ })
132
240
 
133
241
  /******/ });
@@ -206,7 +314,7 @@ __webpack_require__.r(__webpack_exports__);
206
314
 
207
315
  // EXPORTS
208
316
  __webpack_require__.d(__webpack_exports__, {
209
- "ScreenshotViewModel": function() { return /* reexport */ ScreenshotViewModel; },
317
+ "ScreenshotViewModel": function() { return /* reexport */ ScreenshotViewModel/* default */.Z; },
210
318
  "default": function() { return /* reexport */ Screenshot; }
211
319
  });
212
320
 
@@ -216,151 +324,13 @@ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(
216
324
  var client_icons_vue_ = __webpack_require__(348);
217
325
  // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
218
326
  var gis_utils_ = __webpack_require__(7135);
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.find.js"
226
- var esnext_iterator_find_js_ = __webpack_require__(8697);
227
- ;// CONCATENATED MODULE: ./src/webgl/screenshot/ScreenshotViewModel.js
228
-
229
-
230
-
231
-
232
- /*
233
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
234
- * All rights reserved.
235
- */
236
- //截图逻辑类
237
- class ScreenshotViewModel {
238
- //截图三维对象
239
- constructor(viewer, options) {
240
- (0,defineProperty/* default */.Z)(this, "_viewer", null);
241
- //三维viewer对象
242
- (0,defineProperty/* default */.Z)(this, "_options", null);
243
- //截图存储参数对象
244
- (0,defineProperty/* default */.Z)(this, "_cameraToImage", null);
245
- this._options = {
246
- width: options.imgWidth,
247
- height: options.imgHeight,
248
- imageType: options.imgFormat,
249
- fixedRatio: options.lockAspectRatio,
250
- //锁定宽高比
251
- style: options.tilesetStyle,
252
- //倾斜样式
253
- tilesetName: options.tilesetName //倾斜名称
254
- };
255
- this._viewer = viewer;
256
- this._viewer.enabledFXAA = true;
257
- //声明场景出图类
258
- this._cameraToImage = new Cesium.Kq3dCanvasToImage(viewer._container, {
259
- viewer: viewer,
260
- canvas: viewer.scene.canvas
261
- });
262
- let that = this;
263
- setTimeout(() => {
264
- let tileset = this.findLayerByName(this._options.tilesetName);
265
- if (tileset) {
266
- if (tileset instanceof Array && tileset.length > 0) {
267
- tileset[0].readyPromise.then(function (tileset) {
268
- tileset.style = new Cesium.Cesium3DTileStyle(that._options.style);
269
- });
270
- } else if (tileset instanceof Object) {
271
- tileset.readyPromise.then(function (tileset) {
272
- tileset.style = new Cesium.Cesium3DTileStyle(that._options.style);
273
- });
274
- }
275
- }
276
- }, 800);
277
- }
278
-
279
- // 查找所有3dtiles模型对象
280
- findLayers() {
281
- let tilesets = [];
282
- const primitives = this._viewer.scene.primitives._primitives;
283
- for (let m = 0; m < primitives.length; m++) {
284
- if (primitives[m] instanceof Cesium.Cesium3DTileset) {
285
- tilesets.push({
286
- guid: primitives[m].guid,
287
- name: primitives[m].name ? primitives[m].name : primitives[m].guid
288
- });
289
- }
290
- }
291
- return tilesets;
292
- }
293
- // 出图
294
- sceneFigure() {
295
- this.saveAsimages();
296
- }
297
- // 返回base64
298
- saveAsimages() {
299
- //设置宽、高、图片类型
300
- var options = {
301
- width: this._options.width,
302
- //图片宽度
303
- height: this._options.height,
304
- //图片高度
305
- type: this._options.imageType //图片类型
306
- };
307
- //返回图片
308
- var img = this._cameraToImage.saveAsimages(this._viewer.scene.canvas, options);
309
- return img;
310
- }
311
- // 返回base64
312
- toDataURL() {
313
- var base64 = this._cameraToImage.toDataURL({
314
- width: this._options.width,
315
- height: this._options.height,
316
- type: Cesium.Kq3dImageFormatter.JPG
317
- });
318
- return base64;
319
- }
320
- //根据id获取tileset对象
321
- findLayerByName(name) {
322
- const primitives = this._viewer.scene.primitives._primitives;
323
- const tileset = primitives.find(function (item) {
324
- return item.name === name;
325
- });
326
- return tileset;
327
- }
328
- //根据宽度计算高度
329
- calcWidthByWindowRatio(width) {
330
- var r = this._viewer.scene.canvas.width / this._viewer.scene.canvas.height;
331
- return parseInt(width * r);
332
- }
333
- //根据高度计算宽度
334
- calcHeightByWindowRatio(height) {
335
- var r = this._viewer.scene.canvas.width / this._viewer.scene.canvas.height;
336
- return parseInt(height / r);
337
- }
338
- // 锁定图片宽高比
339
- setImgAspectRatio(val) {
340
- this._options.fixedRatio = val;
341
- }
342
- // 设置图片宽度
343
- setImgWidth(val) {
344
- this._options.width = val;
345
- }
346
- // 设置图片高度
347
- setImgHeight(val) {
348
- this._options.height = val;
349
- }
350
- // 设置图片类型
351
- setImgType(val) {
352
- this._options.imageType = val;
353
- }
354
- // 注销
355
- destroy() {
356
- if (this._cameraToImage) this._cameraToImage = null;
357
- }
358
- }
327
+ // EXTERNAL MODULE: ./src/webgl/screenshot/ScreenshotViewModel.js
328
+ var ScreenshotViewModel = __webpack_require__(1248);
359
329
  // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
360
330
  var util_ = __webpack_require__(3458);
361
331
  // EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
362
332
  var vue_i18n_cjs_js_ = __webpack_require__(7080);
363
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/screenshot/Screenshot.vue?vue&type=script&setup=true&lang=js
333
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/webgl/screenshot/Screenshot.vue?vue&type=script&setup=true&lang=js
364
334
 
365
335
  const _hoisted_1 = {
366
336
  class: "kq3d-screenshot-box"
@@ -373,9 +343,7 @@ const _hoisted_2 = {
373
343
 
374
344
 
375
345
 
376
-
377
-
378
- // 场景宽度
346
+ // 场景宽度
379
347
 
380
348
  const __default__ = {
381
349
  name: "Kq3dScreenShot"
@@ -390,6 +358,7 @@ const __default__ = {
390
358
  type: Boolean,
391
359
  default: true
392
360
  },
361
+
393
362
  /**
394
363
  * 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
395
364
  */
@@ -419,22 +388,22 @@ const __default__ = {
419
388
  default: true
420
389
  }
421
390
  },
391
+
422
392
  setup(__props, {
423
393
  expose: __expose
424
394
  }) {
425
395
  const props = __props;
426
- let imgWidthMax = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(800);
427
- // 场景高度
396
+ let imgWidthMax = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(800); // 场景高度
397
+
428
398
  let imgHeightMax = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(800);
429
399
  const {
430
400
  proxy
431
401
  } = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
432
- let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]);
433
- // 分析类
434
- let viewModel = null;
435
- // 获取组件传参
402
+ let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]); // 分析类
436
403
 
404
+ let viewModel = null; // 获取组件传参
437
405
  //设置样式
406
+
438
407
  var style = {
439
408
  color: {
440
409
  conditions: [["${height} >= 250", "rgb(255, 0, 0)"], ["${height} >= 200", "rgb(255, 255, 0)"], ["${height} >= 150", "rgb(255, 255, 255)"], ["${height} >= 100", "rgb(0, 0, 255)"], ["${height} >= 80", "rgb(0, 255, 255)"], ["${height} >= 50", "rgb(255, 0, 255)"], ["${height} >= 20", "rgb(0, 255, 0)"], ["true", "rgb(125527, 255, 255)"]]
@@ -452,16 +421,14 @@ const __default__ = {
452
421
  tilesetName: props.settingParams && props.settingParams.tilesetName || "ShangHai-White",
453
422
  //倾斜摄影名称
454
423
  tilesetStyle: props.settingParams && props.settingParams.tilesetStyle || style // 倾斜摄影样式
455
- });
456
424
 
457
- // 组件容器Ref
458
- let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
425
+ }); // 组件容器Ref
426
+
427
+ let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
459
428
 
460
- // 生成组件默认header
461
429
  let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
462
- let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
430
+ let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 国际化
463
431
 
464
- // 国际化
465
432
  let {
466
433
  locale,
467
434
  messages
@@ -490,67 +457,85 @@ const __default__ = {
490
457
  imgHeightMax.value = canvas.height;
491
458
  formItem.imgWidth = canvas.width;
492
459
  formItem.imgHeight = canvas.height;
493
- viewModel = new ScreenshotViewModel(scenceView._viewer, formItem);
460
+ viewModel = new ScreenshotViewModel/* default */.Z(scenceView._viewer, formItem);
494
461
  }
495
462
  });
496
463
  });
497
-
498
464
  /**
499
465
  * @description 监听header生成
500
466
  */
467
+
501
468
  const watchCreateHeaderTemp = () => {
502
469
  if (props.showHeaderTemp) {
503
470
  // 生成headerTemp
504
471
  headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
505
472
  }
506
- };
473
+ }; // 场景出图
474
+
507
475
 
508
- // 场景出图
509
476
  function sceneFigure() {
510
477
  viewModel && viewModel.sceneFigure();
511
- }
512
- // 参数联动
478
+ } // 参数联动
479
+
480
+
513
481
  function paramsChanged(key) {
514
482
  if (!viewModel) return;
483
+
515
484
  switch (key) {
516
485
  case "lockAspectRatio":
517
486
  viewModel.setImgAspectRatio(formItem.lockAspectRatio);
518
487
  break;
488
+
519
489
  case "imgWidth":
520
490
  viewModel.setImgWidth(formItem.imgWidth);
521
491
  formItem.imgHeight = formItem.lockAspectRatio ? viewModel.calcHeightByWindowRatio(formItem.imgWidth) : Number(formItem.imgWidth);
522
492
  viewModel.setImgHeight(formItem.imgHeight);
523
493
  break;
494
+
524
495
  case "imgHeight":
525
496
  viewModel.setImgHeight(formItem.imgHeight);
526
497
  formItem.imgWidth = formItem.lockAspectRatio ? viewModel.calcWidthByWindowRatio(formItem.imgHeight) : Number(formItem.imgHeight);
527
498
  viewModel.setImgWidth(formItem.imgWidth);
528
499
  break;
500
+
529
501
  case "imgFormat":
530
502
  viewModel.setImgType(formItem.imgFormat);
531
503
  break;
504
+
532
505
  default:
533
506
  break;
534
507
  }
535
- }
536
- // 销毁
508
+ } // 销毁
509
+
510
+
537
511
  (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
538
512
  viewModel && viewModel.destroy();
539
513
  });
514
+
540
515
  __expose({
541
516
  paramsChanged,
542
517
  sceneFigure
543
518
  });
519
+
544
520
  return (_ctx, _cache) => {
545
521
  const _component_kq_checkbox = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-checkbox");
522
+
546
523
  const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
524
+
547
525
  const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
526
+
548
527
  const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
528
+
549
529
  const _component_kq_form_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form-item");
530
+
550
531
  const _component_kq_option = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-option");
532
+
551
533
  const _component_kq_select = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-select");
534
+
552
535
  const _component_kq_form = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form");
536
+
553
537
  const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
538
+
554
539
  return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
555
540
  class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-screenshot", {
556
541
  'kq-box-shadow': __props.showShadow
@@ -561,7 +546,9 @@ const __default__ = {
561
546
  key: 0,
562
547
  ref_key: "headerTempRef",
563
548
  ref: headerTempRef
564
- }, 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_form, {
549
+ }, null, 512
550
+ /* NEED_PATCH */
551
+ )) : (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_form, {
565
552
  "label-width": "120px",
566
553
  "label-position": "left"
567
554
  }, {
@@ -571,10 +558,18 @@ const __default__ = {
571
558
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).lockAspectRatio = $event),
572
559
  onChange: _cache[1] || (_cache[1] = $event => paramsChanged('lockAspectRatio'))
573
560
  }, {
574
- 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).lockAspectRatio), 1 /* TEXT */)]),
575
- _: 1 /* STABLE */
576
- }, 8 /* PROPS */, ["modelValue"])]),
577
- _: 1 /* STABLE */
561
+ 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).lockAspectRatio), 1
562
+ /* TEXT */
563
+ )]),
564
+ _: 1
565
+ /* STABLE */
566
+
567
+ }, 8
568
+ /* PROPS */
569
+ , ["modelValue"])]),
570
+ _: 1
571
+ /* STABLE */
572
+
578
573
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
579
574
  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, {
580
575
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).imgWidth + '(px)'
@@ -595,14 +590,26 @@ const __default__ = {
595
590
  max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(imgWidthMax),
596
591
  "controls-position": "right",
597
592
  onChange: _cache[3] || (_cache[3] = $event => paramsChanged('imgWidth'))
598
- }, null, 8 /* PROPS */, ["modelValue", "max"])]),
599
- _: 1 /* STABLE */
593
+ }, null, 8
594
+ /* PROPS */
595
+ , ["modelValue", "max"])]),
596
+ _: 1
597
+ /* STABLE */
598
+
600
599
  })]),
601
- _: 1 /* STABLE */
600
+ _: 1
601
+ /* STABLE */
602
+
602
603
  })]),
603
- _: 1 /* STABLE */
604
- }, 8 /* PROPS */, ["label"])]),
605
- _: 1 /* STABLE */
604
+ _: 1
605
+ /* STABLE */
606
+
607
+ }, 8
608
+ /* PROPS */
609
+ , ["label"])]),
610
+ _: 1
611
+ /* STABLE */
612
+
606
613
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
607
614
  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, {
608
615
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).imgHeight + '(px)'
@@ -623,14 +630,26 @@ const __default__ = {
623
630
  max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(imgHeightMax),
624
631
  "controls-position": "right",
625
632
  onChange: _cache[5] || (_cache[5] = $event => paramsChanged('imgHeight'))
626
- }, null, 8 /* PROPS */, ["modelValue", "max"])]),
627
- _: 1 /* STABLE */
633
+ }, null, 8
634
+ /* PROPS */
635
+ , ["modelValue", "max"])]),
636
+ _: 1
637
+ /* STABLE */
638
+
628
639
  })]),
629
- _: 1 /* STABLE */
640
+ _: 1
641
+ /* STABLE */
642
+
630
643
  })]),
631
- _: 1 /* STABLE */
632
- }, 8 /* PROPS */, ["label"])]),
633
- _: 1 /* STABLE */
644
+ _: 1
645
+ /* STABLE */
646
+
647
+ }, 8
648
+ /* PROPS */
649
+ , ["label"])]),
650
+ _: 1
651
+ /* STABLE */
652
+
634
653
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
635
654
  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, {
636
655
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).imgFormat
@@ -661,25 +680,48 @@ const __default__ = {
661
680
  label: "JPEG",
662
681
  value: "jpeg"
663
682
  })]),
664
- _: 1 /* STABLE */
665
- }, 8 /* PROPS */, ["modelValue"])]),
666
- _: 1 /* STABLE */
683
+ _: 1
684
+ /* STABLE */
685
+
686
+ }, 8
687
+ /* PROPS */
688
+ , ["modelValue"])]),
689
+ _: 1
690
+ /* STABLE */
691
+
667
692
  })]),
668
- _: 1 /* STABLE */
669
- }, 8 /* PROPS */, ["label"])]),
670
- _: 1 /* STABLE */
693
+ _: 1
694
+ /* STABLE */
695
+
696
+ }, 8
697
+ /* PROPS */
698
+ , ["label"])]),
699
+ _: 1
700
+ /* STABLE */
701
+
671
702
  })]),
672
- _: 1 /* STABLE */
703
+ _: 1
704
+ /* STABLE */
705
+
673
706
  }), (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, {
674
707
  onClick: _cache[8] || (_cache[8] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => sceneFigure(), ["stop"])),
675
708
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).screenshotTips,
676
709
  type: "primary"
677
710
  }, {
678
- 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).screenshotTips), 1 /* TEXT */)]),
679
- _: 1 /* STABLE */
680
- }, 8 /* PROPS */, ["title"])])])], 2 /* CLASS */);
711
+ 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).screenshotTips), 1
712
+ /* TEXT */
713
+ )]),
714
+ _: 1
715
+ /* STABLE */
716
+
717
+ }, 8
718
+ /* PROPS */
719
+ , ["title"])])])], 2
720
+ /* CLASS */
721
+ );
681
722
  };
682
723
  }
724
+
683
725
  }));
684
726
  ;// CONCATENATED MODULE: ./src/webgl/screenshot/Screenshot.vue?vue&type=script&setup=true&lang=js
685
727
 
@@ -701,11 +743,13 @@ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
701
743
 
702
744
 
703
745
 
746
+
704
747
  Screenshot.install = (Vue, opts) => {
705
748
  init_js_default()(Vue, opts);
706
749
  Vue.component(Screenshot.name, Screenshot);
707
750
  };
708
751
 
752
+
709
753
  }();
710
754
  /******/ return __webpack_exports__;
711
755
  /******/ })()