@kq_npm/client3d_webgl_vue 4.0.9-beta → 4.1.1-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.
- package/adddata/index.js +84 -24
- package/index.js +733 -98
- package/light/index.js +1 -1
- package/limitheightanalysis/index.js +3 -1
- package/modelexcavate/index.js +568 -0
- package/modelexcavate/style/index.js +3 -0
- package/modelexcavate/style/modelexcavate.css +1 -0
- package/package.json +1 -1
- package/scenceview/index.js +770 -101
- package/sceneset/index.js +393 -7
- package/statusbar/index.js +2 -1
- package/style.css +1 -1
- package/videofusion/index.js +49 -15
- package/videoproject/index.js +50 -21
package/videofusion/index.js
CHANGED
|
@@ -50,11 +50,20 @@ class VideoFusiontViewModel {
|
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
fusion() {
|
|
53
|
+
let type = 3;
|
|
54
|
+
|
|
55
|
+
if (this._options.videoPath.indexOf('.m3u8') > 0) {
|
|
56
|
+
type = 5;
|
|
57
|
+
}
|
|
58
|
+
|
|
53
59
|
this.clear();
|
|
54
60
|
let cartographic = Cesium.Cartographic.fromCartesian(this._viewer.camera.positionWC);
|
|
61
|
+
this._options.heading = Cesium.Math.toDegrees(this._viewer.camera.heading);
|
|
62
|
+
this._options.pitch = Cesium.Math.toDegrees(this._viewer.camera.pitch);
|
|
63
|
+
this._options.roll = Cesium.Math.toDegrees(this._viewer.camera.roll);
|
|
55
64
|
var param = {
|
|
56
65
|
url: this._options.videoPath,
|
|
57
|
-
type:
|
|
66
|
+
type: type,
|
|
58
67
|
position: {
|
|
59
68
|
x: Cesium.Math.toDegrees(cartographic.longitude),
|
|
60
69
|
y: Cesium.Math.toDegrees(cartographic.latitude),
|
|
@@ -84,6 +93,15 @@ class VideoFusiontViewModel {
|
|
|
84
93
|
if (this._videoFusion) {
|
|
85
94
|
return this._videoFusion.param.position;
|
|
86
95
|
}
|
|
96
|
+
} // 获取HeadingPitchRoll
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
getHeadingPitchRoll() {
|
|
100
|
+
return {
|
|
101
|
+
heading: Math.round(this._options.heading),
|
|
102
|
+
pitch: Math.round(this._options.pitch),
|
|
103
|
+
roll: Math.round(this._options.roll)
|
|
104
|
+
};
|
|
87
105
|
} //飞入
|
|
88
106
|
|
|
89
107
|
|
|
@@ -450,9 +468,6 @@ const __default__ = {
|
|
|
450
468
|
expose
|
|
451
469
|
}) {
|
|
452
470
|
const props = __props;
|
|
453
|
-
const {
|
|
454
|
-
proxy
|
|
455
|
-
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
456
471
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
457
472
|
let collapseValue = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(""); // 获取组件传参
|
|
458
473
|
|
|
@@ -471,15 +486,17 @@ const __default__ = {
|
|
|
471
486
|
videoPath: props.settingParams && props.settingParams.videoPath || "",
|
|
472
487
|
fov: props.settingParams && props.settingParams.fov || 40,
|
|
473
488
|
far: props.settingParams && props.settingParams.far || 50,
|
|
474
|
-
heading:
|
|
475
|
-
pitch:
|
|
476
|
-
roll:
|
|
489
|
+
heading: 0,
|
|
490
|
+
pitch: 0,
|
|
491
|
+
roll: 0,
|
|
477
492
|
alpha: props.settingParams && props.settingParams.alpha || 1.0,
|
|
478
493
|
eclosion: props.settingParams && props.settingParams.eclosion || 0.5,
|
|
479
494
|
showHideLine: props.settingParams && props.settingParams.showHideLine !== undefined || false
|
|
480
495
|
}); // 显示坐标
|
|
481
496
|
|
|
482
|
-
let showCoordinate = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
497
|
+
let showCoordinate = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false); // 显示朝向角俯仰角翻转角
|
|
498
|
+
|
|
499
|
+
let showHpr = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
483
500
|
let viewModel = null; // 组件容器Ref
|
|
484
501
|
|
|
485
502
|
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
@@ -512,9 +529,6 @@ const __default__ = {
|
|
|
512
529
|
videoPath: formItem.videoPath,
|
|
513
530
|
fov: formItem.fov,
|
|
514
531
|
far: formItem.far,
|
|
515
|
-
heading: formItem.heading,
|
|
516
|
-
pitch: formItem.pitch,
|
|
517
|
-
roll: formItem.roll,
|
|
518
532
|
alpha: formItem.alpha,
|
|
519
533
|
eclosion: formItem.eclosion,
|
|
520
534
|
showHideLine: formItem.showHideLine
|
|
@@ -601,6 +615,7 @@ const __default__ = {
|
|
|
601
615
|
if (viewModel) {
|
|
602
616
|
viewModel.fusion();
|
|
603
617
|
setCoordinate();
|
|
618
|
+
serHpr();
|
|
604
619
|
}
|
|
605
620
|
}
|
|
606
621
|
}
|
|
@@ -620,6 +635,18 @@ const __default__ = {
|
|
|
620
635
|
formItem.maxHeight = coordinate.z + heightOffset;
|
|
621
636
|
showCoordinate.value = true;
|
|
622
637
|
}
|
|
638
|
+
} // 设置朝向角俯仰角翻转角
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
function serHpr() {
|
|
642
|
+
let hpr = viewModel.getHeadingPitchRoll();
|
|
643
|
+
|
|
644
|
+
if (hpr) {
|
|
645
|
+
formItem.heading = hpr.heading;
|
|
646
|
+
formItem.pitch = hpr.pitch;
|
|
647
|
+
formItem.roll = hpr.roll;
|
|
648
|
+
showHpr.value = true;
|
|
649
|
+
}
|
|
623
650
|
} // 飞入
|
|
624
651
|
|
|
625
652
|
|
|
@@ -630,6 +657,7 @@ const __default__ = {
|
|
|
630
657
|
|
|
631
658
|
function clearResult() {
|
|
632
659
|
showCoordinate.value = false;
|
|
660
|
+
showHpr.value = false;
|
|
633
661
|
viewModel && viewModel.clear();
|
|
634
662
|
} // 销毁
|
|
635
663
|
|
|
@@ -1036,7 +1064,7 @@ const __default__ = {
|
|
|
1036
1064
|
_: 1
|
|
1037
1065
|
/* STABLE */
|
|
1038
1066
|
|
|
1039
|
-
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
1067
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
1040
1068
|
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, {
|
|
1041
1069
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).heading
|
|
1042
1070
|
}, {
|
|
@@ -1092,7 +1120,9 @@ const __default__ = {
|
|
|
1092
1120
|
_: 1
|
|
1093
1121
|
/* STABLE */
|
|
1094
1122
|
|
|
1095
|
-
}
|
|
1123
|
+
}, 512
|
|
1124
|
+
/* NEED_PATCH */
|
|
1125
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
1096
1126
|
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, {
|
|
1097
1127
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).pitch
|
|
1098
1128
|
}, {
|
|
@@ -1148,7 +1178,9 @@ const __default__ = {
|
|
|
1148
1178
|
_: 1
|
|
1149
1179
|
/* STABLE */
|
|
1150
1180
|
|
|
1151
|
-
}
|
|
1181
|
+
}, 512
|
|
1182
|
+
/* NEED_PATCH */
|
|
1183
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
1152
1184
|
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, {
|
|
1153
1185
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).roll
|
|
1154
1186
|
}, {
|
|
@@ -1204,7 +1236,9 @@ const __default__ = {
|
|
|
1204
1236
|
_: 1
|
|
1205
1237
|
/* STABLE */
|
|
1206
1238
|
|
|
1207
|
-
}
|
|
1239
|
+
}, 512
|
|
1240
|
+
/* NEED_PATCH */
|
|
1241
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
1208
1242
|
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, {
|
|
1209
1243
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).transparents
|
|
1210
1244
|
}, {
|
package/videoproject/index.js
CHANGED
|
@@ -68,11 +68,14 @@ class VideoProjectViewModel {
|
|
|
68
68
|
project() {
|
|
69
69
|
this.clear();
|
|
70
70
|
let position = Cesium.Cartesian3.clone(this._viewer.camera.positionWC);
|
|
71
|
+
this._options.heading = this._viewer.camera.heading;
|
|
72
|
+
this._options.pitch = this._viewer.camera.pitch;
|
|
73
|
+
this._options.roll = this._viewer.camera.roll;
|
|
71
74
|
let options = {
|
|
72
75
|
position: position,
|
|
73
|
-
heading:
|
|
74
|
-
pitch:
|
|
75
|
-
roll:
|
|
76
|
+
heading: this._options.heading,
|
|
77
|
+
pitch: this._options.pitch,
|
|
78
|
+
roll: this._options.roll,
|
|
76
79
|
fov: Cesium.Math.toRadians(this._options.fov),
|
|
77
80
|
aspectRatio: this._options.aspectRatio,
|
|
78
81
|
far: this._options.far,
|
|
@@ -101,6 +104,15 @@ class VideoProjectViewModel {
|
|
|
101
104
|
height: cartographic.height
|
|
102
105
|
};
|
|
103
106
|
}
|
|
107
|
+
} // 获取HeadingPitchRoll
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
getHeadingPitchRoll() {
|
|
111
|
+
return {
|
|
112
|
+
heading: Math.round(Cesium.Math.toDegrees(this._options.heading)),
|
|
113
|
+
pitch: Math.round(Cesium.Math.toDegrees(this._options.pitch)),
|
|
114
|
+
roll: Math.round(Cesium.Math.toDegrees(this._options.roll))
|
|
115
|
+
};
|
|
104
116
|
} //飞入
|
|
105
117
|
|
|
106
118
|
|
|
@@ -109,9 +121,9 @@ class VideoProjectViewModel {
|
|
|
109
121
|
this._viewer.camera.flyTo({
|
|
110
122
|
destination: this._projectVideo.position,
|
|
111
123
|
orientation: {
|
|
112
|
-
heading:
|
|
113
|
-
pitch:
|
|
114
|
-
roll:
|
|
124
|
+
heading: this._options.heading,
|
|
125
|
+
pitch: this._options.pitch,
|
|
126
|
+
roll: this._options.roll
|
|
115
127
|
}
|
|
116
128
|
});
|
|
117
129
|
}
|
|
@@ -435,9 +447,6 @@ const __default__ = {
|
|
|
435
447
|
expose
|
|
436
448
|
}) {
|
|
437
449
|
const props = __props;
|
|
438
|
-
const {
|
|
439
|
-
proxy
|
|
440
|
-
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
441
450
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
442
451
|
let collapseValue = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(""); // 获取组件传参
|
|
443
452
|
|
|
@@ -453,18 +462,20 @@ const __default__ = {
|
|
|
453
462
|
height: 0,
|
|
454
463
|
minHeight: -heightOffset,
|
|
455
464
|
maxHeight: heightOffset,
|
|
465
|
+
heading: 0,
|
|
466
|
+
pitch: 0,
|
|
467
|
+
roll: 0,
|
|
456
468
|
videoPath: props.settingParams && props.settingParams.videoPath || "",
|
|
457
469
|
projectType: props.settingParams && props.settingParams.projectType || 1,
|
|
458
470
|
fov: props.settingParams && props.settingParams.fov || 20,
|
|
459
471
|
aspectRatio: props.settingParams && props.settingParams.aspectRatio || 1.6,
|
|
460
472
|
far: props.settingParams && props.settingParams.far || 50,
|
|
461
|
-
heading: props.settingParams && props.settingParams.heading || 330,
|
|
462
|
-
pitch: props.settingParams && props.settingParams.pitch || -12,
|
|
463
|
-
roll: props.settingParams && props.settingParams.roll || 0,
|
|
464
473
|
showHideLine: props.settingParams && props.settingParams.showHideLine !== undefined || true
|
|
465
474
|
}); // 显示坐标
|
|
466
475
|
|
|
467
|
-
let showCoordinate = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
476
|
+
let showCoordinate = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false); // 显示朝向角俯仰角翻转角
|
|
477
|
+
|
|
478
|
+
let showHpr = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
468
479
|
let viewModel = null; // 组件容器Ref
|
|
469
480
|
|
|
470
481
|
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
@@ -499,9 +510,6 @@ const __default__ = {
|
|
|
499
510
|
fov: formItem.fov,
|
|
500
511
|
aspectRatio: formItem.aspectRatio,
|
|
501
512
|
far: formItem.far,
|
|
502
|
-
heading: formItem.heading,
|
|
503
|
-
pitch: formItem.pitch,
|
|
504
|
-
roll: formItem.roll,
|
|
505
513
|
showHideLine: formItem.showHideLine
|
|
506
514
|
};
|
|
507
515
|
viewModel = new VideoProjectViewModel/* default */.Z(scenceView, options);
|
|
@@ -586,9 +594,11 @@ const __default__ = {
|
|
|
586
594
|
if (viewModel) {
|
|
587
595
|
viewModel.project();
|
|
588
596
|
setCoordinate();
|
|
597
|
+
serHpr();
|
|
589
598
|
}
|
|
590
599
|
}
|
|
591
|
-
}
|
|
600
|
+
} // 设置坐标
|
|
601
|
+
|
|
592
602
|
|
|
593
603
|
function setCoordinate() {
|
|
594
604
|
let coordinate = viewModel.getProjectCoordinate();
|
|
@@ -605,6 +615,18 @@ const __default__ = {
|
|
|
605
615
|
formItem.maxHeight = coordinate.height + heightOffset;
|
|
606
616
|
showCoordinate.value = true;
|
|
607
617
|
}
|
|
618
|
+
} // 设置朝向角俯仰角翻转角
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
function serHpr() {
|
|
622
|
+
let hpr = viewModel.getHeadingPitchRoll();
|
|
623
|
+
|
|
624
|
+
if (hpr) {
|
|
625
|
+
formItem.heading = hpr.heading;
|
|
626
|
+
formItem.pitch = hpr.pitch;
|
|
627
|
+
formItem.roll = hpr.roll;
|
|
628
|
+
showHpr.value = true;
|
|
629
|
+
}
|
|
608
630
|
} // 飞入
|
|
609
631
|
|
|
610
632
|
|
|
@@ -615,6 +637,7 @@ const __default__ = {
|
|
|
615
637
|
|
|
616
638
|
function clearResult() {
|
|
617
639
|
showCoordinate.value = false;
|
|
640
|
+
showHpr.value = false;
|
|
618
641
|
viewModel && viewModel.clear();
|
|
619
642
|
} // 销毁
|
|
620
643
|
|
|
@@ -1136,7 +1159,7 @@ const __default__ = {
|
|
|
1136
1159
|
_: 1
|
|
1137
1160
|
/* STABLE */
|
|
1138
1161
|
|
|
1139
|
-
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
1162
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
1140
1163
|
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, {
|
|
1141
1164
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).heading
|
|
1142
1165
|
}, {
|
|
@@ -1192,7 +1215,9 @@ const __default__ = {
|
|
|
1192
1215
|
_: 1
|
|
1193
1216
|
/* STABLE */
|
|
1194
1217
|
|
|
1195
|
-
}
|
|
1218
|
+
}, 512
|
|
1219
|
+
/* NEED_PATCH */
|
|
1220
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
1196
1221
|
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, {
|
|
1197
1222
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).pitch
|
|
1198
1223
|
}, {
|
|
@@ -1248,7 +1273,9 @@ const __default__ = {
|
|
|
1248
1273
|
_: 1
|
|
1249
1274
|
/* STABLE */
|
|
1250
1275
|
|
|
1251
|
-
}
|
|
1276
|
+
}, 512
|
|
1277
|
+
/* NEED_PATCH */
|
|
1278
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
1252
1279
|
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, {
|
|
1253
1280
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).roll
|
|
1254
1281
|
}, {
|
|
@@ -1304,7 +1331,9 @@ const __default__ = {
|
|
|
1304
1331
|
_: 1
|
|
1305
1332
|
/* STABLE */
|
|
1306
1333
|
|
|
1307
|
-
}
|
|
1334
|
+
}, 512
|
|
1335
|
+
/* NEED_PATCH */
|
|
1336
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
1308
1337
|
style: {
|
|
1309
1338
|
"margin-bottom": "8px"
|
|
1310
1339
|
}
|