@kq_npm/client3d_webgl_vue 4.5.2 → 4.5.4-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 (63) hide show
  1. package/adddata/index.js +355 -538
  2. package/adddata/style/adddata.css +1 -1
  3. package/aspectanalysis/index.js +172 -239
  4. package/baseterraingallery/index.js +124 -145
  5. package/boxclip/index.js +300 -481
  6. package/clientPrint/index.js +335 -898
  7. package/clientPrint/style/clientPrint.css +1 -1
  8. package/comparemap/index.js +226 -246
  9. package/compass/index.js +96 -84
  10. package/excavatefillanalysis/index.js +193 -263
  11. package/fixedzoomin/index.js +91 -76
  12. package/fixedzoomout/index.js +91 -76
  13. package/flight/index.js +311 -415
  14. package/flight/style/flight.css +1 -1
  15. package/floodanalysis/index.js +255 -393
  16. package/geologicalbodyanalysis/index.js +215 -298
  17. package/gpuspatialquery/index.js +260 -402
  18. package/hawkeye/index.js +141 -103
  19. package/headertemp/index.js +25 -34
  20. package/heatmap3d/index.js +451 -763
  21. package/heatmap3d/style/heatmap3d.css +1 -1
  22. package/index.js +20826 -17774
  23. package/isolineanalysis/index.js +566 -1243
  24. package/light/index.js +353 -488
  25. package/limitheightanalysis/index.js +251 -312
  26. package/measure/index.js +350 -504
  27. package/modelFlat/index.js +214 -234
  28. package/modelexcavate/index.js +206 -262
  29. package/modelfilter/index.js +229 -308
  30. package/modelprofileanalysis/index.js +356 -465
  31. package/modelselect/index.js +192 -184
  32. package/package.json +1 -1
  33. package/particleeffect/index.js +259 -430
  34. package/planeclip/index.js +249 -339
  35. package/resetview/index.js +89 -69
  36. package/roller/index.js +307 -363
  37. package/scaneffect/index.js +285 -582
  38. package/sceneadvancedtoimage/index.js +1055 -0
  39. package/sceneadvancedtoimage/style/index.js +3 -0
  40. package/sceneadvancedtoimage/style/sceneadvancedtoimage.css +1 -0
  41. package/sceneapp/index.js +11149 -0
  42. package/sceneset/index.js +393 -885
  43. package/scenetohdimage/index.js +214 -346
  44. package/scenetohdimage/style/scenetohdimage.css +1 -1
  45. package/sceneview/index.js +22780 -19540
  46. package/sceneview/style/sceneview.css +1 -1
  47. package/screenshot/index.js +275 -312
  48. package/shadowanalysis/index.js +269 -448
  49. package/sightlineanalysis/index.js +231 -312
  50. package/sightlineanalysis/style/divpoint.css +1 -1
  51. package/skylineanalysis/index.js +213 -351
  52. package/slopeanalysis/index.js +282 -444
  53. package/slopeaspectanalysis/index.js +315 -534
  54. package/statusbar/index.js +194 -164
  55. package/style.css +1 -1
  56. package/terrainoperation/index.js +230 -280
  57. package/terrainprofileanalysis/index.js +174 -182
  58. package/underground/index.js +98 -82
  59. package/videofusion/index.js +319 -532
  60. package/videoproject/index.js +325 -534
  61. package/viewshedanalysis/index.js +178 -275
  62. package/weathereffect/index.js +199 -343
  63. package/wireframesketch/index.js +146 -150
@@ -7,230 +7,127 @@
7
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
8
  for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
9
  }
10
- })(this, function(__WEBPACK_EXTERNAL_MODULE__1895__, __WEBPACK_EXTERNAL_MODULE__7135__, __WEBPACK_EXTERNAL_MODULE__3458__, __WEBPACK_EXTERNAL_MODULE__7997__) {
10
+ })(this, function(__WEBPACK_EXTERNAL_MODULE__154__, __WEBPACK_EXTERNAL_MODULE__64__, __WEBPACK_EXTERNAL_MODULE__2975__, __WEBPACK_EXTERNAL_MODULE__455__) {
11
11
  return /******/ (function() { // webpackBootstrap
12
12
  /******/ "use strict";
13
13
  /******/ var __webpack_modules__ = ({
14
14
 
15
- /***/ 1248:
16
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
17
-
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);
22
-
23
- //截图逻辑类
24
- class ScreenshotViewModel {
25
- //三维viewer对象
26
- //截图存储参数对象
27
- //截图三维对象
28
- constructor(viewer, options) {
29
- (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_viewer", null);
30
-
31
- (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_options", null);
32
-
33
- (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_cameraToImage", null);
34
-
35
- this._options = {
36
- width: options.imgWidth,
37
- height: options.imgHeight,
38
- imageType: options.imgFormat,
39
- fixedRatio: options.lockAspectRatio,
40
- //锁定宽高比
41
- style: options.tilesetStyle,
42
- //倾斜样式
43
- tilesetName: options.tilesetName //倾斜名称
44
-
45
- };
46
- this._viewer = viewer;
47
- this._viewer.enabledFXAA = true; //声明场景出图类
48
-
49
- this._cameraToImage = new Cesium.Kq3dCanvasToImage(viewer._container, {
50
- viewer: viewer,
51
- canvas: viewer.scene.canvas
52
- });
53
- let that = this;
54
- setTimeout(() => {
55
- let tileset = this.findLayerByName(this._options.tilesetName);
56
-
57
- if (tileset) {
58
- if (tileset instanceof Array && tileset.length > 0) {
59
- tileset[0].readyPromise.then(function (tileset) {
60
- tileset.style = new Cesium.Cesium3DTileStyle(that._options.style);
61
- });
62
- } else if (tileset instanceof Object) {
63
- tileset.readyPromise.then(function (tileset) {
64
- tileset.style = new Cesium.Cesium3DTileStyle(that._options.style);
65
- });
66
- }
67
- }
68
- }, 800);
69
- } // 查找所有3dtiles模型对象
70
-
71
-
72
- findLayers() {
73
- let tilesets = [];
74
- const primitives = this._viewer.scene.primitives._primitives;
75
-
76
- for (let m = 0; m < primitives.length; m++) {
77
- if (primitives[m] instanceof Cesium.Cesium3DTileset) {
78
- tilesets.push({
79
- guid: primitives[m].guid,
80
- name: primitives[m].name ? primitives[m].name : primitives[m].guid
81
- });
82
- }
83
- }
84
-
85
- return tilesets;
86
- } // 出图
87
-
88
-
89
- sceneFigure() {
90
- this.saveAsimages();
91
- } // 返回base64
92
-
93
-
94
- saveAsimages() {
95
- //设置宽、高、图片类型
96
- var options = {
97
- width: this._options.width,
98
- //图片宽度
99
- height: this._options.height,
100
- //图片高度
101
- type: this._options.imageType //图片类型
102
-
103
- }; //返回图片
104
-
105
- var img = this._cameraToImage.saveAsimages(this._viewer.scene.canvas, options);
106
-
107
- return img;
108
- } // 返回base64
109
-
110
-
111
- toDataURL() {
112
- var base64 = this._cameraToImage.toDataURL({
113
- width: this._options.width,
114
- height: this._options.height,
115
- type: Cesium.Kq3dImageFormatter.JPG
116
- });
117
-
118
- return base64;
119
- } //根据id获取tileset对象
120
-
121
-
122
- findLayerByName(name) {
123
- const primitives = this._viewer.scene.primitives._primitives;
124
- const tileset = primitives.find(function (item) {
125
- return item.name === name;
126
- });
127
- return tileset;
128
- } //根据宽度计算高度
129
-
130
-
131
- calcWidthByWindowRatio(width) {
132
- var r = this._viewer.scene.canvas.width / this._viewer.scene.canvas.height;
133
- return parseInt(width * r);
134
- } //根据高度计算宽度
135
-
136
-
137
- calcHeightByWindowRatio(height) {
138
- var r = this._viewer.scene.canvas.width / this._viewer.scene.canvas.height;
139
- return parseInt(height / r);
140
- } // 锁定图片宽高比
141
-
142
-
143
- setImgAspectRatio(val) {
144
- this._options.fixedRatio = val;
145
- } // 设置图片宽度
146
-
147
-
148
- setImgWidth(val) {
149
- this._options.width = val;
150
- } // 设置图片高度
15
+ /***/ 5698:
16
+ /***/ (function(module) {
151
17
 
18
+ module.exports = require("@kq_npm/client_icons_vue");
152
19
 
153
- setImgHeight(val) {
154
- this._options.height = val;
155
- } // 设置图片类型
20
+ /***/ }),
156
21
 
22
+ /***/ 2652:
23
+ /***/ (function(module) {
157
24
 
158
- setImgType(val) {
159
- this._options.imageType = val;
160
- } // 注销
25
+ module.exports = require("core-js/modules/es.array.push.js");
161
26
 
27
+ /***/ }),
162
28
 
163
- destroy() {
164
- if (this._cameraToImage) this._cameraToImage = null;
165
- }
29
+ /***/ 3658:
30
+ /***/ (function(module) {
166
31
 
167
- }
32
+ module.exports = require("core-js/modules/esnext.iterator.constructor.js");
168
33
 
169
34
  /***/ }),
170
35
 
171
- /***/ 348:
36
+ /***/ 7993:
172
37
  /***/ (function(module) {
173
38
 
174
- module.exports = require("@kq_npm/client_icons_vue");
39
+ module.exports = require("core-js/modules/esnext.iterator.find.js");
175
40
 
176
41
  /***/ }),
177
42
 
178
- /***/ 7080:
43
+ /***/ 3579:
179
44
  /***/ (function(module) {
180
45
 
181
46
  module.exports = require("vue-i18n/dist/vue-i18n.cjs.js");
182
47
 
183
48
  /***/ }),
184
49
 
185
- /***/ 7135:
50
+ /***/ 64:
186
51
  /***/ (function(module) {
187
52
 
188
- module.exports = __WEBPACK_EXTERNAL_MODULE__7135__;
53
+ module.exports = __WEBPACK_EXTERNAL_MODULE__64__;
189
54
 
190
55
  /***/ }),
191
56
 
192
- /***/ 3458:
57
+ /***/ 2975:
193
58
  /***/ (function(module) {
194
59
 
195
- module.exports = __WEBPACK_EXTERNAL_MODULE__3458__;
60
+ module.exports = __WEBPACK_EXTERNAL_MODULE__2975__;
196
61
 
197
62
  /***/ }),
198
63
 
199
- /***/ 7997:
64
+ /***/ 455:
200
65
  /***/ (function(module) {
201
66
 
202
- module.exports = __WEBPACK_EXTERNAL_MODULE__7997__;
67
+ module.exports = __WEBPACK_EXTERNAL_MODULE__455__;
203
68
 
204
69
  /***/ }),
205
70
 
206
- /***/ 1895:
71
+ /***/ 154:
207
72
  /***/ (function(module) {
208
73
 
209
- module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
74
+ module.exports = __WEBPACK_EXTERNAL_MODULE__154__;
210
75
 
211
76
  /***/ }),
212
77
 
213
- /***/ 8270:
78
+ /***/ 6913:
214
79
  /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
215
80
 
216
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
217
- /* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
218
- /* harmony export */ });
219
- function _defineProperty(obj, key, value) {
220
- if (key in obj) {
221
- Object.defineProperty(obj, key, {
222
- value: value,
223
- enumerable: true,
224
- configurable: true,
225
- writable: true
226
- });
227
- } else {
228
- obj[key] = value;
81
+
82
+ // EXPORTS
83
+ __webpack_require__.d(__webpack_exports__, {
84
+ A: 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.");
229
107
  }
108
+ return ("string" === r ? String : Number)(t);
109
+ }
110
+
111
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
112
+
230
113
 
231
- return obj;
114
+ function toPropertyKey(t) {
115
+ var i = toPrimitive(t, "string");
116
+ return "symbol" == _typeof(i) ? i : i + "";
232
117
  }
233
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
+
234
131
  /***/ })
235
132
 
236
133
  /******/ });
@@ -302,29 +199,165 @@ function _defineProperty(obj, key, value) {
302
199
  /******/
303
200
  /************************************************************************/
304
201
  var __webpack_exports__ = {};
305
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
306
- !function() {
307
202
  // ESM COMPAT FLAG
308
203
  __webpack_require__.r(__webpack_exports__);
309
204
 
310
205
  // EXPORTS
311
206
  __webpack_require__.d(__webpack_exports__, {
312
- "ScreenshotViewModel": function() { return /* reexport */ ScreenshotViewModel/* default */.Z; },
207
+ ScreenshotViewModel: function() { return /* reexport */ ScreenshotViewModel; },
313
208
  "default": function() { return /* reexport */ Screenshot; }
314
209
  });
315
210
 
316
211
  // EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
317
- var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
212
+ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(154);
318
213
  // EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
319
- var client_icons_vue_ = __webpack_require__(348);
214
+ var client_icons_vue_ = __webpack_require__(5698);
320
215
  // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
321
- var gis_utils_ = __webpack_require__(7135);
322
- // EXTERNAL MODULE: ./src/webgl/screenshot/ScreenshotViewModel.js
323
- var ScreenshotViewModel = __webpack_require__(1248);
216
+ var gis_utils_ = __webpack_require__(64);
217
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js + 3 modules
218
+ var defineProperty = __webpack_require__(6913);
219
+ // EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
220
+ var es_array_push_js_ = __webpack_require__(2652);
221
+ // EXTERNAL MODULE: external "core-js/modules/esnext.iterator.constructor.js"
222
+ var esnext_iterator_constructor_js_ = __webpack_require__(3658);
223
+ // EXTERNAL MODULE: external "core-js/modules/esnext.iterator.find.js"
224
+ var esnext_iterator_find_js_ = __webpack_require__(7993);
225
+ ;// CONCATENATED MODULE: ./src/webgl/screenshot/ScreenshotViewModel.js
226
+
227
+
228
+
229
+
230
+ /*
231
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
232
+ * All rights reserved.
233
+ */
234
+ //截图逻辑类
235
+ class ScreenshotViewModel {
236
+ //截图三维对象
237
+ constructor(viewer, options) {
238
+ (0,defineProperty/* default */.A)(this, "_viewer", null);
239
+ //三维viewer对象
240
+ (0,defineProperty/* default */.A)(this, "_options", null);
241
+ //截图存储参数对象
242
+ (0,defineProperty/* default */.A)(this, "_cameraToImage", null);
243
+ this._options = {
244
+ width: options.imgWidth,
245
+ height: options.imgHeight,
246
+ imageType: options.imgFormat,
247
+ fixedRatio: options.lockAspectRatio,
248
+ //锁定宽高比
249
+ style: options.tilesetStyle,
250
+ //倾斜样式
251
+ tilesetName: options.tilesetName //倾斜名称
252
+ };
253
+ this._viewer = viewer;
254
+ this._viewer.enabledFXAA = true;
255
+ //声明场景出图类
256
+ this._cameraToImage = new Cesium.Kq3dCanvasToImage(viewer._container, {
257
+ viewer: viewer,
258
+ canvas: viewer.scene.canvas
259
+ });
260
+ let that = this;
261
+ setTimeout(() => {
262
+ let tileset = this.findLayerByName(this._options.tilesetName);
263
+ if (tileset) {
264
+ if (tileset instanceof Array && tileset.length > 0) {
265
+ tileset[0].readyPromise.then(function (tileset) {
266
+ tileset.style = new Cesium.Cesium3DTileStyle(that._options.style);
267
+ });
268
+ } else if (tileset instanceof Object) {
269
+ tileset.readyPromise.then(function (tileset) {
270
+ tileset.style = new Cesium.Cesium3DTileStyle(that._options.style);
271
+ });
272
+ }
273
+ }
274
+ }, 800);
275
+ }
276
+
277
+ // 查找所有3dtiles模型对象
278
+ findLayers() {
279
+ let tilesets = [];
280
+ const primitives = this._viewer.scene.primitives._primitives;
281
+ for (let m = 0; m < primitives.length; m++) {
282
+ if (primitives[m] instanceof Cesium.Cesium3DTileset) {
283
+ tilesets.push({
284
+ guid: primitives[m].guid,
285
+ name: primitives[m].name ? primitives[m].name : primitives[m].guid
286
+ });
287
+ }
288
+ }
289
+ return tilesets;
290
+ }
291
+ // 出图
292
+ sceneFigure() {
293
+ this.saveAsimages();
294
+ }
295
+ // 返回base64
296
+ saveAsimages() {
297
+ //设置宽、高、图片类型
298
+ var options = {
299
+ width: this._options.width,
300
+ //图片宽度
301
+ height: this._options.height,
302
+ //图片高度
303
+ type: this._options.imageType //图片类型
304
+ };
305
+ //返回图片
306
+ var img = this._cameraToImage.saveAsimages(this._viewer.scene.canvas, options);
307
+ return img;
308
+ }
309
+ // 返回base64
310
+ toDataURL() {
311
+ var base64 = this._cameraToImage.toDataURL({
312
+ width: this._options.width,
313
+ height: this._options.height,
314
+ type: Cesium.Kq3dImageFormatter.JPG
315
+ });
316
+ return base64;
317
+ }
318
+ //根据id获取tileset对象
319
+ findLayerByName(name) {
320
+ const primitives = this._viewer.scene.primitives._primitives;
321
+ const tileset = primitives.find(function (item) {
322
+ return item.name === name;
323
+ });
324
+ return tileset;
325
+ }
326
+ //根据宽度计算高度
327
+ calcWidthByWindowRatio(width) {
328
+ var r = this._viewer.scene.canvas.width / this._viewer.scene.canvas.height;
329
+ return parseInt(width * r);
330
+ }
331
+ //根据高度计算宽度
332
+ calcHeightByWindowRatio(height) {
333
+ var r = this._viewer.scene.canvas.width / this._viewer.scene.canvas.height;
334
+ return parseInt(height / r);
335
+ }
336
+ // 锁定图片宽高比
337
+ setImgAspectRatio(val) {
338
+ this._options.fixedRatio = val;
339
+ }
340
+ // 设置图片宽度
341
+ setImgWidth(val) {
342
+ this._options.width = val;
343
+ }
344
+ // 设置图片高度
345
+ setImgHeight(val) {
346
+ this._options.height = val;
347
+ }
348
+ // 设置图片类型
349
+ setImgType(val) {
350
+ this._options.imageType = val;
351
+ }
352
+ // 注销
353
+ destroy() {
354
+ if (this._cameraToImage) this._cameraToImage = null;
355
+ }
356
+ }
324
357
  // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
325
- var util_ = __webpack_require__(3458);
358
+ var util_ = __webpack_require__(2975);
326
359
  // EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
327
- var vue_i18n_cjs_js_ = __webpack_require__(7080);
360
+ var vue_i18n_cjs_js_ = __webpack_require__(3579);
328
361
  ;// 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
329
362
 
330
363
  const _hoisted_1 = {
@@ -338,12 +371,14 @@ const _hoisted_2 = {
338
371
 
339
372
 
340
373
 
341
- // 场景宽度
374
+
375
+
376
+ // 场景宽度
342
377
 
343
378
  const __default__ = {
344
379
  name: "Kq3dScreenShot"
345
380
  };
346
- /* harmony default export */ var Screenshotvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
381
+ /* harmony default export */ var Screenshotvue_type_script_setup_true_lang_js = (/*@__PURE__*/Object.assign(__default__, {
347
382
  props: {
348
383
  // 设置参数
349
384
  settingParams: {
@@ -353,7 +388,6 @@ const __default__ = {
353
388
  type: Boolean,
354
389
  default: true
355
390
  },
356
-
357
391
  /**
358
392
  * 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
359
393
  */
@@ -383,19 +417,18 @@ const __default__ = {
383
417
  default: true
384
418
  }
385
419
  },
386
-
387
420
  setup(__props, {
388
- expose
421
+ expose: __expose
389
422
  }) {
390
- const props = __props;
391
- let imgWidthMax = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(800); // 场景高度
392
-
423
+ let imgWidthMax = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(800);
424
+ // 场景高度
393
425
  let imgHeightMax = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(800);
394
- let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({}); // 分析类
395
-
396
- let viewModel = null; // 获取组件传参
426
+ let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
427
+ // 分析类
428
+ let viewModel = null;
429
+ // 获取组件传参
430
+ const props = __props;
397
431
  //设置样式
398
-
399
432
  var style = {
400
433
  color: {
401
434
  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)"]]
@@ -413,14 +446,16 @@ const __default__ = {
413
446
  tilesetName: props.settingParams && props.settingParams.tilesetName || "ShangHai-White",
414
447
  //倾斜摄影名称
415
448
  tilesetStyle: props.settingParams && props.settingParams.tilesetStyle || style // 倾斜摄影样式
449
+ });
416
450
 
417
- }); // 组件容器Ref
418
-
419
- let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
451
+ // 组件容器Ref
452
+ let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
420
453
 
454
+ // 生成组件默认header
421
455
  let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
422
- let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 国际化
456
+ let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
423
457
 
458
+ // 国际化
424
459
  let {
425
460
  locale,
426
461
  messages
@@ -446,83 +481,67 @@ const __default__ = {
446
481
  imgHeightMax.value = canvas.height;
447
482
  formItem.imgWidth = canvas.width;
448
483
  formItem.imgHeight = canvas.height;
449
- viewModel = new ScreenshotViewModel/* default */.Z(scenceView._viewer, formItem);
484
+ viewModel = new ScreenshotViewModel(scenceView._viewer, formItem);
450
485
  }
451
486
  });
452
487
  });
488
+
453
489
  /**
454
490
  * @description 监听header生成
455
491
  */
456
-
457
492
  const watchCreateHeaderTemp = () => {
458
493
  if (props.showHeaderTemp) {
459
494
  // 生成headerTemp
460
495
  headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
461
496
  }
462
- }; // 场景出图
463
-
497
+ };
464
498
 
499
+ // 场景出图
465
500
  function sceneFigure() {
466
501
  viewModel && viewModel.sceneFigure();
467
- } // 参数联动
468
-
469
-
502
+ }
503
+ // 参数联动
470
504
  function paramsChanged(key) {
471
505
  if (!viewModel) return;
472
-
473
506
  switch (key) {
474
507
  case "lockAspectRatio":
475
508
  viewModel.setImgAspectRatio(formItem.lockAspectRatio);
476
509
  break;
477
-
478
510
  case "imgWidth":
479
511
  viewModel.setImgWidth(formItem.imgWidth);
480
512
  formItem.imgHeight = formItem.lockAspectRatio ? viewModel.calcHeightByWindowRatio(formItem.imgWidth) : Number(formItem.imgWidth);
481
513
  viewModel.setImgHeight(formItem.imgHeight);
482
514
  break;
483
-
484
515
  case "imgHeight":
485
516
  viewModel.setImgHeight(formItem.imgHeight);
486
517
  formItem.imgWidth = formItem.lockAspectRatio ? viewModel.calcWidthByWindowRatio(formItem.imgHeight) : Number(formItem.imgHeight);
487
518
  viewModel.setImgWidth(formItem.imgWidth);
488
519
  break;
489
-
490
520
  case "imgFormat":
491
521
  viewModel.setImgType(formItem.imgFormat);
492
522
  break;
493
-
494
523
  default:
495
524
  break;
496
525
  }
497
- } // 销毁
498
-
499
-
526
+ }
527
+ // 销毁
500
528
  (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
501
529
  viewModel && viewModel.destroy();
502
530
  });
503
- expose({
531
+ __expose({
504
532
  paramsChanged,
505
533
  sceneFigure
506
534
  });
507
535
  return (_ctx, _cache) => {
508
536
  const _component_kq_checkbox = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-checkbox");
509
-
510
537
  const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
511
-
512
538
  const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
513
-
514
539
  const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
515
-
516
540
  const _component_kq_form_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form-item");
517
-
518
541
  const _component_kq_option = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-option");
519
-
520
542
  const _component_kq_select = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-select");
521
-
522
543
  const _component_kq_form = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form");
523
-
524
544
  const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
525
-
526
545
  return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
527
546
  class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-screenshot", {
528
547
  'kq-box-shadow': __props.showShadow
@@ -533,9 +552,7 @@ const __default__ = {
533
552
  key: 0,
534
553
  ref_key: "headerTempRef",
535
554
  ref: headerTempRef
536
- }, null, 512
537
- /* NEED_PATCH */
538
- )) : (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, {
555
+ }, 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, {
539
556
  "label-width": "120px",
540
557
  "label-position": "left"
541
558
  }, {
@@ -545,18 +562,10 @@ const __default__ = {
545
562
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).lockAspectRatio = $event),
546
563
  onChange: _cache[1] || (_cache[1] = $event => paramsChanged('lockAspectRatio'))
547
564
  }, {
548
- 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
549
- /* TEXT */
550
- )]),
551
- _: 1
552
- /* STABLE */
553
-
554
- }, 8
555
- /* PROPS */
556
- , ["modelValue"])]),
557
- _: 1
558
- /* STABLE */
559
-
565
+ 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 */)]),
566
+ _: 1 /* STABLE */
567
+ }, 8 /* PROPS */, ["modelValue"])]),
568
+ _: 1 /* STABLE */
560
569
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
561
570
  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, {
562
571
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).imgWidth + '(px)'
@@ -577,26 +586,14 @@ const __default__ = {
577
586
  max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(imgWidthMax),
578
587
  "controls-position": "right",
579
588
  onInput: _cache[3] || (_cache[3] = $event => paramsChanged('imgWidth'))
580
- }, null, 8
581
- /* PROPS */
582
- , ["modelValue", "max"])]),
583
- _: 1
584
- /* STABLE */
585
-
589
+ }, null, 8 /* PROPS */, ["modelValue", "max"])]),
590
+ _: 1 /* STABLE */
586
591
  })]),
587
- _: 1
588
- /* STABLE */
589
-
592
+ _: 1 /* STABLE */
590
593
  })]),
591
- _: 1
592
- /* STABLE */
593
-
594
- }, 8
595
- /* PROPS */
596
- , ["label"])]),
597
- _: 1
598
- /* STABLE */
599
-
594
+ _: 1 /* STABLE */
595
+ }, 8 /* PROPS */, ["label"])]),
596
+ _: 1 /* STABLE */
600
597
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
601
598
  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, {
602
599
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).imgHeight + '(px)'
@@ -617,26 +614,14 @@ const __default__ = {
617
614
  max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(imgHeightMax),
618
615
  "controls-position": "right",
619
616
  onInput: _cache[5] || (_cache[5] = $event => paramsChanged('imgHeight'))
620
- }, null, 8
621
- /* PROPS */
622
- , ["modelValue", "max"])]),
623
- _: 1
624
- /* STABLE */
625
-
617
+ }, null, 8 /* PROPS */, ["modelValue", "max"])]),
618
+ _: 1 /* STABLE */
626
619
  })]),
627
- _: 1
628
- /* STABLE */
629
-
620
+ _: 1 /* STABLE */
630
621
  })]),
631
- _: 1
632
- /* STABLE */
633
-
634
- }, 8
635
- /* PROPS */
636
- , ["label"])]),
637
- _: 1
638
- /* STABLE */
639
-
622
+ _: 1 /* STABLE */
623
+ }, 8 /* PROPS */, ["label"])]),
624
+ _: 1 /* STABLE */
640
625
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
641
626
  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, {
642
627
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).imgFormat
@@ -667,48 +652,25 @@ const __default__ = {
667
652
  label: "JPEG",
668
653
  value: "jpeg"
669
654
  })]),
670
- _: 1
671
- /* STABLE */
672
-
673
- }, 8
674
- /* PROPS */
675
- , ["modelValue"])]),
676
- _: 1
677
- /* STABLE */
678
-
655
+ _: 1 /* STABLE */
656
+ }, 8 /* PROPS */, ["modelValue"])]),
657
+ _: 1 /* STABLE */
679
658
  })]),
680
- _: 1
681
- /* STABLE */
682
-
683
- }, 8
684
- /* PROPS */
685
- , ["label"])]),
686
- _: 1
687
- /* STABLE */
688
-
659
+ _: 1 /* STABLE */
660
+ }, 8 /* PROPS */, ["label"])]),
661
+ _: 1 /* STABLE */
689
662
  })]),
690
- _: 1
691
- /* STABLE */
692
-
663
+ _: 1 /* STABLE */
693
664
  }), (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, {
694
665
  onClick: _cache[8] || (_cache[8] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => sceneFigure(), ["stop"])),
695
666
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).screenshotTips,
696
667
  type: "primary"
697
668
  }, {
698
- 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
699
- /* TEXT */
700
- )]),
701
- _: 1
702
- /* STABLE */
703
-
704
- }, 8
705
- /* PROPS */
706
- , ["title"])])])], 2
707
- /* CLASS */
708
- );
669
+ 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 */)]),
670
+ _: 1 /* STABLE */
671
+ }, 8 /* PROPS */, ["title"])])])], 2 /* CLASS */);
709
672
  };
710
673
  }
711
-
712
674
  }));
713
675
  ;// CONCATENATED MODULE: ./src/webgl/screenshot/Screenshot.vue?vue&type=script&setup=true&lang=js
714
676
 
@@ -720,10 +682,13 @@ const __exports__ = Screenshotvue_type_script_setup_true_lang_js;
720
682
 
721
683
  /* harmony default export */ var Screenshot = (__exports__);
722
684
  // EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
723
- var init_js_ = __webpack_require__(7997);
685
+ var init_js_ = __webpack_require__(455);
724
686
  var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
725
687
  ;// CONCATENATED MODULE: ./src/webgl/screenshot/index.js
726
-
688
+ /*
689
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
690
+ * All rights reserved.
691
+ */
727
692
 
728
693
 
729
694
 
@@ -732,8 +697,6 @@ Screenshot.install = (Vue, opts) => {
732
697
  Vue.component(Screenshot.name, Screenshot);
733
698
  };
734
699
 
735
-
736
- }();
737
700
  /******/ return __webpack_exports__;
738
701
  /******/ })()
739
702
  ;