@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/index.js
CHANGED
|
@@ -88,6 +88,22 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".coord-sightline{background:rgba(42,42
|
|
|
88
88
|
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
89
89
|
|
|
90
90
|
|
|
91
|
+
/***/ }),
|
|
92
|
+
|
|
93
|
+
/***/ 825:
|
|
94
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
95
|
+
|
|
96
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(705);
|
|
97
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
98
|
+
// Imports
|
|
99
|
+
|
|
100
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
101
|
+
// Module
|
|
102
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".cesium-performanceDisplay-defaultContainer{top:unset !important;bottom:16px;right:64px !important}", ""]);
|
|
103
|
+
// Exports
|
|
104
|
+
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
105
|
+
|
|
106
|
+
|
|
91
107
|
/***/ }),
|
|
92
108
|
|
|
93
109
|
/***/ 854:
|
|
@@ -499,6 +515,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
499
515
|
"Kq3dLimitHeightAnalysisViewModel": function() { return /* reexport */ LimitHeightAnalysisViewModel; },
|
|
500
516
|
"Kq3dMeasure": function() { return /* reexport */ Measure; },
|
|
501
517
|
"Kq3dMeasureViewModel": function() { return /* reexport */ MeasureViewModel; },
|
|
518
|
+
"Kq3dModelExcavate": function() { return /* reexport */ ModelExcavate; },
|
|
519
|
+
"Kq3dModelExcavateViewModel": function() { return /* reexport */ ModelExcavateViewModel; },
|
|
502
520
|
"Kq3dModelFilter": function() { return /* reexport */ ModelFilter; },
|
|
503
521
|
"Kq3dModelFilterViewModel": function() { return /* reexport */ ModelFilterViewModel; },
|
|
504
522
|
"Kq3dModelProfileAnalysis": function() { return /* reexport */ ModelProfileAnalysis; },
|
|
@@ -627,7 +645,7 @@ class DrawManager {
|
|
|
627
645
|
//文字内容
|
|
628
646
|
fontSize: 25,
|
|
629
647
|
//文字大小
|
|
630
|
-
fontFamily:
|
|
648
|
+
fontFamily: "Microsoft YaHei",
|
|
631
649
|
color: "#ff0000" //文字颜色
|
|
632
650
|
// opacity: 0.5, //文字颜色透明度
|
|
633
651
|
// clampToGround: false //是否贴地
|
|
@@ -732,11 +750,11 @@ class DrawManager {
|
|
|
732
750
|
|
|
733
751
|
let editFinishedEvent = this._drawHandler.editHandler.editFinished;
|
|
734
752
|
this.editSelectedEvent.addEventListener(shape => {
|
|
735
|
-
if (shape) this.addMouseEvent(
|
|
753
|
+
if (shape) this.addMouseEvent("move", "label");
|
|
736
754
|
});
|
|
737
755
|
editFinishedEvent.addEventListener(shape => {
|
|
738
756
|
if (shape) {
|
|
739
|
-
this.removeMouseEvent(
|
|
757
|
+
this.removeMouseEvent("move", "label");
|
|
740
758
|
this._labelUpdateData && this._labelUpdateData();
|
|
741
759
|
}
|
|
742
760
|
}); // 关闭双击旋转交互
|
|
@@ -801,7 +819,7 @@ class DrawManager {
|
|
|
801
819
|
|
|
802
820
|
getImageWithColor(imgUrl, color, width = 32, height = 32) {
|
|
803
821
|
if (color) {
|
|
804
|
-
var svgStr = window.atob(imgUrl.split(
|
|
822
|
+
var svgStr = window.atob(imgUrl.split(",")[1]);
|
|
805
823
|
var regex = /#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})/g; // 修改svg颜色
|
|
806
824
|
|
|
807
825
|
svgStr = svgStr.replace(regex, color); // 修改svg大小
|
|
@@ -1252,7 +1270,7 @@ class DrawManager {
|
|
|
1252
1270
|
if (!primitive) return;
|
|
1253
1271
|
let type = primitive._geoType;
|
|
1254
1272
|
|
|
1255
|
-
if (primitive.type ===
|
|
1273
|
+
if (primitive.type === "text") {
|
|
1256
1274
|
if (primitive.fontSize != style.fontSize) {
|
|
1257
1275
|
// 修改样式弹窗的 offset
|
|
1258
1276
|
if (this._stylePopup && this._stylePopup.show) {
|
|
@@ -1264,7 +1282,7 @@ class DrawManager {
|
|
|
1264
1282
|
primitive.fontFamily = style.fontFamily;
|
|
1265
1283
|
primitive.text = style.content;
|
|
1266
1284
|
primitive.fillColor = Cesium.Color.fromCssColorString(style.color);
|
|
1267
|
-
} else if (type ===
|
|
1285
|
+
} else if (type === "point") {
|
|
1268
1286
|
if (primitive.height != style.iconSize[1]) {
|
|
1269
1287
|
// 修改样式弹窗的 offset
|
|
1270
1288
|
if (this._stylePopup && this._stylePopup.show) {
|
|
@@ -1275,14 +1293,14 @@ class DrawManager {
|
|
|
1275
1293
|
primitive.image = this.getImageWithColor(style.iconUrl, style.color, style.iconSize[0], style.iconSize[1]);
|
|
1276
1294
|
primitive.width = style.iconSize[0];
|
|
1277
1295
|
primitive.height = style.iconSize[1];
|
|
1278
|
-
} else if (type ===
|
|
1296
|
+
} else if (type === "polyline" || type === "polygon") {
|
|
1279
1297
|
if (style.weight != undefined) primitive.width = style.weight;
|
|
1280
1298
|
if (style.color != undefined) primitive.color = Cesium.Color.fromCssColorString(style.color);
|
|
1281
1299
|
if (style.dashArray != undefined) primitive.dashArray = style.dashArray;
|
|
1282
1300
|
if (style.opacity != undefined) primitive.color = primitive.color.withAlpha(style.opacity);
|
|
1283
1301
|
}
|
|
1284
1302
|
|
|
1285
|
-
if (type ===
|
|
1303
|
+
if (type === "polygon") {
|
|
1286
1304
|
primitive.fill = style.fill === undefined ? true : style.fill;
|
|
1287
1305
|
|
|
1288
1306
|
if (primitive.fill) {
|
|
@@ -1296,18 +1314,18 @@ class DrawManager {
|
|
|
1296
1314
|
}
|
|
1297
1315
|
|
|
1298
1316
|
getShapeTypeById(id) {
|
|
1299
|
-
let type =
|
|
1317
|
+
let type = "";
|
|
1300
1318
|
|
|
1301
1319
|
let primitive = this._drawLayer.getById(id);
|
|
1302
1320
|
|
|
1303
1321
|
if (primitive) {
|
|
1304
1322
|
type = primitive.type;
|
|
1305
|
-
if (type ==
|
|
1306
|
-
if (type ==
|
|
1307
|
-
if (type ==
|
|
1308
|
-
if (type ==
|
|
1309
|
-
if (type ==
|
|
1310
|
-
if (type ==
|
|
1323
|
+
if (type == "marker") type = "Marker";
|
|
1324
|
+
if (type == "polyline") type = "Line";
|
|
1325
|
+
if (type == "polygon") type = "Polygon";
|
|
1326
|
+
if (type == "rectangle") type = "Rectangle";
|
|
1327
|
+
if (type == "circle") type = "Circle";
|
|
1328
|
+
if (type == "text") type = "Text";
|
|
1311
1329
|
}
|
|
1312
1330
|
|
|
1313
1331
|
return type;
|
|
@@ -1395,7 +1413,7 @@ class DrawManager {
|
|
|
1395
1413
|
let shape = null;
|
|
1396
1414
|
|
|
1397
1415
|
if (type == "Marker") {
|
|
1398
|
-
shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.MARKER.type,
|
|
1416
|
+
shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.MARKER.type, "", {
|
|
1399
1417
|
position: info.coordinate,
|
|
1400
1418
|
disableDepthTestDistance: Number.POSITIVE_INFINITY,
|
|
1401
1419
|
width: info.style.iconSize[0],
|
|
@@ -1403,7 +1421,7 @@ class DrawManager {
|
|
|
1403
1421
|
image: this.getImageWithColor(info.style.iconUrl, info.style.color, info.style.iconSize[0], info.style.iconSize[1])
|
|
1404
1422
|
});
|
|
1405
1423
|
} else if (type == "Line") {
|
|
1406
|
-
shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.POLYLINE.type,
|
|
1424
|
+
shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.POLYLINE.type, "", {
|
|
1407
1425
|
controlPoints: info.coordinate,
|
|
1408
1426
|
color: Cesium.Color.fromCssColorString(info.style.color).withAlpha(info.style.opacity),
|
|
1409
1427
|
width: info.style.weight,
|
|
@@ -1411,7 +1429,7 @@ class DrawManager {
|
|
|
1411
1429
|
clampToGround: true
|
|
1412
1430
|
});
|
|
1413
1431
|
} else if (type == "Polygon") {
|
|
1414
|
-
shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.POLYGON.type,
|
|
1432
|
+
shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.POLYGON.type, "", {
|
|
1415
1433
|
controlPoints: info.coordinate,
|
|
1416
1434
|
color: Cesium.Color.fromCssColorString(info.style.color),
|
|
1417
1435
|
width: info.style.weight,
|
|
@@ -1420,7 +1438,7 @@ class DrawManager {
|
|
|
1420
1438
|
clampToGround: true
|
|
1421
1439
|
});
|
|
1422
1440
|
} else if (type == "Rectangle") {
|
|
1423
|
-
shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.RECTANGLE.type,
|
|
1441
|
+
shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.RECTANGLE.type, "", {
|
|
1424
1442
|
controlPoints: info.coordinate,
|
|
1425
1443
|
color: Cesium.Color.fromCssColorString(info.style.color),
|
|
1426
1444
|
width: info.style.weight,
|
|
@@ -1429,7 +1447,7 @@ class DrawManager {
|
|
|
1429
1447
|
clampToGround: true
|
|
1430
1448
|
});
|
|
1431
1449
|
} else if (type == "Circle") {
|
|
1432
|
-
shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.CIRCLE.type,
|
|
1450
|
+
shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.CIRCLE.type, "", {
|
|
1433
1451
|
controlPoints: info.coordinate,
|
|
1434
1452
|
color: Cesium.Color.fromCssColorString(info.style.color),
|
|
1435
1453
|
width: info.style.weight,
|
|
@@ -1438,7 +1456,7 @@ class DrawManager {
|
|
|
1438
1456
|
clampToGround: true
|
|
1439
1457
|
});
|
|
1440
1458
|
} else if (type == "Text") {
|
|
1441
|
-
shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.TEXT.type,
|
|
1459
|
+
shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.TEXT.type, "", {
|
|
1442
1460
|
latlng: info.coordinate,
|
|
1443
1461
|
text: info.style.content,
|
|
1444
1462
|
fontSize: info.style.fontSize,
|
|
@@ -1476,12 +1494,111 @@ class DrawManager {
|
|
|
1476
1494
|
|
|
1477
1495
|
|
|
1478
1496
|
this.enableEdit(true);
|
|
1479
|
-
this.addMouseEvent(
|
|
1497
|
+
this.addMouseEvent("click", "label"); // 标注坐标修改回调事件
|
|
1480
1498
|
|
|
1481
1499
|
this._labelUpdateData = updateData;
|
|
1482
1500
|
return layerList;
|
|
1483
1501
|
}
|
|
1484
1502
|
|
|
1503
|
+
createShapeFromFeature(feature, callFun, style, isLocation) {
|
|
1504
|
+
let type = feature.geometry.type;
|
|
1505
|
+
let shape = null,
|
|
1506
|
+
coordinate = null;
|
|
1507
|
+
let positions = [];
|
|
1508
|
+
|
|
1509
|
+
switch (type) {
|
|
1510
|
+
case "Point":
|
|
1511
|
+
case "MultiPoint":
|
|
1512
|
+
coordinate = feature.geometry.coordinates;
|
|
1513
|
+
if (type === "MultiPoint") coordinate = coordinate[0];
|
|
1514
|
+
let position = Cesium.Cartesian3.fromDegrees(coordinate[0], coordinate[1]);
|
|
1515
|
+
shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.MARKER.type, "", {
|
|
1516
|
+
position: position,
|
|
1517
|
+
disableDepthTestDistance: Number.POSITIVE_INFINITY,
|
|
1518
|
+
width: 32,
|
|
1519
|
+
height: 32,
|
|
1520
|
+
image: const_image_namespaceObject.MARKER_URL
|
|
1521
|
+
});
|
|
1522
|
+
break;
|
|
1523
|
+
|
|
1524
|
+
case "LineString":
|
|
1525
|
+
case "MultiLineString":
|
|
1526
|
+
coordinate = feature.geometry.coordinates;
|
|
1527
|
+
if (type === "MultiLineString") coordinate = coordinate[0];
|
|
1528
|
+
positions = [];
|
|
1529
|
+
coordinate.forEach(arr => {
|
|
1530
|
+
positions.push(Cesium.Cartesian3.fromDegrees(arr[0], arr[1]));
|
|
1531
|
+
});
|
|
1532
|
+
shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.POLYLINE.type, "线", {
|
|
1533
|
+
controlPoints: positions,
|
|
1534
|
+
color: Cesium.Color.fromCssColorString(style.color),
|
|
1535
|
+
width: style.weight,
|
|
1536
|
+
clampToGround: true
|
|
1537
|
+
});
|
|
1538
|
+
break;
|
|
1539
|
+
|
|
1540
|
+
case "Polygon":
|
|
1541
|
+
case "MultiPolygon":
|
|
1542
|
+
coordinate = feature.geometry.coordinates[0];
|
|
1543
|
+
if (type === "MultiPolygon") coordinate = coordinate[0];
|
|
1544
|
+
positions = [];
|
|
1545
|
+
coordinate.forEach(arr => {
|
|
1546
|
+
positions.push(Cesium.Cartesian3.fromDegrees(arr[0], arr[1]));
|
|
1547
|
+
});
|
|
1548
|
+
shape = this._drawHandler.createShape(this._drawHandler.ShapeTypes.POLYGON.type, "面", {
|
|
1549
|
+
controlPoints: positions,
|
|
1550
|
+
color: Cesium.Color.fromCssColorString(style.color),
|
|
1551
|
+
width: style.weight,
|
|
1552
|
+
fillColor: Cesium.Color.fromCssColorString(style.fillColor).withAlpha(style.fillOpacity),
|
|
1553
|
+
fill: true,
|
|
1554
|
+
clampToGround: true,
|
|
1555
|
+
material: this.getFillStyle(style.fillStyle)
|
|
1556
|
+
});
|
|
1557
|
+
break;
|
|
1558
|
+
|
|
1559
|
+
default:
|
|
1560
|
+
break;
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1563
|
+
if (shape) {
|
|
1564
|
+
this._drawLayer.add(shape);
|
|
1565
|
+
|
|
1566
|
+
if (callFun) callFun(shape.guid);
|
|
1567
|
+
|
|
1568
|
+
if (isLocation) {
|
|
1569
|
+
setTimeout(() => {
|
|
1570
|
+
//this._drawHandler.startEdit(shape);
|
|
1571
|
+
let offset = new Cesium.HeadingPitchRange(0, Cesium.Math.toRadians(-90), 0);
|
|
1572
|
+
|
|
1573
|
+
this._viewer.camera.flyToBoundingSphere(shape.boundingSphere, {
|
|
1574
|
+
duration: 1.5,
|
|
1575
|
+
offset
|
|
1576
|
+
});
|
|
1577
|
+
}, 200);
|
|
1578
|
+
}
|
|
1579
|
+
}
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
startEditById(id) {
|
|
1583
|
+
let shape = this._drawLayer.getById(id);
|
|
1584
|
+
|
|
1585
|
+
if (shape) {
|
|
1586
|
+
this._drawHandler.startEdit(shape);
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
getFeatureById(id) {
|
|
1591
|
+
let feature = null;
|
|
1592
|
+
|
|
1593
|
+
let shape = this._drawLayer.getById(id);
|
|
1594
|
+
|
|
1595
|
+
if (shape) {
|
|
1596
|
+
feature = shapeToGeoFeature(shape);
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1599
|
+
return feature;
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1485
1602
|
removeGeometryById(id) {
|
|
1486
1603
|
this._drawLayer.removeById(id); // 删除图形关联的样式设置框
|
|
1487
1604
|
|
|
@@ -1527,8 +1644,8 @@ class DrawManager {
|
|
|
1527
1644
|
let offsetY = -8;
|
|
1528
1645
|
|
|
1529
1646
|
if (!clickPosition) {
|
|
1530
|
-
if (shape.type ==
|
|
1531
|
-
if (shape.type ==
|
|
1647
|
+
if (shape.type == "marker") offsetY -= shape.height * shape._scaleHeight;
|
|
1648
|
+
if (shape.type == "text") offsetY -= shape.fontSize;
|
|
1532
1649
|
}
|
|
1533
1650
|
|
|
1534
1651
|
this.destroyStylePopup();
|
|
@@ -1604,7 +1721,7 @@ class DrawManager {
|
|
|
1604
1721
|
that._mouseHandlers[target].setInputAction(function (movement) {
|
|
1605
1722
|
if (target == "label") {
|
|
1606
1723
|
if (that._drawHandler.editHandler._pickedAnchor && that._drawHandler.editHandler._shapeObject) {
|
|
1607
|
-
that.removeMouseEvent(
|
|
1724
|
+
that.removeMouseEvent("move", "label");
|
|
1608
1725
|
that.destroyStylePopup();
|
|
1609
1726
|
}
|
|
1610
1727
|
}
|
|
@@ -1650,7 +1767,7 @@ class DrawManager {
|
|
|
1650
1767
|
|
|
1651
1768
|
this._handler.setInputAction(function (movement) {
|
|
1652
1769
|
// that.closePointPoup();
|
|
1653
|
-
that.openPointPoup(
|
|
1770
|
+
that.openPointPoup("1002", "AAA"); // that.removePointAll();
|
|
1654
1771
|
//that.clearPointByIdCustom();
|
|
1655
1772
|
}, Cesium.ScreenSpaceEventType.RIGHT_CLICK);
|
|
1656
1773
|
}
|
|
@@ -1684,7 +1801,7 @@ class DrawManager {
|
|
|
1684
1801
|
createPointPoup(entity) {
|
|
1685
1802
|
if (this._htmlTag) this._htmlTag.destroy();
|
|
1686
1803
|
this._htmlTag = new Cesium.Kq3dHtmlTag(this._viewer, {
|
|
1687
|
-
html:
|
|
1804
|
+
html: "<div>" + entity.properties.id._value + "</div>",
|
|
1688
1805
|
position: entity.position,
|
|
1689
1806
|
anchor: [0, -entity.properties.height._value],
|
|
1690
1807
|
alignmentMode: 7
|
|
@@ -3521,7 +3638,8 @@ class ScenceViewViewModel extends (mitt_default()) {
|
|
|
3521
3638
|
sceneModePicker: false,
|
|
3522
3639
|
infoBox: false,
|
|
3523
3640
|
languageStyle: this._lang.type == 'zh' ? 'zh-CN' : 'en',
|
|
3524
|
-
navigationHelpButton: false
|
|
3641
|
+
navigationHelpButton: false,
|
|
3642
|
+
statusBar: true
|
|
3525
3643
|
};
|
|
3526
3644
|
|
|
3527
3645
|
for (var key in this._props.options) {
|
|
@@ -11634,7 +11752,9 @@ class LimitHeightAnalysisViewModel {
|
|
|
11634
11752
|
|
|
11635
11753
|
|
|
11636
11754
|
destroy() {
|
|
11637
|
-
this.
|
|
11755
|
+
this.clear();
|
|
11756
|
+
this._drawFinishedEventListener && this._drawFinishedEventListener();
|
|
11757
|
+
this._drawFinishedEventListener = null;
|
|
11638
11758
|
}
|
|
11639
11759
|
|
|
11640
11760
|
}
|
|
@@ -14049,6 +14169,378 @@ ScanEffect.install = (Vue, opts) => {
|
|
|
14049
14169
|
};
|
|
14050
14170
|
|
|
14051
14171
|
|
|
14172
|
+
;// CONCATENATED MODULE: ./src/webgl/modelexcavate/ModelExcavateViewModel.js
|
|
14173
|
+
|
|
14174
|
+
//模型开挖逻辑类
|
|
14175
|
+
|
|
14176
|
+
class ModelExcavateViewModel {
|
|
14177
|
+
//三维viewer对象
|
|
14178
|
+
//Box裁剪存储参数对象
|
|
14179
|
+
//绘制管理对象
|
|
14180
|
+
//绘制完成监听事件
|
|
14181
|
+
constructor(scenceView, options) {
|
|
14182
|
+
_defineProperty(this, "_viewer", null);
|
|
14183
|
+
|
|
14184
|
+
_defineProperty(this, "_options", {});
|
|
14185
|
+
|
|
14186
|
+
_defineProperty(this, "_Kq3dTerrainExcavation", null);
|
|
14187
|
+
|
|
14188
|
+
_defineProperty(this, "_drawManager", null);
|
|
14189
|
+
|
|
14190
|
+
_defineProperty(this, "_removeEventListener", null);
|
|
14191
|
+
|
|
14192
|
+
this._viewer = scenceView._viewer;
|
|
14193
|
+
this._options = options;
|
|
14194
|
+
this._drawManager = scenceView._drawManager;
|
|
14195
|
+
this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
|
|
14196
|
+
// var kq3dFlattenning = new window.Cesium.Kq3dFlattenning(this._viewer, {});
|
|
14197
|
+
// var g_flattenedPolygonTexture = kq3dFlattenning.createFlattenedPolygonTexture();
|
|
14198
|
+
|
|
14199
|
+
var that = this;
|
|
14200
|
+
this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
14201
|
+
if (shape) {
|
|
14202
|
+
that._options.positions = shape._controlPoints;
|
|
14203
|
+
this._Kq3dTerrainExcavation = this._Kq3dTerrainExcavation && this._Kq3dTerrainExcavation.destroy();
|
|
14204
|
+
this._Kq3dTerrainExcavation = new window.Cesium.Kq3dTerrainExcavation({
|
|
14205
|
+
viewer: this.viewer,
|
|
14206
|
+
height: this._options.height,
|
|
14207
|
+
positions: that._options.positions,
|
|
14208
|
+
hasWall: false
|
|
14209
|
+
});
|
|
14210
|
+
|
|
14211
|
+
that._drawManager.clear();
|
|
14212
|
+
}
|
|
14213
|
+
});
|
|
14214
|
+
}
|
|
14215
|
+
|
|
14216
|
+
start() {
|
|
14217
|
+
// 判断是否添加了模型
|
|
14218
|
+
var flag = false;
|
|
14219
|
+
var models = this._viewer.scene.primitives._primitives;
|
|
14220
|
+
|
|
14221
|
+
for (let i = 0; i < models.length; i++) {
|
|
14222
|
+
if (models[i]._url) {
|
|
14223
|
+
flag = true;
|
|
14224
|
+
}
|
|
14225
|
+
}
|
|
14226
|
+
|
|
14227
|
+
if (flag) {
|
|
14228
|
+
this.clear();
|
|
14229
|
+
|
|
14230
|
+
this._drawManager.startDraw("polygon", {
|
|
14231
|
+
clampToGround: true
|
|
14232
|
+
});
|
|
14233
|
+
} else {
|
|
14234
|
+
message({
|
|
14235
|
+
message: "请添加模型后拾取!",
|
|
14236
|
+
type: "warning"
|
|
14237
|
+
});
|
|
14238
|
+
}
|
|
14239
|
+
} //清除
|
|
14240
|
+
|
|
14241
|
+
|
|
14242
|
+
clear() {
|
|
14243
|
+
this._drawManager.stopDraw(); // 销毁地形开挖
|
|
14244
|
+
|
|
14245
|
+
} //销毁
|
|
14246
|
+
|
|
14247
|
+
|
|
14248
|
+
destroy() {
|
|
14249
|
+
this.clear();
|
|
14250
|
+
}
|
|
14251
|
+
|
|
14252
|
+
}
|
|
14253
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/modelexcavate/ModelExcavate.vue?vue&type=script&setup=true&lang=js
|
|
14254
|
+
|
|
14255
|
+
const ModelExcavatevue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
14256
|
+
class: "kq3d-model-excavate-box",
|
|
14257
|
+
ref: "ref_box"
|
|
14258
|
+
};
|
|
14259
|
+
const ModelExcavatevue_type_script_setup_true_lang_js_hoisted_2 = {
|
|
14260
|
+
class: "kq3d-model-excavate-span"
|
|
14261
|
+
};
|
|
14262
|
+
const ModelExcavatevue_type_script_setup_true_lang_js_hoisted_3 = {
|
|
14263
|
+
class: "kq3d-model-excavate-footer"
|
|
14264
|
+
};
|
|
14265
|
+
|
|
14266
|
+
|
|
14267
|
+
|
|
14268
|
+
|
|
14269
|
+
|
|
14270
|
+
//语言
|
|
14271
|
+
|
|
14272
|
+
const ModelExcavatevue_type_script_setup_true_lang_js_default_ = {
|
|
14273
|
+
name: "Kq3dModelExcavate"
|
|
14274
|
+
};
|
|
14275
|
+
/* harmony default export */ var ModelExcavatevue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(ModelExcavatevue_type_script_setup_true_lang_js_default_, {
|
|
14276
|
+
props: {
|
|
14277
|
+
//指定组件绑定的viewer对象的div的id
|
|
14278
|
+
mapTarget: String,
|
|
14279
|
+
// 设置参数
|
|
14280
|
+
settingParams: {
|
|
14281
|
+
type: Object
|
|
14282
|
+
},
|
|
14283
|
+
// 是否显示阴影效果
|
|
14284
|
+
showShadow: {
|
|
14285
|
+
type: Boolean,
|
|
14286
|
+
default: true
|
|
14287
|
+
},
|
|
14288
|
+
|
|
14289
|
+
/**
|
|
14290
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
14291
|
+
*/
|
|
14292
|
+
position: [String, Object],
|
|
14293
|
+
// 是否生成HeaderTemp
|
|
14294
|
+
showHeaderTemp: {
|
|
14295
|
+
type: Boolean,
|
|
14296
|
+
default: false
|
|
14297
|
+
},
|
|
14298
|
+
// 是否折叠HeaderTemp,showHeaderTemp为true时生效
|
|
14299
|
+
isCollapseHeaderTemp: {
|
|
14300
|
+
type: Boolean,
|
|
14301
|
+
default: false
|
|
14302
|
+
},
|
|
14303
|
+
// HeaderTemp标题
|
|
14304
|
+
headerTempTitle: {
|
|
14305
|
+
type: String
|
|
14306
|
+
},
|
|
14307
|
+
// HeaderTemp图标
|
|
14308
|
+
headerTempIcon: {
|
|
14309
|
+
type: [Object, String],
|
|
14310
|
+
default: client_icons_vue_namespaceObject.IconModelExcavation
|
|
14311
|
+
},
|
|
14312
|
+
// HeaderTemp Title&Icon的位置
|
|
14313
|
+
isRight: {
|
|
14314
|
+
type: Boolean,
|
|
14315
|
+
default: true
|
|
14316
|
+
}
|
|
14317
|
+
},
|
|
14318
|
+
|
|
14319
|
+
setup(__props, {
|
|
14320
|
+
expose
|
|
14321
|
+
}) {
|
|
14322
|
+
const props = __props;
|
|
14323
|
+
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)({});
|
|
14324
|
+
let viewModel = null;
|
|
14325
|
+
let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(""); // 获取组件传参
|
|
14326
|
+
|
|
14327
|
+
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.reactive)({
|
|
14328
|
+
excavationDepth: props.settingParams && props.settingParams.excavationDepth || 20,
|
|
14329
|
+
// 地形开挖深度
|
|
14330
|
+
minExcavationDepth: props.settingParams && props.settingParams.minExcavationDepth || 0,
|
|
14331
|
+
// 地形开挖深度范围最小值
|
|
14332
|
+
maxExcavationDepth: props.settingParams && props.settingParams.maxExcavationDepth || 100 // 地形开挖深度范围最大值
|
|
14333
|
+
|
|
14334
|
+
}); // 组件容器Ref
|
|
14335
|
+
|
|
14336
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null); // 生成组件默认header
|
|
14337
|
+
|
|
14338
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
14339
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(); // 国际化
|
|
14340
|
+
|
|
14341
|
+
let {
|
|
14342
|
+
locale,
|
|
14343
|
+
messages
|
|
14344
|
+
} = (0,vue_i18n_cjs_js_namespaceObject.useI18n)();
|
|
14345
|
+
let headerTempTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null);
|
|
14346
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => locale.value, (newVal, oldVal) => {
|
|
14347
|
+
language.value = messages.value[newVal]["webgl"];
|
|
14348
|
+
headerTempTitle.value = language.value.modelExcavateTitle;
|
|
14349
|
+
});
|
|
14350
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
14351
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
14352
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.position, (newVal, oldVal) => {
|
|
14353
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
14354
|
+
});
|
|
14355
|
+
watchCreateHeaderTemp();
|
|
14356
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
14357
|
+
watchCreateHeaderTemp();
|
|
14358
|
+
}); //父组件ScenceView初始化完成后执行
|
|
14359
|
+
|
|
14360
|
+
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
14361
|
+
if (scenceView) {
|
|
14362
|
+
viewModel = new ModelExcavateViewModel(scenceView, {
|
|
14363
|
+
excavationDepth: formItem.excavationDepth
|
|
14364
|
+
});
|
|
14365
|
+
}
|
|
14366
|
+
});
|
|
14367
|
+
});
|
|
14368
|
+
/**
|
|
14369
|
+
* @description 监听header生成
|
|
14370
|
+
*/
|
|
14371
|
+
|
|
14372
|
+
const watchCreateHeaderTemp = () => {
|
|
14373
|
+
if (props.showHeaderTemp) {
|
|
14374
|
+
// 生成headerTemp
|
|
14375
|
+
headerTemp.value = (0,util_namespaceObject.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toRefs)(props), headerTempRef, headerTempTitle);
|
|
14376
|
+
}
|
|
14377
|
+
}; // 调整开挖深度
|
|
14378
|
+
|
|
14379
|
+
|
|
14380
|
+
function changeHeight() {
|
|
14381
|
+
viewModel && viewModel.setHeight(formItem.excavationDepth);
|
|
14382
|
+
} // 开始分析
|
|
14383
|
+
|
|
14384
|
+
|
|
14385
|
+
function startOperation() {
|
|
14386
|
+
viewModel && viewModel.start();
|
|
14387
|
+
} // 清除
|
|
14388
|
+
|
|
14389
|
+
|
|
14390
|
+
function clear() {
|
|
14391
|
+
viewModel && viewModel.clear();
|
|
14392
|
+
} // 销毁
|
|
14393
|
+
|
|
14394
|
+
|
|
14395
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onBeforeUnmount)(() => {
|
|
14396
|
+
viewModel && viewModel.destroy();
|
|
14397
|
+
});
|
|
14398
|
+
expose({
|
|
14399
|
+
clear
|
|
14400
|
+
});
|
|
14401
|
+
return (_ctx, _cache) => {
|
|
14402
|
+
const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-col");
|
|
14403
|
+
|
|
14404
|
+
const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-slider");
|
|
14405
|
+
|
|
14406
|
+
const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-input-number");
|
|
14407
|
+
|
|
14408
|
+
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-row");
|
|
14409
|
+
|
|
14410
|
+
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-button");
|
|
14411
|
+
|
|
14412
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementBlock)("section", {
|
|
14413
|
+
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeClass)(["kq3d-model-excavate", {
|
|
14414
|
+
'kq-box-shadow': __props.showShadow
|
|
14415
|
+
}]),
|
|
14416
|
+
ref_key: "boxRef",
|
|
14417
|
+
ref: boxRef
|
|
14418
|
+
}, [__props.showHeaderTemp ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(headerTemp)), {
|
|
14419
|
+
key: 0,
|
|
14420
|
+
ref_key: "headerTempRef",
|
|
14421
|
+
ref: headerTempRef
|
|
14422
|
+
}, null, 512
|
|
14423
|
+
/* NEED_PATCH */
|
|
14424
|
+
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", ModelExcavatevue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, {
|
|
14425
|
+
gutter: 10
|
|
14426
|
+
}, {
|
|
14427
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_col, {
|
|
14428
|
+
span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(currentLang) === 'zh' ? 7 : 10
|
|
14429
|
+
}, {
|
|
14430
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("span", ModelExcavatevue_type_script_setup_true_lang_js_hoisted_2, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).excavationDepth), 1
|
|
14431
|
+
/* TEXT */
|
|
14432
|
+
)]),
|
|
14433
|
+
_: 1
|
|
14434
|
+
/* STABLE */
|
|
14435
|
+
|
|
14436
|
+
}, 8
|
|
14437
|
+
/* PROPS */
|
|
14438
|
+
, ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_col, {
|
|
14439
|
+
span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(currentLang) === 'zh' ? 11 : 8
|
|
14440
|
+
}, {
|
|
14441
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_slider, {
|
|
14442
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).excavationDepth,
|
|
14443
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).excavationDepth = $event),
|
|
14444
|
+
step: 100,
|
|
14445
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).minExcavationDepth,
|
|
14446
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).maxExcavationDepth,
|
|
14447
|
+
onChange: _cache[1] || (_cache[1] = $event => changeHeight()),
|
|
14448
|
+
onClick: _cache[2] || (_cache[2] = $event => changeHeight())
|
|
14449
|
+
}, null, 8
|
|
14450
|
+
/* PROPS */
|
|
14451
|
+
, ["modelValue", "min", "max"])]),
|
|
14452
|
+
_: 1
|
|
14453
|
+
/* STABLE */
|
|
14454
|
+
|
|
14455
|
+
}, 8
|
|
14456
|
+
/* PROPS */
|
|
14457
|
+
, ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_col, {
|
|
14458
|
+
span: 6,
|
|
14459
|
+
style: {
|
|
14460
|
+
"text-align": "end"
|
|
14461
|
+
}
|
|
14462
|
+
}, {
|
|
14463
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_input_number, {
|
|
14464
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).excavationDepth,
|
|
14465
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).excavationDepth = $event),
|
|
14466
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).minExcavationDepth,
|
|
14467
|
+
step: 1,
|
|
14468
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).maxExcavationDepth,
|
|
14469
|
+
"controls-position": "right",
|
|
14470
|
+
onInput: _cache[4] || (_cache[4] = $event => changeHeight())
|
|
14471
|
+
}, null, 8
|
|
14472
|
+
/* PROPS */
|
|
14473
|
+
, ["modelValue", "min", "max"])]),
|
|
14474
|
+
_: 1
|
|
14475
|
+
/* STABLE */
|
|
14476
|
+
|
|
14477
|
+
})]),
|
|
14478
|
+
_: 1
|
|
14479
|
+
/* STABLE */
|
|
14480
|
+
|
|
14481
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, {
|
|
14482
|
+
class: "kq3d-model-excavate-tip"
|
|
14483
|
+
}, {
|
|
14484
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).skylineTips), 1
|
|
14485
|
+
/* TEXT */
|
|
14486
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createCommentVNode)(" <p v-if=\"formItem.terrainStyle === 2\">{{ \"(\" + language.reverseDrawPolygon + \")\" }}</p> ")]),
|
|
14487
|
+
_: 1
|
|
14488
|
+
/* STABLE */
|
|
14489
|
+
|
|
14490
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", ModelExcavatevue_type_script_setup_true_lang_js_hoisted_3, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_button, {
|
|
14491
|
+
onClick: _cache[5] || (_cache[5] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withModifiers)($event => startOperation(), ["stop"])),
|
|
14492
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).startOperation,
|
|
14493
|
+
type: "primary"
|
|
14494
|
+
}, {
|
|
14495
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).startOperation), 1
|
|
14496
|
+
/* TEXT */
|
|
14497
|
+
)]),
|
|
14498
|
+
_: 1
|
|
14499
|
+
/* STABLE */
|
|
14500
|
+
|
|
14501
|
+
}, 8
|
|
14502
|
+
/* PROPS */
|
|
14503
|
+
, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_button, {
|
|
14504
|
+
onClick: _cache[6] || (_cache[6] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withModifiers)($event => clear(), ["stop"])),
|
|
14505
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).clear
|
|
14506
|
+
}, {
|
|
14507
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).clear), 1
|
|
14508
|
+
/* TEXT */
|
|
14509
|
+
)]),
|
|
14510
|
+
_: 1
|
|
14511
|
+
/* STABLE */
|
|
14512
|
+
|
|
14513
|
+
}, 8
|
|
14514
|
+
/* PROPS */
|
|
14515
|
+
, ["title"])])], 512
|
|
14516
|
+
/* NEED_PATCH */
|
|
14517
|
+
)], 2
|
|
14518
|
+
/* CLASS */
|
|
14519
|
+
);
|
|
14520
|
+
};
|
|
14521
|
+
}
|
|
14522
|
+
|
|
14523
|
+
}));
|
|
14524
|
+
;// CONCATENATED MODULE: ./src/webgl/modelexcavate/ModelExcavate.vue?vue&type=script&setup=true&lang=js
|
|
14525
|
+
|
|
14526
|
+
;// CONCATENATED MODULE: ./src/webgl/modelexcavate/ModelExcavate.vue
|
|
14527
|
+
|
|
14528
|
+
|
|
14529
|
+
|
|
14530
|
+
const ModelExcavate_exports_ = ModelExcavatevue_type_script_setup_true_lang_js;
|
|
14531
|
+
|
|
14532
|
+
/* harmony default export */ var ModelExcavate = (ModelExcavate_exports_);
|
|
14533
|
+
;// CONCATENATED MODULE: ./src/webgl/modelexcavate/index.js
|
|
14534
|
+
|
|
14535
|
+
|
|
14536
|
+
|
|
14537
|
+
|
|
14538
|
+
ModelExcavate.install = (Vue, opts) => {
|
|
14539
|
+
init_js_default()(Vue, opts);
|
|
14540
|
+
Vue.component(ModelExcavate.name, ModelExcavate);
|
|
14541
|
+
};
|
|
14542
|
+
|
|
14543
|
+
|
|
14052
14544
|
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
|
|
14053
14545
|
var injectStylesIntoStyleTag = __webpack_require__(379);
|
|
14054
14546
|
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
|
|
@@ -27177,6 +27669,7 @@ class AddDataViewModel {
|
|
|
27177
27669
|
break;
|
|
27178
27670
|
|
|
27179
27671
|
case "kqgis3dserver":
|
|
27672
|
+
// KQGIS 三维服务
|
|
27180
27673
|
var geojsonStyle0 = { ...this._geojsonStyle
|
|
27181
27674
|
};
|
|
27182
27675
|
|
|
@@ -27300,7 +27793,7 @@ class AddDataViewModel {
|
|
|
27300
27793
|
children: [],
|
|
27301
27794
|
lsType: "ls"
|
|
27302
27795
|
};
|
|
27303
|
-
const service = new KqGIS.Map.GetMapImageInfoService(url);
|
|
27796
|
+
const service = new window.KqGIS.Map.GetMapImageInfoService(url);
|
|
27304
27797
|
service.init(result => {
|
|
27305
27798
|
if (result.resultcode === "success") {
|
|
27306
27799
|
let list = service.collectionInfoList;
|
|
@@ -27334,31 +27827,16 @@ class AddDataViewModel {
|
|
|
27334
27827
|
} else {
|
|
27335
27828
|
console.log("解析服务原始信息失败.");
|
|
27336
27829
|
}
|
|
27337
|
-
});
|
|
27338
|
-
|
|
27339
|
-
// name: name,
|
|
27340
|
-
// url: url,
|
|
27341
|
-
// layerName: name
|
|
27342
|
-
// })
|
|
27343
|
-
// );
|
|
27344
|
-
// this.flyToLayer(layer);
|
|
27345
|
-
// node = {
|
|
27346
|
-
// guid: layer.guid,
|
|
27347
|
-
// name: name,
|
|
27348
|
-
// visible: true,
|
|
27349
|
-
// serverType: "imagerylayer",
|
|
27350
|
-
// lsType: "ls",
|
|
27351
|
-
// url: url,
|
|
27352
|
-
// addType: type,
|
|
27353
|
-
// layerName: name,
|
|
27354
|
-
// type: "Image" // 图层树显示图标使用
|
|
27355
|
-
// };
|
|
27356
|
-
// this._layerManager.addTempLayerNode(node);
|
|
27357
|
-
// cb && cb(node);
|
|
27830
|
+
});
|
|
27831
|
+
break;
|
|
27358
27832
|
|
|
27833
|
+
case "kqgisdataserver":
|
|
27834
|
+
// KQGIS 数据服务
|
|
27835
|
+
// addDataServer(url, name);
|
|
27359
27836
|
break;
|
|
27360
27837
|
|
|
27361
27838
|
case "kqgismapserver":
|
|
27839
|
+
// KQGIS 地图服务
|
|
27362
27840
|
if (loadCustom) {
|
|
27363
27841
|
loadCustom({
|
|
27364
27842
|
name,
|
|
@@ -27443,6 +27921,7 @@ class AddDataViewModel {
|
|
|
27443
27921
|
break;
|
|
27444
27922
|
|
|
27445
27923
|
case "arcgismapserver":
|
|
27924
|
+
// ARCGIS 地图服务
|
|
27446
27925
|
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dArcGISMapServerImageryProvider({
|
|
27447
27926
|
name: name,
|
|
27448
27927
|
url: url,
|
|
@@ -27466,6 +27945,7 @@ class AddDataViewModel {
|
|
|
27466
27945
|
break;
|
|
27467
27946
|
|
|
27468
27947
|
case "mvt":
|
|
27948
|
+
// 矢量瓦片
|
|
27469
27949
|
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dMvtImageryProviderExt({
|
|
27470
27950
|
name: name,
|
|
27471
27951
|
style: url
|
|
@@ -27489,6 +27969,7 @@ class AddDataViewModel {
|
|
|
27489
27969
|
break;
|
|
27490
27970
|
|
|
27491
27971
|
case "kqgisdataflowserver":
|
|
27972
|
+
// KQGIS 数据流服务
|
|
27492
27973
|
let guid = Cesium.createGuid();
|
|
27493
27974
|
layer = new Cesium.Kq3dDataFlowLayer(this._viewer, {
|
|
27494
27975
|
url: url,
|
|
@@ -27556,8 +28037,10 @@ class AddDataViewModel {
|
|
|
27556
28037
|
break;
|
|
27557
28038
|
|
|
27558
28039
|
case "wmts":
|
|
27559
|
-
case "kqgistileserver":
|
|
28040
|
+
case "kqgistileserver": // KQGIS 瓦片服务
|
|
28041
|
+
|
|
27560
28042
|
case "kqgisaggregationserver":
|
|
28043
|
+
// KQGIS 聚合服务
|
|
27561
28044
|
if (type === "kqgistileserver") {
|
|
27562
28045
|
if (url.indexOf("?") > 0) {
|
|
27563
28046
|
url = url.replace("?", "/wmts?");
|
|
@@ -27784,6 +28267,68 @@ class AddDataViewModel {
|
|
|
27784
28267
|
default:
|
|
27785
28268
|
break;
|
|
27786
28269
|
}
|
|
28270
|
+
} // 添加数据服务
|
|
28271
|
+
|
|
28272
|
+
|
|
28273
|
+
addDataServer(url, name) {
|
|
28274
|
+
window.KqGIS.datasourceService(url).getDatasources(async e => {
|
|
28275
|
+
if (e.result.resultcode === 'success') {
|
|
28276
|
+
let datasourceList = e.result.result.datasources;
|
|
28277
|
+
|
|
28278
|
+
if (datasourceList) {
|
|
28279
|
+
for (let i = 0; i < datasourceList.length; i++) {
|
|
28280
|
+
await _getDatasetList(url, datasourceList[i].datasourceName);
|
|
28281
|
+
}
|
|
28282
|
+
}
|
|
28283
|
+
} else {
|
|
28284
|
+
console.error(e);
|
|
28285
|
+
}
|
|
28286
|
+
}, err => {
|
|
28287
|
+
console.error(err);
|
|
28288
|
+
});
|
|
28289
|
+
}
|
|
28290
|
+
|
|
28291
|
+
_getDatasetList(url, dataSourceName) {
|
|
28292
|
+
let params = new window.KqGIS.Data.GetDatasetsInfoParams({
|
|
28293
|
+
datasourceName: dataSourceName
|
|
28294
|
+
});
|
|
28295
|
+
return new Promise((resolve, reject) => {
|
|
28296
|
+
window.KqGIS.datasetService(url).getDatasets(params, e => {
|
|
28297
|
+
if (e.result.resultcode === 'success') {
|
|
28298
|
+
resolve(e.result.result.datasets);
|
|
28299
|
+
} else {
|
|
28300
|
+
console.error(e);
|
|
28301
|
+
reject([]);
|
|
28302
|
+
}
|
|
28303
|
+
}, err => {
|
|
28304
|
+
console.error(err);
|
|
28305
|
+
reject([]);
|
|
28306
|
+
});
|
|
28307
|
+
});
|
|
28308
|
+
}
|
|
28309
|
+
|
|
28310
|
+
_getFeatureList(url, datasourceName, datasetName) {
|
|
28311
|
+
let params = new window.KqGIS.Data.GetFeaturesParamsBase({
|
|
28312
|
+
datasourceName: datasourceName,
|
|
28313
|
+
datasetName: datasetName,
|
|
28314
|
+
hasGeometry: true,
|
|
28315
|
+
returnContent: true,
|
|
28316
|
+
outSRS: 'EPSG:4326'
|
|
28317
|
+
});
|
|
28318
|
+
return new Promise((resolve, reject) => {
|
|
28319
|
+
window.KqGIS.dataFeatureService(url).getFeatureList(params, e => {
|
|
28320
|
+
if (e.result.resultcode === 'success') {
|
|
28321
|
+
e.result.result['datasetName'] = datasetName;
|
|
28322
|
+
resolve(e.result.result);
|
|
28323
|
+
} else {
|
|
28324
|
+
console.error(e);
|
|
28325
|
+
reject(null);
|
|
28326
|
+
}
|
|
28327
|
+
}, err => {
|
|
28328
|
+
console.error(err);
|
|
28329
|
+
resolve(null);
|
|
28330
|
+
});
|
|
28331
|
+
});
|
|
27787
28332
|
}
|
|
27788
28333
|
|
|
27789
28334
|
flyToLayer(layer) {
|
|
@@ -28037,7 +28582,14 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
28037
28582
|
namePlaceholder: language.value.optional,
|
|
28038
28583
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/map",
|
|
28039
28584
|
description: language.value.imagertyMapServerdescription
|
|
28040
|
-
}, {
|
|
28585
|
+
}, // {
|
|
28586
|
+
// type: "kqgisdataserver",
|
|
28587
|
+
// name: language.value.KQGISDataServer,
|
|
28588
|
+
// namePlaceholder: language.value.optional,
|
|
28589
|
+
// urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/data",
|
|
28590
|
+
// description: language.value.imagertyDataServerdescription
|
|
28591
|
+
// },
|
|
28592
|
+
{
|
|
28041
28593
|
type: "kqgisimageserver",
|
|
28042
28594
|
name: language.value.KQGISImageServer,
|
|
28043
28595
|
namePlaceholder: language.value.optional,
|
|
@@ -32467,7 +33019,8 @@ class StatusBarViewModel {
|
|
|
32467
33019
|
_defineProperty(this, "_viewer", null);
|
|
32468
33020
|
|
|
32469
33021
|
viewer.statusBar.show = true;
|
|
32470
|
-
viewer.statusBar.readyPromise.then
|
|
33022
|
+
let callback = viewer.statusBar.readyPromise.then || viewer.statusBar.readyPromise.resolve;
|
|
33023
|
+
callback(() => {
|
|
32471
33024
|
// viewer.statusBar.container.style.bottom = "16px";
|
|
32472
33025
|
//viewer.statusBar.container.parentElement.style.right = "0px!important";
|
|
32473
33026
|
// console.log(viewer.statusBar.container.parentElement.style.right);
|
|
@@ -32689,11 +33242,14 @@ class VideoProjectViewModel {
|
|
|
32689
33242
|
project() {
|
|
32690
33243
|
this.clear();
|
|
32691
33244
|
let position = Cesium.Cartesian3.clone(this._viewer.camera.positionWC);
|
|
33245
|
+
this._options.heading = this._viewer.camera.heading;
|
|
33246
|
+
this._options.pitch = this._viewer.camera.pitch;
|
|
33247
|
+
this._options.roll = this._viewer.camera.roll;
|
|
32692
33248
|
let options = {
|
|
32693
33249
|
position: position,
|
|
32694
|
-
heading:
|
|
32695
|
-
pitch:
|
|
32696
|
-
roll:
|
|
33250
|
+
heading: this._options.heading,
|
|
33251
|
+
pitch: this._options.pitch,
|
|
33252
|
+
roll: this._options.roll,
|
|
32697
33253
|
fov: Cesium.Math.toRadians(this._options.fov),
|
|
32698
33254
|
aspectRatio: this._options.aspectRatio,
|
|
32699
33255
|
far: this._options.far,
|
|
@@ -32722,6 +33278,15 @@ class VideoProjectViewModel {
|
|
|
32722
33278
|
height: cartographic.height
|
|
32723
33279
|
};
|
|
32724
33280
|
}
|
|
33281
|
+
} // 获取HeadingPitchRoll
|
|
33282
|
+
|
|
33283
|
+
|
|
33284
|
+
getHeadingPitchRoll() {
|
|
33285
|
+
return {
|
|
33286
|
+
heading: Math.round(Cesium.Math.toDegrees(this._options.heading)),
|
|
33287
|
+
pitch: Math.round(Cesium.Math.toDegrees(this._options.pitch)),
|
|
33288
|
+
roll: Math.round(Cesium.Math.toDegrees(this._options.roll))
|
|
33289
|
+
};
|
|
32725
33290
|
} //飞入
|
|
32726
33291
|
|
|
32727
33292
|
|
|
@@ -32730,9 +33295,9 @@ class VideoProjectViewModel {
|
|
|
32730
33295
|
this._viewer.camera.flyTo({
|
|
32731
33296
|
destination: this._projectVideo.position,
|
|
32732
33297
|
orientation: {
|
|
32733
|
-
heading:
|
|
32734
|
-
pitch:
|
|
32735
|
-
roll:
|
|
33298
|
+
heading: this._options.heading,
|
|
33299
|
+
pitch: this._options.pitch,
|
|
33300
|
+
roll: this._options.roll
|
|
32736
33301
|
}
|
|
32737
33302
|
});
|
|
32738
33303
|
}
|
|
@@ -32887,9 +33452,6 @@ const VideoProjectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
32887
33452
|
expose
|
|
32888
33453
|
}) {
|
|
32889
33454
|
const props = __props;
|
|
32890
|
-
const {
|
|
32891
|
-
proxy
|
|
32892
|
-
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.getCurrentInstance)();
|
|
32893
33455
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)({});
|
|
32894
33456
|
let collapseValue = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(""); // 获取组件传参
|
|
32895
33457
|
|
|
@@ -32905,18 +33467,20 @@ const VideoProjectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
32905
33467
|
height: 0,
|
|
32906
33468
|
minHeight: -heightOffset,
|
|
32907
33469
|
maxHeight: heightOffset,
|
|
33470
|
+
heading: 0,
|
|
33471
|
+
pitch: 0,
|
|
33472
|
+
roll: 0,
|
|
32908
33473
|
videoPath: props.settingParams && props.settingParams.videoPath || "",
|
|
32909
33474
|
projectType: props.settingParams && props.settingParams.projectType || 1,
|
|
32910
33475
|
fov: props.settingParams && props.settingParams.fov || 20,
|
|
32911
33476
|
aspectRatio: props.settingParams && props.settingParams.aspectRatio || 1.6,
|
|
32912
33477
|
far: props.settingParams && props.settingParams.far || 50,
|
|
32913
|
-
heading: props.settingParams && props.settingParams.heading || 330,
|
|
32914
|
-
pitch: props.settingParams && props.settingParams.pitch || -12,
|
|
32915
|
-
roll: props.settingParams && props.settingParams.roll || 0,
|
|
32916
33478
|
showHideLine: props.settingParams && props.settingParams.showHideLine !== undefined || true
|
|
32917
33479
|
}); // 显示坐标
|
|
32918
33480
|
|
|
32919
|
-
let showCoordinate = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(false);
|
|
33481
|
+
let showCoordinate = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(false); // 显示朝向角俯仰角翻转角
|
|
33482
|
+
|
|
33483
|
+
let showHpr = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(false);
|
|
32920
33484
|
let viewModel = null; // 组件容器Ref
|
|
32921
33485
|
|
|
32922
33486
|
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null); // 生成组件默认header
|
|
@@ -32951,9 +33515,6 @@ const VideoProjectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
32951
33515
|
fov: formItem.fov,
|
|
32952
33516
|
aspectRatio: formItem.aspectRatio,
|
|
32953
33517
|
far: formItem.far,
|
|
32954
|
-
heading: formItem.heading,
|
|
32955
|
-
pitch: formItem.pitch,
|
|
32956
|
-
roll: formItem.roll,
|
|
32957
33518
|
showHideLine: formItem.showHideLine
|
|
32958
33519
|
};
|
|
32959
33520
|
viewModel = new VideoProjectViewModel(scenceView, options);
|
|
@@ -33038,9 +33599,11 @@ const VideoProjectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
33038
33599
|
if (viewModel) {
|
|
33039
33600
|
viewModel.project();
|
|
33040
33601
|
setCoordinate();
|
|
33602
|
+
serHpr();
|
|
33041
33603
|
}
|
|
33042
33604
|
}
|
|
33043
|
-
}
|
|
33605
|
+
} // 设置坐标
|
|
33606
|
+
|
|
33044
33607
|
|
|
33045
33608
|
function setCoordinate() {
|
|
33046
33609
|
let coordinate = viewModel.getProjectCoordinate();
|
|
@@ -33057,6 +33620,18 @@ const VideoProjectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
33057
33620
|
formItem.maxHeight = coordinate.height + heightOffset;
|
|
33058
33621
|
showCoordinate.value = true;
|
|
33059
33622
|
}
|
|
33623
|
+
} // 设置朝向角俯仰角翻转角
|
|
33624
|
+
|
|
33625
|
+
|
|
33626
|
+
function serHpr() {
|
|
33627
|
+
let hpr = viewModel.getHeadingPitchRoll();
|
|
33628
|
+
|
|
33629
|
+
if (hpr) {
|
|
33630
|
+
formItem.heading = hpr.heading;
|
|
33631
|
+
formItem.pitch = hpr.pitch;
|
|
33632
|
+
formItem.roll = hpr.roll;
|
|
33633
|
+
showHpr.value = true;
|
|
33634
|
+
}
|
|
33060
33635
|
} // 飞入
|
|
33061
33636
|
|
|
33062
33637
|
|
|
@@ -33067,6 +33642,7 @@ const VideoProjectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
33067
33642
|
|
|
33068
33643
|
function clearResult() {
|
|
33069
33644
|
showCoordinate.value = false;
|
|
33645
|
+
showHpr.value = false;
|
|
33070
33646
|
viewModel && viewModel.clear();
|
|
33071
33647
|
} // 销毁
|
|
33072
33648
|
|
|
@@ -33588,7 +34164,7 @@ const VideoProjectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
33588
34164
|
_: 1
|
|
33589
34165
|
/* STABLE */
|
|
33590
34166
|
|
|
33591
|
-
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, null, {
|
|
34167
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, null, {
|
|
33592
34168
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_form_item, {
|
|
33593
34169
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).heading
|
|
33594
34170
|
}, {
|
|
@@ -33644,7 +34220,9 @@ const VideoProjectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
33644
34220
|
_: 1
|
|
33645
34221
|
/* STABLE */
|
|
33646
34222
|
|
|
33647
|
-
}
|
|
34223
|
+
}, 512
|
|
34224
|
+
/* NEED_PATCH */
|
|
34225
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, null, {
|
|
33648
34226
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_form_item, {
|
|
33649
34227
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).pitch
|
|
33650
34228
|
}, {
|
|
@@ -33700,7 +34278,9 @@ const VideoProjectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
33700
34278
|
_: 1
|
|
33701
34279
|
/* STABLE */
|
|
33702
34280
|
|
|
33703
|
-
}
|
|
34281
|
+
}, 512
|
|
34282
|
+
/* NEED_PATCH */
|
|
34283
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, null, {
|
|
33704
34284
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_form_item, {
|
|
33705
34285
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).roll
|
|
33706
34286
|
}, {
|
|
@@ -33756,7 +34336,9 @@ const VideoProjectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
33756
34336
|
_: 1
|
|
33757
34337
|
/* STABLE */
|
|
33758
34338
|
|
|
33759
|
-
}
|
|
34339
|
+
}, 512
|
|
34340
|
+
/* NEED_PATCH */
|
|
34341
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, {
|
|
33760
34342
|
style: {
|
|
33761
34343
|
"margin-bottom": "8px"
|
|
33762
34344
|
}
|
|
@@ -33903,11 +34485,20 @@ class VideoFusiontViewModel {
|
|
|
33903
34485
|
|
|
33904
34486
|
|
|
33905
34487
|
fusion() {
|
|
34488
|
+
let type = 3;
|
|
34489
|
+
|
|
34490
|
+
if (this._options.videoPath.indexOf('.m3u8') > 0) {
|
|
34491
|
+
type = 5;
|
|
34492
|
+
}
|
|
34493
|
+
|
|
33906
34494
|
this.clear();
|
|
33907
34495
|
let cartographic = Cesium.Cartographic.fromCartesian(this._viewer.camera.positionWC);
|
|
34496
|
+
this._options.heading = Cesium.Math.toDegrees(this._viewer.camera.heading);
|
|
34497
|
+
this._options.pitch = Cesium.Math.toDegrees(this._viewer.camera.pitch);
|
|
34498
|
+
this._options.roll = Cesium.Math.toDegrees(this._viewer.camera.roll);
|
|
33908
34499
|
var param = {
|
|
33909
34500
|
url: this._options.videoPath,
|
|
33910
|
-
type:
|
|
34501
|
+
type: type,
|
|
33911
34502
|
position: {
|
|
33912
34503
|
x: Cesium.Math.toDegrees(cartographic.longitude),
|
|
33913
34504
|
y: Cesium.Math.toDegrees(cartographic.latitude),
|
|
@@ -33937,6 +34528,15 @@ class VideoFusiontViewModel {
|
|
|
33937
34528
|
if (this._videoFusion) {
|
|
33938
34529
|
return this._videoFusion.param.position;
|
|
33939
34530
|
}
|
|
34531
|
+
} // 获取HeadingPitchRoll
|
|
34532
|
+
|
|
34533
|
+
|
|
34534
|
+
getHeadingPitchRoll() {
|
|
34535
|
+
return {
|
|
34536
|
+
heading: Math.round(this._options.heading),
|
|
34537
|
+
pitch: Math.round(this._options.pitch),
|
|
34538
|
+
roll: Math.round(this._options.roll)
|
|
34539
|
+
};
|
|
33940
34540
|
} //飞入
|
|
33941
34541
|
|
|
33942
34542
|
|
|
@@ -34134,9 +34734,6 @@ const VideoFusionvue_type_script_setup_true_lang_js_default_ = {
|
|
|
34134
34734
|
expose
|
|
34135
34735
|
}) {
|
|
34136
34736
|
const props = __props;
|
|
34137
|
-
const {
|
|
34138
|
-
proxy
|
|
34139
|
-
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.getCurrentInstance)();
|
|
34140
34737
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)({});
|
|
34141
34738
|
let collapseValue = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(""); // 获取组件传参
|
|
34142
34739
|
|
|
@@ -34155,15 +34752,17 @@ const VideoFusionvue_type_script_setup_true_lang_js_default_ = {
|
|
|
34155
34752
|
videoPath: props.settingParams && props.settingParams.videoPath || "",
|
|
34156
34753
|
fov: props.settingParams && props.settingParams.fov || 40,
|
|
34157
34754
|
far: props.settingParams && props.settingParams.far || 50,
|
|
34158
|
-
heading:
|
|
34159
|
-
pitch:
|
|
34160
|
-
roll:
|
|
34755
|
+
heading: 0,
|
|
34756
|
+
pitch: 0,
|
|
34757
|
+
roll: 0,
|
|
34161
34758
|
alpha: props.settingParams && props.settingParams.alpha || 1.0,
|
|
34162
34759
|
eclosion: props.settingParams && props.settingParams.eclosion || 0.5,
|
|
34163
34760
|
showHideLine: props.settingParams && props.settingParams.showHideLine !== undefined || false
|
|
34164
34761
|
}); // 显示坐标
|
|
34165
34762
|
|
|
34166
|
-
let showCoordinate = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(false);
|
|
34763
|
+
let showCoordinate = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(false); // 显示朝向角俯仰角翻转角
|
|
34764
|
+
|
|
34765
|
+
let showHpr = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(false);
|
|
34167
34766
|
let viewModel = null; // 组件容器Ref
|
|
34168
34767
|
|
|
34169
34768
|
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null); // 生成组件默认header
|
|
@@ -34196,9 +34795,6 @@ const VideoFusionvue_type_script_setup_true_lang_js_default_ = {
|
|
|
34196
34795
|
videoPath: formItem.videoPath,
|
|
34197
34796
|
fov: formItem.fov,
|
|
34198
34797
|
far: formItem.far,
|
|
34199
|
-
heading: formItem.heading,
|
|
34200
|
-
pitch: formItem.pitch,
|
|
34201
|
-
roll: formItem.roll,
|
|
34202
34798
|
alpha: formItem.alpha,
|
|
34203
34799
|
eclosion: formItem.eclosion,
|
|
34204
34800
|
showHideLine: formItem.showHideLine
|
|
@@ -34285,6 +34881,7 @@ const VideoFusionvue_type_script_setup_true_lang_js_default_ = {
|
|
|
34285
34881
|
if (viewModel) {
|
|
34286
34882
|
viewModel.fusion();
|
|
34287
34883
|
setCoordinate();
|
|
34884
|
+
serHpr();
|
|
34288
34885
|
}
|
|
34289
34886
|
}
|
|
34290
34887
|
}
|
|
@@ -34304,6 +34901,18 @@ const VideoFusionvue_type_script_setup_true_lang_js_default_ = {
|
|
|
34304
34901
|
formItem.maxHeight = coordinate.z + heightOffset;
|
|
34305
34902
|
showCoordinate.value = true;
|
|
34306
34903
|
}
|
|
34904
|
+
} // 设置朝向角俯仰角翻转角
|
|
34905
|
+
|
|
34906
|
+
|
|
34907
|
+
function serHpr() {
|
|
34908
|
+
let hpr = viewModel.getHeadingPitchRoll();
|
|
34909
|
+
|
|
34910
|
+
if (hpr) {
|
|
34911
|
+
formItem.heading = hpr.heading;
|
|
34912
|
+
formItem.pitch = hpr.pitch;
|
|
34913
|
+
formItem.roll = hpr.roll;
|
|
34914
|
+
showHpr.value = true;
|
|
34915
|
+
}
|
|
34307
34916
|
} // 飞入
|
|
34308
34917
|
|
|
34309
34918
|
|
|
@@ -34314,6 +34923,7 @@ const VideoFusionvue_type_script_setup_true_lang_js_default_ = {
|
|
|
34314
34923
|
|
|
34315
34924
|
function clearResult() {
|
|
34316
34925
|
showCoordinate.value = false;
|
|
34926
|
+
showHpr.value = false;
|
|
34317
34927
|
viewModel && viewModel.clear();
|
|
34318
34928
|
} // 销毁
|
|
34319
34929
|
|
|
@@ -34720,7 +35330,7 @@ const VideoFusionvue_type_script_setup_true_lang_js_default_ = {
|
|
|
34720
35330
|
_: 1
|
|
34721
35331
|
/* STABLE */
|
|
34722
35332
|
|
|
34723
|
-
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, null, {
|
|
35333
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, null, {
|
|
34724
35334
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_form_item, {
|
|
34725
35335
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).heading
|
|
34726
35336
|
}, {
|
|
@@ -34776,7 +35386,9 @@ const VideoFusionvue_type_script_setup_true_lang_js_default_ = {
|
|
|
34776
35386
|
_: 1
|
|
34777
35387
|
/* STABLE */
|
|
34778
35388
|
|
|
34779
|
-
}
|
|
35389
|
+
}, 512
|
|
35390
|
+
/* NEED_PATCH */
|
|
35391
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, null, {
|
|
34780
35392
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_form_item, {
|
|
34781
35393
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).pitch
|
|
34782
35394
|
}, {
|
|
@@ -34832,7 +35444,9 @@ const VideoFusionvue_type_script_setup_true_lang_js_default_ = {
|
|
|
34832
35444
|
_: 1
|
|
34833
35445
|
/* STABLE */
|
|
34834
35446
|
|
|
34835
|
-
}
|
|
35447
|
+
}, 512
|
|
35448
|
+
/* NEED_PATCH */
|
|
35449
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, null, {
|
|
34836
35450
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_form_item, {
|
|
34837
35451
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).roll
|
|
34838
35452
|
}, {
|
|
@@ -34888,7 +35502,9 @@ const VideoFusionvue_type_script_setup_true_lang_js_default_ = {
|
|
|
34888
35502
|
_: 1
|
|
34889
35503
|
/* STABLE */
|
|
34890
35504
|
|
|
34891
|
-
}
|
|
35505
|
+
}, 512
|
|
35506
|
+
/* NEED_PATCH */
|
|
35507
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, null, {
|
|
34892
35508
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_form_item, {
|
|
34893
35509
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).transparents
|
|
34894
35510
|
}, {
|
|
@@ -35178,6 +35794,7 @@ class SceneSetViewModel {
|
|
|
35178
35794
|
|
|
35179
35795
|
this._viewer = viewer;
|
|
35180
35796
|
this._defaultSkyBox = viewer.scene.skyBox;
|
|
35797
|
+
this._undergroundManager = new Cesium.Kq3dUndergroundManager(this._viewer.scene);
|
|
35181
35798
|
} // 获取场景内容
|
|
35182
35799
|
|
|
35183
35800
|
|
|
@@ -35533,8 +36150,6 @@ class SceneSetViewModel {
|
|
|
35533
36150
|
|
|
35534
36151
|
|
|
35535
36152
|
showGrid(type) {
|
|
35536
|
-
console.log(this._viewer.scene.kq3dUndergroundManager);
|
|
35537
|
-
|
|
35538
36153
|
if (this._gridLayer) {
|
|
35539
36154
|
this._viewer.imageryLayers.remove(this._gridLayer);
|
|
35540
36155
|
|
|
@@ -35558,10 +36173,6 @@ class SceneSetViewModel {
|
|
|
35558
36173
|
|
|
35559
36174
|
|
|
35560
36175
|
openUnderground(isOpen) {
|
|
35561
|
-
if (!this._undergroundManager) {
|
|
35562
|
-
this._undergroundManager = new Cesium.Kq3dUndergroundManager(this._viewer.scene);
|
|
35563
|
-
}
|
|
35564
|
-
|
|
35565
36176
|
this._undergroundManager.undergroundEnabled = isOpen;
|
|
35566
36177
|
this._undergroundManager.transparentEnabled = isOpen;
|
|
35567
36178
|
} // 设置地表透明度
|
|
@@ -37035,10 +37646,30 @@ const SceneSetvue_type_script_setup_true_lang_js_default_ = {
|
|
|
37035
37646
|
}));
|
|
37036
37647
|
;// CONCATENATED MODULE: ./src/webgl/sceneset/SceneSet.vue?vue&type=script&setup=true&lang=js
|
|
37037
37648
|
|
|
37649
|
+
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/sceneset/SceneSet.vue?vue&type=style&index=0&id=8e9dc1cc&lang=scss
|
|
37650
|
+
var SceneSetvue_type_style_index_0_id_8e9dc1cc_lang_scss = __webpack_require__(825);
|
|
37651
|
+
;// CONCATENATED MODULE: ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/sceneset/SceneSet.vue?vue&type=style&index=0&id=8e9dc1cc&lang=scss
|
|
37652
|
+
|
|
37653
|
+
|
|
37654
|
+
|
|
37655
|
+
var SceneSetvue_type_style_index_0_id_8e9dc1cc_lang_scss_options = {};
|
|
37656
|
+
|
|
37657
|
+
SceneSetvue_type_style_index_0_id_8e9dc1cc_lang_scss_options.insert = "head";
|
|
37658
|
+
SceneSetvue_type_style_index_0_id_8e9dc1cc_lang_scss_options.singleton = false;
|
|
37659
|
+
|
|
37660
|
+
var SceneSetvue_type_style_index_0_id_8e9dc1cc_lang_scss_update = injectStylesIntoStyleTag_default()(SceneSetvue_type_style_index_0_id_8e9dc1cc_lang_scss/* default */.Z, SceneSetvue_type_style_index_0_id_8e9dc1cc_lang_scss_options);
|
|
37661
|
+
|
|
37662
|
+
|
|
37663
|
+
|
|
37664
|
+
/* harmony default export */ var sceneset_SceneSetvue_type_style_index_0_id_8e9dc1cc_lang_scss = (SceneSetvue_type_style_index_0_id_8e9dc1cc_lang_scss/* default.locals */.Z.locals || {});
|
|
37665
|
+
;// CONCATENATED MODULE: ./src/webgl/sceneset/SceneSet.vue?vue&type=style&index=0&id=8e9dc1cc&lang=scss
|
|
37666
|
+
|
|
37038
37667
|
;// CONCATENATED MODULE: ./src/webgl/sceneset/SceneSet.vue
|
|
37039
37668
|
|
|
37040
37669
|
|
|
37041
37670
|
|
|
37671
|
+
;
|
|
37672
|
+
|
|
37042
37673
|
const SceneSet_exports_ = SceneSetvue_type_script_setup_true_lang_js;
|
|
37043
37674
|
|
|
37044
37675
|
/* harmony default export */ var SceneSet = (SceneSet_exports_);
|
|
@@ -37574,7 +38205,7 @@ const Lightvue_type_script_setup_true_lang_js_default_ = {
|
|
|
37574
38205
|
class: "rowclass"
|
|
37575
38206
|
}, {
|
|
37576
38207
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_form_item, {
|
|
37577
|
-
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).
|
|
38208
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).lightColor
|
|
37578
38209
|
}, {
|
|
37579
38210
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, {
|
|
37580
38211
|
style: {
|
|
@@ -38695,6 +39326,9 @@ GeologicalBodyAnalysis.install = (Vue, opts) => {
|
|
|
38695
39326
|
// 扫描线
|
|
38696
39327
|
|
|
38697
39328
|
|
|
39329
|
+
// 模型开挖
|
|
39330
|
+
|
|
39331
|
+
|
|
38698
39332
|
|
|
38699
39333
|
|
|
38700
39334
|
|
|
@@ -38793,7 +39427,8 @@ const webglComponents = {
|
|
|
38793
39427
|
Kq3dGeologicalBodyAnalysis: GeologicalBodyAnalysis,
|
|
38794
39428
|
Kq3dLimitHeightAnalysis: LimitHeightAnalysis,
|
|
38795
39429
|
Kq3dTerrainProfileAnalysis: TerrainProfileAnalysis,
|
|
38796
|
-
Kq3dScanEffect: ScanEffect
|
|
39430
|
+
Kq3dScanEffect: ScanEffect,
|
|
39431
|
+
Kq3dModelExcavate: ModelExcavate
|
|
38797
39432
|
}; // 全局引入
|
|
38798
39433
|
|
|
38799
39434
|
const install = function (Vue, opts = {}) {
|