@kq_npm/client3d_webgl_vue 4.4.3 → 4.4.4

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.
@@ -26,7 +26,6 @@ return /******/ (function() { // webpackBootstrap
26
26
  **/
27
27
  class SceneToHDImageViewModel {
28
28
  // 输出图片区域
29
- // 缩放比
30
29
  constructor(viewer, options) {
31
30
  (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_viewer", null);
32
31
 
@@ -36,42 +35,40 @@ class SceneToHDImageViewModel {
36
35
 
37
36
  (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_exportPictureRegion", null);
38
37
 
39
- (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_pantographRatio", null);
40
-
41
38
  this._viewer = viewer;
42
39
  this._options = options;
43
- this._viewer.enabledFXAA = true; // this._exportPictureRegion = document.createElement("div");
44
- // this._exportPictureRegion.class = "export-picture-region";
45
- // this._exportPictureRegion.id = "exportPictureRegion";
46
- // this._tbSlider = document.createElement("div");
47
- // this._tbSlider.class = "shutter-slider";
48
- // this._tbSlider.id = "tbSlider";
49
- // this._viewer.container.appendChild(this._lrSlider);
50
- // this._viewer.container.appendChild(this._tbSlider);
51
-
52
- console.log(this._viewer._container.id); //声明场景出图类
40
+ this._viewer.enabledFXAA = true;
41
+ this._exportPictureRegion = document.createElement("div");
42
+ this._exportPictureRegion.class = "export-picture-region";
43
+ this._exportPictureRegion.id = "exportPictureRegion";
44
+ document.getElementById(this._viewer._container.id).parentNode.insertBefore(this._exportPictureRegion, null);
45
+ document.getElementById(this._viewer._container.id).classList.add('scene-to-hd-image-viewer'); //声明场景出图类
53
46
 
54
47
  this._canvasToImage = new Cesium.Kq3dCanvasToImage(this._viewer._container.id, {
55
48
  viewer: this._viewer,
56
49
  canvas: this._viewer.scene.canvas
57
50
  });
51
+ this.resizeExportRegionSize();
58
52
  }
59
53
 
60
- resizeExportRegionSize() {} // 出图
54
+ resizeExportRegionSize() {
55
+ document.getElementById('exportPictureRegion').style.width = Number(this._options.imgWidth) * Number(this._options.pantographRatio) + 'px';
56
+ document.getElementById('exportPictureRegion').style.height = Number(this._options.imgHeight) * Number(this._options.pantographRatio) + 'px';
57
+ } // 出图
61
58
 
62
59
 
63
60
  sceneToImages() {
64
- var width = Number(this._options.width),
65
- height = Number(this._options.height),
66
- resolutionWidth = Number(this._options.resolutionWidth),
67
- resolutionHeight = Number(this._options.resolutionHeight); //设置宽、高、图片类型
61
+ var width = Number(this._options.imgWidth),
62
+ height = Number(this._options.imgHeight),
63
+ resolutionWidth = Number(this._options.screenWidth),
64
+ resolutionHeight = Number(this._options.screenHeight); //设置宽、高、图片类型
68
65
 
69
66
  var options = {
70
67
  width: width,
71
68
  //图片宽度
72
69
  height: height,
73
70
  //图片高度
74
- type: this._options.type //图片类型
71
+ type: this._options.imgFormat //图片类型
75
72
 
76
73
  };
77
74
 
@@ -80,8 +77,6 @@ class SceneToHDImageViewModel {
80
77
  } else {
81
78
  this._viewer.render();
82
79
 
83
- var ctx = this._viewer.scene.canvas.getContext("2d");
84
-
85
80
  var startX = (resolutionWidth - width) / 2,
86
81
  startY = (resolutionHeight - height) / 2;
87
82
  var canvas = document.createElement('canvas');
@@ -95,38 +90,35 @@ class SceneToHDImageViewModel {
95
90
  }
96
91
 
97
92
  scaleCesiumContainer() {
98
- var bWidth = $('body').width(),
99
- bHeight = $('body').height();
100
- var width = Number(this._options.resolutionWidth),
101
- height = Number(this._options.resolutionHeight);
102
- var wRatio = bWidth / width,
103
- hRatio = bHeight / height; // if (wRatio < 1 || hRatio < 1) {
104
-
105
- var scale = Math.min(wRatio, hRatio);
106
- $('#cesiumContainer').css('width', width + 'px').css('height', height + 'px').css('transform', `translate(-50%,-50%) scale(${scale > 1 ? 1 : scale})`);
107
- this._options.scale = scale > 1 ? 1 : scale;
108
- } //将值转换成4的倍数
109
-
110
-
111
- convertValueTo4Times(value) {
112
- if (Math.abs(value % 4) > 0.000001) {
113
- if (Math.abs(value % 4) > 1.5) {
114
- value = 4 * (parseInt(value / 4) + 1);
115
- } else {
116
- value = 4 * parseInt(value / 4);
117
- }
118
- }
119
-
120
- return value || 4;
121
- } // 参数切换
122
-
93
+ // var bWidth = document.getElementById(this._viewer._container.id).parentNode.clientWidth,
94
+ // bHeight = document.getElementById(this._viewer._container.id).parentNode.clientHeight;
95
+ // var width = Number(this._options.screenWidth),
96
+ // height = Number(this._options.screenHeight);
97
+ // var wRatio = bWidth / width,
98
+ // hRatio = bHeight / height;
99
+ // var scale = Math.min(wRatio, hRatio);
100
+ document.getElementById(this._viewer._container.id).style.width = Number(this._options.screenWidth) + 'px';
101
+ document.getElementById(this._viewer._container.id).style.height = Number(this._options.screenHeight) + 'px'; // document.getElementById(this._viewer._container.id).style.transform = `translate(-50%,-50%) scale(${scale > 1 ? 1 : scale})`;
102
+ // this._options.pantographRatio = scale > 1 ? 1 : scale;
103
+ // if (call) call(this._options.pantographRatio)
104
+ } // 切换显示区域
105
+
106
+
107
+ changeDisplayArea() {
108
+ document.getElementById('exportPictureRegion').style.display = this._options.displayArea ? 'block' : 'none';
109
+ }
123
110
 
124
- paramsChanged(key, val) {
125
- this._options[key] = val;
111
+ changPantographRatio() {
112
+ this._viewer.container.style.transform = `translate(-50%,-50%) scale(${this._options.pantographRatio})`;
113
+ this.resizeExportRegionSize();
126
114
  } // 销毁
127
115
 
128
116
 
129
- destroy() {}
117
+ destroy() {
118
+ document.getElementById(this._viewer._container.id).classList.remove('scene-to-hd-image-viewer');
119
+ document.getElementById(this._viewer._container.id).removeAttribute('style');
120
+ document.getElementById('exportPictureRegion').remove();
121
+ }
130
122
 
131
123
  }
132
124
 
@@ -360,36 +352,30 @@ const __default__ = {
360
352
  let collapseValue = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("screenParameter"); // 获取组件传参
361
353
  // 分析类
362
354
 
363
- let viewModel = null; // 参数
355
+ let viewModel = {}; // 参数
364
356
 
365
357
  let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
366
- screenWidth: props.settingParams && props.settingParams.screenWidth || 100,
358
+ screenWidth: 100,
367
359
  // 屏幕宽度
368
- minScreenWidth: props.settingParams && props.settingParams.minScreenWidth || 0,
360
+ minScreenWidth: 0,
369
361
  // 屏幕宽度最小值
370
- maxScreenWidth: props.settingParams && props.settingParams.maxScreenWidth || 1920,
362
+ maxScreenWidth: 1920,
371
363
  // 屏幕宽度最大值
372
- screenHeight: props.settingParams && props.settingParams.screenHeight || 100,
364
+ screenHeight: 100,
373
365
  // 屏幕宽度
374
- minScreenHeight: props.settingParams && props.settingParams.minScreenHeight || 0,
366
+ minScreenHeight: 0,
375
367
  // 屏幕宽度最小值
376
- maxScreenHeight: props.settingParams && props.settingParams.maxScreenHeight || 900,
368
+ maxScreenHeight: 900,
377
369
  // 屏幕宽度最大值
378
370
  displayArea: props.settingParams && props.settingParams.displayArea || true,
379
371
  // 是否显示区域
380
- imgWidth: props.settingParams && props.settingParams.imgWidth || 100,
372
+ imgWidth: 100,
381
373
  // 图片宽度
382
- minImgWidth: props.settingParams && props.settingParams.minImgWidth || 0,
383
- // 图片宽度最小值
384
- maxImgWidth: props.settingParams && props.settingParams.maxImgWidth || 1920,
385
- // 图片宽度最大值
386
- imgHeight: props.settingParams && props.settingParams.imgHeight || 100,
374
+ imgHeight: 100,
387
375
  // 图片高度
388
- minImgHeight: props.settingParams && props.settingParams.minImgHeight || 0,
389
- // 图片高度最小值
390
- maxImgHeight: props.settingParams && props.settingParams.maxImgHeight || 900,
391
- // 图片高度最大值
392
- imgFormat: props.settingParams && props.settingParams.imgFormat || "jpg" // 图片类型
376
+ imgFormat: props.settingParams && props.settingParams.imgFormat || "jpg",
377
+ // 图片类型
378
+ pantographRatio: 1 // 缩放比
393
379
 
394
380
  }); // 组件容器Ref
395
381
 
@@ -420,6 +406,8 @@ const __default__ = {
420
406
 
421
407
  gis_utils_.utils.getWebMap(null, scenceView => {
422
408
  if (scenceView) {
409
+ // 初始化视图参数
410
+ intViewModelParams(scenceView._viewer._container.id);
423
411
  viewModel = new SceneToHDImageViewModel/* default */.Z(scenceView._viewer, formItem);
424
412
  }
425
413
  });
@@ -442,7 +430,44 @@ const __default__ = {
442
430
 
443
431
 
444
432
  function paramsChanged(key) {
445
- viewModel && viewModel.paramsChanged(key, formItem[key]);
433
+ if (!viewModel || !viewModel._options) return;
434
+ viewModel._options[key] = formItem[key];
435
+
436
+ switch (key) {
437
+ case "displayArea":
438
+ viewModel.changeDisplayArea();
439
+ break;
440
+
441
+ case "screenWidth":
442
+ case "screenHeight":
443
+ viewModel.scaleCesiumContainer();
444
+ break;
445
+
446
+ case "imgWidth":
447
+ case "imgHeight":
448
+ viewModel.resizeExportRegionSize();
449
+ break;
450
+
451
+ case "pantographRatio":
452
+ viewModel.changPantographRatio();
453
+ break;
454
+
455
+ default:
456
+ break;
457
+ }
458
+ }
459
+
460
+ function intViewModelParams(id) {
461
+ var bodyW = 1920,
462
+ bodyH = 1024;
463
+ bodyW = document.getElementById(id).clientWidth;
464
+ bodyH = document.getElementById(id).clientHeight;
465
+ formItem.screenWidth = bodyW;
466
+ formItem.screenHeight = bodyH;
467
+ formItem.maxScreenWidth = bodyW;
468
+ formItem.maxScreenHeight = bodyH;
469
+ formItem.imgWidth = parseInt(bodyW / 5 * 4);
470
+ formItem.imgHeight = parseInt(bodyH / 5 * 4);
446
471
  } // 销毁
447
472
 
448
473
 
@@ -516,7 +541,7 @@ const __default__ = {
516
541
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).screenWidth = $event),
517
542
  step: 1,
518
543
  min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minScreenWidth,
519
- max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxScreenHeight,
544
+ max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxScreenWidth,
520
545
  onInput: _cache[1] || (_cache[1] = $event => paramsChanged('screenWidth'))
521
546
  }, null, 8
522
547
  /* PROPS */
@@ -534,7 +559,8 @@ const __default__ = {
534
559
  max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxScreenWidth,
535
560
  step: 1,
536
561
  "controls-position": "right",
537
- onInput: _cache[3] || (_cache[3] = $event => paramsChanged('screenWidth'))
562
+ onBlur: _cache[3] || (_cache[3] = $event => paramsChanged('screenWidth', 'a')),
563
+ onInput: _cache[4] || (_cache[4] = $event => paramsChanged('screenWidth', 'b'))
538
564
  }, null, 8
539
565
  /* PROPS */
540
566
  , ["modelValue", "min", "max"])]),
@@ -569,11 +595,11 @@ const __default__ = {
569
595
  }, {
570
596
  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, {
571
597
  modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).screenHeight,
572
- "onUpdate:modelValue": _cache[4] || (_cache[4] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).screenHeight = $event),
598
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).screenHeight = $event),
573
599
  step: 1,
574
600
  min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minScreenHeight,
575
601
  max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxScreenHeight,
576
- onInput: _cache[5] || (_cache[5] = $event => paramsChanged('screenHeight'))
602
+ onInput: _cache[6] || (_cache[6] = $event => paramsChanged('screenHeight'))
577
603
  }, null, 8
578
604
  /* PROPS */
579
605
  , ["modelValue", "min", "max"])]),
@@ -585,12 +611,12 @@ const __default__ = {
585
611
  }, {
586
612
  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, {
587
613
  modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).screenHeight,
588
- "onUpdate:modelValue": _cache[6] || (_cache[6] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).screenHeight = $event),
614
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).screenHeight = $event),
589
615
  min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minScreenHeight,
590
616
  max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxScreenHeight,
591
617
  step: 1,
592
618
  "controls-position": "right",
593
- onInput: _cache[7] || (_cache[7] = $event => paramsChanged('screenHeight'))
619
+ onInput: _cache[8] || (_cache[8] = $event => paramsChanged('screenHeight'))
594
620
  }, null, 8
595
621
  /* PROPS */
596
622
  , ["modelValue", "min", "max"])]),
@@ -611,6 +637,62 @@ const __default__ = {
611
637
  _: 1
612
638
  /* STABLE */
613
639
 
640
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
641
+ 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
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).pantographRatio
643
+ }, {
644
+ 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, {
645
+ style: {
646
+ "display": "flex"
647
+ }
648
+ }, {
649
+ 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, {
650
+ span: 16
651
+ }, {
652
+ 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, {
653
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).pantographRatio,
654
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).pantographRatio = $event),
655
+ step: 0.01,
656
+ min: 0.01,
657
+ max: 1,
658
+ onInput: _cache[10] || (_cache[10] = $event => paramsChanged('pantographRatio'))
659
+ }, null, 8
660
+ /* PROPS */
661
+ , ["modelValue", "step", "min"])]),
662
+ _: 1
663
+ /* STABLE */
664
+
665
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
666
+ span: 8
667
+ }, {
668
+ 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, {
669
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).pantographRatio,
670
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).pantographRatio = $event),
671
+ step: 0.01,
672
+ min: 0.01,
673
+ max: 1,
674
+ "controls-position": "right",
675
+ onInput: _cache[12] || (_cache[12] = $event => paramsChanged('pantographRatio'))
676
+ }, null, 8
677
+ /* PROPS */
678
+ , ["modelValue", "step", "min"])]),
679
+ _: 1
680
+ /* STABLE */
681
+
682
+ })]),
683
+ _: 1
684
+ /* STABLE */
685
+
686
+ })]),
687
+ _: 1
688
+ /* STABLE */
689
+
690
+ }, 8
691
+ /* PROPS */
692
+ , ["label"])]),
693
+ _: 1
694
+ /* STABLE */
695
+
614
696
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
615
697
  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, {
616
698
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).displayArea
@@ -626,9 +708,9 @@ const __default__ = {
626
708
  }, {
627
709
  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, {
628
710
  modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).displayArea,
629
- "onUpdate:modelValue": _cache[8] || (_cache[8] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).displayArea = $event),
711
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).displayArea = $event),
630
712
  "controls-position": "left",
631
- onChange: _cache[9] || (_cache[9] = $event => paramsChanged('displayArea'))
713
+ onChange: _cache[14] || (_cache[14] = $event => paramsChanged('displayArea'))
632
714
  }, null, 8
633
715
  /* PROPS */
634
716
  , ["modelValue"])]),
@@ -679,8 +761,8 @@ const __default__ = {
679
761
  }, {
680
762
  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_select, {
681
763
  modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).imgFormat,
682
- "onUpdate:modelValue": _cache[10] || (_cache[10] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).imgFormat = $event),
683
- onChange: _cache[11] || (_cache[11] = $event => paramsChanged('imgFormat')),
764
+ "onUpdate:modelValue": _cache[15] || (_cache[15] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).imgFormat = $event),
765
+ onChange: _cache[16] || (_cache[16] = $event => paramsChanged('imgFormat')),
684
766
  style: {
685
767
  "width": "100%"
686
768
  }
@@ -731,11 +813,11 @@ const __default__ = {
731
813
  }, {
732
814
  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, {
733
815
  modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).imgWidth,
734
- "onUpdate:modelValue": _cache[12] || (_cache[12] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).imgWidth = $event),
816
+ "onUpdate:modelValue": _cache[17] || (_cache[17] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).imgWidth = $event),
735
817
  step: 1,
736
818
  min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minImgWidth,
737
- max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxImgWidth,
738
- onInput: _cache[13] || (_cache[13] = $event => paramsChanged('imgWidth'))
819
+ max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).screenWidth,
820
+ onInput: _cache[18] || (_cache[18] = $event => paramsChanged('imgWidth'))
739
821
  }, null, 8
740
822
  /* PROPS */
741
823
  , ["modelValue", "min", "max"])]),
@@ -747,12 +829,12 @@ const __default__ = {
747
829
  }, {
748
830
  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, {
749
831
  modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).imgWidth,
750
- "onUpdate:modelValue": _cache[14] || (_cache[14] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).imgWidth = $event),
832
+ "onUpdate:modelValue": _cache[19] || (_cache[19] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).imgWidth = $event),
751
833
  min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minImgWidth,
752
- max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxImgWidth,
834
+ max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).screenWidth,
753
835
  step: 1,
754
836
  "controls-position": "right",
755
- onInput: _cache[15] || (_cache[15] = $event => paramsChanged('imgWidth'))
837
+ onInput: _cache[20] || (_cache[20] = $event => paramsChanged('imgWidth'))
756
838
  }, null, 8
757
839
  /* PROPS */
758
840
  , ["modelValue", "min", "max"])]),
@@ -787,11 +869,11 @@ const __default__ = {
787
869
  }, {
788
870
  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, {
789
871
  modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).imgHeight,
790
- "onUpdate:modelValue": _cache[16] || (_cache[16] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).imgHeight = $event),
872
+ "onUpdate:modelValue": _cache[21] || (_cache[21] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).imgHeight = $event),
791
873
  step: 1,
792
874
  min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minImgHeight,
793
- max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxImgHeight,
794
- onInput: _cache[17] || (_cache[17] = $event => paramsChanged('imgHeight'))
875
+ max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).screenHeight,
876
+ onInput: _cache[22] || (_cache[22] = $event => paramsChanged('imgHeight'))
795
877
  }, null, 8
796
878
  /* PROPS */
797
879
  , ["modelValue", "min", "max"])]),
@@ -803,12 +885,12 @@ const __default__ = {
803
885
  }, {
804
886
  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, {
805
887
  modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).imgHeight,
806
- "onUpdate:modelValue": _cache[18] || (_cache[18] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).imgHeight = $event),
888
+ "onUpdate:modelValue": _cache[23] || (_cache[23] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).imgHeight = $event),
807
889
  min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minImgHeight,
808
- max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxImgHeight,
890
+ max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).screenHeight,
809
891
  step: 1,
810
892
  "controls-position": "right",
811
- onInput: _cache[19] || (_cache[19] = $event => paramsChanged('imgHeight'))
893
+ onInput: _cache[24] || (_cache[24] = $event => paramsChanged('imgHeight'))
812
894
  }, null, 8
813
895
  /* PROPS */
814
896
  , ["modelValue", "min", "max"])]),
@@ -846,7 +928,7 @@ const __default__ = {
846
928
  }, 8
847
929
  /* PROPS */
848
930
  , ["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, {
849
- onClick: _cache[20] || (_cache[20] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => toHDImageHander(), ["stop"])),
931
+ onClick: _cache[25] || (_cache[25] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => toHDImageHander(), ["stop"])),
850
932
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).sceneToHDImageTips,
851
933
  type: "primary"
852
934
  }, {
@@ -1 +1 @@
1
- .kq3d-scene-to-hd-image{z-index:999;border-radius:var(--kq-border-radius-base);padding:16px;pointer-events:auto;cursor:default;background-color:var(--kq-bg-color)}.kq3d-scene-to-hd-image .kq3d-scene-to-hd-image-box{width:360px}.kq3d-scene-to-hd-image .kq3d-scene-to-hd-image-collapse-item{margin-top:16px}.kq3d-scene-to-hd-image .kq3d-scene-to-hd-image-tip{color:var(--kq-text-color-regular);font-size:var(--kq-font-size-base)}.kq3d-scene-to-hd-image .kq3d-scene-to-hd-image-tip p{margin-top:0;margin-bottom:16px}.kq3d-scene-to-hd-image .kq3d-scene-to-hd-image-span{margin:0 20px}.kq3d-scene-to-hd-image .kq-select{width:100%}.kq3d-scene-to-hd-image .kq-collapse{border:unset}.kq3d-scene-to-hd-image .kq-collapse .kq-collapse-item__header{border:unset;height:38px;background-color:var(--kq-fill-color-light);font-weight:700;padding:0 16px;font-size:16px}.kq3d-scene-to-hd-image .kq-collapse .kq-collapse-item__arrow{margin:0 0 0 auto}.kq3d-scene-to-hd-image .kq-collapse .kq-collapse-item__wrap .kq-collapse-item__content{padding-bottom:unset;border:unset;padding-top:10px}.kq3d-scene-to-hd-image .kq-form-item{margin-bottom:8px}.kq3d-scene-to-hd-image .kq-form-item__content{text-align:end;display:block}.kq3d-scene-to-hd-image .kq-row{display:block}.kq3d-scene-to-hd-image .kq-slider{width:95%;padding-left:7px}.kq3d-scene-to-hd-image .kq-slider .kq-slider__button{width:14px;height:14px}.kq3d-scene-to-hd-image .kq-input-number.is-controls-right{width:65px}.kq3d-scene-to-hd-image .kq-input-number.is-controls-right .kq-input-number__decrease,.kq3d-scene-to-hd-image .kq-input-number.is-controls-right .kq-input-number__increase{width:20px}.kq3d-scene-to-hd-image .kq-col-8 .kq-input-number .kq-input__wrapper,.kq3d-scene-to-hd-image .kq-input-number.is-controls-right .kq-input__wrapper{padding-left:0;padding-right:20px}.kq3d-scene-to-hd-image .kq-color-picker,.kq3d-scene-to-hd-image .kq-color-picker .kq-color-picker__mask,.kq3d-scene-to-hd-image .kq-color-picker .kq-color-picker__trigger{width:100%}.kq3d-scene-to-hd-image .kq3d-scene-to-hd-image-line{width:80%;margin:14px 8px;height:2px;overflow:hidden;background:#c0c4cc;border-radius:4px}.kq3d-scene-to-hd-image .kq3d-scene-to-hd-image-legend{height:24px}.kq3d-scene-to-hd-image .kq3d-scene-to-hd-image-footer{text-align:right;padding:16px 0 0}
1
+ .kq3d-scene-to-hd-image{z-index:999;border-radius:var(--kq-border-radius-base);padding:16px;pointer-events:auto;cursor:default;background-color:var(--kq-bg-color)}.kq3d-scene-to-hd-image .kq3d-scene-to-hd-image-box{width:360px}.kq3d-scene-to-hd-image .kq3d-scene-to-hd-image-collapse-item{margin-top:16px}.kq3d-scene-to-hd-image .kq3d-scene-to-hd-image-tip{color:var(--kq-text-color-regular);font-size:var(--kq-font-size-base)}.kq3d-scene-to-hd-image .kq3d-scene-to-hd-image-tip p{margin-top:0;margin-bottom:16px}.kq3d-scene-to-hd-image .kq3d-scene-to-hd-image-span{margin:0 20px}.kq3d-scene-to-hd-image .kq-select{width:100%}.kq3d-scene-to-hd-image .kq-collapse{border:unset}.kq3d-scene-to-hd-image .kq-collapse .kq-collapse-item__header{border:unset;height:38px;background-color:var(--kq-fill-color-light);font-weight:700;padding:0 16px;font-size:16px}.kq3d-scene-to-hd-image .kq-collapse .kq-collapse-item__arrow{margin:0 0 0 auto}.kq3d-scene-to-hd-image .kq-collapse .kq-collapse-item__wrap .kq-collapse-item__content{padding-bottom:unset;border:unset;padding-top:10px}.kq3d-scene-to-hd-image .kq-form-item{margin-bottom:8px}.kq3d-scene-to-hd-image .kq-form-item__content{text-align:end;display:block}.kq3d-scene-to-hd-image .kq-row{display:block}.kq3d-scene-to-hd-image .kq-slider{width:95%;padding-left:7px}.kq3d-scene-to-hd-image .kq-slider .kq-slider__button{width:14px;height:14px}.kq3d-scene-to-hd-image .kq-input-number.is-controls-right{width:65px}.kq3d-scene-to-hd-image .kq-input-number.is-controls-right .kq-input-number__decrease,.kq3d-scene-to-hd-image .kq-input-number.is-controls-right .kq-input-number__increase{width:20px}.kq3d-scene-to-hd-image .kq-col-8 .kq-input-number .kq-input__wrapper,.kq3d-scene-to-hd-image .kq-input-number.is-controls-right .kq-input__wrapper{padding-left:0;padding-right:20px}.kq3d-scene-to-hd-image .kq-color-picker,.kq3d-scene-to-hd-image .kq-color-picker .kq-color-picker__mask,.kq3d-scene-to-hd-image .kq-color-picker .kq-color-picker__trigger{width:100%}.kq3d-scene-to-hd-image .kq3d-scene-to-hd-image-line{width:80%;margin:14px 8px;height:2px;overflow:hidden;background:#c0c4cc;border-radius:4px}.kq3d-scene-to-hd-image .kq3d-scene-to-hd-image-legend{height:24px}.kq3d-scene-to-hd-image .kq3d-scene-to-hd-image-footer{text-align:right;padding:16px 0 0}#exportPictureRegion{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:100%;height:100%;overflow:hidden;-webkit-transition:all .5s;-o-transition:all .5s;transition:all .5s;z-index:99;pointer-events:none;border:3px dashed #fbcb5a;-webkit-box-shadow:inset 0 0 10px hsla(0,0%,100%,.6117647059);box-shadow:inset 0 0 10px hsla(0,0%,100%,.6117647059)}#pantographRatio{position:absolute;right:10px;bottom:10px;z-index:99;width:30%;background-color:var(--kq-fill-color-light);padding:5px;border-radius:10px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}#pantographRatio span{white-space:nowrap;padding:0 10px;vertical-align:middle;line-height:26px;color:var(--kq-text-color-regular);font-size:var(--kq-font-size-base)}#pantographRatio input[type=range]{width:100%;background:none;height:8px;margin:auto}#pantographRatio input[type=text]{width:40px!important;min-width:20px;background:none;border:none;color:var(--kq-text-color-regular);font-size:var(--kq-font-size-base)}@media (max-width:1200px){#pantographRatio{width:60%}}@media (max-width:767px){#pantographRatio{width:100%}}.scene-to-hd-image-viewer{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:100%;height:100%;overflow:hidden;-webkit-transition:all .5s;-o-transition:all .5s;transition:all .5s}