@kq_npm/client3d_webgl_vue 4.5.18 → 4.5.19-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 +171 -29
- package/adddata/style/adddata.css +1 -1
- package/aspectanalysis/index.js +1 -1
- package/clientPrint/index.js +487 -152
- package/excavatefillanalysis/index.js +1 -1
- package/floodanalysis/index.js +1 -1
- package/heatmap3d/index.js +0 -1
- package/index.js +483 -152
- package/modelselect/index.js +3 -3
- package/package.json +1 -1
- package/sceneapp/index.js +225 -53
- package/sceneview/index.js +487 -152
- package/slopeanalysis/index.js +1 -1
- package/slopeaspectanalysis/index.js +1 -1
- package/style.css +1 -1
- package/terrainoperation/index.js +4 -6
- package/terrainprofileanalysis/index.js +1 -1
- package/videofusion/index.js +17 -17
- package/videoproject/index.js +18 -18
|
@@ -269,7 +269,7 @@ class TerrainOperationViewModel {
|
|
|
269
269
|
(0,defineProperty/* default */.Z)(this, "_terrainexcavationext", null);
|
|
270
270
|
//地形开挖三维对象
|
|
271
271
|
(0,defineProperty/* default */.Z)(this, "_terrainmodification", null);
|
|
272
|
-
|
|
272
|
+
//地形平整三维对象
|
|
273
273
|
(0,defineProperty/* default */.Z)(this, "_drawManager", null);
|
|
274
274
|
//绘制管理对象
|
|
275
275
|
(0,defineProperty/* default */.Z)(this, "_globaOptions", {});
|
|
@@ -330,7 +330,7 @@ class TerrainOperationViewModel {
|
|
|
330
330
|
}, 500);
|
|
331
331
|
});
|
|
332
332
|
}
|
|
333
|
-
//
|
|
333
|
+
// 创建地形平整分析类
|
|
334
334
|
createTerrainModification(callback) {
|
|
335
335
|
var that = this;
|
|
336
336
|
this._globaOptions.viewer.terrainProvider.readyPromise.then(function () {
|
|
@@ -338,7 +338,6 @@ class TerrainOperationViewModel {
|
|
|
338
338
|
let heights = [];
|
|
339
339
|
let positions = [];
|
|
340
340
|
that._globaOptions.positions.forEach((item, index) => {
|
|
341
|
-
console.log(index);
|
|
342
341
|
let cag = window.Cesium.Cartographic.fromCartesian(item);
|
|
343
342
|
positions.push(cag);
|
|
344
343
|
heights.push(cag.height);
|
|
@@ -372,7 +371,6 @@ class TerrainOperationViewModel {
|
|
|
372
371
|
let heights = [];
|
|
373
372
|
let positions = [];
|
|
374
373
|
this._globaOptions.positions.forEach((item, index) => {
|
|
375
|
-
console.log(index);
|
|
376
374
|
let cag = window.Cesium.Cartographic.fromCartesian(item);
|
|
377
375
|
positions.push(cag);
|
|
378
376
|
heights.push(cag.height);
|
|
@@ -384,7 +382,7 @@ class TerrainOperationViewModel {
|
|
|
384
382
|
start() {
|
|
385
383
|
// 判断是否添加了地形
|
|
386
384
|
if (this._globaOptions.viewer.terrainProvider.availability) {
|
|
387
|
-
if (this._globaOptions.viewer.terrainProvider
|
|
385
|
+
if (this._globaOptions.viewer.terrainProvider && this._globaOptions.viewer.terrainProvider.constructor.name == "CesiumTerrainProvider") {
|
|
388
386
|
this.clear();
|
|
389
387
|
this._drawManager.startDraw("polygon", {
|
|
390
388
|
clampToGround: true
|
|
@@ -542,7 +540,7 @@ const __default__ = {
|
|
|
542
540
|
|
|
543
541
|
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
544
542
|
terrainStyle: props.settingParams && props.settingParams.terrainStyle || 1,
|
|
545
|
-
// 地形操作类型。1:地形开挖;2
|
|
543
|
+
// 地形操作类型。1:地形开挖;2:地形平整
|
|
546
544
|
excavationDepth: props.settingParams && props.settingParams.excavationDepth || 500,
|
|
547
545
|
// 地形开挖深度
|
|
548
546
|
minExcavationDepth: props.settingParams && props.settingParams.minExcavationDepth || 100,
|
|
@@ -369,7 +369,7 @@ class TerrainProfileAnalysisViewModel {
|
|
|
369
369
|
start() {
|
|
370
370
|
// 判断是否添加了地形
|
|
371
371
|
if (this._viewer.terrainProvider.availability) {
|
|
372
|
-
if (this._viewer.terrainProvider
|
|
372
|
+
if (this._viewer.terrainProvider && this._viewer.terrainProvider.constructor.name == "CesiumTerrainProvider") {
|
|
373
373
|
this.clear();
|
|
374
374
|
this._drawManager.startDraw("polyline", {
|
|
375
375
|
clampToGround: true
|
package/videofusion/index.js
CHANGED
|
@@ -536,7 +536,7 @@ const __default__ = {
|
|
|
536
536
|
// 获取组件传参
|
|
537
537
|
|
|
538
538
|
const lonlatOffset = 0.00001;
|
|
539
|
-
const heightOffset = 10;
|
|
539
|
+
const heightOffset = 10.0;
|
|
540
540
|
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
541
541
|
longitude: 0,
|
|
542
542
|
minLongitude: -lonlatOffset,
|
|
@@ -682,15 +682,15 @@ const __default__ = {
|
|
|
682
682
|
function setCoordinate() {
|
|
683
683
|
let coordinate = viewModel.getProjectCoordinate();
|
|
684
684
|
if (coordinate) {
|
|
685
|
-
formItem.longitude = coordinate.x;
|
|
686
|
-
formItem.minLongitude =
|
|
687
|
-
formItem.maxLongitude =
|
|
688
|
-
formItem.latitude = coordinate.y;
|
|
689
|
-
formItem.minLatitude =
|
|
690
|
-
formItem.maxLatitude =
|
|
691
|
-
formItem.height = coordinate.z;
|
|
692
|
-
formItem.minHeight =
|
|
693
|
-
formItem.maxHeight =
|
|
685
|
+
formItem.longitude = Number(coordinate.x.toFixed(6));
|
|
686
|
+
formItem.minLongitude = Number((formItem.longitude - lonlatOffset).toFixed(6));
|
|
687
|
+
formItem.maxLongitude = Number((formItem.longitude + lonlatOffset).toFixed(6));
|
|
688
|
+
formItem.latitude = Number(coordinate.y.toFixed(6));
|
|
689
|
+
formItem.minLatitude = Number((formItem.latitude - lonlatOffset).toFixed(6));
|
|
690
|
+
formItem.maxLatitude = Number((formItem.latitude + lonlatOffset).toFixed(6));
|
|
691
|
+
formItem.height = Number(coordinate.z.toFixed(1));
|
|
692
|
+
formItem.minHeight = formItem.height - heightOffset;
|
|
693
|
+
formItem.maxHeight = formItem.height + heightOffset;
|
|
694
694
|
showCoordinate.value = true;
|
|
695
695
|
}
|
|
696
696
|
}
|
|
@@ -820,7 +820,7 @@ const __default__ = {
|
|
|
820
820
|
}
|
|
821
821
|
}, {
|
|
822
822
|
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, {
|
|
823
|
-
span:
|
|
823
|
+
span: 16
|
|
824
824
|
}, {
|
|
825
825
|
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, {
|
|
826
826
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).longitude,
|
|
@@ -832,7 +832,7 @@ const __default__ = {
|
|
|
832
832
|
}, null, 8 /* PROPS */, ["modelValue", "step", "min", "max"])]),
|
|
833
833
|
_: 1 /* STABLE */
|
|
834
834
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
835
|
-
span:
|
|
835
|
+
span: 8,
|
|
836
836
|
style: {
|
|
837
837
|
"text-align": "left",
|
|
838
838
|
"padding-left": "8px"
|
|
@@ -856,7 +856,7 @@ const __default__ = {
|
|
|
856
856
|
}
|
|
857
857
|
}, {
|
|
858
858
|
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, {
|
|
859
|
-
span:
|
|
859
|
+
span: 16
|
|
860
860
|
}, {
|
|
861
861
|
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, {
|
|
862
862
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).latitude,
|
|
@@ -868,7 +868,7 @@ const __default__ = {
|
|
|
868
868
|
}, null, 8 /* PROPS */, ["modelValue", "step", "min", "max"])]),
|
|
869
869
|
_: 1 /* STABLE */
|
|
870
870
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
871
|
-
span:
|
|
871
|
+
span: 8,
|
|
872
872
|
style: {
|
|
873
873
|
"text-align": "left",
|
|
874
874
|
"padding-left": "8px"
|
|
@@ -892,19 +892,19 @@ const __default__ = {
|
|
|
892
892
|
}
|
|
893
893
|
}, {
|
|
894
894
|
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, {
|
|
895
|
-
span:
|
|
895
|
+
span: 16
|
|
896
896
|
}, {
|
|
897
897
|
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, {
|
|
898
898
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).height,
|
|
899
899
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).height = $event),
|
|
900
|
-
step: 0.
|
|
900
|
+
step: 0.1,
|
|
901
901
|
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minHeight,
|
|
902
902
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxHeight,
|
|
903
903
|
onInput: _cache[7] || (_cache[7] = $event => paramsChanged('height'))
|
|
904
904
|
}, null, 8 /* PROPS */, ["modelValue", "step", "min", "max"])]),
|
|
905
905
|
_: 1 /* STABLE */
|
|
906
906
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
907
|
-
span:
|
|
907
|
+
span: 8,
|
|
908
908
|
style: {
|
|
909
909
|
"text-align": "left",
|
|
910
910
|
"padding-left": "8px"
|
package/videoproject/index.js
CHANGED
|
@@ -523,8 +523,8 @@ const __default__ = {
|
|
|
523
523
|
|
|
524
524
|
// 获取组件传参
|
|
525
525
|
|
|
526
|
-
const lonlatOffset = 0.
|
|
527
|
-
const heightOffset = 10;
|
|
526
|
+
const lonlatOffset = 0.000010;
|
|
527
|
+
const heightOffset = 10.0;
|
|
528
528
|
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
529
529
|
longitude: 0,
|
|
530
530
|
minLongitude: -lonlatOffset,
|
|
@@ -672,15 +672,15 @@ const __default__ = {
|
|
|
672
672
|
function setCoordinate() {
|
|
673
673
|
let coordinate = viewModel.getProjectCoordinate();
|
|
674
674
|
if (coordinate) {
|
|
675
|
-
formItem.longitude = coordinate.longitude;
|
|
676
|
-
formItem.minLongitude =
|
|
677
|
-
formItem.maxLongitude =
|
|
678
|
-
formItem.latitude = coordinate.latitude;
|
|
679
|
-
formItem.minLatitude =
|
|
680
|
-
formItem.maxLatitude =
|
|
681
|
-
formItem.height = coordinate.height;
|
|
682
|
-
formItem.minHeight =
|
|
683
|
-
formItem.maxHeight =
|
|
675
|
+
formItem.longitude = Number(coordinate.longitude.toFixed(6));
|
|
676
|
+
formItem.minLongitude = Number((formItem.longitude - lonlatOffset).toFixed(6));
|
|
677
|
+
formItem.maxLongitude = Number((formItem.longitude + lonlatOffset).toFixed(6));
|
|
678
|
+
formItem.latitude = Number(coordinate.latitude.toFixed(6));
|
|
679
|
+
formItem.minLatitude = Number((formItem.latitude - lonlatOffset).toFixed(6));
|
|
680
|
+
formItem.maxLatitude = Number((formItem.latitude + lonlatOffset).toFixed(6));
|
|
681
|
+
formItem.height = Number(coordinate.height.toFixed(1));
|
|
682
|
+
formItem.minHeight = formItem.height - heightOffset;
|
|
683
|
+
formItem.maxHeight = formItem.height + heightOffset;
|
|
684
684
|
showCoordinate.value = true;
|
|
685
685
|
}
|
|
686
686
|
}
|
|
@@ -847,7 +847,7 @@ const __default__ = {
|
|
|
847
847
|
}
|
|
848
848
|
}, {
|
|
849
849
|
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, {
|
|
850
|
-
span:
|
|
850
|
+
span: 16
|
|
851
851
|
}, {
|
|
852
852
|
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, {
|
|
853
853
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).longitude,
|
|
@@ -859,7 +859,7 @@ const __default__ = {
|
|
|
859
859
|
}, null, 8 /* PROPS */, ["modelValue", "step", "min", "max"])]),
|
|
860
860
|
_: 1 /* STABLE */
|
|
861
861
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
862
|
-
span:
|
|
862
|
+
span: 8,
|
|
863
863
|
style: {
|
|
864
864
|
"text-align": "left",
|
|
865
865
|
"padding-left": "8px"
|
|
@@ -883,7 +883,7 @@ const __default__ = {
|
|
|
883
883
|
}
|
|
884
884
|
}, {
|
|
885
885
|
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, {
|
|
886
|
-
span:
|
|
886
|
+
span: 16
|
|
887
887
|
}, {
|
|
888
888
|
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, {
|
|
889
889
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).latitude,
|
|
@@ -895,7 +895,7 @@ const __default__ = {
|
|
|
895
895
|
}, null, 8 /* PROPS */, ["modelValue", "step", "min", "max"])]),
|
|
896
896
|
_: 1 /* STABLE */
|
|
897
897
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
898
|
-
span:
|
|
898
|
+
span: 8,
|
|
899
899
|
style: {
|
|
900
900
|
"text-align": "left",
|
|
901
901
|
"padding-left": "8px"
|
|
@@ -919,19 +919,19 @@ const __default__ = {
|
|
|
919
919
|
}
|
|
920
920
|
}, {
|
|
921
921
|
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, {
|
|
922
|
-
span:
|
|
922
|
+
span: 16
|
|
923
923
|
}, {
|
|
924
924
|
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, {
|
|
925
925
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).height,
|
|
926
926
|
"onUpdate:modelValue": _cache[9] || (_cache[9] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).height = $event),
|
|
927
|
-
step: 0.
|
|
927
|
+
step: 0.1,
|
|
928
928
|
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minHeight,
|
|
929
929
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxHeight,
|
|
930
930
|
onInput: _cache[10] || (_cache[10] = $event => paramsChanged('height'))
|
|
931
931
|
}, null, 8 /* PROPS */, ["modelValue", "step", "min", "max"])]),
|
|
932
932
|
_: 1 /* STABLE */
|
|
933
933
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
934
|
-
span:
|
|
934
|
+
span: 8,
|
|
935
935
|
style: {
|
|
936
936
|
"text-align": "left",
|
|
937
937
|
"padding-left": "8px"
|