@kq_npm/client3d_webgl_vue 4.5.54 → 4.5.56
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/airspacegridoccupancyquery/index.js +1876 -0
- package/airspacegridoccupancyquery/style/airspacegridoccupancyquery.css +1 -0
- package/airspacegridoccupancyquery/style/index.js +3 -0
- package/airspaceprofileanalysis/index.js +1778 -0
- package/airspaceprofileanalysis/style/airspaceprofileanalysis.css +1 -0
- package/airspaceprofileanalysis/style/index.js +3 -0
- package/buildpointmodel/index.js +111 -31
- package/clientPrint/index.js +22739 -119
- package/gpuspatialquery/index.js +69 -9
- package/gridoccupancyquery/index.js +561 -0
- package/gridoccupancyquery/style/gridoccupancyquery.css +1 -0
- package/gridoccupancyquery/style/index.js +3 -0
- package/index.js +22739 -119
- package/lowaltitudefeature/index.js +4854 -0
- package/lowaltitudefeature/style/index.js +3 -0
- package/lowaltitudefeature/style/lowaltitudefeature.css +1 -0
- package/modelprofileanalysis/index.js +1 -0
- package/modelselect/index.js +1 -0
- package/package.json +1 -1
- package/sceneapp/index.js +22739 -119
- package/sceneview/index.js +22739 -119
- package/sceneview/style/sceneview.css +1 -1
- package/style.css +1 -1
- package/toolbarapp/index.js +22739 -119
- package/toolboxapp/index.js +22739 -119
- package/videofusion/index.js +80 -51
- package/viewshedanalysis/index.js +3 -1
- package/webgl.es.js +755 -185
- package/windyslicing/index.js +25 -9
package/videofusion/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
-
module.exports = factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/
|
|
3
|
+
module.exports = factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/init.js"), require("@kq_npm/client_common_vue/configprovider/useGlobalConfig"), require("@kq_npm/client_common_vue/_utils/util"));
|
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
|
5
|
-
define("@kq_npm/client3d_webgl_vue", ["vue", "@kq_npm/client_common_vue/_utils/gis-utils", "@kq_npm/client_common_vue/
|
|
5
|
+
define("@kq_npm/client3d_webgl_vue", ["vue", "@kq_npm/client_common_vue/_utils/gis-utils", "@kq_npm/client_common_vue/init.js", "@kq_npm/client_common_vue/configprovider/useGlobalConfig", "@kq_npm/client_common_vue/_utils/util"], factory);
|
|
6
6
|
else if(typeof exports === 'object')
|
|
7
|
-
exports["@kq_npm/client3d_webgl_vue"] = factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/
|
|
7
|
+
exports["@kq_npm/client3d_webgl_vue"] = factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/init.js"), require("@kq_npm/client_common_vue/configprovider/useGlobalConfig"), require("@kq_npm/client_common_vue/_utils/util"));
|
|
8
8
|
else
|
|
9
|
-
root["@kq_npm/client3d_webgl_vue"] = factory(root["Vue"], root["@kq_npm/client_common_vue/_utils/gis-utils"], root["@kq_npm/client_common_vue/
|
|
10
|
-
})(this, function(__WEBPACK_EXTERNAL_MODULE__50154__, __WEBPACK_EXTERNAL_MODULE__20064__,
|
|
9
|
+
root["@kq_npm/client3d_webgl_vue"] = factory(root["Vue"], root["@kq_npm/client_common_vue/_utils/gis-utils"], root["@kq_npm/client_common_vue/init.js"], root["@kq_npm/client_common_vue/configprovider/useGlobalConfig"], root["@kq_npm/client_common_vue/_utils/util"]);
|
|
10
|
+
})(this, function(__WEBPACK_EXTERNAL_MODULE__50154__, __WEBPACK_EXTERNAL_MODULE__20064__, __WEBPACK_EXTERNAL_MODULE__20455__, __WEBPACK_EXTERNAL_MODULE__22686__, __WEBPACK_EXTERNAL_MODULE__42975__) {
|
|
11
11
|
return /******/ (function() { // webpackBootstrap
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
@@ -101,7 +101,7 @@ var _default = exports.A = /*@__PURE__*/Object.assign(__default__, {
|
|
|
101
101
|
const lonlatOffset = 0.00001;
|
|
102
102
|
const heightOffset = 10.0;
|
|
103
103
|
let formItem = (0, _vue.reactive)({
|
|
104
|
-
collapseValue: props?.settingParams?.collapseValue ===
|
|
104
|
+
collapseValue: props?.settingParams?.collapseValue === "" ? "" : props?.settingParams?.collapseValue ?? "setting",
|
|
105
105
|
// 默认展开属性设置
|
|
106
106
|
longitude: 0,
|
|
107
107
|
minLongitude: -lonlatOffset,
|
|
@@ -169,7 +169,7 @@ var _default = exports.A = /*@__PURE__*/Object.assign(__default__, {
|
|
|
169
169
|
const watchCreateHeaderTemp = () => {
|
|
170
170
|
if (props.showHeaderTemp) {
|
|
171
171
|
// 生成headerTemp
|
|
172
|
-
headerTemp.value = (0, _util.createHeaderTemp)(boxRef.value, (0, _vue.toRefs)(props), headerTempRef,
|
|
172
|
+
headerTemp.value = (0, _util.createHeaderTemp)(boxRef.value, (0, _vue.toRefs)(props), headerTempRef, "webgl.videoFusion");
|
|
173
173
|
}
|
|
174
174
|
};
|
|
175
175
|
function selectVideo(file) {
|
|
@@ -222,14 +222,17 @@ var _default = exports.A = /*@__PURE__*/Object.assign(__default__, {
|
|
|
222
222
|
function fusion() {
|
|
223
223
|
if (formItem.videoPath === "") {
|
|
224
224
|
(0, _message.default)({
|
|
225
|
-
message: t(
|
|
225
|
+
message: t("webgl.videoPathEmpty"),
|
|
226
226
|
type: "warning"
|
|
227
227
|
});
|
|
228
228
|
} else {
|
|
229
229
|
if (viewModel) {
|
|
230
|
-
viewModel.fusion()
|
|
231
|
-
|
|
232
|
-
|
|
230
|
+
viewModel.fusion(function (bool) {
|
|
231
|
+
if (bool) {
|
|
232
|
+
setCoordinate();
|
|
233
|
+
serHpr();
|
|
234
|
+
}
|
|
235
|
+
});
|
|
233
236
|
}
|
|
234
237
|
}
|
|
235
238
|
}
|
|
@@ -314,7 +317,7 @@ var _default = exports.A = /*@__PURE__*/Object.assign(__default__, {
|
|
|
314
317
|
span: 6,
|
|
315
318
|
class: "colClass"
|
|
316
319
|
}, {
|
|
317
|
-
default: (0, _vue.withCtx)(() => [(0, _vue.createElementVNode)("span", _hoisted_2, (0, _vue.toDisplayString)((0, _vue.unref)(t)(
|
|
320
|
+
default: (0, _vue.withCtx)(() => [(0, _vue.createElementVNode)("span", _hoisted_2, (0, _vue.toDisplayString)((0, _vue.unref)(t)("webgl.videoPath")), 1 /* TEXT */)]),
|
|
318
321
|
_: 1 /* STABLE */
|
|
319
322
|
}), (0, _vue.createVNode)(_component_kq_col, {
|
|
320
323
|
span: 18
|
|
@@ -350,7 +353,7 @@ var _default = exports.A = /*@__PURE__*/Object.assign(__default__, {
|
|
|
350
353
|
}), (0, _vue.createVNode)(_component_kq_row, {
|
|
351
354
|
class: "kq3d-video-fusion-tip"
|
|
352
355
|
}, {
|
|
353
|
-
default: (0, _vue.withCtx)(() => [(0, _vue.createElementVNode)("p", null, (0, _vue.toDisplayString)((0, _vue.unref)(t)(
|
|
356
|
+
default: (0, _vue.withCtx)(() => [(0, _vue.createElementVNode)("p", null, (0, _vue.toDisplayString)((0, _vue.unref)(t)("webgl.videoFusionTips")), 1 /* TEXT */)]),
|
|
354
357
|
_: 1 /* STABLE */
|
|
355
358
|
}), (0, _vue.createVNode)(_component_kq_collapse, {
|
|
356
359
|
"model-value": (0, _vue.unref)(formItem).collapseValue,
|
|
@@ -794,20 +797,20 @@ var _default = exports.A = /*@__PURE__*/Object.assign(__default__, {
|
|
|
794
797
|
title: (0, _vue.unref)(t)('webgl.fusion'),
|
|
795
798
|
type: "primary"
|
|
796
799
|
}, {
|
|
797
|
-
default: (0, _vue.withCtx)(() => [(0, _vue.createTextVNode)((0, _vue.toDisplayString)((0, _vue.unref)(t)(
|
|
800
|
+
default: (0, _vue.withCtx)(() => [(0, _vue.createTextVNode)((0, _vue.toDisplayString)((0, _vue.unref)(t)("webgl.fusion")), 1 /* TEXT */)]),
|
|
798
801
|
_: 1 /* STABLE */
|
|
799
802
|
}, 8 /* PROPS */, ["title"]), (0, _vue.createVNode)(_component_kq_button, {
|
|
800
803
|
onClick: _cache[39] || (_cache[39] = (0, _vue.withModifiers)($event => flyTo(), ["stop"])),
|
|
801
804
|
title: (0, _vue.unref)(t)('webgl.flyTo'),
|
|
802
805
|
type: "primary"
|
|
803
806
|
}, {
|
|
804
|
-
default: (0, _vue.withCtx)(() => [(0, _vue.createTextVNode)((0, _vue.toDisplayString)((0, _vue.unref)(t)(
|
|
807
|
+
default: (0, _vue.withCtx)(() => [(0, _vue.createTextVNode)((0, _vue.toDisplayString)((0, _vue.unref)(t)("webgl.flyTo")), 1 /* TEXT */)]),
|
|
805
808
|
_: 1 /* STABLE */
|
|
806
809
|
}, 8 /* PROPS */, ["title"]), (0, _vue.createVNode)(_component_kq_button, {
|
|
807
810
|
onClick: _cache[40] || (_cache[40] = (0, _vue.withModifiers)($event => clearResult(), ["stop"])),
|
|
808
811
|
title: (0, _vue.unref)(t)('webgl.clear')
|
|
809
812
|
}, {
|
|
810
|
-
default: (0, _vue.withCtx)(() => [(0, _vue.createTextVNode)((0, _vue.toDisplayString)((0, _vue.unref)(t)(
|
|
813
|
+
default: (0, _vue.withCtx)(() => [(0, _vue.createTextVNode)((0, _vue.toDisplayString)((0, _vue.unref)(t)("webgl.clear")), 1 /* TEXT */)]),
|
|
811
814
|
_: 1 /* STABLE */
|
|
812
815
|
}, 8 /* PROPS */, ["title"])])])], 2 /* CLASS */);
|
|
813
816
|
};
|
|
@@ -926,19 +929,23 @@ _KqGIS.kq_npm_client_common_vue.KqMessage = _indexFull.ElMessage;
|
|
|
926
929
|
/***/ }),
|
|
927
930
|
|
|
928
931
|
/***/ 93012:
|
|
929
|
-
/***/ (function(__unused_webpack_module, exports) {
|
|
932
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
930
933
|
|
|
931
934
|
|
|
932
935
|
|
|
936
|
+
var _interopRequireDefault = __webpack_require__(33751);
|
|
933
937
|
Object.defineProperty(exports, "__esModule", ({
|
|
934
938
|
value: true
|
|
935
939
|
}));
|
|
936
940
|
exports["default"] = void 0;
|
|
941
|
+
var _message = _interopRequireDefault(__webpack_require__(71323));
|
|
942
|
+
var _useGlobalConfig = __webpack_require__(22686);
|
|
937
943
|
/*
|
|
938
944
|
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
939
945
|
* All rights reserved.
|
|
940
946
|
*/
|
|
941
947
|
//视频融合逻辑类
|
|
948
|
+
|
|
942
949
|
class VideoFusiontViewModel {
|
|
943
950
|
constructor(scenceView, options) {
|
|
944
951
|
this._viewer = null;
|
|
@@ -948,47 +955,69 @@ class VideoFusiontViewModel {
|
|
|
948
955
|
this._videoFusion = null;
|
|
949
956
|
//视频融合对象
|
|
950
957
|
this._videoFusionCollection = null;
|
|
958
|
+
this._language = {};
|
|
959
|
+
const {
|
|
960
|
+
locale
|
|
961
|
+
} = (0, _useGlobalConfig.useLocale)();
|
|
962
|
+
this._language = locale;
|
|
951
963
|
this._options = Object.assign({}, options);
|
|
952
964
|
this._viewer = scenceView._viewer;
|
|
953
965
|
this._videoFusionCollection = new Cesium.Kq3dVideoFusionCollection(this._viewer);
|
|
954
966
|
}
|
|
955
967
|
|
|
956
968
|
// 融合
|
|
957
|
-
fusion() {
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
969
|
+
fusion(cb) {
|
|
970
|
+
// 判断是否添加了模型
|
|
971
|
+
var flag = false;
|
|
972
|
+
var models = this._viewer.scene.primitives._primitives;
|
|
973
|
+
for (let i = 0; i < models.length; i++) {
|
|
974
|
+
if (models[i]._url && models[i] instanceof Cesium.Cesium3DTileset) {
|
|
975
|
+
flag = true;
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
if (flag) {
|
|
979
|
+
let type = 3;
|
|
980
|
+
if (this._options.videoPath.indexOf('.m3u8') > 0) {
|
|
981
|
+
type = 5;
|
|
982
|
+
}
|
|
983
|
+
this.clear();
|
|
984
|
+
let cartographic = Cesium.Cartographic.fromCartesian(this._viewer.camera.positionWC);
|
|
985
|
+
this._options.heading = Cesium.Math.toDegrees(this._viewer.camera.heading);
|
|
986
|
+
this._options.pitch = Cesium.Math.toDegrees(this._viewer.camera.pitch);
|
|
987
|
+
this._options.roll = Cesium.Math.toDegrees(this._viewer.camera.roll);
|
|
988
|
+
var param = {
|
|
989
|
+
url: this._options.videoPath,
|
|
990
|
+
type: type,
|
|
991
|
+
position: {
|
|
992
|
+
x: Cesium.Math.toDegrees(cartographic.longitude),
|
|
993
|
+
y: Cesium.Math.toDegrees(cartographic.latitude),
|
|
994
|
+
z: cartographic.height
|
|
995
|
+
},
|
|
996
|
+
hpr: {
|
|
997
|
+
heading: this._options.heading,
|
|
998
|
+
pitch: this._options.pitch,
|
|
999
|
+
roll: this._options.roll
|
|
1000
|
+
},
|
|
1001
|
+
alpha: this._options.alpha,
|
|
1002
|
+
far: this._options.far,
|
|
1003
|
+
fov: this._options.fov,
|
|
1004
|
+
featheringDelta: this._options.eclosion,
|
|
1005
|
+
debugFrustum: this._options.showHideLine,
|
|
1006
|
+
k1: 0,
|
|
1007
|
+
k2: 0,
|
|
1008
|
+
cx: 300,
|
|
1009
|
+
cy: 60,
|
|
1010
|
+
f: 3000
|
|
1011
|
+
};
|
|
1012
|
+
this._videoFusion = this._videoFusionCollection.addVideoTarget(param);
|
|
1013
|
+
typeof cb === "function" && cb(true);
|
|
1014
|
+
} else {
|
|
1015
|
+
(0, _message.default)({
|
|
1016
|
+
message: this._language.value.webgl["addModelFusionTips"],
|
|
1017
|
+
type: "warning"
|
|
1018
|
+
});
|
|
1019
|
+
typeof cb === "function" && cb(false);
|
|
961
1020
|
}
|
|
962
|
-
this.clear();
|
|
963
|
-
let cartographic = Cesium.Cartographic.fromCartesian(this._viewer.camera.positionWC);
|
|
964
|
-
this._options.heading = Cesium.Math.toDegrees(this._viewer.camera.heading);
|
|
965
|
-
this._options.pitch = Cesium.Math.toDegrees(this._viewer.camera.pitch);
|
|
966
|
-
this._options.roll = Cesium.Math.toDegrees(this._viewer.camera.roll);
|
|
967
|
-
var param = {
|
|
968
|
-
url: this._options.videoPath,
|
|
969
|
-
type: type,
|
|
970
|
-
position: {
|
|
971
|
-
x: Cesium.Math.toDegrees(cartographic.longitude),
|
|
972
|
-
y: Cesium.Math.toDegrees(cartographic.latitude),
|
|
973
|
-
z: cartographic.height
|
|
974
|
-
},
|
|
975
|
-
hpr: {
|
|
976
|
-
heading: this._options.heading,
|
|
977
|
-
pitch: this._options.pitch,
|
|
978
|
-
roll: this._options.roll
|
|
979
|
-
},
|
|
980
|
-
alpha: this._options.alpha,
|
|
981
|
-
far: this._options.far,
|
|
982
|
-
fov: this._options.fov,
|
|
983
|
-
featheringDelta: this._options.eclosion,
|
|
984
|
-
debugFrustum: this._options.showHideLine,
|
|
985
|
-
k1: 0,
|
|
986
|
-
k2: 0,
|
|
987
|
-
cx: 300,
|
|
988
|
-
cy: 60,
|
|
989
|
-
f: 3000
|
|
990
|
-
};
|
|
991
|
-
this._videoFusion = this._videoFusionCollection.addVideoTarget(param);
|
|
992
1021
|
}
|
|
993
1022
|
|
|
994
1023
|
// 获取融合坐标
|
|
@@ -1289,7 +1289,9 @@ class ViewshedAnalysisViewModel {
|
|
|
1289
1289
|
//清除全部结果
|
|
1290
1290
|
clear() {
|
|
1291
1291
|
// this._drawManager?.stopDraw?.();
|
|
1292
|
-
this._viewshedAnalysis
|
|
1292
|
+
this._viewshedAnalysis?.pause();
|
|
1293
|
+
this._viewshedAnalysis?.stopHandle();
|
|
1294
|
+
this._viewshedAnalysis?.destroy();
|
|
1293
1295
|
this._viewshedAnalysis = null;
|
|
1294
1296
|
if (this._marker) {
|
|
1295
1297
|
this._viewer.entities.remove(this._marker);
|