@kq_npm/client3d_webgl_vue 4.5.12-beta → 4.5.14
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 +7 -3
- package/aspectanalysis/index.js +4 -3
- package/baseterraingallery/index.js +5 -2
- package/boxclip/index.js +15 -14
- package/clientPrint/index.js +1093 -664
- package/comparemap/index.js +13 -7
- package/compass/index.js +5 -2
- package/excavatefillanalysis/index.js +4 -3
- package/fixedzoomin/index.js +5 -2
- package/fixedzoomout/index.js +5 -2
- package/flight/index.js +5 -2
- package/floodanalysis/index.js +9 -5
- package/geologicalbodyanalysis/index.js +6 -5
- package/gpuspatialquery/index.js +9 -5
- package/hawkeye/index.js +3 -2
- package/headertemp/index.js +2 -2
- package/heatmap3d/index.js +23 -21
- package/index.js +1089 -660
- package/isolineanalysis/index.js +47 -44
- package/light/index.js +12 -11
- package/limitheightanalysis/index.js +4 -3
- package/measure/index.js +6 -3
- package/modelFlat/index.js +7 -3
- package/modelexcavate/index.js +8 -4
- package/modelfilter/index.js +17 -16
- package/modelprofileanalysis/index.js +7 -3
- package/modelselect/index.js +8 -4
- package/package.json +1 -1
- package/particleeffect/index.js +16 -15
- package/planeclip/index.js +4 -3
- package/resetview/index.js +5 -2
- package/roller/index.js +17 -12
- package/scaneffect/index.js +6 -6
- package/sceneadvancedtoimage/index.js +4 -3
- package/sceneapp/index.js +506 -260
- package/sceneset/index.js +31 -30
- package/scenetohdimage/index.js +6 -5
- package/sceneview/index.js +1093 -664
- package/screenshot/index.js +7 -3
- package/shadowanalysis/index.js +17 -14
- package/sightlineanalysis/index.js +10 -6
- package/skylineanalysis/index.js +9 -5
- package/slopeanalysis/index.js +18 -14
- package/slopeaspectanalysis/index.js +18 -14
- package/statusbar/index.js +1 -1
- package/terrainoperation/index.js +4 -3
- package/terrainprofileanalysis/index.js +9 -8
- package/underground/index.js +7 -5
- package/videofusion/index.js +16 -12
- package/videoproject/index.js +14 -10
- package/viewshedanalysis/index.js +4 -3
- package/weathereffect/index.js +12 -11
- package/wireframesketch/index.js +9 -8
package/sceneapp/index.js
CHANGED
|
@@ -133,7 +133,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".kq-dynamicplotting-component[data-v-c
|
|
|
133
133
|
|
|
134
134
|
/***/ }),
|
|
135
135
|
|
|
136
|
-
/***/
|
|
136
|
+
/***/ 8622:
|
|
137
137
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
138
138
|
|
|
139
139
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7705);
|
|
@@ -142,14 +142,14 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".kq-dynamicplotting-component[data-v-c
|
|
|
142
142
|
|
|
143
143
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
144
144
|
// Module
|
|
145
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".tool-bar-wrapper .tool-bar-wrapper-item[data-v-
|
|
145
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".tool-bar-wrapper .tool-bar-wrapper-item[data-v-989586f6]{position:relative;top:21px;right:76px;z-index:3000}.tool-bar-wrapper .kq-tool-bar .kq-tool-bar-wrap>ul[data-v-989586f6]:first-child{border-radius:4px 0 0 4px}.tool-bar-wrapper .kq-tool-bar .kq-tool-bar-wrap>ul[data-v-989586f6]:last-child{border-radius:0 4px 4px 0}.tool-bar-wrapper .ctrl-btn[data-v-989586f6]{position:absolute;top:0;right:0px;height:38px;width:19px;padding:0;border:none;box-shadow:var(--kq-box-shadow);transition:all .15s ease-in-out}.tool-bar-wrapper .ctrl-btn.ctrl-btn-hide .kq-icon[data-v-989586f6]{transform:rotate(180deg)}.tool-bar-wrapper .kq3d-underground[data-v-989586f6]{padding-left:12px}.tool-bar-wrapper .kq-form[data-v-989586f6]{margin-top:2px}", ""]);
|
|
146
146
|
// Exports
|
|
147
147
|
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
148
148
|
|
|
149
149
|
|
|
150
150
|
/***/ }),
|
|
151
151
|
|
|
152
|
-
/***/
|
|
152
|
+
/***/ 5109:
|
|
153
153
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
154
154
|
|
|
155
155
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7705);
|
|
@@ -163,6 +163,22 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".tool-box-wrapper-3d .kq-icon_grid{col
|
|
|
163
163
|
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
164
164
|
|
|
165
165
|
|
|
166
|
+
/***/ }),
|
|
167
|
+
|
|
168
|
+
/***/ 1939:
|
|
169
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
170
|
+
|
|
171
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7705);
|
|
172
|
+
/* 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__);
|
|
173
|
+
// Imports
|
|
174
|
+
|
|
175
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
176
|
+
// Module
|
|
177
|
+
___CSS_LOADER_EXPORT___.push([module.id, "\n.print3-close-button[data-v-061f2d10] {\r\n padding: 0px !important;\r\n position: absolute;\r\n color: var(--kq-color-primary);\r\n top: 16px;\r\n right: 66px;\r\n cursor: pointer;\r\n width: 42px;\r\n height: 42px;\r\n font-size: 22px;\r\n z-index: 999999;\r\n border-radius: 50%;\r\n box-shadow: var(--kq-light-shadow);\n}\r\n", ""]);
|
|
178
|
+
// Exports
|
|
179
|
+
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
180
|
+
|
|
181
|
+
|
|
166
182
|
/***/ }),
|
|
167
183
|
|
|
168
184
|
/***/ 3379:
|
|
@@ -531,6 +547,13 @@ module.exports = require("element-plus/dist/index.full.js");
|
|
|
531
547
|
|
|
532
548
|
/***/ }),
|
|
533
549
|
|
|
550
|
+
/***/ 8618:
|
|
551
|
+
/***/ (function(module) {
|
|
552
|
+
|
|
553
|
+
module.exports = require("shpjs");
|
|
554
|
+
|
|
555
|
+
/***/ }),
|
|
556
|
+
|
|
534
557
|
/***/ 7080:
|
|
535
558
|
/***/ (function(module) {
|
|
536
559
|
|
|
@@ -654,6 +677,36 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
|
|
|
654
677
|
/******/ };
|
|
655
678
|
/******/ }();
|
|
656
679
|
/******/
|
|
680
|
+
/******/ /* webpack/runtime/create fake namespace object */
|
|
681
|
+
/******/ !function() {
|
|
682
|
+
/******/ var getProto = Object.getPrototypeOf ? function(obj) { return Object.getPrototypeOf(obj); } : function(obj) { return obj.__proto__; };
|
|
683
|
+
/******/ var leafPrototypes;
|
|
684
|
+
/******/ // create a fake namespace object
|
|
685
|
+
/******/ // mode & 1: value is a module id, require it
|
|
686
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
|
687
|
+
/******/ // mode & 4: return value when already ns object
|
|
688
|
+
/******/ // mode & 16: return value when it's Promise-like
|
|
689
|
+
/******/ // mode & 8|1: behave like require
|
|
690
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
|
691
|
+
/******/ if(mode & 1) value = this(value);
|
|
692
|
+
/******/ if(mode & 8) return value;
|
|
693
|
+
/******/ if(typeof value === 'object' && value) {
|
|
694
|
+
/******/ if((mode & 4) && value.__esModule) return value;
|
|
695
|
+
/******/ if((mode & 16) && typeof value.then === 'function') return value;
|
|
696
|
+
/******/ }
|
|
697
|
+
/******/ var ns = Object.create(null);
|
|
698
|
+
/******/ __webpack_require__.r(ns);
|
|
699
|
+
/******/ var def = {};
|
|
700
|
+
/******/ leafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];
|
|
701
|
+
/******/ for(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {
|
|
702
|
+
/******/ Object.getOwnPropertyNames(current).forEach(function(key) { def[key] = function() { return value[key]; }; });
|
|
703
|
+
/******/ }
|
|
704
|
+
/******/ def['default'] = function() { return value; };
|
|
705
|
+
/******/ __webpack_require__.d(ns, def);
|
|
706
|
+
/******/ return ns;
|
|
707
|
+
/******/ };
|
|
708
|
+
/******/ }();
|
|
709
|
+
/******/
|
|
657
710
|
/******/ /* webpack/runtime/define property getters */
|
|
658
711
|
/******/ !function() {
|
|
659
712
|
/******/ // define getter functions for harmony exports
|
|
@@ -703,6 +756,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
703
756
|
var es_array_push_js_ = __webpack_require__(2118);
|
|
704
757
|
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.constructor.js"
|
|
705
758
|
var esnext_iterator_constructor_js_ = __webpack_require__(8470);
|
|
759
|
+
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.filter.js"
|
|
760
|
+
var esnext_iterator_filter_js_ = __webpack_require__(2753);
|
|
706
761
|
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.for-each.js"
|
|
707
762
|
var esnext_iterator_for_each_js_ = __webpack_require__(1058);
|
|
708
763
|
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.map.js"
|
|
@@ -895,16 +950,17 @@ const resourceApi = {
|
|
|
895
950
|
}
|
|
896
951
|
};
|
|
897
952
|
/* harmony default export */ var api_resourceApi = (resourceApi);
|
|
953
|
+
// EXTERNAL MODULE: external "@kq_npm/client3d_webgl_vue"
|
|
954
|
+
var client3d_webgl_vue_ = __webpack_require__(6459);
|
|
898
955
|
// EXTERNAL MODULE: external "@element-plus/icons-vue"
|
|
899
956
|
var icons_vue_ = __webpack_require__(8422);
|
|
900
957
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
901
958
|
var client_icons_vue_ = __webpack_require__(348);
|
|
902
|
-
// EXTERNAL MODULE: external "@kq_npm/client3d_webgl_vue"
|
|
903
|
-
var client3d_webgl_vue_ = __webpack_require__(6459);
|
|
904
959
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
905
960
|
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
906
961
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/sceneapp/components/AppToolBar.vue?vue&type=script&setup=true&lang=js
|
|
907
962
|
|
|
963
|
+
const _withScopeId = n => (_pushScopeId("data-v-989586f6"), n = n(), _popScopeId(), n);
|
|
908
964
|
const _hoisted_1 = {
|
|
909
965
|
class: "tool-bar-wrapper"
|
|
910
966
|
};
|
|
@@ -921,12 +977,11 @@ const _hoisted_2 = {
|
|
|
921
977
|
__name: 'AppToolBar',
|
|
922
978
|
emits: ["contrast"],
|
|
923
979
|
setup(__props, {
|
|
924
|
-
emit
|
|
980
|
+
emit
|
|
925
981
|
}) {
|
|
926
982
|
const {
|
|
927
983
|
proxy
|
|
928
984
|
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
929
|
-
const emit = __emit;
|
|
930
985
|
const props_params = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.inject)("props_params");
|
|
931
986
|
const portalPublicUrl = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.inject)("portalPublicUrl");
|
|
932
987
|
let isShowKqToolbar = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(true);
|
|
@@ -1010,12 +1065,12 @@ const _hoisted_2 = {
|
|
|
1010
1065
|
childComponentProps: {
|
|
1011
1066
|
isCheckedShow: false,
|
|
1012
1067
|
skecthAttributes: {
|
|
1013
|
-
geometryServerUrl:
|
|
1014
|
-
geometryServerToken:
|
|
1068
|
+
geometryServerUrl: portalPublicUrl.value.geometryServerUrl,
|
|
1069
|
+
geometryServerToken: props_params.value.ua_token
|
|
1015
1070
|
},
|
|
1016
1071
|
featureAttributes: {
|
|
1017
|
-
geometryServerUrl:
|
|
1018
|
-
geometryServerToken:
|
|
1072
|
+
geometryServerUrl: portalPublicUrl.value.geometryServerUrl,
|
|
1073
|
+
geometryServerToken: props_params.value.ua_token
|
|
1019
1074
|
}
|
|
1020
1075
|
}
|
|
1021
1076
|
});
|
|
@@ -1089,8 +1144,8 @@ const _hoisted_2 = {
|
|
|
1089
1144
|
childComponent: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.markRaw)(client_common_vue_.KqFeatureIdentifyResult),
|
|
1090
1145
|
destroyDynamics: true,
|
|
1091
1146
|
childComponentProps: {
|
|
1092
|
-
geometryServerUrl:
|
|
1093
|
-
geometryServerToken:
|
|
1147
|
+
geometryServerUrl: portalPublicUrl.value.geometryServerUrl,
|
|
1148
|
+
geometryServerToken: props_params.value.ua_token,
|
|
1094
1149
|
isLocation: true
|
|
1095
1150
|
},
|
|
1096
1151
|
beforeHideMethod: function () {
|
|
@@ -1158,9 +1213,9 @@ const _hoisted_2 = {
|
|
|
1158
1213
|
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
|
|
1159
1214
|
var injectStylesIntoStyleTag = __webpack_require__(3379);
|
|
1160
1215
|
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
|
|
1161
|
-
// 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/sceneapp/components/AppToolBar.vue?vue&type=style&index=0&id=
|
|
1162
|
-
var
|
|
1163
|
-
;// 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/sceneapp/components/AppToolBar.vue?vue&type=style&index=0&id=
|
|
1216
|
+
// 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/sceneapp/components/AppToolBar.vue?vue&type=style&index=0&id=989586f6&lang=scss&scoped=true
|
|
1217
|
+
var AppToolBarvue_type_style_index_0_id_989586f6_lang_scss_scoped_true = __webpack_require__(8622);
|
|
1218
|
+
;// 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/sceneapp/components/AppToolBar.vue?vue&type=style&index=0&id=989586f6&lang=scss&scoped=true
|
|
1164
1219
|
|
|
1165
1220
|
|
|
1166
1221
|
|
|
@@ -1169,12 +1224,12 @@ var options = {};
|
|
|
1169
1224
|
options.insert = "head";
|
|
1170
1225
|
options.singleton = false;
|
|
1171
1226
|
|
|
1172
|
-
var update = injectStylesIntoStyleTag_default()(
|
|
1227
|
+
var update = injectStylesIntoStyleTag_default()(AppToolBarvue_type_style_index_0_id_989586f6_lang_scss_scoped_true/* default */.Z, options);
|
|
1173
1228
|
|
|
1174
1229
|
|
|
1175
1230
|
|
|
1176
|
-
/* harmony default export */ var
|
|
1177
|
-
;// CONCATENATED MODULE: ./src/webgl/sceneapp/components/AppToolBar.vue?vue&type=style&index=0&id=
|
|
1231
|
+
/* harmony default export */ var components_AppToolBarvue_type_style_index_0_id_989586f6_lang_scss_scoped_true = (AppToolBarvue_type_style_index_0_id_989586f6_lang_scss_scoped_true/* default.locals */.Z.locals || {});
|
|
1232
|
+
;// CONCATENATED MODULE: ./src/webgl/sceneapp/components/AppToolBar.vue?vue&type=style&index=0&id=989586f6&lang=scss&scoped=true
|
|
1178
1233
|
|
|
1179
1234
|
// EXTERNAL MODULE: ./node_modules/vue-loader/dist/exportHelper.js
|
|
1180
1235
|
var exportHelper = __webpack_require__(6021);
|
|
@@ -1185,11 +1240,9 @@ var exportHelper = __webpack_require__(6021);
|
|
|
1185
1240
|
;
|
|
1186
1241
|
|
|
1187
1242
|
|
|
1188
|
-
const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(AppToolBarvue_type_script_setup_true_lang_js, [['__scopeId',"data-v-
|
|
1243
|
+
const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(AppToolBarvue_type_script_setup_true_lang_js, [['__scopeId',"data-v-989586f6"]])
|
|
1189
1244
|
|
|
1190
1245
|
/* harmony default export */ var AppToolBar = (__exports__);
|
|
1191
|
-
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.filter.js"
|
|
1192
|
-
var esnext_iterator_filter_js_ = __webpack_require__(2753);
|
|
1193
1246
|
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.find.js"
|
|
1194
1247
|
var esnext_iterator_find_js_ = __webpack_require__(8697);
|
|
1195
1248
|
// EXTERNAL MODULE: external "core-js/modules/web.dom-exception.stack.js"
|
|
@@ -2003,8 +2056,6 @@ function createNewChildren(children) {
|
|
|
2003
2056
|
});
|
|
2004
2057
|
return newChildren;
|
|
2005
2058
|
}
|
|
2006
|
-
;// CONCATENATED MODULE: external "shpjs"
|
|
2007
|
-
var external_shpjs_namespaceObject = require("shpjs");
|
|
2008
2059
|
;// CONCATENATED MODULE: external "dompurify"
|
|
2009
2060
|
var external_dompurify_namespaceObject = require("dompurify");
|
|
2010
2061
|
;// CONCATENATED MODULE: ./src/common/_utils/util.js
|
|
@@ -2072,7 +2123,8 @@ if(!defaultShowLayerNames){return isShowAllLayers;}else{let hasId=false;for(let
|
|
|
2072
2123
|
* @callbackFun 回调方法 传入解析后的features数组
|
|
2073
2124
|
*/function uploadCad(serverUrl,file,ua_token,language,epsg,callbackFun){if(serverUrl===""||serverUrl===undefined||serverUrl===null){KqMessage({message:language.value.importcadaddresserror+"!",type:"error",duration:2000});//callbackFun();
|
|
2074
2125
|
return;}let params=new KqGIS.GeometryAnalysis.CadParserParams({file:file});let dataUrl=serverUrl+"?ua_token="+ua_token;new KqGIS.GeometryAnalysis.CadParserService(dataUrl,{eventListeners:{processCompleted:response=>{const result=response.result;if(result){if(result.resultcode==="success"){let features=[];for(let i=0;i<result.result.length;i++){for(let j=0;j<result.result[i].features.length;j++){features.push(result.result[i].features[j]);}}let srs="";if(result.result[0].srs){srs=result.result[0].srs?result.result[0].srs:epsg?`EPSG:${epsg}`:"EPSG:4326";}else if(result.result[0].crs){let crs=result.result[0].crs.properties.name;srs="EPSG"+crs.substring(crs.lastIndexOf(":"));}if(!srs){srs="EPSG:3857";}let data={type:"FeatureCollection",srs:srs,features:features};if(srs==="EPSG:4326"||srs.indexOf("CRS84")>=0){callbackFun(data);}else{let projectfeatures=[];data.features.forEach(f=>{projectfeatures.push(f);});new KqGIS.GeometryAnalysis.ProjectSystemService(dataUrl,{eventListeners:{processCompleted:srsResponse=>{if(srsResponse.result.result.epsg!=4326){projectTransform(dataUrl,srsResponse.result.result.epsg,// inPrj
|
|
2075
|
-
"4326",projectfeatures,function(datafeature){let dataf={type:"FeatureCollection",features:datafeature};callbackFun&&callbackFun(dataf);});}else{let data={type:"FeatureCollection",features:projectfeatures};callbackFun&&callbackFun(data);}},processFailed:()=>{callbackFun();}}}).processAsync({srs:data.srs});}}else{KqMessage({message:language.imporcaderror+"!",type:"error",duration:2000});callbackFun();}}else{KqMessage({message:language.imporcaderror+"!",type:"error",duration:2000});callbackFun();}},processFailed:()=>{KqMessage({message:language.importshperror+"!",type:"error",duration:2000});callbackFun();}}}).processAsync(params);}function uploadSHP(file,callbackFun){var reader=new FileReader();reader.onload=function(e){
|
|
2126
|
+
"4326",projectfeatures,function(datafeature){let dataf={type:"FeatureCollection",features:datafeature};callbackFun&&callbackFun(dataf);});}else{let data={type:"FeatureCollection",features:projectfeatures};callbackFun&&callbackFun(data);}},processFailed:()=>{callbackFun();}}}).processAsync({srs:data.srs});}}else{KqMessage({message:language.imporcaderror+"!",type:"error",duration:2000});callbackFun();}}else{KqMessage({message:language.imporcaderror+"!",type:"error",duration:2000});callbackFun();}},processFailed:()=>{KqMessage({message:language.importshperror+"!",type:"error",duration:2000});callbackFun();}}}).processAsync(params);}function uploadSHP(file,callbackFun){var reader=new FileReader();reader.onload=async function(e){// 动态引入shpjs 解决动标和BI项目的冲突问题
|
|
2127
|
+
let shp=await Promise.resolve(/* import() */).then(__webpack_require__.t.bind(__webpack_require__, 8618, 23));let binary=e.target.result;let _shp=shp;let _getShapefile=null;if(typeof shp==="object"&&shp.default){_shp=shp.default;}if(typeof _shp==="object"){_getShapefile=_shp.getShapefile;}else if(typeof _shp==="function"){_getShapefile=_shp;}_getShapefile(binary).then(function(data){if(Array.isArray(data)){let features=[];for(let i=0;i<data.length;i++){for(let j=0;j<data[i].features.length;j++){features.push(data[i].features[j]);}}let fdata={type:"FeatureCollection",features:features};callbackFun&&callbackFun(fdata);}else{data.features&&data.features.forEach(ele=>{delete ele.geometry.bbox;});callbackFun&&callbackFun(data);}});};reader.readAsArrayBuffer(file);}/**
|
|
2076
2128
|
* 上传解析shp文件
|
|
2077
2129
|
* @serverUrl 服务url
|
|
2078
2130
|
* @file 上传file文件流
|
|
@@ -2241,11 +2293,11 @@ let m=Math.floor((Number(temp1)-Number(f))*60);return d+"°"+f+"′"+m+"″";}/*
|
|
|
2241
2293
|
* @param {Object} target - 目标 dom 元素
|
|
2242
2294
|
* @param {string} newClass - 要添加的class
|
|
2243
2295
|
* @param {boolean} [isUnshift=false] - class是否要添加到最前面;默认false,添加到最后
|
|
2244
|
-
*/function addClass(target,newClass,isUnshift=false){var attrArr=target.getAttribute("class").split(" ");if(isUnshift){if(XEUtils.isArray(newClass)){for(var i=0,item;item=newClass[i++];){attrArr.unshift(item);}}else{attrArr.unshift(newClass);}}else{if(XEUtils.isArray(newClass)){for(var i=0,item;item=newClass[i++];){attrArr.push(item);}}else{attrArr.push(newClass);}}target.setAttribute("class",attrArr.join(" "));}/**
|
|
2296
|
+
*/function addClass(target,newClass,isUnshift=false){if(target){var attrArr=target.getAttribute("class").split(" ");if(isUnshift){if(XEUtils.isArray(newClass)){for(var i=0,item;item=newClass[i++];){attrArr.unshift(item);}}else{attrArr.unshift(newClass);}}else{if(XEUtils.isArray(newClass)){for(var i=0,item;item=newClass[i++];){attrArr.push(item);}}else{attrArr.push(newClass);}}target.setAttribute("class",attrArr.join(" "));}}/**
|
|
2245
2297
|
* @description 删除node节点中的class
|
|
2246
2298
|
* @param {Object} target - 目标 dom 元素
|
|
2247
2299
|
* @param {string} oldClass - 要删除的class
|
|
2248
|
-
*/function removeClass(target,oldClass){var attrArr=target.getAttribute("class").split(" ");if(XEUtils.isString(oldClass)){attrArr.forEach((item,index)=>{if(item===oldClass){attrArr.splice(index,1);}});}else if(XEUtils.isArray(oldClass)){attrArr.forEach((item,index)=>{oldClass.forEach((classItem,idx)=>{if(item===classItem){delete attrArr[index];}});});attrArr=attrArr.filter(function(item){return item!=""||!item;});}target.setAttribute("class",attrArr.join(" "));}/**
|
|
2300
|
+
*/function removeClass(target,oldClass){if(target){var attrArr=target.getAttribute("class").split(" ");if(XEUtils.isString(oldClass)){attrArr.forEach((item,index)=>{if(item===oldClass){attrArr.splice(index,1);}});}else if(XEUtils.isArray(oldClass)){attrArr.forEach((item,index)=>{oldClass.forEach((classItem,idx)=>{if(item===classItem){delete attrArr[index];}});});attrArr=attrArr.filter(function(item){return item!=""||!item;});}target.setAttribute("class",attrArr.join(" "));}}/**
|
|
2249
2301
|
* @description 计算组件位置,position 支持的格式为:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
2250
2302
|
* @param {Object} boxElem - 组件容器 dom 元素
|
|
2251
2303
|
* @param {Object} props - 组件参数
|
|
@@ -2273,11 +2325,11 @@ function bind(fn,obj){let slice=Array.prototype.slice;if(fn.bind){return fn.bind
|
|
|
2273
2325
|
* @param {Object} boxElem - 组件容器 dom 元素
|
|
2274
2326
|
* @param {Object} props - 组件参数,包括showHeaderTemp、isCollapseHeaderTemp、headerTempTitle、headerTempIcon、isRight四个参数
|
|
2275
2327
|
* @param {Object} headerTempRef - 组件header 元素
|
|
2276
|
-
*/let stopSetTitle,stopSetIcon,stopSetRight,stopDefaultHeaderTempTitle;const createHeaderTemp=(boxElem,props,headerTempRef,defaultHeaderTempTitle=null,clickCallback)=>{stopSetTitle&&stopSetTitle();stopSetIcon&&stopSetIcon();stopSetRight&&stopSetRight();if(defaultHeaderTempTitle){stopDefaultHeaderTempTitle&&stopDefaultHeaderTempTitle();}let{showHeaderTemp,isCollapseHeaderTemp,headerTempTitle,headerTempIcon,isRight,showShadow}=props;if(!showHeaderTemp.value)return;let _isCollapseHeaderTemp=isCollapseHeaderTemp.value;const setCollapseHeaderTemp=(__isCollapseHeaderTemp,__showShadow,isClick)=>{let _btnBox=headerTempRef.value&&headerTempRef.value.childNodes[1];let _title=headerTempTitle.value?XEUtils.toValueString(headerTempTitle.value):defaultHeaderTempTitle&&defaultHeaderTempTitle.value?defaultHeaderTempTitle.value:null;// 初始化时禁止动画效果
|
|
2328
|
+
*/let stopSetTitle,stopSetIcon,stopSetRight,stopDefaultHeaderTempTitle;const createHeaderTemp=(boxElem,props,headerTempRef,defaultHeaderTempTitle=null,clickCallback)=>{stopSetTitle&&stopSetTitle();stopSetIcon&&stopSetIcon();stopSetRight&&stopSetRight();if(defaultHeaderTempTitle){stopDefaultHeaderTempTitle&&stopDefaultHeaderTempTitle();}let{showHeaderTemp,isCollapseHeaderTemp,headerTempTitle,headerTempIcon,isRight,showShadow}=props;if(!showHeaderTemp.value)return;if(!headerTempRef.value)return;let _isCollapseHeaderTemp=isCollapseHeaderTemp.value;const setCollapseHeaderTemp=(__isCollapseHeaderTemp,__showShadow,isClick)=>{if(headerTempRef.value){let _btnBox=headerTempRef.value&&headerTempRef.value.childNodes[1];let _title=headerTempTitle.value?XEUtils.toValueString(headerTempTitle.value):defaultHeaderTempTitle&&defaultHeaderTempTitle.value?defaultHeaderTempTitle.value:null;// 初始化时禁止动画效果
|
|
2277
2329
|
addClass(boxElem,["kq-is-hide-no-transition"]);if(isClick){// 点击时打开动画效果
|
|
2278
2330
|
removeClass(boxElem,["kq-is-hide-no-transition"]);}if(__isCollapseHeaderTemp){// 收起
|
|
2279
2331
|
if(__showShadow){addClass(boxElem,["kq-is-hide","kq-light-shadow"]);removeClass(boxElem,["kq-is-show","kq-box-shadow"]);}else{addClass(boxElem,["kq-is-hide"]);removeClass(boxElem,["kq-is-show"]);}isClick&&_btnBox.setAttribute("title",_title);clickCallback&&clickCallback(false);}else{// 展开
|
|
2280
|
-
if(__showShadow){addClass(boxElem,["kq-is-show","kq-box-shadow"]);removeClass(boxElem,["kq-is-hide","kq-light-shadow"]);}else{addClass(boxElem,["kq-is-show"]);removeClass(boxElem,["kq-is-hide"]);}isClick&&_btnBox.removeAttribute("title");clickCallback&&clickCallback(true);}};setCollapseHeaderTemp(_isCollapseHeaderTemp,showShadow&&showShadow.value);isRight.value?addClass(boxElem,"kq-is-right"):addClass(boxElem,"kq-is-left");const ctrlFn=()=>{_isCollapseHeaderTemp=!_isCollapseHeaderTemp;setCollapseHeaderTemp(_isCollapseHeaderTemp,showShadow&&showShadow.value,true);};if(defaultHeaderTempTitle){stopDefaultHeaderTempTitle=watch(()=>defaultHeaderTempTitle.value,(newVal,oldVal)=>{setInnerHtml(headerTempRef.value.childNodes[0],newVal);headerTempRef.value.childNodes[1].setAttribute("title",newVal);});}stopSetTitle=watch(()=>headerTempTitle.value,(newVal,oldVal)=>{if(headerTempRef.value){setInnerHtml(headerTempRef.value.childNodes[0],newVal);}});stopSetIcon=watch(()=>headerTempIcon.value,(newVal,oldVal)=>{var _node=document.querySelector(".kq-control-header-temp_btn");render(h(KqIcon,{size:16},()=>h(newVal)),_node);if(_node.childNodes.length===2){_node.childNodes[0].remove();}});stopSetRight=watch(()=>isRight.value,(newVal,oldVal)=>{if(!newVal){addClass(boxElem,"kq-is-left");}else{removeClass(boxElem,"kq-is-left");}});return h("div",{class:["kq-control-header-temp"]},[h("h4",{class:"_title"},headerTempTitle.value?XEUtils.toValueString(headerTempTitle.value):defaultHeaderTempTitle.value?defaultHeaderTempTitle.value:"标题"),h("div",{class:["_btn","kq-control-header-temp_btn"],onClick:ctrlFn,title:_isCollapseHeaderTemp?headerTempTitle.value?XEUtils.toValueString(headerTempTitle.value):defaultHeaderTempTitle.value?defaultHeaderTempTitle.value:null:null},h(headerTempIcon.value?XEUtils.isString(headerTempIcon.value)?h("i",{class:[headerTempIcon.value,"kq-icon"]}):h(KqIcon,{size:16},()=>h(headerTempIcon.value)):null))]);};/**
|
|
2332
|
+
if(__showShadow){addClass(boxElem,["kq-is-show","kq-box-shadow"]);removeClass(boxElem,["kq-is-hide","kq-light-shadow"]);}else{addClass(boxElem,["kq-is-show"]);removeClass(boxElem,["kq-is-hide"]);}isClick&&_btnBox.removeAttribute("title");clickCallback&&clickCallback(true);}}};setCollapseHeaderTemp(_isCollapseHeaderTemp,showShadow&&showShadow.value);isRight.value?addClass(boxElem,"kq-is-right"):addClass(boxElem,"kq-is-left");const ctrlFn=()=>{_isCollapseHeaderTemp=!_isCollapseHeaderTemp;setCollapseHeaderTemp(_isCollapseHeaderTemp,showShadow&&showShadow.value,true);};if(defaultHeaderTempTitle){stopDefaultHeaderTempTitle=watch(()=>defaultHeaderTempTitle.value,(newVal,oldVal)=>{setInnerHtml(headerTempRef.value.childNodes[0],newVal);headerTempRef.value.childNodes[1].setAttribute("title",newVal);});}stopSetTitle=watch(()=>headerTempTitle.value,(newVal,oldVal)=>{if(headerTempRef.value){setInnerHtml(headerTempRef.value.childNodes[0],newVal);}});stopSetIcon=watch(()=>headerTempIcon.value,(newVal,oldVal)=>{var _node=document.querySelector(".kq-control-header-temp_btn");render(h(KqIcon,{size:16},()=>h(newVal)),_node);if(_node.childNodes.length===2){_node.childNodes[0].remove();}});stopSetRight=watch(()=>isRight.value,(newVal,oldVal)=>{if(!newVal){addClass(boxElem,"kq-is-left");}else{removeClass(boxElem,"kq-is-left");}});return h("div",{class:["kq-control-header-temp"]},[h("h4",{class:"_title"},headerTempTitle.value?XEUtils.toValueString(headerTempTitle.value):defaultHeaderTempTitle.value?defaultHeaderTempTitle.value:"标题"),h("div",{class:["_btn","kq-control-header-temp_btn"],onClick:ctrlFn,title:_isCollapseHeaderTemp?headerTempTitle.value?XEUtils.toValueString(headerTempTitle.value):defaultHeaderTempTitle.value?defaultHeaderTempTitle.value:null:null},h(headerTempIcon.value?XEUtils.isString(headerTempIcon.value)?h("i",{class:[headerTempIcon.value,"kq-icon"]}):h(KqIcon,{size:16},()=>h(headerTempIcon.value)):null))]);};/**
|
|
2281
2333
|
* @returns {boolean}
|
|
2282
2334
|
*/function checkAuditTime(){// 2023 10月31
|
|
2283
2335
|
const endTime=1698768000000;//const endTime = 1686551218288;
|
|
@@ -2358,6 +2410,7 @@ if(cb)cb();};}/**
|
|
|
2358
2410
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/sceneapp/components/AppPlotting.vue?vue&type=script&setup=true&lang=js
|
|
2359
2411
|
|
|
2360
2412
|
|
|
2413
|
+
const AppPlottingvue_type_script_setup_true_lang_js_withScopeId = n => (_pushScopeId("data-v-c8ae73fc"), n = n(), _popScopeId(), n);
|
|
2361
2414
|
const AppPlottingvue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
2362
2415
|
class: "kq-dynamicplotting-component"
|
|
2363
2416
|
};
|
|
@@ -2567,9 +2620,169 @@ var AppPlottingvue_type_style_index_0_id_c8ae73fc_scoped_true_lang_scss_update =
|
|
|
2567
2620
|
const AppPlotting_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(AppPlottingvue_type_script_setup_true_lang_js, [['__scopeId',"data-v-c8ae73fc"]])
|
|
2568
2621
|
|
|
2569
2622
|
/* harmony default export */ var AppPlotting = (AppPlotting_exports_);
|
|
2570
|
-
;// CONCATENATED MODULE: ./
|
|
2571
|
-
|
|
2623
|
+
;// CONCATENATED MODULE: ./src/webgl/sceneapp/config/tool-box.js
|
|
2624
|
+
/*
|
|
2625
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
2626
|
+
* All rights reserved.
|
|
2627
|
+
*/
|
|
2572
2628
|
|
|
2629
|
+
let getTooBox = ({
|
|
2630
|
+
common,
|
|
2631
|
+
leaflet,
|
|
2632
|
+
webgl
|
|
2633
|
+
}) => {
|
|
2634
|
+
return [{
|
|
2635
|
+
label: webgl.analysis3D,
|
|
2636
|
+
isOpen: false,
|
|
2637
|
+
children: [{
|
|
2638
|
+
label: webgl.sightlineAnalysis,
|
|
2639
|
+
icon: client_icons_vue_.IconSightlineAnalysis,
|
|
2640
|
+
value: "Kq3dSightlineAnalysis"
|
|
2641
|
+
}, {
|
|
2642
|
+
label: webgl.viewshedAnalysis,
|
|
2643
|
+
icon: client_icons_vue_.IconViewshedAnalysis,
|
|
2644
|
+
value: "Kq3dViewshedAnalysis"
|
|
2645
|
+
}, {
|
|
2646
|
+
label: webgl.shadowAnalysis,
|
|
2647
|
+
icon: client_icons_vue_.IconShadowAnalysis,
|
|
2648
|
+
value: "Kq3dShadowAnalysis"
|
|
2649
|
+
}, {
|
|
2650
|
+
label: webgl.modelProfileAnalysis,
|
|
2651
|
+
icon: client_icons_vue_.IconProfileAnalysis,
|
|
2652
|
+
value: "Kq3dModelProfileAnalysis"
|
|
2653
|
+
}, {
|
|
2654
|
+
label: webgl.skylineAnalysis,
|
|
2655
|
+
icon: client_icons_vue_.IconSkylineAnalysis,
|
|
2656
|
+
value: "Kq3dSkylineAnalysis"
|
|
2657
|
+
}, {
|
|
2658
|
+
label: webgl.limitHeightAnalysis,
|
|
2659
|
+
icon: client_icons_vue_.IconHeightLimitAnalysis,
|
|
2660
|
+
value: "Kq3dLimitHeightAnalysis"
|
|
2661
|
+
}, {
|
|
2662
|
+
label: webgl.floodModel + webgl.floodAnalysis1,
|
|
2663
|
+
icon: client_icons_vue_.IconFloodAnalysis,
|
|
2664
|
+
value: "ModelFloodAnalysis"
|
|
2665
|
+
}, {
|
|
2666
|
+
label: webgl.geologyBodyAnalysis,
|
|
2667
|
+
icon: client_icons_vue_.IconGeologicalAnalysis,
|
|
2668
|
+
value: "Kq3dGeologicalBodyAnalysis"
|
|
2669
|
+
}, {
|
|
2670
|
+
label: webgl.modelFilterPick,
|
|
2671
|
+
icon: client_icons_vue_.IconModelFiltering,
|
|
2672
|
+
value: "Kq3dModelFilter"
|
|
2673
|
+
}, {
|
|
2674
|
+
label: webgl.wireFrameSketch,
|
|
2675
|
+
icon: client_icons_vue_.IconWireframeSketch,
|
|
2676
|
+
value: "Kq3dWireframeSketch"
|
|
2677
|
+
}]
|
|
2678
|
+
}, {
|
|
2679
|
+
label: webgl.terrainAnalysis,
|
|
2680
|
+
isOpen: false,
|
|
2681
|
+
children: [{
|
|
2682
|
+
label: webgl.terrainOperation,
|
|
2683
|
+
icon: client_icons_vue_.IconTerrainOperation,
|
|
2684
|
+
value: "Kq3dTerrainOperation"
|
|
2685
|
+
}, {
|
|
2686
|
+
label: webgl.excavateFillAnalysis,
|
|
2687
|
+
icon: client_icons_vue_.IconExcavateFillAnalysis,
|
|
2688
|
+
value: "Kq3dExcavateFillAnalysis"
|
|
2689
|
+
}, {
|
|
2690
|
+
label: webgl.slopeAnalysis,
|
|
2691
|
+
icon: client_icons_vue_.IconSlopeAnalysis,
|
|
2692
|
+
value: "Kq3dSlopeAnalysis"
|
|
2693
|
+
}, {
|
|
2694
|
+
label: webgl.aspectAnalysis,
|
|
2695
|
+
icon: client_icons_vue_.IconAspectAnalysis,
|
|
2696
|
+
value: "Kq3dAspectAnalysis"
|
|
2697
|
+
}, {
|
|
2698
|
+
label: webgl.isolineAnalysis,
|
|
2699
|
+
icon: client_icons_vue_.IconIsolineAnalysis,
|
|
2700
|
+
value: "Kq3dIsolineAnalysis"
|
|
2701
|
+
}, {
|
|
2702
|
+
label: webgl.floodTerrain + webgl.floodAnalysis1,
|
|
2703
|
+
icon: client_icons_vue_.IconFloodAnalysis,
|
|
2704
|
+
value: "TerrainFloodAnalysis"
|
|
2705
|
+
}, {
|
|
2706
|
+
label: webgl.terrainProfileName,
|
|
2707
|
+
icon: client_icons_vue_.IconProfileAnalysis,
|
|
2708
|
+
value: "Kq3dTerrainProfileAnalysis"
|
|
2709
|
+
}]
|
|
2710
|
+
}, {
|
|
2711
|
+
label: webgl.clipAnalysis,
|
|
2712
|
+
isOpen: false,
|
|
2713
|
+
children: [{
|
|
2714
|
+
label: webgl.boxClip,
|
|
2715
|
+
icon: client_icons_vue_.IconBoxClip,
|
|
2716
|
+
value: "Kq3dBoxClip"
|
|
2717
|
+
}, {
|
|
2718
|
+
label: webgl.planeClip,
|
|
2719
|
+
icon: client_icons_vue_.IconPlaneClip,
|
|
2720
|
+
value: "Kq3dPlaneClip"
|
|
2721
|
+
}]
|
|
2722
|
+
}, {
|
|
2723
|
+
label: webgl.specialEffects,
|
|
2724
|
+
isOpen: false,
|
|
2725
|
+
children: [{
|
|
2726
|
+
label: webgl.weatherEffect,
|
|
2727
|
+
icon: client_icons_vue_.IconWeatherEffect,
|
|
2728
|
+
value: "Kq3dWeatherEffect"
|
|
2729
|
+
}, {
|
|
2730
|
+
label: webgl.particleEffect,
|
|
2731
|
+
icon: client_icons_vue_.IconParticleEffect,
|
|
2732
|
+
value: "Kq3dParticleEffect"
|
|
2733
|
+
}, {
|
|
2734
|
+
label: webgl.scanningTitle,
|
|
2735
|
+
icon: client_icons_vue_.IconScanningLine,
|
|
2736
|
+
value: "Kq3dScanEffect"
|
|
2737
|
+
}]
|
|
2738
|
+
}, {
|
|
2739
|
+
label: webgl.scene,
|
|
2740
|
+
isOpen: false,
|
|
2741
|
+
children: [{
|
|
2742
|
+
label: webgl.sceneSet,
|
|
2743
|
+
icon: client_icons_vue_.IconSceneSettings,
|
|
2744
|
+
value: "Kq3dSceneSet"
|
|
2745
|
+
}, {
|
|
2746
|
+
label: webgl.light,
|
|
2747
|
+
icon: client_icons_vue_.IconLighting,
|
|
2748
|
+
value: "Kq3dLight"
|
|
2749
|
+
}, {
|
|
2750
|
+
label: webgl.videoFusion,
|
|
2751
|
+
icon: client_icons_vue_.IconVideoFusion,
|
|
2752
|
+
value: "Kq3dVideoFusion"
|
|
2753
|
+
}, {
|
|
2754
|
+
label: webgl.videoProject,
|
|
2755
|
+
icon: client_icons_vue_.IconVideoProjection,
|
|
2756
|
+
value: "Kq3dVideoProject"
|
|
2757
|
+
}]
|
|
2758
|
+
}, {
|
|
2759
|
+
label: common.dynamicPlottingTitle,
|
|
2760
|
+
isOpen: false,
|
|
2761
|
+
children: [{
|
|
2762
|
+
label: common.dynamicPlottingTitle,
|
|
2763
|
+
icon: client_icons_vue_.IconPlottingSymbolManage,
|
|
2764
|
+
value: "dynamicplotting"
|
|
2765
|
+
}]
|
|
2766
|
+
}, {
|
|
2767
|
+
label: webgl.visualization,
|
|
2768
|
+
isOpen: false,
|
|
2769
|
+
children: [{
|
|
2770
|
+
label: webgl.heatmapTitle,
|
|
2771
|
+
icon: client_icons_vue_.IconHeatMap3D,
|
|
2772
|
+
value: "Kq3dHeatmap"
|
|
2773
|
+
}]
|
|
2774
|
+
}, {
|
|
2775
|
+
label: common.seaChart,
|
|
2776
|
+
isOpen: false,
|
|
2777
|
+
children: [{
|
|
2778
|
+
label: common.chartset,
|
|
2779
|
+
icon: client_icons_vue_.IconSeaChartSet,
|
|
2780
|
+
value: "KqChartSet"
|
|
2781
|
+
}]
|
|
2782
|
+
}];
|
|
2783
|
+
};
|
|
2784
|
+
/* harmony default export */ var tool_box = (getTooBox);
|
|
2785
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/sceneapp/components/AppToolBox.vue?vue&type=script&setup=true&lang=js
|
|
2573
2786
|
|
|
2574
2787
|
const AppToolBoxvue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
2575
2788
|
class: "tool-box-wrapper-3d"
|
|
@@ -2587,23 +2800,32 @@ const AppToolBoxvue_type_script_setup_true_lang_js_hoisted_3 = {
|
|
|
2587
2800
|
|
|
2588
2801
|
|
|
2589
2802
|
|
|
2803
|
+
|
|
2590
2804
|
const __default__ = {
|
|
2591
2805
|
name: "AppToolBox"
|
|
2592
2806
|
};
|
|
2593
|
-
/* harmony default export */ var AppToolBoxvue_type_script_setup_true_lang_js = (
|
|
2807
|
+
/* harmony default export */ var AppToolBoxvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
2594
2808
|
props: {
|
|
2595
2809
|
viewId: String
|
|
2596
2810
|
},
|
|
2811
|
+
emits: ["collapse", "openPrint"],
|
|
2597
2812
|
setup(__props, {
|
|
2598
|
-
expose: __expose
|
|
2813
|
+
expose: __expose,
|
|
2814
|
+
emit
|
|
2599
2815
|
}) {
|
|
2600
2816
|
const props = __props;
|
|
2601
2817
|
const {
|
|
2602
2818
|
proxy
|
|
2603
2819
|
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
2604
2820
|
const isShowKqToolbox = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
2605
|
-
|
|
2606
|
-
|
|
2821
|
+
// 监听toolbox 展开收起
|
|
2822
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => isShowKqToolbox.value, (newVal, oldVal) => {
|
|
2823
|
+
if (newVal) {
|
|
2824
|
+
emit("collapse", false);
|
|
2825
|
+
} else {
|
|
2826
|
+
emit("collapse", true);
|
|
2827
|
+
}
|
|
2828
|
+
});
|
|
2607
2829
|
// 获取国际化文字信息
|
|
2608
2830
|
let {
|
|
2609
2831
|
t
|
|
@@ -2612,167 +2834,9 @@ const __default__ = {
|
|
|
2612
2834
|
let language = proxy.$i18n.global.messages[langLocal];
|
|
2613
2835
|
const props_params = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.inject)("props_params");
|
|
2614
2836
|
const portalPublicUrl = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.inject)("portalPublicUrl");
|
|
2615
|
-
const mapTarget = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("mainMap");
|
|
2616
|
-
let screenshotRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
2617
|
-
let webPrintRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
2618
|
-
let isShowKqToolCommon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
2619
2837
|
let isView = true;
|
|
2620
|
-
|
|
2621
|
-
let
|
|
2622
|
-
appContext
|
|
2623
|
-
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
2624
|
-
let toolsList3d = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)([{
|
|
2625
|
-
label: language.webgl.analysis3D,
|
|
2626
|
-
isOpen: false,
|
|
2627
|
-
children: [{
|
|
2628
|
-
label: language.webgl.sightlineAnalysis,
|
|
2629
|
-
icon: client_icons_vue_.IconSightlineAnalysis,
|
|
2630
|
-
value: "Kq3dSightlineAnalysis"
|
|
2631
|
-
}, {
|
|
2632
|
-
label: language.webgl.viewshedAnalysis,
|
|
2633
|
-
icon: client_icons_vue_.IconViewshedAnalysis,
|
|
2634
|
-
value: "Kq3dViewshedAnalysis"
|
|
2635
|
-
}, {
|
|
2636
|
-
label: language.webgl.shadowAnalysis,
|
|
2637
|
-
icon: client_icons_vue_.IconShadowAnalysis,
|
|
2638
|
-
value: "Kq3dShadowAnalysis"
|
|
2639
|
-
}, {
|
|
2640
|
-
label: language.webgl.modelProfileAnalysis,
|
|
2641
|
-
icon: client_icons_vue_.IconProfileAnalysis,
|
|
2642
|
-
value: "Kq3dModelProfileAnalysis"
|
|
2643
|
-
}, {
|
|
2644
|
-
label: language.webgl.skylineAnalysis,
|
|
2645
|
-
icon: client_icons_vue_.IconSkylineAnalysis,
|
|
2646
|
-
value: "Kq3dSkylineAnalysis"
|
|
2647
|
-
}, {
|
|
2648
|
-
label: language.webgl.limitHeightAnalysis,
|
|
2649
|
-
icon: client_icons_vue_.IconHeightLimitAnalysis,
|
|
2650
|
-
value: "Kq3dLimitHeightAnalysis"
|
|
2651
|
-
}, {
|
|
2652
|
-
label: language.webgl.floodModel + language.webgl.floodAnalysis1,
|
|
2653
|
-
icon: client_icons_vue_.IconFloodAnalysis,
|
|
2654
|
-
value: "ModelFloodAnalysis"
|
|
2655
|
-
}, {
|
|
2656
|
-
label: language.webgl.geologyBodyAnalysis,
|
|
2657
|
-
icon: client_icons_vue_.IconGeologicalAnalysis,
|
|
2658
|
-
value: "Kq3dGeologicalBodyAnalysis"
|
|
2659
|
-
}, {
|
|
2660
|
-
label: language.webgl.modelFilterPick,
|
|
2661
|
-
icon: client_icons_vue_.IconModelFiltering,
|
|
2662
|
-
value: "Kq3dModelFilter"
|
|
2663
|
-
}, {
|
|
2664
|
-
label: language.webgl.wireFrameSketch,
|
|
2665
|
-
icon: client_icons_vue_.IconWireframeSketch,
|
|
2666
|
-
value: "Kq3dWireframeSketch"
|
|
2667
|
-
}]
|
|
2668
|
-
}, {
|
|
2669
|
-
label: language.webgl.terrainAnalysis,
|
|
2670
|
-
isOpen: false,
|
|
2671
|
-
children: [{
|
|
2672
|
-
label: language.webgl.terrainOperation,
|
|
2673
|
-
icon: client_icons_vue_.IconTerrainOperation,
|
|
2674
|
-
value: "Kq3dTerrainOperation"
|
|
2675
|
-
}, {
|
|
2676
|
-
label: language.webgl.excavateFillAnalysis,
|
|
2677
|
-
icon: client_icons_vue_.IconExcavateFillAnalysis,
|
|
2678
|
-
value: "Kq3dExcavateFillAnalysis"
|
|
2679
|
-
}, {
|
|
2680
|
-
label: language.webgl.slopeAnalysis,
|
|
2681
|
-
icon: client_icons_vue_.IconSlopeAnalysis,
|
|
2682
|
-
value: "Kq3dSlopeAnalysis"
|
|
2683
|
-
}, {
|
|
2684
|
-
label: language.webgl.aspectAnalysis,
|
|
2685
|
-
icon: client_icons_vue_.IconAspectAnalysis,
|
|
2686
|
-
value: "Kq3dAspectAnalysis"
|
|
2687
|
-
}, {
|
|
2688
|
-
label: language.webgl.isolineAnalysis,
|
|
2689
|
-
icon: client_icons_vue_.IconIsolineAnalysis,
|
|
2690
|
-
value: "Kq3dIsolineAnalysis"
|
|
2691
|
-
}, {
|
|
2692
|
-
label: language.webgl.floodTerrain + language.webgl.floodAnalysis1,
|
|
2693
|
-
icon: client_icons_vue_.IconFloodAnalysis,
|
|
2694
|
-
value: "TerrainFloodAnalysis"
|
|
2695
|
-
}, {
|
|
2696
|
-
label: language.webgl.terrainProfileName,
|
|
2697
|
-
icon: client_icons_vue_.IconProfileAnalysis,
|
|
2698
|
-
value: "Kq3dTerrainProfileAnalysis"
|
|
2699
|
-
}]
|
|
2700
|
-
}, {
|
|
2701
|
-
label: language.webgl.clipAnalysis,
|
|
2702
|
-
isOpen: false,
|
|
2703
|
-
children: [{
|
|
2704
|
-
label: language.webgl.boxClip,
|
|
2705
|
-
icon: client_icons_vue_.IconBoxClip,
|
|
2706
|
-
value: "Kq3dBoxClip"
|
|
2707
|
-
}, {
|
|
2708
|
-
label: language.webgl.planeClip,
|
|
2709
|
-
icon: client_icons_vue_.IconPlaneClip,
|
|
2710
|
-
value: "Kq3dPlaneClip"
|
|
2711
|
-
}]
|
|
2712
|
-
}, {
|
|
2713
|
-
label: language.webgl.specialEffects,
|
|
2714
|
-
isOpen: false,
|
|
2715
|
-
children: [{
|
|
2716
|
-
label: language.webgl.weatherEffect,
|
|
2717
|
-
icon: client_icons_vue_.IconWeatherEffect,
|
|
2718
|
-
value: "Kq3dWeatherEffect"
|
|
2719
|
-
}, {
|
|
2720
|
-
label: language.webgl.particleEffect,
|
|
2721
|
-
icon: client_icons_vue_.IconParticleEffect,
|
|
2722
|
-
value: "Kq3dParticleEffect"
|
|
2723
|
-
}, {
|
|
2724
|
-
label: language.webgl.scanningTitle,
|
|
2725
|
-
icon: client_icons_vue_.IconScanningLine,
|
|
2726
|
-
value: "Kq3dScanEffect"
|
|
2727
|
-
}]
|
|
2728
|
-
}, {
|
|
2729
|
-
label: language.webgl.scene,
|
|
2730
|
-
isOpen: false,
|
|
2731
|
-
children: [{
|
|
2732
|
-
label: language.webgl.sceneSet,
|
|
2733
|
-
icon: client_icons_vue_.IconSceneSettings,
|
|
2734
|
-
value: "Kq3dSceneSet"
|
|
2735
|
-
}, {
|
|
2736
|
-
label: language.webgl.light,
|
|
2737
|
-
icon: client_icons_vue_.IconLighting,
|
|
2738
|
-
value: "Kq3dLight"
|
|
2739
|
-
}, {
|
|
2740
|
-
label: language.webgl.videoFusion,
|
|
2741
|
-
icon: client_icons_vue_.IconVideoFusion,
|
|
2742
|
-
value: "Kq3dVideoFusion"
|
|
2743
|
-
}, {
|
|
2744
|
-
label: language.webgl.videoProject,
|
|
2745
|
-
icon: client_icons_vue_.IconVideoProjection,
|
|
2746
|
-
value: "Kq3dVideoProject"
|
|
2747
|
-
}]
|
|
2748
|
-
}, {
|
|
2749
|
-
label: language.common.dynamicPlottingTitle,
|
|
2750
|
-
isOpen: false,
|
|
2751
|
-
children: [{
|
|
2752
|
-
label: language.common.dynamicPlottingTitle,
|
|
2753
|
-
icon: client_icons_vue_.IconPlottingSymbolManage,
|
|
2754
|
-
value: "dynamicplotting",
|
|
2755
|
-
disabled: true
|
|
2756
|
-
}]
|
|
2757
|
-
}, {
|
|
2758
|
-
label: language.webgl.visualization,
|
|
2759
|
-
isOpen: false,
|
|
2760
|
-
children: [{
|
|
2761
|
-
label: language.webgl.heatmapTitle,
|
|
2762
|
-
icon: client_icons_vue_.IconHeatMap3D,
|
|
2763
|
-
value: "Kq3dHeatmap"
|
|
2764
|
-
}]
|
|
2765
|
-
}, {
|
|
2766
|
-
label: language.common.seaChart,
|
|
2767
|
-
isOpen: false,
|
|
2768
|
-
children: [{
|
|
2769
|
-
label: language.common.chartset,
|
|
2770
|
-
icon: client_icons_vue_.IconSeaChartSet,
|
|
2771
|
-
value: "KqChartSet",
|
|
2772
|
-
disabled: true
|
|
2773
|
-
}]
|
|
2774
|
-
}]);
|
|
2775
|
-
|
|
2838
|
+
// 工具箱数据
|
|
2839
|
+
let toolsList3d = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(tool_box(language));
|
|
2776
2840
|
// toolbox 选择事件
|
|
2777
2841
|
const toolboxSelect = value => {
|
|
2778
2842
|
switch (value) {
|
|
@@ -2924,34 +2988,21 @@ const __default__ = {
|
|
|
2924
2988
|
const ctrlToolBoxShow = () => {
|
|
2925
2989
|
isShowKqToolbox.value = !isShowKqToolbox.value;
|
|
2926
2990
|
};
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
let
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2991
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {});
|
|
2992
|
+
const filter = hideValues => {
|
|
2993
|
+
const data = tool_box(language);
|
|
2994
|
+
for (let i = 0; i < data.length; i++) {
|
|
2995
|
+
if (!data[i].children) continue;
|
|
2996
|
+
for (let z = data[i].children.length - 1; z >= 0; z--) {
|
|
2997
|
+
if (hideValues.indexOf(data[i].children[z].value.toLowerCase()) > -1) {
|
|
2998
|
+
data[i].children.splice(z, 1);
|
|
2999
|
+
}
|
|
2935
3000
|
}
|
|
2936
3001
|
}
|
|
2937
|
-
|
|
3002
|
+
toolsList3d.value = data;
|
|
2938
3003
|
};
|
|
2939
|
-
|
|
2940
|
-
// 禁用或启用功能菜单
|
|
2941
|
-
const disabledMenu = (name, disabled) => {
|
|
2942
|
-
toolsList3d.forEach(tool => {
|
|
2943
|
-
if (tool.children) {
|
|
2944
|
-
tool.children.forEach(child => {
|
|
2945
|
-
if (child.label === name) {
|
|
2946
|
-
child.disabled = disabled;
|
|
2947
|
-
}
|
|
2948
|
-
});
|
|
2949
|
-
}
|
|
2950
|
-
});
|
|
2951
|
-
};
|
|
2952
|
-
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {});
|
|
2953
3004
|
__expose({
|
|
2954
|
-
|
|
3005
|
+
filter
|
|
2955
3006
|
});
|
|
2956
3007
|
return (_ctx, _cache) => {
|
|
2957
3008
|
const _component_kq_tool_box = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-tool-box");
|
|
@@ -2990,23 +3041,23 @@ const __default__ = {
|
|
|
2990
3041
|
}));
|
|
2991
3042
|
;// CONCATENATED MODULE: ./src/webgl/sceneapp/components/AppToolBox.vue?vue&type=script&setup=true&lang=js
|
|
2992
3043
|
|
|
2993
|
-
// 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/sceneapp/components/AppToolBox.vue?vue&type=style&index=0&id=
|
|
2994
|
-
var
|
|
2995
|
-
;// 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/sceneapp/components/AppToolBox.vue?vue&type=style&index=0&id=
|
|
3044
|
+
// 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/sceneapp/components/AppToolBox.vue?vue&type=style&index=0&id=311cc590&lang=scss
|
|
3045
|
+
var AppToolBoxvue_type_style_index_0_id_311cc590_lang_scss = __webpack_require__(5109);
|
|
3046
|
+
;// 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/sceneapp/components/AppToolBox.vue?vue&type=style&index=0&id=311cc590&lang=scss
|
|
2996
3047
|
|
|
2997
3048
|
|
|
2998
3049
|
|
|
2999
|
-
var
|
|
3050
|
+
var AppToolBoxvue_type_style_index_0_id_311cc590_lang_scss_options = {};
|
|
3000
3051
|
|
|
3001
|
-
|
|
3002
|
-
|
|
3052
|
+
AppToolBoxvue_type_style_index_0_id_311cc590_lang_scss_options.insert = "head";
|
|
3053
|
+
AppToolBoxvue_type_style_index_0_id_311cc590_lang_scss_options.singleton = false;
|
|
3003
3054
|
|
|
3004
|
-
var
|
|
3055
|
+
var AppToolBoxvue_type_style_index_0_id_311cc590_lang_scss_update = injectStylesIntoStyleTag_default()(AppToolBoxvue_type_style_index_0_id_311cc590_lang_scss/* default */.Z, AppToolBoxvue_type_style_index_0_id_311cc590_lang_scss_options);
|
|
3005
3056
|
|
|
3006
3057
|
|
|
3007
3058
|
|
|
3008
|
-
/* harmony default export */ var
|
|
3009
|
-
;// CONCATENATED MODULE: ./src/webgl/sceneapp/components/AppToolBox.vue?vue&type=style&index=0&id=
|
|
3059
|
+
/* harmony default export */ var components_AppToolBoxvue_type_style_index_0_id_311cc590_lang_scss = (AppToolBoxvue_type_style_index_0_id_311cc590_lang_scss/* default.locals */.Z.locals || {});
|
|
3060
|
+
;// CONCATENATED MODULE: ./src/webgl/sceneapp/components/AppToolBox.vue?vue&type=style&index=0&id=311cc590&lang=scss
|
|
3010
3061
|
|
|
3011
3062
|
;// CONCATENATED MODULE: ./src/webgl/sceneapp/components/AppToolBox.vue
|
|
3012
3063
|
|
|
@@ -3017,6 +3068,88 @@ var AppToolBoxvue_type_style_index_0_id_7d73c0da_lang_scss_update = injectStyles
|
|
|
3017
3068
|
const AppToolBox_exports_ = AppToolBoxvue_type_script_setup_true_lang_js;
|
|
3018
3069
|
|
|
3019
3070
|
/* harmony default export */ var AppToolBox = (AppToolBox_exports_);
|
|
3071
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/sceneapp/components/AppClientPrint.vue?vue&type=script&setup=true&lang=js
|
|
3072
|
+
|
|
3073
|
+
|
|
3074
|
+
|
|
3075
|
+
|
|
3076
|
+
/* harmony default export */ var AppClientPrintvue_type_script_setup_true_lang_js = ({
|
|
3077
|
+
__name: 'AppClientPrint',
|
|
3078
|
+
props: {
|
|
3079
|
+
mapTarget: String
|
|
3080
|
+
},
|
|
3081
|
+
emits: ["close"],
|
|
3082
|
+
setup(__props, {
|
|
3083
|
+
emit
|
|
3084
|
+
}) {
|
|
3085
|
+
const props = __props;
|
|
3086
|
+
let print_ref = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
3087
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
3088
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {});
|
|
3089
|
+
});
|
|
3090
|
+
function onBack() {
|
|
3091
|
+
emit("close");
|
|
3092
|
+
}
|
|
3093
|
+
return (_ctx, _cache) => {
|
|
3094
|
+
const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-icon");
|
|
3095
|
+
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
3096
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.Fragment, null, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client3d_webgl_vue_.Kq3dClientPrint), {
|
|
3097
|
+
mapTarget: props.mapTarget,
|
|
3098
|
+
ref_key: "print_ref",
|
|
3099
|
+
ref: print_ref,
|
|
3100
|
+
style: {
|
|
3101
|
+
"z-index": "1001"
|
|
3102
|
+
}
|
|
3103
|
+
}, null, 8 /* PROPS */, ["mapTarget"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
3104
|
+
circle: "",
|
|
3105
|
+
title: _ctx.$t('leaflet.Return'),
|
|
3106
|
+
class: "print3-close-button",
|
|
3107
|
+
style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)({
|
|
3108
|
+
top: _ctx.top && typeof _ctx.top === 'number' ? `${_ctx.top + 16}px` : '16px'
|
|
3109
|
+
}),
|
|
3110
|
+
onClick: _cache[0] || (_cache[0] = $event => onBack())
|
|
3111
|
+
}, {
|
|
3112
|
+
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_icon, {
|
|
3113
|
+
size: 26
|
|
3114
|
+
}, {
|
|
3115
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconBack))]),
|
|
3116
|
+
_: 1 /* STABLE */
|
|
3117
|
+
})]),
|
|
3118
|
+
_: 1 /* STABLE */
|
|
3119
|
+
}, 8 /* PROPS */, ["title", "style"])], 64 /* STABLE_FRAGMENT */);
|
|
3120
|
+
};
|
|
3121
|
+
}
|
|
3122
|
+
});
|
|
3123
|
+
;// CONCATENATED MODULE: ./src/webgl/sceneapp/components/AppClientPrint.vue?vue&type=script&setup=true&lang=js
|
|
3124
|
+
|
|
3125
|
+
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/sceneapp/components/AppClientPrint.vue?vue&type=style&index=0&id=061f2d10&scoped=true&lang=css
|
|
3126
|
+
var AppClientPrintvue_type_style_index_0_id_061f2d10_scoped_true_lang_css = __webpack_require__(1939);
|
|
3127
|
+
;// 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/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/sceneapp/components/AppClientPrint.vue?vue&type=style&index=0&id=061f2d10&scoped=true&lang=css
|
|
3128
|
+
|
|
3129
|
+
|
|
3130
|
+
|
|
3131
|
+
var AppClientPrintvue_type_style_index_0_id_061f2d10_scoped_true_lang_css_options = {};
|
|
3132
|
+
|
|
3133
|
+
AppClientPrintvue_type_style_index_0_id_061f2d10_scoped_true_lang_css_options.insert = "head";
|
|
3134
|
+
AppClientPrintvue_type_style_index_0_id_061f2d10_scoped_true_lang_css_options.singleton = false;
|
|
3135
|
+
|
|
3136
|
+
var AppClientPrintvue_type_style_index_0_id_061f2d10_scoped_true_lang_css_update = injectStylesIntoStyleTag_default()(AppClientPrintvue_type_style_index_0_id_061f2d10_scoped_true_lang_css/* default */.Z, AppClientPrintvue_type_style_index_0_id_061f2d10_scoped_true_lang_css_options);
|
|
3137
|
+
|
|
3138
|
+
|
|
3139
|
+
|
|
3140
|
+
/* harmony default export */ var components_AppClientPrintvue_type_style_index_0_id_061f2d10_scoped_true_lang_css = (AppClientPrintvue_type_style_index_0_id_061f2d10_scoped_true_lang_css/* default.locals */.Z.locals || {});
|
|
3141
|
+
;// CONCATENATED MODULE: ./src/webgl/sceneapp/components/AppClientPrint.vue?vue&type=style&index=0&id=061f2d10&scoped=true&lang=css
|
|
3142
|
+
|
|
3143
|
+
;// CONCATENATED MODULE: ./src/webgl/sceneapp/components/AppClientPrint.vue
|
|
3144
|
+
|
|
3145
|
+
|
|
3146
|
+
|
|
3147
|
+
;
|
|
3148
|
+
|
|
3149
|
+
|
|
3150
|
+
const AppClientPrint_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(AppClientPrintvue_type_script_setup_true_lang_js, [['__scopeId',"data-v-061f2d10"]])
|
|
3151
|
+
|
|
3152
|
+
/* harmony default export */ var AppClientPrint = (AppClientPrint_exports_);
|
|
3020
3153
|
;// CONCATENATED MODULE: ./src/webgl/sceneapp/geojson/icons.js
|
|
3021
3154
|
/*
|
|
3022
3155
|
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
@@ -3200,12 +3333,15 @@ const getPolygonStyle = function (layerStyle) {
|
|
|
3200
3333
|
|
|
3201
3334
|
|
|
3202
3335
|
|
|
3336
|
+
|
|
3337
|
+
|
|
3338
|
+
|
|
3203
3339
|
// 属性
|
|
3204
3340
|
|
|
3205
3341
|
const SceneAppvue_type_script_setup_true_lang_js_default_ = {
|
|
3206
3342
|
name: "KqSceneApp"
|
|
3207
3343
|
};
|
|
3208
|
-
/* harmony default export */ var SceneAppvue_type_script_setup_true_lang_js = (
|
|
3344
|
+
/* harmony default export */ var SceneAppvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(SceneAppvue_type_script_setup_true_lang_js_default_, {
|
|
3209
3345
|
props: {
|
|
3210
3346
|
portalUrl: String,
|
|
3211
3347
|
portalId: String,
|
|
@@ -3217,7 +3353,9 @@ const SceneAppvue_type_script_setup_true_lang_js_default_ = {
|
|
|
3217
3353
|
}
|
|
3218
3354
|
}
|
|
3219
3355
|
},
|
|
3220
|
-
setup(__props
|
|
3356
|
+
setup(__props, {
|
|
3357
|
+
expose: __expose
|
|
3358
|
+
}) {
|
|
3221
3359
|
const props = __props;
|
|
3222
3360
|
let isShowToolBox = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(true);
|
|
3223
3361
|
let isShowScene = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(true);
|
|
@@ -3237,9 +3375,24 @@ const SceneAppvue_type_script_setup_true_lang_js_default_ = {
|
|
|
3237
3375
|
global_event_default().setDefaultMapInfo(props.target, "cesium");
|
|
3238
3376
|
let props_params = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
3239
3377
|
let portalPublicUrl = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
3378
|
+
const showPrint = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
3379
|
+
// 工具按钮
|
|
3240
3380
|
let components = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
3381
|
+
let components_default = ["kqlayertree", "kqbookmark", "kqlabel"];
|
|
3382
|
+
let compCollection = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)([{
|
|
3383
|
+
component: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.markRaw)(client3d_webgl_vue_.Kq3dMeasure),
|
|
3384
|
+
props: {
|
|
3385
|
+
showShadow: true,
|
|
3386
|
+
showHeaderTemp: true,
|
|
3387
|
+
isCollapseHeaderTemp: true
|
|
3388
|
+
}
|
|
3389
|
+
}]);
|
|
3390
|
+
// 获取全局接口地址
|
|
3241
3391
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.provide)("props_params", props_params);
|
|
3242
3392
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.provide)("portalPublicUrl", portalPublicUrl);
|
|
3393
|
+
// 工具箱实例
|
|
3394
|
+
let toolBoxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
3395
|
+
// 初始化方法
|
|
3243
3396
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeMount)(async () => {
|
|
3244
3397
|
if (!props.portalId || props.portalId === "") {
|
|
3245
3398
|
isShowScene.value = true;
|
|
@@ -3247,6 +3400,14 @@ const SceneAppvue_type_script_setup_true_lang_js_default_ = {
|
|
|
3247
3400
|
await loadResourceInfo(props);
|
|
3248
3401
|
}
|
|
3249
3402
|
});
|
|
3403
|
+
// 关闭打印
|
|
3404
|
+
const closePrint = () => {
|
|
3405
|
+
showPrint.value = false;
|
|
3406
|
+
};
|
|
3407
|
+
// 打开打印
|
|
3408
|
+
const openPrint = () => {
|
|
3409
|
+
showPrint.value = true;
|
|
3410
|
+
};
|
|
3250
3411
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {});
|
|
3251
3412
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
3252
3413
|
global_event_default().destroy();
|
|
@@ -3420,7 +3581,6 @@ const SceneAppvue_type_script_setup_true_lang_js_default_ = {
|
|
|
3420
3581
|
vm._layerManager.setLayerVisibleStateByIds([layerData.guid], false);
|
|
3421
3582
|
}
|
|
3422
3583
|
}
|
|
3423
|
-
// ref_toolbox.value.ctrlChildenShow(vm._layerManager._layerListData);
|
|
3424
3584
|
// geojson数据条件过滤
|
|
3425
3585
|
if (layerData.addType == "geojson" && layerData.filters) {
|
|
3426
3586
|
if (promise) {
|
|
@@ -3550,30 +3710,38 @@ const SceneAppvue_type_script_setup_true_lang_js_default_ = {
|
|
|
3550
3710
|
}
|
|
3551
3711
|
}
|
|
3552
3712
|
// 显示工具按钮
|
|
3553
|
-
function showToolBar() {
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3713
|
+
function showToolBar(names) {
|
|
3714
|
+
if (names) components_default = names;
|
|
3715
|
+
const ops = [];
|
|
3716
|
+
if (components_default && components_default.indexOf("kqlayertree") > -1 || !components_default) {
|
|
3717
|
+
ops.push({
|
|
3718
|
+
component: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.markRaw)(client_common_vue_.KqLayerTree),
|
|
3719
|
+
props: {
|
|
3720
|
+
mapTarget: props.target,
|
|
3721
|
+
showHeaderTemp: true
|
|
3722
|
+
},
|
|
3723
|
+
methods: data => {}
|
|
3724
|
+
});
|
|
3725
|
+
}
|
|
3726
|
+
if (components_default && components_default.indexOf("kqbookmark") > -1 || !components_default) {
|
|
3727
|
+
ops.push({
|
|
3728
|
+
component: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.markRaw)(client_common_vue_.KqBookmark),
|
|
3729
|
+
props: {
|
|
3730
|
+
showHeaderTemp: true,
|
|
3731
|
+
isCollapseHeaderTemp: true
|
|
3561
3732
|
}
|
|
3562
|
-
}
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
isCollapseHeaderTemp: true
|
|
3575
|
-
}
|
|
3576
|
-
}];
|
|
3733
|
+
});
|
|
3734
|
+
}
|
|
3735
|
+
if (components_default && components_default.indexOf("kqlabel") > -1 || !components_default) {
|
|
3736
|
+
ops.push({
|
|
3737
|
+
component: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.markRaw)(client_common_vue_.KqLabel),
|
|
3738
|
+
props: {
|
|
3739
|
+
showHeaderTemp: true,
|
|
3740
|
+
isCollapseHeaderTemp: true
|
|
3741
|
+
}
|
|
3742
|
+
});
|
|
3743
|
+
}
|
|
3744
|
+
components.value = ops;
|
|
3577
3745
|
}
|
|
3578
3746
|
// 多窗口对比
|
|
3579
3747
|
const contrast = isContrast => {
|
|
@@ -3583,11 +3751,74 @@ const SceneAppvue_type_script_setup_true_lang_js_default_ = {
|
|
|
3583
3751
|
isShowToolBox.value = true;
|
|
3584
3752
|
}
|
|
3585
3753
|
};
|
|
3754
|
+
const filterBoxData = hideValues => {
|
|
3755
|
+
toolBoxRef.value.filter(hideValues);
|
|
3756
|
+
};
|
|
3757
|
+
const updateProps = () => {
|
|
3758
|
+
components.value.forEach(p => {
|
|
3759
|
+
p.props.isCollapseHeaderTemp = false;
|
|
3760
|
+
});
|
|
3761
|
+
};
|
|
3762
|
+
|
|
3763
|
+
// 监听toolbox的收起展开
|
|
3764
|
+
const hideToolBoxFn = isHide => {
|
|
3765
|
+
if (isHide) {
|
|
3766
|
+
baseWindowMove(16, ".baseWindow_box_custom");
|
|
3767
|
+
} else {
|
|
3768
|
+
baseWindowMove(380, ".baseWindow_box_custom");
|
|
3769
|
+
}
|
|
3770
|
+
};
|
|
3771
|
+
function baseWindowMove(targetPosition, dom) {
|
|
3772
|
+
if (!dom) {
|
|
3773
|
+
dom = ".kq-base-window--box";
|
|
3774
|
+
}
|
|
3775
|
+
let timer = null;
|
|
3776
|
+
const _fn = (target, targetPosition) => {
|
|
3777
|
+
clearInterval(timer);
|
|
3778
|
+
var speed = 0;
|
|
3779
|
+
if (targetPosition == 16) {
|
|
3780
|
+
speed = -16;
|
|
3781
|
+
} else {
|
|
3782
|
+
speed = 16;
|
|
3783
|
+
}
|
|
3784
|
+
timer = setInterval(function () {
|
|
3785
|
+
let _right = Number(target.style.right.split("px")[0]);
|
|
3786
|
+
if (targetPosition == 16) {
|
|
3787
|
+
speed = (speed - _right) / 24;
|
|
3788
|
+
} else {
|
|
3789
|
+
speed = (speed + _right) / 16;
|
|
3790
|
+
}
|
|
3791
|
+
if (_right >= targetPosition && targetPosition == 380) {
|
|
3792
|
+
speed = 0;
|
|
3793
|
+
target.style.right = "380px";
|
|
3794
|
+
clearInterval(timer);
|
|
3795
|
+
} else if (_right <= targetPosition && targetPosition == 16) {
|
|
3796
|
+
speed = 0;
|
|
3797
|
+
target.style.right = "16px";
|
|
3798
|
+
clearInterval(timer);
|
|
3799
|
+
} else {
|
|
3800
|
+
target.style.right = _right + speed + "px";
|
|
3801
|
+
}
|
|
3802
|
+
}, 3.5);
|
|
3803
|
+
};
|
|
3804
|
+
let _baseWindows = document.querySelectorAll(dom);
|
|
3805
|
+
if (_baseWindows && _baseWindows.length) {
|
|
3806
|
+
_baseWindows.forEach(ele => {
|
|
3807
|
+
(ele => {
|
|
3808
|
+
_fn(ele, targetPosition);
|
|
3809
|
+
})(ele);
|
|
3810
|
+
});
|
|
3811
|
+
}
|
|
3812
|
+
}
|
|
3586
3813
|
function setResourceInfo(params) {}
|
|
3814
|
+
__expose({
|
|
3815
|
+
showToolBar,
|
|
3816
|
+
filterBoxData,
|
|
3817
|
+
updateProps
|
|
3818
|
+
});
|
|
3587
3819
|
return (_ctx, _cache) => {
|
|
3588
|
-
const _component_kq_tool_collection = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-tool-collection");
|
|
3589
3820
|
const _component_kq_scene_view = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-scene-view");
|
|
3590
|
-
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isShowScene) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_scene_view, {
|
|
3821
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.Fragment, null, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isShowScene) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_scene_view, {
|
|
3591
3822
|
key: 0,
|
|
3592
3823
|
ref_key: "sceneAppView",
|
|
3593
3824
|
ref: sceneAppView,
|
|
@@ -3596,19 +3827,34 @@ const SceneAppvue_type_script_setup_true_lang_js_default_ = {
|
|
|
3596
3827
|
scenceInfo: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(scenceInfo),
|
|
3597
3828
|
toolButtonsPosition: "bottom-right"
|
|
3598
3829
|
}, {
|
|
3599
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(
|
|
3830
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_common_vue_.KqToolCollection), {
|
|
3600
3831
|
position: "topLeft",
|
|
3601
3832
|
mode: "horizontal",
|
|
3602
3833
|
components: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(components)
|
|
3834
|
+
}, null, 8 /* PROPS */, ["components"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_common_vue_.KqToolCollection), {
|
|
3835
|
+
class: "map-measure",
|
|
3836
|
+
components: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(compCollection),
|
|
3837
|
+
position: {
|
|
3838
|
+
bottom: 130,
|
|
3839
|
+
right: 16
|
|
3840
|
+
}
|
|
3603
3841
|
}, null, 8 /* PROPS */, ["components"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(AppToolBar), {
|
|
3604
3842
|
ref: "toolBarRef",
|
|
3605
3843
|
onContrast: contrast,
|
|
3606
3844
|
viewId: sceneViewId
|
|
3607
3845
|
}, null, 512 /* NEED_PATCH */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(AppToolBox), {
|
|
3608
|
-
|
|
3609
|
-
|
|
3846
|
+
ref_key: "toolBoxRef",
|
|
3847
|
+
ref: toolBoxRef,
|
|
3848
|
+
viewId: sceneViewId,
|
|
3849
|
+
target: props.target,
|
|
3850
|
+
onOpenPrint: openPrint,
|
|
3851
|
+
onCollapse: hideToolBoxFn
|
|
3852
|
+
}, null, 8 /* PROPS */, ["target"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isShowToolBox)]])]),
|
|
3610
3853
|
_: 1 /* STABLE */
|
|
3611
|
-
}, 8 /* PROPS */, ["target", "scenceInfo"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)
|
|
3854
|
+
}, 8 /* PROPS */, ["target", "scenceInfo"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), showPrint.value ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(AppClientPrint), {
|
|
3855
|
+
key: 1,
|
|
3856
|
+
onClose: closePrint
|
|
3857
|
+
})) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)], 64 /* STABLE_FRAGMENT */);
|
|
3612
3858
|
};
|
|
3613
3859
|
}
|
|
3614
3860
|
}));
|