@kq_npm/client3d_webgl_vue 3.0.8-beta → 3.1.0-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 +260 -142
- package/adddata/style/adddata.css +1 -1
- package/baseterraingallery/index.js +2 -1
- package/baseterraingallery/style/baseterraingallery.css +1 -1
- package/excavatefillanalysis/index.js +2 -13
- package/flight/index.js +42 -177
- package/floodanalysis/index.js +56 -194
- package/gpuspatialquery/index.js +42 -177
- package/headertemp/index.js +34 -83
- package/index.js +1061 -584
- package/isolineanalysis/index.js +42 -177
- package/measure/index.js +42 -177
- package/modelselect/index.js +41 -177
- package/package.json +1 -1
- package/particleeffect/index.js +40 -176
- package/planeclip/index.js +42 -177
- package/profileanalysis/index.js +42 -177
- package/roller/index.js +43 -188
- package/scenceview/index.js +1100 -640
- package/screenshot/index.js +47 -179
- package/screenshot/style/screenshot.css +1 -1
- package/shadowanalysis/index.js +42 -177
- package/sightlineanalysis/index.js +41 -177
- package/skylineanalysis/index.js +42 -177
- package/slopeanalysis/index.js +42 -177
- package/style.css +1 -1
- package/terrainoperation/index.js +42 -177
- package/underground/index.js +32 -20
- package/viewshedanalysis/index.js +40 -176
- package/weathereffect/index.js +42 -177
package/index.js
CHANGED
|
@@ -2186,18 +2186,19 @@ class LayerManager {
|
|
|
2186
2186
|
}
|
|
2187
2187
|
});
|
|
2188
2188
|
}
|
|
2189
|
-
}
|
|
2189
|
+
} //获取底图图层Index
|
|
2190
2190
|
|
|
2191
2191
|
|
|
2192
2192
|
getBaseLayerIndex() {
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2193
|
+
let index = 1;
|
|
2194
|
+
|
|
2195
|
+
this._viewer.imageryLayers._layers.forEach(layer => {
|
|
2196
|
+
if (layer.target === "online") {
|
|
2197
|
+
index++;
|
|
2198
|
+
}
|
|
2199
|
+
});
|
|
2200
|
+
|
|
2201
|
+
return index;
|
|
2201
2202
|
} //设置图层置顶或取消置顶
|
|
2202
2203
|
|
|
2203
2204
|
|
|
@@ -2782,11 +2783,30 @@ class ScenceViewViewModel extends (mitt_default()) {
|
|
|
2782
2783
|
});
|
|
2783
2784
|
}
|
|
2784
2785
|
}
|
|
2786
|
+
}
|
|
2787
|
+
/**
|
|
2788
|
+
* 获取在线底图index
|
|
2789
|
+
*/
|
|
2790
|
+
|
|
2791
|
+
|
|
2792
|
+
_getOnlineBaseLayerIndex() {
|
|
2793
|
+
let index = 1;
|
|
2794
|
+
|
|
2795
|
+
this._viewer.imageryLayers._layers.forEach(layer => {
|
|
2796
|
+
if (layer.target === "online") {
|
|
2797
|
+
index++;
|
|
2798
|
+
}
|
|
2799
|
+
});
|
|
2800
|
+
|
|
2801
|
+
return index;
|
|
2785
2802
|
} //创建在线底图
|
|
2786
2803
|
|
|
2787
2804
|
|
|
2788
2805
|
_createOnlineLayer(layerConfig) {
|
|
2789
2806
|
let layer = null;
|
|
2807
|
+
|
|
2808
|
+
let index = this._getOnlineBaseLayerIndex();
|
|
2809
|
+
|
|
2790
2810
|
let layerType = layerConfig.renderType;
|
|
2791
2811
|
if (layerType) layerType = layerType.toLowerCase();
|
|
2792
2812
|
|
|
@@ -2795,7 +2815,7 @@ class ScenceViewViewModel extends (mitt_default()) {
|
|
|
2795
2815
|
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dKQGISMapServerImageryProviderExt({
|
|
2796
2816
|
url: layerConfig.url,
|
|
2797
2817
|
ua_token: layerConfig.accessToken
|
|
2798
|
-
}));
|
|
2818
|
+
}), index);
|
|
2799
2819
|
break;
|
|
2800
2820
|
|
|
2801
2821
|
case "wmts":
|
|
@@ -2811,7 +2831,7 @@ class ScenceViewViewModel extends (mitt_default()) {
|
|
|
2811
2831
|
subdomains: layerConfig.subdomains,
|
|
2812
2832
|
tilingScheme: layerConfig.epsg === "4326" ? new Cesium.GeographicTilingScheme() : new Cesium.WebMercatorTilingScheme()
|
|
2813
2833
|
};
|
|
2814
|
-
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.WebMapTileServiceImageryProvider(options));
|
|
2834
|
+
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.WebMapTileServiceImageryProvider(options), index);
|
|
2815
2835
|
break;
|
|
2816
2836
|
|
|
2817
2837
|
case "wms":
|
|
@@ -2822,31 +2842,31 @@ class ScenceViewViewModel extends (mitt_default()) {
|
|
|
2822
2842
|
transparent: "true",
|
|
2823
2843
|
format: "image/png"
|
|
2824
2844
|
}
|
|
2825
|
-
}));
|
|
2845
|
+
}), index);
|
|
2826
2846
|
break;
|
|
2827
2847
|
|
|
2828
2848
|
case "tianditu":
|
|
2829
2849
|
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dTiandituImageryProvider({
|
|
2830
2850
|
mapStyle: layerConfig.layerType + "_c"
|
|
2831
|
-
}));
|
|
2851
|
+
}), index);
|
|
2832
2852
|
break;
|
|
2833
2853
|
|
|
2834
2854
|
case "baidu":
|
|
2835
2855
|
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dBaiduMapsImageryProvider({
|
|
2836
2856
|
mapStyle: layerConfig.layerType
|
|
2837
|
-
}));
|
|
2857
|
+
}), index);
|
|
2838
2858
|
break;
|
|
2839
2859
|
|
|
2840
2860
|
case "gaode":
|
|
2841
2861
|
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dAMapsImageryProvider({
|
|
2842
2862
|
mapStyle: layerConfig.layerType
|
|
2843
|
-
}));
|
|
2863
|
+
}), index);
|
|
2844
2864
|
break;
|
|
2845
2865
|
|
|
2846
2866
|
case "tencent":
|
|
2847
2867
|
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dQQMapsImageryProvider({
|
|
2848
2868
|
mapStyle: layerConfig.layerType
|
|
2849
|
-
}));
|
|
2869
|
+
}), index);
|
|
2850
2870
|
break;
|
|
2851
2871
|
|
|
2852
2872
|
case "bing":
|
|
@@ -2854,26 +2874,26 @@ class ScenceViewViewModel extends (mitt_default()) {
|
|
|
2854
2874
|
url: layerConfig.url || "https://dev.virtualearth.net",
|
|
2855
2875
|
key: layerConfig.key || "AmXdbd8UeUJtaRSn7yVwyXgQlBBUqliLbHpgn2c76DfuHwAXfRrgS5qwfHU6Rhm8",
|
|
2856
2876
|
mapStyle: layerConfig.layerType
|
|
2857
|
-
}));
|
|
2877
|
+
}), index);
|
|
2858
2878
|
break;
|
|
2859
2879
|
|
|
2860
2880
|
case "arcgisonline":
|
|
2861
2881
|
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dArcGISMapServerImageryProvider({
|
|
2862
2882
|
url: layerConfig.url
|
|
2863
|
-
}));
|
|
2883
|
+
}), index);
|
|
2864
2884
|
break;
|
|
2865
2885
|
|
|
2866
2886
|
case "mapbox":
|
|
2867
2887
|
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.MapboxImageryProvider({
|
|
2868
2888
|
mapId: "mapbox." + layerConfig.layerType,
|
|
2869
2889
|
accessToken: layerConfig.key || "pk.eyJ1IjoiZXhhbXBsZXMiLCJhIjoiY2p1dHRybDR5MGJuZjQzcGhrZ2doeGgwNyJ9.a-vxW4UaxOoUMWUTGnEArw"
|
|
2870
|
-
}));
|
|
2890
|
+
}), index);
|
|
2871
2891
|
break;
|
|
2872
2892
|
|
|
2873
2893
|
case "osm":
|
|
2874
2894
|
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.createOpenStreetMapImageryProvider({
|
|
2875
2895
|
url: layerConfig.url
|
|
2876
|
-
}));
|
|
2896
|
+
}), index);
|
|
2877
2897
|
break;
|
|
2878
2898
|
}
|
|
2879
2899
|
|
|
@@ -3918,7 +3938,8 @@ const BaseterrainGalleryvue_type_script_setup_true_lang_js_default_ = {
|
|
|
3918
3938
|
},
|
|
3919
3939
|
// HeaderTemp标题
|
|
3920
3940
|
headerTempTitle: {
|
|
3921
|
-
type: String
|
|
3941
|
+
type: String,
|
|
3942
|
+
default: "在线地形"
|
|
3922
3943
|
},
|
|
3923
3944
|
// HeaderTemp图标
|
|
3924
3945
|
headerTempIcon: {
|
|
@@ -4259,150 +4280,6 @@ class MeasureViewModel {
|
|
|
4259
4280
|
}
|
|
4260
4281
|
|
|
4261
4282
|
}
|
|
4262
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/headertemp/HeaderTemp.vue?vue&type=script&setup=true&lang=js
|
|
4263
|
-
|
|
4264
|
-
const HeaderTempvue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
4265
|
-
class: "kq-control-header-temp"
|
|
4266
|
-
};
|
|
4267
|
-
const HeaderTempvue_type_script_setup_true_lang_js_hoisted_2 = {
|
|
4268
|
-
class: "_title"
|
|
4269
|
-
};
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
const HeaderTempvue_type_script_setup_true_lang_js_default_ = {
|
|
4273
|
-
name: "Kq3dHeaderTemp"
|
|
4274
|
-
};
|
|
4275
|
-
/* harmony default export */ var HeaderTempvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(HeaderTempvue_type_script_setup_true_lang_js_default_, {
|
|
4276
|
-
props: {
|
|
4277
|
-
// 是否显示阴影效果
|
|
4278
|
-
showShadow: {
|
|
4279
|
-
type: Boolean,
|
|
4280
|
-
default: true
|
|
4281
|
-
},
|
|
4282
|
-
// HeaderTemp标题
|
|
4283
|
-
headerTempTitle: {
|
|
4284
|
-
type: String,
|
|
4285
|
-
default: ""
|
|
4286
|
-
},
|
|
4287
|
-
// HeaderTemp图标
|
|
4288
|
-
headerTempIcon: {
|
|
4289
|
-
type: Object
|
|
4290
|
-
},
|
|
4291
|
-
// HeaderTemp是否折叠
|
|
4292
|
-
isCollapse: {
|
|
4293
|
-
type: Boolean,
|
|
4294
|
-
default: false
|
|
4295
|
-
},
|
|
4296
|
-
// HeaderTemp Title&Icon的位置
|
|
4297
|
-
isRight: {
|
|
4298
|
-
type: Boolean,
|
|
4299
|
-
default: true
|
|
4300
|
-
}
|
|
4301
|
-
},
|
|
4302
|
-
|
|
4303
|
-
setup(__props, {
|
|
4304
|
-
expose
|
|
4305
|
-
}) {
|
|
4306
|
-
const props = __props;
|
|
4307
|
-
const proxy = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.getCurrentInstance)(); // 获取组件传参
|
|
4308
|
-
// 图标组件
|
|
4309
|
-
|
|
4310
|
-
let iconBtn = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null);
|
|
4311
|
-
let isCollapse = props.isCollapse;
|
|
4312
|
-
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
4313
|
-
iconBtn.value = props.headerTempIcon;
|
|
4314
|
-
let dom = proxy.parent.vnode.el;
|
|
4315
|
-
|
|
4316
|
-
if (!props.isRight) {
|
|
4317
|
-
(0,util_namespaceObject.addClass)(dom, ["kq-is-show", "kq-is-left"]);
|
|
4318
|
-
}
|
|
4319
|
-
|
|
4320
|
-
if (isCollapse) {
|
|
4321
|
-
if (props.showShadow) {
|
|
4322
|
-
(0,util_namespaceObject.addClass)(dom, ["kq-is-hide", "kq-light-shadow"]);
|
|
4323
|
-
(0,util_namespaceObject.removeClass)(dom, ["kq-is-show", "kq-box-shadow"]);
|
|
4324
|
-
} else {
|
|
4325
|
-
(0,util_namespaceObject.addClass)(dom, "kq-is-hide");
|
|
4326
|
-
(0,util_namespaceObject.removeClass)(dom, "kq-is-show");
|
|
4327
|
-
}
|
|
4328
|
-
} else {
|
|
4329
|
-
if (props.showShadow) {
|
|
4330
|
-
(0,util_namespaceObject.removeClass)(dom, ["kq-is-hide", "kq-light-shadow"]);
|
|
4331
|
-
(0,util_namespaceObject.addClass)(dom, ["kq-is-show", "kq-box-shadow"]);
|
|
4332
|
-
} else {
|
|
4333
|
-
(0,util_namespaceObject.removeClass)(dom, "kq-is-hide");
|
|
4334
|
-
(0,util_namespaceObject.addClass)(dom, "kq-is-show");
|
|
4335
|
-
}
|
|
4336
|
-
}
|
|
4337
|
-
}); // 图标按钮点击事件
|
|
4338
|
-
|
|
4339
|
-
function btnClick() {
|
|
4340
|
-
isCollapse = !isCollapse;
|
|
4341
|
-
let dom = proxy.parent.vnode.el;
|
|
4342
|
-
|
|
4343
|
-
if (isCollapse) {
|
|
4344
|
-
// 折叠
|
|
4345
|
-
if (props.showShadow) {
|
|
4346
|
-
(0,util_namespaceObject.addClass)(dom, ["kq-is-hide", "kq-light-shadow"]);
|
|
4347
|
-
(0,util_namespaceObject.removeClass)(dom, ["kq-is-show", "kq-box-shadow"]);
|
|
4348
|
-
} else {
|
|
4349
|
-
(0,util_namespaceObject.addClass)(dom, "kq-is-hide");
|
|
4350
|
-
(0,util_namespaceObject.removeClass)(dom, "kq-is-show");
|
|
4351
|
-
}
|
|
4352
|
-
} else {
|
|
4353
|
-
// 展开
|
|
4354
|
-
if (props.showShadow) {
|
|
4355
|
-
(0,util_namespaceObject.addClass)(dom, ["kq-is-show", "kq-box-shadow"]);
|
|
4356
|
-
(0,util_namespaceObject.removeClass)(dom, ["kq-is-hide", "kq-light-shadow"]);
|
|
4357
|
-
} else {
|
|
4358
|
-
(0,util_namespaceObject.addClass)(dom, "kq-is-show");
|
|
4359
|
-
(0,util_namespaceObject.removeClass)(dom, "kq-is-hide");
|
|
4360
|
-
}
|
|
4361
|
-
}
|
|
4362
|
-
}
|
|
4363
|
-
|
|
4364
|
-
expose({
|
|
4365
|
-
btnClick
|
|
4366
|
-
});
|
|
4367
|
-
return (_ctx, _cache) => {
|
|
4368
|
-
const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-icon");
|
|
4369
|
-
|
|
4370
|
-
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)("div", HeaderTempvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("h4", HeaderTempvue_type_script_setup_true_lang_js_hoisted_2, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)(__props.headerTempTitle), 1
|
|
4371
|
-
/* TEXT */
|
|
4372
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", {
|
|
4373
|
-
class: "_btn kq-control-header-temp_btn",
|
|
4374
|
-
onClick: btnClick
|
|
4375
|
-
}, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_icon, {
|
|
4376
|
-
size: 16
|
|
4377
|
-
}, {
|
|
4378
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [((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)(iconBtn))))]),
|
|
4379
|
-
_: 1
|
|
4380
|
-
/* STABLE */
|
|
4381
|
-
|
|
4382
|
-
})])]);
|
|
4383
|
-
};
|
|
4384
|
-
}
|
|
4385
|
-
|
|
4386
|
-
}));
|
|
4387
|
-
;// CONCATENATED MODULE: ./src/webgl/headertemp/HeaderTemp.vue?vue&type=script&setup=true&lang=js
|
|
4388
|
-
|
|
4389
|
-
;// CONCATENATED MODULE: ./src/webgl/headertemp/HeaderTemp.vue
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
const HeaderTemp_exports_ = HeaderTempvue_type_script_setup_true_lang_js;
|
|
4394
|
-
|
|
4395
|
-
/* harmony default export */ var HeaderTemp = (HeaderTemp_exports_);
|
|
4396
|
-
;// CONCATENATED MODULE: ./src/webgl/headertemp/index.js
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
HeaderTemp.install = (Vue, opts) => {
|
|
4401
|
-
init_js_default()(Vue, opts);
|
|
4402
|
-
Vue.component(HeaderTemp.name, HeaderTemp);
|
|
4403
|
-
};
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
4283
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/measure/Measure.vue?vue&type=script&setup=true&lang=js
|
|
4407
4284
|
|
|
4408
4285
|
const Measurevue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
@@ -4529,6 +4406,11 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
4529
4406
|
type: Boolean,
|
|
4530
4407
|
default: true
|
|
4531
4408
|
},
|
|
4409
|
+
|
|
4410
|
+
/**
|
|
4411
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
4412
|
+
*/
|
|
4413
|
+
position: [String, Object],
|
|
4532
4414
|
// 是否生成HeaderTemp
|
|
4533
4415
|
showHeaderTemp: {
|
|
4534
4416
|
type: Boolean,
|
|
@@ -4588,8 +4470,21 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
4588
4470
|
}, {
|
|
4589
4471
|
label: "km²",
|
|
4590
4472
|
value: "km²"
|
|
4591
|
-
}]);
|
|
4473
|
+
}]); // 组件容器Ref
|
|
4474
|
+
|
|
4475
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null); // 生成组件默认header
|
|
4476
|
+
|
|
4477
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
4478
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
4592
4479
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
4480
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
4481
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.position, (newVal, oldVal) => {
|
|
4482
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
4483
|
+
});
|
|
4484
|
+
watchCreateHeaderTemp();
|
|
4485
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
4486
|
+
watchCreateHeaderTemp();
|
|
4487
|
+
});
|
|
4593
4488
|
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
4594
4489
|
if (scenceView) {
|
|
4595
4490
|
language.value = scenceView._language;
|
|
@@ -4633,7 +4528,18 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
4633
4528
|
});
|
|
4634
4529
|
}
|
|
4635
4530
|
});
|
|
4636
|
-
});
|
|
4531
|
+
});
|
|
4532
|
+
/**
|
|
4533
|
+
* @description 监听header生成
|
|
4534
|
+
*/
|
|
4535
|
+
|
|
4536
|
+
const watchCreateHeaderTemp = () => {
|
|
4537
|
+
if (props.showHeaderTemp) {
|
|
4538
|
+
// 生成headerTemp
|
|
4539
|
+
headerTemp.value = (0,util_namespaceObject.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toRefs)(props), headerTempRef);
|
|
4540
|
+
}
|
|
4541
|
+
}; //加载测量模式数据
|
|
4542
|
+
|
|
4637
4543
|
|
|
4638
4544
|
function loadModeData() {
|
|
4639
4545
|
modeList.push({
|
|
@@ -4783,17 +4689,16 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
4783
4689
|
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", {
|
|
4784
4690
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeClass)(["kq-measure3d", {
|
|
4785
4691
|
'kq-box-shadow': __props.showShadow
|
|
4786
|
-
}])
|
|
4787
|
-
|
|
4692
|
+
}]),
|
|
4693
|
+
ref_key: "boxRef",
|
|
4694
|
+
ref: boxRef
|
|
4695
|
+
}, [__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)), {
|
|
4788
4696
|
key: 0,
|
|
4789
|
-
|
|
4790
|
-
|
|
4791
|
-
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
}, null, 8
|
|
4795
|
-
/* PROPS */
|
|
4796
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (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", Measurevue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", Measurevue_type_script_setup_true_lang_js_hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", Measurevue_type_script_setup_true_lang_js_hoisted_3, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", Measurevue_type_script_setup_true_lang_js_hoisted_4, (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).mode), 1
|
|
4697
|
+
ref_key: "headerTempRef",
|
|
4698
|
+
ref: headerTempRef
|
|
4699
|
+
}, null, 512
|
|
4700
|
+
/* NEED_PATCH */
|
|
4701
|
+
)) : (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", Measurevue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", Measurevue_type_script_setup_true_lang_js_hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", Measurevue_type_script_setup_true_lang_js_hoisted_3, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", Measurevue_type_script_setup_true_lang_js_hoisted_4, (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).mode), 1
|
|
4797
4702
|
/* TEXT */
|
|
4798
4703
|
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_select, {
|
|
4799
4704
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(mode),
|
|
@@ -5162,6 +5067,11 @@ const Flightvue_type_script_setup_true_lang_js_default_ = {
|
|
|
5162
5067
|
deleteFlightPath: {
|
|
5163
5068
|
type: Function
|
|
5164
5069
|
},
|
|
5070
|
+
|
|
5071
|
+
/**
|
|
5072
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
5073
|
+
*/
|
|
5074
|
+
position: [String, Object],
|
|
5165
5075
|
// 是否生成HeaderTemp
|
|
5166
5076
|
showHeaderTemp: {
|
|
5167
5077
|
type: Boolean,
|
|
@@ -5212,9 +5122,22 @@ const Flightvue_type_script_setup_true_lang_js_default_ = {
|
|
|
5212
5122
|
color: "var(--kq-color-info)",
|
|
5213
5123
|
"font-size": "14px"
|
|
5214
5124
|
};
|
|
5215
|
-
};
|
|
5125
|
+
}; // 组件容器Ref
|
|
5126
|
+
|
|
5127
|
+
|
|
5128
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null); // 生成组件默认header
|
|
5216
5129
|
|
|
5130
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
5131
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
5217
5132
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
5133
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
5134
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.position, (newVal, oldVal) => {
|
|
5135
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
5136
|
+
});
|
|
5137
|
+
watchCreateHeaderTemp();
|
|
5138
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
5139
|
+
watchCreateHeaderTemp();
|
|
5140
|
+
});
|
|
5218
5141
|
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
5219
5142
|
if (scenceView) {
|
|
5220
5143
|
language.value = scenceView._language;
|
|
@@ -5243,7 +5166,18 @@ const Flightvue_type_script_setup_true_lang_js_default_ = {
|
|
|
5243
5166
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onBeforeUnmount)(() => {
|
|
5244
5167
|
viewModel.stop();
|
|
5245
5168
|
document.removeEventListener("click", hideDropDownMenu);
|
|
5246
|
-
});
|
|
5169
|
+
});
|
|
5170
|
+
/**
|
|
5171
|
+
* @description 监听header生成
|
|
5172
|
+
*/
|
|
5173
|
+
|
|
5174
|
+
const watchCreateHeaderTemp = () => {
|
|
5175
|
+
if (props.showHeaderTemp) {
|
|
5176
|
+
// 生成headerTemp
|
|
5177
|
+
headerTemp.value = (0,util_namespaceObject.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toRefs)(props), headerTempRef);
|
|
5178
|
+
}
|
|
5179
|
+
}; //新建路径
|
|
5180
|
+
|
|
5247
5181
|
|
|
5248
5182
|
function addPath() {
|
|
5249
5183
|
pathList.forEach(path => {
|
|
@@ -5564,17 +5498,16 @@ const Flightvue_type_script_setup_true_lang_js_default_ = {
|
|
|
5564
5498
|
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", {
|
|
5565
5499
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeClass)(["kq-flight3d", {
|
|
5566
5500
|
'kq-box-shadow': __props.showShadow
|
|
5567
|
-
}])
|
|
5568
|
-
|
|
5501
|
+
}]),
|
|
5502
|
+
ref_key: "boxRef",
|
|
5503
|
+
ref: boxRef
|
|
5504
|
+
}, [__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)), {
|
|
5569
5505
|
key: 0,
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
}, null, 8
|
|
5576
|
-
/* PROPS */
|
|
5577
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (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", Flightvue_type_script_setup_true_lang_js_hoisted_1, [!(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(isAdd) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementBlock)("div", Flightvue_type_script_setup_true_lang_js_hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", Flightvue_type_script_setup_true_lang_js_hoisted_3, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_button, {
|
|
5506
|
+
ref_key: "headerTempRef",
|
|
5507
|
+
ref: headerTempRef
|
|
5508
|
+
}, null, 512
|
|
5509
|
+
/* NEED_PATCH */
|
|
5510
|
+
)) : (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", Flightvue_type_script_setup_true_lang_js_hoisted_1, [!(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(isAdd) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementBlock)("div", Flightvue_type_script_setup_true_lang_js_hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", Flightvue_type_script_setup_true_lang_js_hoisted_3, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_button, {
|
|
5578
5511
|
onClick: addPath,
|
|
5579
5512
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).addPath
|
|
5580
5513
|
}, {
|
|
@@ -6346,6 +6279,11 @@ const GPUSpatialQueryvue_type_script_setup_true_lang_js_default_ = {
|
|
|
6346
6279
|
type: Boolean,
|
|
6347
6280
|
default: true
|
|
6348
6281
|
},
|
|
6282
|
+
|
|
6283
|
+
/**
|
|
6284
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
6285
|
+
*/
|
|
6286
|
+
position: [String, Object],
|
|
6349
6287
|
// 是否生成HeaderTemp
|
|
6350
6288
|
showHeaderTemp: {
|
|
6351
6289
|
type: Boolean,
|
|
@@ -6409,8 +6347,21 @@ const GPUSpatialQueryvue_type_script_setup_true_lang_js_default_ = {
|
|
|
6409
6347
|
maxZRotate: props.settingParams && props.settingParams.maxZRotate || 90 // 绕Z轴旋转最大值
|
|
6410
6348
|
|
|
6411
6349
|
});
|
|
6412
|
-
let viewModel = null;
|
|
6350
|
+
let viewModel = null; // 组件容器Ref
|
|
6351
|
+
|
|
6352
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null); // 生成组件默认header
|
|
6353
|
+
|
|
6354
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
6355
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
6413
6356
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
6357
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
6358
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.position, (newVal, oldVal) => {
|
|
6359
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
6360
|
+
});
|
|
6361
|
+
watchCreateHeaderTemp();
|
|
6362
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
6363
|
+
watchCreateHeaderTemp();
|
|
6364
|
+
});
|
|
6414
6365
|
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
6415
6366
|
if (scenceView) {
|
|
6416
6367
|
language.value = scenceView._language;
|
|
@@ -6424,7 +6375,18 @@ const GPUSpatialQueryvue_type_script_setup_true_lang_js_default_ = {
|
|
|
6424
6375
|
});
|
|
6425
6376
|
}
|
|
6426
6377
|
});
|
|
6427
|
-
});
|
|
6378
|
+
});
|
|
6379
|
+
/**
|
|
6380
|
+
* @description 监听header生成
|
|
6381
|
+
*/
|
|
6382
|
+
|
|
6383
|
+
const watchCreateHeaderTemp = () => {
|
|
6384
|
+
if (props.showHeaderTemp) {
|
|
6385
|
+
// 生成headerTemp
|
|
6386
|
+
headerTemp.value = (0,util_namespaceObject.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toRefs)(props), headerTempRef);
|
|
6387
|
+
}
|
|
6388
|
+
}; // 参数切换
|
|
6389
|
+
|
|
6428
6390
|
|
|
6429
6391
|
function paramsChanged(key) {
|
|
6430
6392
|
switch (key) {
|
|
@@ -6502,17 +6464,16 @@ const GPUSpatialQueryvue_type_script_setup_true_lang_js_default_ = {
|
|
|
6502
6464
|
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", {
|
|
6503
6465
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeClass)(["kq3d-gpu-spatial-query", {
|
|
6504
6466
|
'kq-box-shadow': __props.showShadow
|
|
6505
|
-
}])
|
|
6506
|
-
|
|
6467
|
+
}]),
|
|
6468
|
+
ref_key: "boxRef",
|
|
6469
|
+
ref: boxRef
|
|
6470
|
+
}, [__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)), {
|
|
6507
6471
|
key: 0,
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
|
|
6511
|
-
|
|
6512
|
-
|
|
6513
|
-
}, null, 8
|
|
6514
|
-
/* PROPS */
|
|
6515
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (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", GPUSpatialQueryvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_form, {
|
|
6472
|
+
ref_key: "headerTempRef",
|
|
6473
|
+
ref: headerTempRef
|
|
6474
|
+
}, null, 512
|
|
6475
|
+
/* NEED_PATCH */
|
|
6476
|
+
)) : (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", GPUSpatialQueryvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_form, {
|
|
6516
6477
|
"label-width": "100px",
|
|
6517
6478
|
"label-position": "left"
|
|
6518
6479
|
}, {
|
|
@@ -7057,6 +7018,11 @@ const ModelSelectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
7057
7018
|
type: Boolean,
|
|
7058
7019
|
default: true
|
|
7059
7020
|
},
|
|
7021
|
+
|
|
7022
|
+
/**
|
|
7023
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
7024
|
+
*/
|
|
7025
|
+
position: [String, Object],
|
|
7060
7026
|
// 是否生成HeaderTemp
|
|
7061
7027
|
showHeaderTemp: {
|
|
7062
7028
|
type: Boolean,
|
|
@@ -7106,10 +7072,23 @@ const ModelSelectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
7106
7072
|
color: "var(--kq-color-info)",
|
|
7107
7073
|
"font-size": "14px"
|
|
7108
7074
|
};
|
|
7109
|
-
};
|
|
7075
|
+
}; // 组件容器Ref
|
|
7076
|
+
|
|
7110
7077
|
|
|
7078
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null); // 生成组件默认header
|
|
7079
|
+
|
|
7080
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
7081
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
7111
7082
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
7112
|
-
|
|
7083
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
7084
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.position, (newVal, oldVal) => {
|
|
7085
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
7086
|
+
});
|
|
7087
|
+
watchCreateHeaderTemp();
|
|
7088
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
7089
|
+
watchCreateHeaderTemp();
|
|
7090
|
+
}); //父组件ScenceView初始化完成后执行
|
|
7091
|
+
|
|
7113
7092
|
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
7114
7093
|
if (scenceView) {
|
|
7115
7094
|
language.value = scenceView._language;
|
|
@@ -7117,6 +7096,16 @@ const ModelSelectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
7117
7096
|
}
|
|
7118
7097
|
});
|
|
7119
7098
|
});
|
|
7099
|
+
/**
|
|
7100
|
+
* @description 监听header生成
|
|
7101
|
+
*/
|
|
7102
|
+
|
|
7103
|
+
const watchCreateHeaderTemp = () => {
|
|
7104
|
+
if (props.showHeaderTemp) {
|
|
7105
|
+
// 生成headerTemp
|
|
7106
|
+
headerTemp.value = (0,util_namespaceObject.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toRefs)(props), headerTempRef);
|
|
7107
|
+
}
|
|
7108
|
+
};
|
|
7120
7109
|
|
|
7121
7110
|
function setModeFiled(val) {
|
|
7122
7111
|
viewModel._modeFiled = val;
|
|
@@ -7180,17 +7169,16 @@ const ModelSelectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
7180
7169
|
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", {
|
|
7181
7170
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeClass)(["kq3d-model-select", {
|
|
7182
7171
|
'kq-box-shadow': __props.showShadow
|
|
7183
|
-
}])
|
|
7184
|
-
|
|
7172
|
+
}]),
|
|
7173
|
+
ref_key: "boxRef",
|
|
7174
|
+
ref: boxRef
|
|
7175
|
+
}, [__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)), {
|
|
7185
7176
|
key: 0,
|
|
7186
|
-
|
|
7187
|
-
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
}, null, 8
|
|
7192
|
-
/* PROPS */
|
|
7193
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (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", ModelSelectvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, null, {
|
|
7177
|
+
ref_key: "headerTempRef",
|
|
7178
|
+
ref: headerTempRef
|
|
7179
|
+
}, null, 512
|
|
7180
|
+
/* NEED_PATCH */
|
|
7181
|
+
)) : (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", ModelSelectvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, null, {
|
|
7194
7182
|
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, {
|
|
7195
7183
|
span: 8
|
|
7196
7184
|
}, {
|
|
@@ -7605,6 +7593,11 @@ const SightlineAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
7605
7593
|
type: Boolean,
|
|
7606
7594
|
default: true
|
|
7607
7595
|
},
|
|
7596
|
+
|
|
7597
|
+
/**
|
|
7598
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
7599
|
+
*/
|
|
7600
|
+
position: [String, Object],
|
|
7608
7601
|
// 是否生成HeaderTemp
|
|
7609
7602
|
showHeaderTemp: {
|
|
7610
7603
|
type: Boolean,
|
|
@@ -7647,9 +7640,22 @@ const SightlineAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
7647
7640
|
highlightObstacle: props.settingParams && props.settingParams.highlightObstacle !== undefined || false,
|
|
7648
7641
|
isLabel: props.settingParams && props.settingParams.isLabel !== undefined || true
|
|
7649
7642
|
});
|
|
7650
|
-
let viewModel = null;
|
|
7643
|
+
let viewModel = null; // 组件容器Ref
|
|
7644
|
+
|
|
7645
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null); // 生成组件默认header
|
|
7646
|
+
|
|
7647
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
7648
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
7651
7649
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
7652
|
-
|
|
7650
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
7651
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.position, (newVal, oldVal) => {
|
|
7652
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
7653
|
+
});
|
|
7654
|
+
watchCreateHeaderTemp();
|
|
7655
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
7656
|
+
watchCreateHeaderTemp();
|
|
7657
|
+
}); //父组件ScenceView初始化完成后执行
|
|
7658
|
+
|
|
7653
7659
|
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
7654
7660
|
if (scenceView) {
|
|
7655
7661
|
language.value = scenceView._language;
|
|
@@ -7664,6 +7670,16 @@ const SightlineAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
7664
7670
|
}
|
|
7665
7671
|
});
|
|
7666
7672
|
});
|
|
7673
|
+
/**
|
|
7674
|
+
* @description 监听header生成
|
|
7675
|
+
*/
|
|
7676
|
+
|
|
7677
|
+
const watchCreateHeaderTemp = () => {
|
|
7678
|
+
if (props.showHeaderTemp) {
|
|
7679
|
+
// 生成headerTemp
|
|
7680
|
+
headerTemp.value = (0,util_namespaceObject.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toRefs)(props), headerTempRef);
|
|
7681
|
+
}
|
|
7682
|
+
};
|
|
7667
7683
|
|
|
7668
7684
|
function paramsChanged(key) {
|
|
7669
7685
|
switch (key) {
|
|
@@ -7736,17 +7752,16 @@ const SightlineAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
7736
7752
|
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", {
|
|
7737
7753
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeClass)(["kq3d-sightline-analysis", {
|
|
7738
7754
|
'kq-box-shadow': __props.showShadow
|
|
7739
|
-
}])
|
|
7740
|
-
|
|
7755
|
+
}]),
|
|
7756
|
+
ref_key: "boxRef",
|
|
7757
|
+
ref: boxRef
|
|
7758
|
+
}, [__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)), {
|
|
7741
7759
|
key: 0,
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
}, null, 8
|
|
7748
|
-
/* PROPS */
|
|
7749
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (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", SightlineAnalysisvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, {
|
|
7760
|
+
ref_key: "headerTempRef",
|
|
7761
|
+
ref: headerTempRef
|
|
7762
|
+
}, null, 512
|
|
7763
|
+
/* NEED_PATCH */
|
|
7764
|
+
)) : (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", SightlineAnalysisvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, {
|
|
7750
7765
|
class: "kq3d-sightline-analysis-tip"
|
|
7751
7766
|
}, {
|
|
7752
7767
|
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).sightTips), 1
|
|
@@ -8049,6 +8064,11 @@ const ViewshedAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
8049
8064
|
type: Boolean,
|
|
8050
8065
|
default: true
|
|
8051
8066
|
},
|
|
8067
|
+
|
|
8068
|
+
/**
|
|
8069
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
8070
|
+
*/
|
|
8071
|
+
position: [String, Object],
|
|
8052
8072
|
// 是否生成HeaderTemp
|
|
8053
8073
|
showHeaderTemp: {
|
|
8054
8074
|
type: Boolean,
|
|
@@ -8111,8 +8131,21 @@ const ViewshedAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
8111
8131
|
// 不可见颜色
|
|
8112
8132
|
lineColor: props.settingParams && props.settingParams.lineColor || "#E6A23C"
|
|
8113
8133
|
});
|
|
8114
|
-
let viewModel = null;
|
|
8134
|
+
let viewModel = null; // 组件容器Ref
|
|
8135
|
+
|
|
8136
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null); // 生成组件默认header
|
|
8137
|
+
|
|
8138
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
8139
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
8115
8140
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
8141
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
8142
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.position, (newVal, oldVal) => {
|
|
8143
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
8144
|
+
});
|
|
8145
|
+
watchCreateHeaderTemp();
|
|
8146
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
8147
|
+
watchCreateHeaderTemp();
|
|
8148
|
+
});
|
|
8116
8149
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言类型
|
|
8117
8150
|
|
|
8118
8151
|
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
@@ -8129,6 +8162,16 @@ const ViewshedAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
8129
8162
|
}
|
|
8130
8163
|
});
|
|
8131
8164
|
});
|
|
8165
|
+
/**
|
|
8166
|
+
* @description 监听header生成
|
|
8167
|
+
*/
|
|
8168
|
+
|
|
8169
|
+
const watchCreateHeaderTemp = () => {
|
|
8170
|
+
if (props.showHeaderTemp) {
|
|
8171
|
+
// 生成headerTemp
|
|
8172
|
+
headerTemp.value = (0,util_namespaceObject.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toRefs)(props), headerTempRef);
|
|
8173
|
+
}
|
|
8174
|
+
};
|
|
8132
8175
|
|
|
8133
8176
|
function paramsChanged(key) {
|
|
8134
8177
|
switch (key) {
|
|
@@ -8204,17 +8247,16 @@ const ViewshedAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
8204
8247
|
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", {
|
|
8205
8248
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeClass)(["kq3d-viewshed-analysis", {
|
|
8206
8249
|
'kq-box-shadow': __props.showShadow
|
|
8207
|
-
}])
|
|
8208
|
-
|
|
8250
|
+
}]),
|
|
8251
|
+
ref_key: "boxRef",
|
|
8252
|
+
ref: boxRef
|
|
8253
|
+
}, [__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)), {
|
|
8209
8254
|
key: 0,
|
|
8210
|
-
|
|
8211
|
-
|
|
8212
|
-
|
|
8213
|
-
|
|
8214
|
-
|
|
8215
|
-
}, null, 8
|
|
8216
|
-
/* PROPS */
|
|
8217
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (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", ViewshedAnalysisvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, {
|
|
8255
|
+
ref_key: "headerTempRef",
|
|
8256
|
+
ref: headerTempRef
|
|
8257
|
+
}, null, 512
|
|
8258
|
+
/* NEED_PATCH */
|
|
8259
|
+
)) : (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", ViewshedAnalysisvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, {
|
|
8218
8260
|
class: "kq3d-viewshed-analysis-tip"
|
|
8219
8261
|
}, {
|
|
8220
8262
|
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).viewshedTips), 1
|
|
@@ -8786,6 +8828,11 @@ const ShadowAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
8786
8828
|
type: Boolean,
|
|
8787
8829
|
default: true
|
|
8788
8830
|
},
|
|
8831
|
+
|
|
8832
|
+
/**
|
|
8833
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
8834
|
+
*/
|
|
8835
|
+
position: [String, Object],
|
|
8789
8836
|
// 是否生成HeaderTemp
|
|
8790
8837
|
showHeaderTemp: {
|
|
8791
8838
|
type: Boolean,
|
|
@@ -8899,8 +8946,21 @@ const ShadowAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
8899
8946
|
// 透明缩放范围最小值
|
|
8900
8947
|
maxAlphaScale: props.settingParams && props.settingParams.alphaScale || 1 // 透明缩放范围最大值
|
|
8901
8948
|
|
|
8902
|
-
});
|
|
8949
|
+
}); // 组件容器Ref
|
|
8950
|
+
|
|
8951
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null); // 生成组件默认header
|
|
8952
|
+
|
|
8953
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
8954
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
8903
8955
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
8956
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
8957
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.position, (newVal, oldVal) => {
|
|
8958
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
8959
|
+
});
|
|
8960
|
+
watchCreateHeaderTemp();
|
|
8961
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
8962
|
+
watchCreateHeaderTemp();
|
|
8963
|
+
});
|
|
8904
8964
|
time.value = [formItem.startTime, formItem.endTime];
|
|
8905
8965
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言类型
|
|
8906
8966
|
|
|
@@ -8932,7 +8992,18 @@ const ShadowAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
8932
8992
|
});
|
|
8933
8993
|
}
|
|
8934
8994
|
});
|
|
8935
|
-
});
|
|
8995
|
+
});
|
|
8996
|
+
/**
|
|
8997
|
+
* @description 监听header生成
|
|
8998
|
+
*/
|
|
8999
|
+
|
|
9000
|
+
const watchCreateHeaderTemp = () => {
|
|
9001
|
+
if (props.showHeaderTemp) {
|
|
9002
|
+
// 生成headerTemp
|
|
9003
|
+
headerTemp.value = (0,util_namespaceObject.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toRefs)(props), headerTempRef);
|
|
9004
|
+
}
|
|
9005
|
+
}; // 获取当前日期
|
|
9006
|
+
|
|
8936
9007
|
|
|
8937
9008
|
function GetDateStr() {
|
|
8938
9009
|
var dd = new Date();
|
|
@@ -9055,17 +9126,16 @@ const ShadowAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
9055
9126
|
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", {
|
|
9056
9127
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeClass)(["kq3d-shadow-analysis", {
|
|
9057
9128
|
'kq-box-shadow': __props.showShadow
|
|
9058
|
-
}])
|
|
9059
|
-
|
|
9129
|
+
}]),
|
|
9130
|
+
ref_key: "boxRef",
|
|
9131
|
+
ref: boxRef
|
|
9132
|
+
}, [__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)), {
|
|
9060
9133
|
key: 0,
|
|
9061
|
-
|
|
9062
|
-
|
|
9063
|
-
|
|
9064
|
-
|
|
9065
|
-
|
|
9066
|
-
}, null, 8
|
|
9067
|
-
/* PROPS */
|
|
9068
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (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", ShadowAnalysisvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, {
|
|
9134
|
+
ref_key: "headerTempRef",
|
|
9135
|
+
ref: headerTempRef
|
|
9136
|
+
}, null, 512
|
|
9137
|
+
/* NEED_PATCH */
|
|
9138
|
+
)) : (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", ShadowAnalysisvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, {
|
|
9069
9139
|
class: "kq3d-shadow-analysis-datetime"
|
|
9070
9140
|
}, {
|
|
9071
9141
|
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, {
|
|
@@ -9885,6 +9955,11 @@ const ProfileAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
9885
9955
|
type: Boolean,
|
|
9886
9956
|
default: true
|
|
9887
9957
|
},
|
|
9958
|
+
|
|
9959
|
+
/**
|
|
9960
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
9961
|
+
*/
|
|
9962
|
+
position: [String, Object],
|
|
9888
9963
|
// 是否生成HeaderTemp
|
|
9889
9964
|
showHeaderTemp: {
|
|
9890
9965
|
type: Boolean,
|
|
@@ -9950,8 +10025,21 @@ const ProfileAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
9950
10025
|
// 相机高度范围最大值
|
|
9951
10026
|
enablePerspective: props.settingParams && props.settingParams.isLabel !== undefined || true // 是否透视
|
|
9952
10027
|
|
|
9953
|
-
});
|
|
10028
|
+
}); // 组件容器Ref
|
|
10029
|
+
|
|
10030
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null); // 生成组件默认header
|
|
10031
|
+
|
|
10032
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
10033
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
9954
10034
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
10035
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
10036
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.position, (newVal, oldVal) => {
|
|
10037
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
10038
|
+
});
|
|
10039
|
+
watchCreateHeaderTemp();
|
|
10040
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
10041
|
+
watchCreateHeaderTemp();
|
|
10042
|
+
});
|
|
9955
10043
|
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
9956
10044
|
if (scenceView) {
|
|
9957
10045
|
language.value = scenceView._language;
|
|
@@ -9971,7 +10059,18 @@ const ProfileAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
9971
10059
|
resultCahrtVis.value = false;
|
|
9972
10060
|
}
|
|
9973
10061
|
});
|
|
9974
|
-
});
|
|
10062
|
+
});
|
|
10063
|
+
/**
|
|
10064
|
+
* @description 监听header生成
|
|
10065
|
+
*/
|
|
10066
|
+
|
|
10067
|
+
const watchCreateHeaderTemp = () => {
|
|
10068
|
+
if (props.showHeaderTemp) {
|
|
10069
|
+
// 生成headerTemp
|
|
10070
|
+
headerTemp.value = (0,util_namespaceObject.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toRefs)(props), headerTempRef);
|
|
10071
|
+
}
|
|
10072
|
+
}; // 开始分析
|
|
10073
|
+
|
|
9975
10074
|
|
|
9976
10075
|
function startAnalysis() {
|
|
9977
10076
|
viewModel && viewModel.start();
|
|
@@ -10044,17 +10143,16 @@ const ProfileAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
10044
10143
|
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", {
|
|
10045
10144
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeClass)(["kq3d-profile-analysis", {
|
|
10046
10145
|
'kq-box-shadow': __props.showShadow
|
|
10047
|
-
}])
|
|
10048
|
-
|
|
10146
|
+
}]),
|
|
10147
|
+
ref_key: "boxRef",
|
|
10148
|
+
ref: boxRef
|
|
10149
|
+
}, [__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)), {
|
|
10049
10150
|
key: 0,
|
|
10050
|
-
|
|
10051
|
-
|
|
10052
|
-
|
|
10053
|
-
|
|
10054
|
-
|
|
10055
|
-
}, null, 8
|
|
10056
|
-
/* PROPS */
|
|
10057
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (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", ProfileAnalysisvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, {
|
|
10151
|
+
ref_key: "headerTempRef",
|
|
10152
|
+
ref: headerTempRef
|
|
10153
|
+
}, null, 512
|
|
10154
|
+
/* NEED_PATCH */
|
|
10155
|
+
)) : (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", ProfileAnalysisvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, {
|
|
10058
10156
|
class: "kq3d-profile-analysis-tip"
|
|
10059
10157
|
}, {
|
|
10060
10158
|
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).profileTips), 1
|
|
@@ -10689,6 +10787,11 @@ const SkylineAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
10689
10787
|
type: Boolean,
|
|
10690
10788
|
default: true
|
|
10691
10789
|
},
|
|
10790
|
+
|
|
10791
|
+
/**
|
|
10792
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
10793
|
+
*/
|
|
10794
|
+
position: [String, Object],
|
|
10692
10795
|
// 是否生成HeaderTemp
|
|
10693
10796
|
showHeaderTemp: {
|
|
10694
10797
|
type: Boolean,
|
|
@@ -10746,8 +10849,21 @@ const SkylineAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
10746
10849
|
// 限高体透明度范围最大值
|
|
10747
10850
|
skylineWidth: 2 // 天际线宽度
|
|
10748
10851
|
|
|
10749
|
-
});
|
|
10852
|
+
}); // 组件容器Ref
|
|
10853
|
+
|
|
10854
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null); // 生成组件默认header
|
|
10855
|
+
|
|
10856
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
10857
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
10750
10858
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
10859
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
10860
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.position, (newVal, oldVal) => {
|
|
10861
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
10862
|
+
});
|
|
10863
|
+
watchCreateHeaderTemp();
|
|
10864
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
10865
|
+
watchCreateHeaderTemp();
|
|
10866
|
+
});
|
|
10751
10867
|
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
10752
10868
|
if (scenceView) {
|
|
10753
10869
|
language.value = scenceView._language;
|
|
@@ -10761,7 +10877,18 @@ const SkylineAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
10761
10877
|
viewModel._skylineAnalysisChartTitle = language.value["skylineAnalysisChartTitle"];
|
|
10762
10878
|
}
|
|
10763
10879
|
});
|
|
10764
|
-
});
|
|
10880
|
+
});
|
|
10881
|
+
/**
|
|
10882
|
+
* @description 监听header生成
|
|
10883
|
+
*/
|
|
10884
|
+
|
|
10885
|
+
const watchCreateHeaderTemp = () => {
|
|
10886
|
+
if (props.showHeaderTemp) {
|
|
10887
|
+
// 生成headerTemp
|
|
10888
|
+
headerTemp.value = (0,util_namespaceObject.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toRefs)(props), headerTempRef);
|
|
10889
|
+
}
|
|
10890
|
+
}; // 提取天际线
|
|
10891
|
+
|
|
10765
10892
|
|
|
10766
10893
|
function pickSkyLine() {
|
|
10767
10894
|
resultEcahrtVis.value = true;
|
|
@@ -10846,17 +10973,16 @@ const SkylineAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
10846
10973
|
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", {
|
|
10847
10974
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeClass)(["kq3d-skyline-analysis", {
|
|
10848
10975
|
'kq-box-shadow': __props.showShadow
|
|
10849
|
-
}])
|
|
10850
|
-
|
|
10976
|
+
}]),
|
|
10977
|
+
ref_key: "boxRef",
|
|
10978
|
+
ref: boxRef
|
|
10979
|
+
}, [__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)), {
|
|
10851
10980
|
key: 0,
|
|
10852
|
-
|
|
10853
|
-
|
|
10854
|
-
|
|
10855
|
-
|
|
10856
|
-
|
|
10857
|
-
}, null, 8
|
|
10858
|
-
/* PROPS */
|
|
10859
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (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", SkylineAnalysisvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_collapse, {
|
|
10981
|
+
ref_key: "headerTempRef",
|
|
10982
|
+
ref: headerTempRef
|
|
10983
|
+
}, null, 512
|
|
10984
|
+
/* NEED_PATCH */
|
|
10985
|
+
)) : (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", SkylineAnalysisvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_collapse, {
|
|
10860
10986
|
"model-value": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(collapseValue),
|
|
10861
10987
|
class: "kq3d-skyline-analysis-collapse"
|
|
10862
10988
|
}, {
|
|
@@ -11398,6 +11524,11 @@ const TerrainOperationvue_type_script_setup_true_lang_js_default_ = {
|
|
|
11398
11524
|
type: Boolean,
|
|
11399
11525
|
default: true
|
|
11400
11526
|
},
|
|
11527
|
+
|
|
11528
|
+
/**
|
|
11529
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
11530
|
+
*/
|
|
11531
|
+
position: [String, Object],
|
|
11401
11532
|
// 是否生成HeaderTemp
|
|
11402
11533
|
showHeaderTemp: {
|
|
11403
11534
|
type: Boolean,
|
|
@@ -11444,8 +11575,21 @@ const TerrainOperationvue_type_script_setup_true_lang_js_default_ = {
|
|
|
11444
11575
|
maxExcavationDepth: props.settingParams && props.settingParams.maxExcavationDepth || 5000 // 地形开挖深度范围最大值
|
|
11445
11576
|
|
|
11446
11577
|
});
|
|
11447
|
-
let viewModel = null;
|
|
11578
|
+
let viewModel = null; // 组件容器Ref
|
|
11579
|
+
|
|
11580
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null); // 生成组件默认header
|
|
11581
|
+
|
|
11582
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
11583
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
11448
11584
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
11585
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
11586
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.position, (newVal, oldVal) => {
|
|
11587
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
11588
|
+
});
|
|
11589
|
+
watchCreateHeaderTemp();
|
|
11590
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
11591
|
+
watchCreateHeaderTemp();
|
|
11592
|
+
});
|
|
11449
11593
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
11450
11594
|
|
|
11451
11595
|
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
@@ -11461,7 +11605,18 @@ const TerrainOperationvue_type_script_setup_true_lang_js_default_ = {
|
|
|
11461
11605
|
});
|
|
11462
11606
|
}
|
|
11463
11607
|
});
|
|
11464
|
-
});
|
|
11608
|
+
});
|
|
11609
|
+
/**
|
|
11610
|
+
* @description 监听header生成
|
|
11611
|
+
*/
|
|
11612
|
+
|
|
11613
|
+
const watchCreateHeaderTemp = () => {
|
|
11614
|
+
if (props.showHeaderTemp) {
|
|
11615
|
+
// 生成headerTemp
|
|
11616
|
+
headerTemp.value = (0,util_namespaceObject.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toRefs)(props), headerTempRef);
|
|
11617
|
+
}
|
|
11618
|
+
}; // 改变样式
|
|
11619
|
+
|
|
11465
11620
|
|
|
11466
11621
|
function changeStyle() {
|
|
11467
11622
|
viewModel && viewModel.setTerrainStyle(formItem.terrainStyle);
|
|
@@ -11508,17 +11663,16 @@ const TerrainOperationvue_type_script_setup_true_lang_js_default_ = {
|
|
|
11508
11663
|
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", {
|
|
11509
11664
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeClass)(["kq3d-terrain-operation-analysis", {
|
|
11510
11665
|
'kq-box-shadow': __props.showShadow
|
|
11511
|
-
}])
|
|
11512
|
-
|
|
11666
|
+
}]),
|
|
11667
|
+
ref_key: "boxRef",
|
|
11668
|
+
ref: boxRef
|
|
11669
|
+
}, [__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)), {
|
|
11513
11670
|
key: 0,
|
|
11514
|
-
|
|
11515
|
-
|
|
11516
|
-
|
|
11517
|
-
|
|
11518
|
-
|
|
11519
|
-
}, null, 8
|
|
11520
|
-
/* PROPS */
|
|
11521
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (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", TerrainOperationvue_type_script_setup_true_lang_js_hoisted_1, [__props.operationMode === 0 ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createBlock)(_component_kq_row, {
|
|
11671
|
+
ref_key: "headerTempRef",
|
|
11672
|
+
ref: headerTempRef
|
|
11673
|
+
}, null, 512
|
|
11674
|
+
/* NEED_PATCH */
|
|
11675
|
+
)) : (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", TerrainOperationvue_type_script_setup_true_lang_js_hoisted_1, [__props.operationMode === 0 ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createBlock)(_component_kq_row, {
|
|
11522
11676
|
key: 0
|
|
11523
11677
|
}, {
|
|
11524
11678
|
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_radio, {
|
|
@@ -12014,8 +12168,6 @@ const ExcavateFillAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
12014
12168
|
clearResult
|
|
12015
12169
|
});
|
|
12016
12170
|
return (_ctx, _cache) => {
|
|
12017
|
-
const _component_HeaderTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("HeaderTemp");
|
|
12018
|
-
|
|
12019
12171
|
const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-slider");
|
|
12020
12172
|
|
|
12021
12173
|
const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-col");
|
|
@@ -12048,16 +12200,7 @@ const ExcavateFillAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
12048
12200
|
ref: headerTempRef
|
|
12049
12201
|
}, null, 512
|
|
12050
12202
|
/* NEED_PATCH */
|
|
12051
|
-
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createCommentVNode)("v-if", true),
|
|
12052
|
-
key: 1,
|
|
12053
|
-
showShadow: __props.showShadow,
|
|
12054
|
-
headerTempTitle: __props.headerTempTitle || (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).excavateFillAnalysis,
|
|
12055
|
-
headerTempIcon: __props.headerTempIcon,
|
|
12056
|
-
isCollapse: __props.isCollapseHeaderTemp,
|
|
12057
|
-
isRight: __props.isRight
|
|
12058
|
-
}, null, 8
|
|
12059
|
-
/* PROPS */
|
|
12060
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (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", ExcavateFillAnalysisvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, {
|
|
12203
|
+
)) : (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", ExcavateFillAnalysisvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, {
|
|
12061
12204
|
style: {
|
|
12062
12205
|
"display": "flex"
|
|
12063
12206
|
}
|
|
@@ -12065,7 +12208,7 @@ const ExcavateFillAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
12065
12208
|
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)("div", {
|
|
12066
12209
|
class: "kq3d-excavate-fill-analysis-label",
|
|
12067
12210
|
style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeStyle)({
|
|
12068
|
-
width: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(currentLang) === 'zh' ? '
|
|
12211
|
+
width: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(currentLang) === 'zh' ? '100px' : '130px'
|
|
12069
12212
|
})
|
|
12070
12213
|
}, (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).altitudeHeight), 5
|
|
12071
12214
|
/* TEXT, STYLE */
|
|
@@ -12529,6 +12672,11 @@ const FloodAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
12529
12672
|
type: Boolean,
|
|
12530
12673
|
default: true
|
|
12531
12674
|
},
|
|
12675
|
+
|
|
12676
|
+
/**
|
|
12677
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
12678
|
+
*/
|
|
12679
|
+
position: [String, Object],
|
|
12532
12680
|
// 是否生成HeaderTemp
|
|
12533
12681
|
showHeaderTemp: {
|
|
12534
12682
|
type: Boolean,
|
|
@@ -12541,7 +12689,8 @@ const FloodAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
12541
12689
|
},
|
|
12542
12690
|
// HeaderTemp标题
|
|
12543
12691
|
headerTempTitle: {
|
|
12544
|
-
type: String
|
|
12692
|
+
type: String,
|
|
12693
|
+
default: "淹没分析"
|
|
12545
12694
|
},
|
|
12546
12695
|
// HeaderTemp图标
|
|
12547
12696
|
headerTempIcon: {
|
|
@@ -12560,8 +12709,7 @@ const FloodAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
12560
12709
|
}) {
|
|
12561
12710
|
const props = __props;
|
|
12562
12711
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)({});
|
|
12563
|
-
let collapseValue = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)("");
|
|
12564
|
-
let headerTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(""); // 淹没色调图片
|
|
12712
|
+
let collapseValue = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(""); // 淹没色调图片
|
|
12565
12713
|
|
|
12566
12714
|
const colorImages = [{
|
|
12567
12715
|
value: "0",
|
|
@@ -12608,8 +12756,21 @@ const FloodAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
12608
12756
|
floodColorImage: props.settingParams && props.settingParams.floodColorImage || "0" // 淹没纹理色带值
|
|
12609
12757
|
|
|
12610
12758
|
});
|
|
12611
|
-
let viewModel = null;
|
|
12759
|
+
let viewModel = null; // 组件容器Ref
|
|
12760
|
+
|
|
12761
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null); // 生成组件默认header
|
|
12762
|
+
|
|
12763
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
12764
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
12612
12765
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
12766
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
12767
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.position, (newVal, oldVal) => {
|
|
12768
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
12769
|
+
});
|
|
12770
|
+
watchCreateHeaderTemp();
|
|
12771
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
12772
|
+
watchCreateHeaderTemp();
|
|
12773
|
+
});
|
|
12613
12774
|
gis_utils_namespaceObject.utils.getWebMap(props.target, scenceView => {
|
|
12614
12775
|
if (scenceView) {
|
|
12615
12776
|
language.value = scenceView._language;
|
|
@@ -12622,23 +12783,31 @@ const FloodAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
12622
12783
|
maxHeight: formItem.floodMaxHeight,
|
|
12623
12784
|
colorImage: formItem.floodColorImage
|
|
12624
12785
|
}); //设置HeaderTemp标题
|
|
12625
|
-
|
|
12626
|
-
if (props.
|
|
12627
|
-
|
|
12628
|
-
} else {
|
|
12629
|
-
|
|
12630
|
-
|
|
12631
|
-
|
|
12632
|
-
|
|
12633
|
-
|
|
12634
|
-
|
|
12635
|
-
|
|
12636
|
-
}
|
|
12637
|
-
}
|
|
12638
|
-
}
|
|
12786
|
+
// if (!props.headerTempTitle) {
|
|
12787
|
+
// if (props.isShowMode) {
|
|
12788
|
+
// props.headerTempTitle = scenceView._language.floodAnalysis;
|
|
12789
|
+
// } else {
|
|
12790
|
+
// if (formItem.floodMode === 0) {
|
|
12791
|
+
// props.headerTempTitle = scenceView._language.floodTerrain + scenceView._language.floodAnalysis1;
|
|
12792
|
+
// } else if (formItem.floodMode === 1) {
|
|
12793
|
+
// props.headerTempTitle = scenceView._language.floodModel + scenceView._language.floodAnalysis1;
|
|
12794
|
+
// }
|
|
12795
|
+
// }
|
|
12796
|
+
// }
|
|
12639
12797
|
}
|
|
12640
12798
|
});
|
|
12641
|
-
});
|
|
12799
|
+
});
|
|
12800
|
+
/**
|
|
12801
|
+
* @description 监听header生成
|
|
12802
|
+
*/
|
|
12803
|
+
|
|
12804
|
+
const watchCreateHeaderTemp = () => {
|
|
12805
|
+
if (props.showHeaderTemp) {
|
|
12806
|
+
// 生成headerTemp
|
|
12807
|
+
headerTemp.value = (0,util_namespaceObject.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toRefs)(props), headerTempRef);
|
|
12808
|
+
}
|
|
12809
|
+
}; //获取图片路径
|
|
12810
|
+
|
|
12642
12811
|
|
|
12643
12812
|
function getImagePath(value) {
|
|
12644
12813
|
var imagePath = "";
|
|
@@ -12740,17 +12909,16 @@ const FloodAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
12740
12909
|
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", {
|
|
12741
12910
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeClass)(["kq3d-flood-analysis", {
|
|
12742
12911
|
'kq-box-shadow': __props.showShadow
|
|
12743
|
-
}])
|
|
12744
|
-
|
|
12912
|
+
}]),
|
|
12913
|
+
ref_key: "boxRef",
|
|
12914
|
+
ref: boxRef
|
|
12915
|
+
}, [__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)), {
|
|
12745
12916
|
key: 0,
|
|
12746
|
-
|
|
12747
|
-
|
|
12748
|
-
|
|
12749
|
-
|
|
12750
|
-
|
|
12751
|
-
}, null, 8
|
|
12752
|
-
/* PROPS */
|
|
12753
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (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", FloodAnalysisvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, {
|
|
12917
|
+
ref_key: "headerTempRef",
|
|
12918
|
+
ref: headerTempRef
|
|
12919
|
+
}, null, 512
|
|
12920
|
+
/* NEED_PATCH */
|
|
12921
|
+
)) : (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", FloodAnalysisvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, {
|
|
12754
12922
|
class: "kq3d-flood-analysis-tip"
|
|
12755
12923
|
}, {
|
|
12756
12924
|
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).floodTips), 1
|
|
@@ -13491,6 +13659,11 @@ const SlopeAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
13491
13659
|
type: Boolean,
|
|
13492
13660
|
default: true
|
|
13493
13661
|
},
|
|
13662
|
+
|
|
13663
|
+
/**
|
|
13664
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
13665
|
+
*/
|
|
13666
|
+
position: [String, Object],
|
|
13494
13667
|
// 是否生成HeaderTemp
|
|
13495
13668
|
showHeaderTemp: {
|
|
13496
13669
|
type: Boolean,
|
|
@@ -13570,8 +13743,21 @@ const SlopeAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
13570
13743
|
maxSlope: props.settingParams && props.settingParams.maxSlope || 60,
|
|
13571
13744
|
slopeColorAlpha: props.settingParams && props.settingParams.slopeColorAlpha || 0.3,
|
|
13572
13745
|
slopeColorText: props.settingParams && props.settingParams.slopeColorText || "#FF0000"
|
|
13573
|
-
});
|
|
13746
|
+
}); // 组件容器Ref
|
|
13747
|
+
|
|
13748
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null); // 生成组件默认header
|
|
13749
|
+
|
|
13750
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
13751
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
13574
13752
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
13753
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
13754
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.position, (newVal, oldVal) => {
|
|
13755
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
13756
|
+
});
|
|
13757
|
+
watchCreateHeaderTemp();
|
|
13758
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
13759
|
+
watchCreateHeaderTemp();
|
|
13760
|
+
});
|
|
13575
13761
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
13576
13762
|
|
|
13577
13763
|
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
@@ -13582,7 +13768,18 @@ const SlopeAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
13582
13768
|
// viewModel.setColorImage(imageUrl);
|
|
13583
13769
|
}
|
|
13584
13770
|
});
|
|
13585
|
-
});
|
|
13771
|
+
});
|
|
13772
|
+
/**
|
|
13773
|
+
* @description 监听header生成
|
|
13774
|
+
*/
|
|
13775
|
+
|
|
13776
|
+
const watchCreateHeaderTemp = () => {
|
|
13777
|
+
if (props.showHeaderTemp) {
|
|
13778
|
+
// 生成headerTemp
|
|
13779
|
+
headerTemp.value = (0,util_namespaceObject.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toRefs)(props), headerTempRef);
|
|
13780
|
+
}
|
|
13781
|
+
}; // 刷新自定义样式数组
|
|
13782
|
+
|
|
13586
13783
|
|
|
13587
13784
|
function refactorArr(type) {
|
|
13588
13785
|
if (!dataList || !dataList.length) return;
|
|
@@ -13717,17 +13914,16 @@ const SlopeAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
13717
13914
|
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", {
|
|
13718
13915
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeClass)(["kq3d-slope-analysis", {
|
|
13719
13916
|
'kq-box-shadow': __props.showShadow
|
|
13720
|
-
}])
|
|
13721
|
-
|
|
13917
|
+
}]),
|
|
13918
|
+
ref_key: "boxRef",
|
|
13919
|
+
ref: boxRef
|
|
13920
|
+
}, [__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)), {
|
|
13722
13921
|
key: 0,
|
|
13723
|
-
|
|
13724
|
-
|
|
13725
|
-
|
|
13726
|
-
|
|
13727
|
-
|
|
13728
|
-
}, null, 8
|
|
13729
|
-
/* PROPS */
|
|
13730
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (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", SlopeAnalysisvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).fillStyle !== 'slopeFilter' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createBlock)(_component_kq_row, {
|
|
13922
|
+
ref_key: "headerTempRef",
|
|
13923
|
+
ref: headerTempRef
|
|
13924
|
+
}, null, 512
|
|
13925
|
+
/* NEED_PATCH */
|
|
13926
|
+
)) : (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", SlopeAnalysisvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).fillStyle !== 'slopeFilter' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createBlock)(_component_kq_row, {
|
|
13731
13927
|
key: 0,
|
|
13732
13928
|
class: "kq3d-slope-analysis-tip"
|
|
13733
13929
|
}, {
|
|
@@ -15163,6 +15359,11 @@ const IsolineAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
15163
15359
|
type: Boolean,
|
|
15164
15360
|
default: true
|
|
15165
15361
|
},
|
|
15362
|
+
|
|
15363
|
+
/**
|
|
15364
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
15365
|
+
*/
|
|
15366
|
+
position: [String, Object],
|
|
15166
15367
|
// 是否生成HeaderTemp
|
|
15167
15368
|
showHeaderTemp: {
|
|
15168
15369
|
type: Boolean,
|
|
@@ -15286,8 +15487,21 @@ const IsolineAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
15286
15487
|
surfaceAlpha: props.settingParams && props.settingParams.surfaceAlpha || 0.6 // 面透明度
|
|
15287
15488
|
|
|
15288
15489
|
});
|
|
15289
|
-
let viewModel = null;
|
|
15490
|
+
let viewModel = null; // 组件容器Ref
|
|
15491
|
+
|
|
15492
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null); // 生成组件默认header
|
|
15493
|
+
|
|
15494
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
15495
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
15290
15496
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
15497
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
15498
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.position, (newVal, oldVal) => {
|
|
15499
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
15500
|
+
});
|
|
15501
|
+
watchCreateHeaderTemp();
|
|
15502
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
15503
|
+
watchCreateHeaderTemp();
|
|
15504
|
+
});
|
|
15291
15505
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
15292
15506
|
|
|
15293
15507
|
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
@@ -15328,7 +15542,18 @@ const IsolineAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
15328
15542
|
viewModel = new IsolineAnalysisViewModel(scenceView, options);
|
|
15329
15543
|
}
|
|
15330
15544
|
});
|
|
15331
|
-
});
|
|
15545
|
+
});
|
|
15546
|
+
/**
|
|
15547
|
+
* @description 监听header生成
|
|
15548
|
+
*/
|
|
15549
|
+
|
|
15550
|
+
const watchCreateHeaderTemp = () => {
|
|
15551
|
+
if (props.showHeaderTemp) {
|
|
15552
|
+
// 生成headerTemp
|
|
15553
|
+
headerTemp.value = (0,util_namespaceObject.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toRefs)(props), headerTempRef);
|
|
15554
|
+
}
|
|
15555
|
+
}; // 刷新自定义样式数组
|
|
15556
|
+
|
|
15332
15557
|
|
|
15333
15558
|
function refactorArr(type) {
|
|
15334
15559
|
if (!dataList || !dataList.length) return;
|
|
@@ -15519,17 +15744,16 @@ const IsolineAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
15519
15744
|
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", {
|
|
15520
15745
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeClass)(["kq3d-isoline-analysis", {
|
|
15521
15746
|
'kq-box-shadow': __props.showShadow
|
|
15522
|
-
}])
|
|
15523
|
-
|
|
15747
|
+
}]),
|
|
15748
|
+
ref_key: "boxRef",
|
|
15749
|
+
ref: boxRef
|
|
15750
|
+
}, [__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)), {
|
|
15524
15751
|
key: 0,
|
|
15525
|
-
|
|
15526
|
-
|
|
15527
|
-
|
|
15528
|
-
|
|
15529
|
-
|
|
15530
|
-
}, null, 8
|
|
15531
|
-
/* PROPS */
|
|
15532
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (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", IsolineAnalysisvue_type_script_setup_true_lang_js_hoisted_1, [(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, {
|
|
15752
|
+
ref_key: "headerTempRef",
|
|
15753
|
+
ref: headerTempRef
|
|
15754
|
+
}, null, 512
|
|
15755
|
+
/* NEED_PATCH */
|
|
15756
|
+
)) : (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", IsolineAnalysisvue_type_script_setup_true_lang_js_hoisted_1, [(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, {
|
|
15533
15757
|
gutter: 20
|
|
15534
15758
|
}, {
|
|
15535
15759
|
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, {
|
|
@@ -18620,6 +18844,11 @@ const PlaneClipvue_type_script_setup_true_lang_js_default_ = {
|
|
|
18620
18844
|
type: Boolean,
|
|
18621
18845
|
default: true
|
|
18622
18846
|
},
|
|
18847
|
+
|
|
18848
|
+
/**
|
|
18849
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
18850
|
+
*/
|
|
18851
|
+
position: [String, Object],
|
|
18623
18852
|
// 是否生成HeaderTemp
|
|
18624
18853
|
showHeaderTemp: {
|
|
18625
18854
|
type: Boolean,
|
|
@@ -18666,8 +18895,21 @@ const PlaneClipvue_type_script_setup_true_lang_js_default_ = {
|
|
|
18666
18895
|
boxEnable: props.settingParams && props.settingParams.boxEnable !== undefined || false,
|
|
18667
18896
|
clipDistance: props.settingParams && props.settingParams.clipDistance || 0
|
|
18668
18897
|
});
|
|
18669
|
-
let viewModel = null;
|
|
18898
|
+
let viewModel = null; // 组件容器Ref
|
|
18899
|
+
|
|
18900
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null); // 生成组件默认header
|
|
18901
|
+
|
|
18902
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
18903
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
18670
18904
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
18905
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
18906
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.position, (newVal, oldVal) => {
|
|
18907
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
18908
|
+
});
|
|
18909
|
+
watchCreateHeaderTemp();
|
|
18910
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
18911
|
+
watchCreateHeaderTemp();
|
|
18912
|
+
});
|
|
18671
18913
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
18672
18914
|
//父组 件ScenceView初始化完成后执行
|
|
18673
18915
|
|
|
@@ -18695,7 +18937,18 @@ const PlaneClipvue_type_script_setup_true_lang_js_default_ = {
|
|
|
18695
18937
|
}
|
|
18696
18938
|
}
|
|
18697
18939
|
}, 1000);
|
|
18698
|
-
});
|
|
18940
|
+
});
|
|
18941
|
+
/**
|
|
18942
|
+
* @description 监听header生成
|
|
18943
|
+
*/
|
|
18944
|
+
|
|
18945
|
+
const watchCreateHeaderTemp = () => {
|
|
18946
|
+
if (props.showHeaderTemp) {
|
|
18947
|
+
// 生成headerTemp
|
|
18948
|
+
headerTemp.value = (0,util_namespaceObject.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toRefs)(props), headerTempRef);
|
|
18949
|
+
}
|
|
18950
|
+
}; // 参数改变
|
|
18951
|
+
|
|
18699
18952
|
|
|
18700
18953
|
function paramsChanged(key) {
|
|
18701
18954
|
switch (key) {
|
|
@@ -18775,17 +19028,16 @@ const PlaneClipvue_type_script_setup_true_lang_js_default_ = {
|
|
|
18775
19028
|
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", {
|
|
18776
19029
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeClass)(["kq3d-plane-clip", {
|
|
18777
19030
|
'kq-box-shadow': __props.showShadow
|
|
18778
|
-
}])
|
|
18779
|
-
|
|
19031
|
+
}]),
|
|
19032
|
+
ref_key: "boxRef",
|
|
19033
|
+
ref: boxRef
|
|
19034
|
+
}, [__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)), {
|
|
18780
19035
|
key: 0,
|
|
18781
|
-
|
|
18782
|
-
|
|
18783
|
-
|
|
18784
|
-
|
|
18785
|
-
|
|
18786
|
-
}, null, 8
|
|
18787
|
-
/* PROPS */
|
|
18788
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (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", PlaneClipvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, {
|
|
19036
|
+
ref_key: "headerTempRef",
|
|
19037
|
+
ref: headerTempRef
|
|
19038
|
+
}, null, 512
|
|
19039
|
+
/* NEED_PATCH */
|
|
19040
|
+
)) : (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", PlaneClipvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, {
|
|
18789
19041
|
gutter: 20,
|
|
18790
19042
|
class: "rowClass"
|
|
18791
19043
|
}, {
|
|
@@ -19187,183 +19439,271 @@ class AddDataViewModel {
|
|
|
19187
19439
|
this._layerManager = scenceView._layerManager;
|
|
19188
19440
|
this._geojsonStyle.billboard.image = options.billboardImage;
|
|
19189
19441
|
this._language = scenceView._language;
|
|
19442
|
+
this._geometryServerUrl = options.geometryServerUrl;
|
|
19443
|
+
this._geometryServerToken = options.geometryServerToken;
|
|
19190
19444
|
} //解析文件
|
|
19191
19445
|
|
|
19192
19446
|
|
|
19193
|
-
parseFile(file,
|
|
19194
|
-
var reader = new FileReader();
|
|
19195
|
-
reader.readAsText(file); //文本
|
|
19196
|
-
//readAsDataURL(file); //base64 图片
|
|
19197
|
-
//readAsArrayBuffer(file); //原始二进制数据
|
|
19198
|
-
//readAsBinaryString(file);//二进制字符串
|
|
19199
|
-
//reader.readAsBinaryString(file);
|
|
19200
|
-
|
|
19447
|
+
parseFile(file, cb) {
|
|
19201
19448
|
var that = this;
|
|
19202
|
-
|
|
19203
|
-
reader.onload = function (event) {
|
|
19204
|
-
var ret = event.target.result;
|
|
19449
|
+
return new Promise((resolve, reject) => {
|
|
19205
19450
|
var ext = file.name.replace(/.+\./, "").toLowerCase(); //文件扩展名
|
|
19206
19451
|
|
|
19207
19452
|
var name = file.name.replace(/(.*\/)*([^.]+).*/gi, "$2"); //文件名
|
|
19208
19453
|
|
|
19209
|
-
|
|
19210
|
-
|
|
19211
|
-
|
|
19212
|
-
|
|
19213
|
-
|
|
19214
|
-
|
|
19454
|
+
if (ext === "zip") {
|
|
19455
|
+
(0,util_namespaceObject.uploadSHP)(that._geometryServerUrl, file, that._geometryServerToken, null, function (res) {
|
|
19456
|
+
if (res) {
|
|
19457
|
+
if (res.srs) {
|
|
19458
|
+
//返回的geojson数据已经做了处理,返回数据坐标系为4326
|
|
19459
|
+
delete res.srs;
|
|
19460
|
+
}
|
|
19215
19461
|
|
|
19216
|
-
|
|
19217
|
-
|
|
19462
|
+
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
19463
|
+
ds.load(res, that._geojsonStyle).then(ds => {
|
|
19464
|
+
ds.entities.values.forEach(entity => {
|
|
19465
|
+
if (entity.polygon) {
|
|
19466
|
+
entity.polyline = {
|
|
19467
|
+
positions: entity.polygon.hierarchy._value.positions,
|
|
19468
|
+
width: that._geojsonStyle.polygon.outlineWidth,
|
|
19469
|
+
material: that._geojsonStyle.polygon.outlineColor
|
|
19470
|
+
};
|
|
19471
|
+
}
|
|
19472
|
+
});
|
|
19218
19473
|
|
|
19219
|
-
|
|
19220
|
-
ret = data;
|
|
19221
|
-
}
|
|
19222
|
-
} catch (e) {}
|
|
19474
|
+
that._viewer.dataSources.add(ds);
|
|
19223
19475
|
|
|
19224
|
-
|
|
19225
|
-
|
|
19226
|
-
|
|
19227
|
-
|
|
19228
|
-
|
|
19229
|
-
|
|
19230
|
-
|
|
19231
|
-
|
|
19232
|
-
|
|
19233
|
-
|
|
19476
|
+
ds.autoAvoid(that._viewer);
|
|
19477
|
+
|
|
19478
|
+
that._viewer.flyTo(ds);
|
|
19479
|
+
|
|
19480
|
+
resolve("success");
|
|
19481
|
+
var layer = {
|
|
19482
|
+
guid: ds.guid,
|
|
19483
|
+
name: name,
|
|
19484
|
+
visible: true,
|
|
19485
|
+
serverType: "datasource",
|
|
19486
|
+
lsType: "ls"
|
|
19487
|
+
};
|
|
19488
|
+
|
|
19489
|
+
that._layerManager.addTempLayerNode(layer);
|
|
19490
|
+
|
|
19491
|
+
cb && cb(layer);
|
|
19234
19492
|
});
|
|
19493
|
+
} else {
|
|
19494
|
+
reject(file.name + " service parse error.");
|
|
19495
|
+
cb && cb("error");
|
|
19496
|
+
}
|
|
19497
|
+
});
|
|
19498
|
+
} else if (ext === "txt") {
|
|
19499
|
+
let dataUrl = that._geometryServerUrl + (that._geometryServerToken ? "?ua_token=" + that._geometryServerToken : "");
|
|
19500
|
+
(0,util_namespaceObject.readTxT)(file, dataUrl, "4326", res => {
|
|
19501
|
+
if (res) {
|
|
19502
|
+
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
19503
|
+
ds.load(res, that._geojsonStyle).then(ds => {
|
|
19504
|
+
ds.entities.values.forEach(entity => {
|
|
19505
|
+
if (entity.polygon) {
|
|
19506
|
+
entity.polyline = {
|
|
19507
|
+
positions: entity.polygon.hierarchy._value.positions,
|
|
19508
|
+
width: that._geojsonStyle.polygon.outlineWidth,
|
|
19509
|
+
material: that._geojsonStyle.polygon.outlineColor
|
|
19510
|
+
};
|
|
19511
|
+
}
|
|
19512
|
+
});
|
|
19235
19513
|
|
|
19236
|
-
|
|
19514
|
+
that._viewer.dataSources.add(ds);
|
|
19237
19515
|
|
|
19238
|
-
|
|
19516
|
+
ds.autoAvoid(that._viewer);
|
|
19239
19517
|
|
|
19240
|
-
|
|
19518
|
+
that._viewer.flyTo(ds);
|
|
19241
19519
|
|
|
19242
|
-
|
|
19243
|
-
|
|
19244
|
-
|
|
19245
|
-
|
|
19246
|
-
|
|
19247
|
-
|
|
19248
|
-
|
|
19520
|
+
resolve("success");
|
|
19521
|
+
var layer = {
|
|
19522
|
+
guid: ds.guid,
|
|
19523
|
+
name: name,
|
|
19524
|
+
visible: true,
|
|
19525
|
+
serverType: "datasource",
|
|
19526
|
+
lsType: "ls"
|
|
19527
|
+
};
|
|
19249
19528
|
|
|
19250
|
-
|
|
19529
|
+
that._layerManager.addTempLayerNode(layer);
|
|
19251
19530
|
|
|
19252
|
-
|
|
19253
|
-
|
|
19254
|
-
|
|
19531
|
+
cb && cb(layer);
|
|
19532
|
+
});
|
|
19533
|
+
} else {
|
|
19534
|
+
reject(file.name + " service parse error.");
|
|
19535
|
+
}
|
|
19536
|
+
});
|
|
19537
|
+
} else {
|
|
19538
|
+
var reader = new FileReader();
|
|
19539
|
+
reader.readAsText(file); //文本
|
|
19540
|
+
//readAsDataURL(file); //base64 图片
|
|
19541
|
+
//readAsArrayBuffer(file); //原始二进制数据
|
|
19542
|
+
//readAsBinaryString(file);//二进制字符串
|
|
19543
|
+
//reader.readAsBinaryString(file);
|
|
19544
|
+
|
|
19545
|
+
reader.onload = function (event) {
|
|
19546
|
+
var ret = event.target.result;
|
|
19547
|
+
|
|
19548
|
+
switch (ext) {
|
|
19549
|
+
case "json":
|
|
19550
|
+
case "geojson":
|
|
19551
|
+
case "topojson":
|
|
19552
|
+
ret = ret.replace(/(^\s*)|(\s*$)/, "");
|
|
19553
|
+
ret = ret.substring(ret.indexOf("{"));
|
|
19554
|
+
|
|
19555
|
+
try {
|
|
19556
|
+
var data = JSON.parse(ret);
|
|
19557
|
+
|
|
19558
|
+
if (typeof data == "object" && data) {
|
|
19559
|
+
ret = data;
|
|
19560
|
+
}
|
|
19561
|
+
} catch (e) {}
|
|
19562
|
+
|
|
19563
|
+
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
19564
|
+
ds.load(ret, that._geojsonStyle).then(ds => {
|
|
19565
|
+
ds.entities.values.forEach(entity => {
|
|
19566
|
+
if (entity.polygon) {
|
|
19567
|
+
entity.polyline = {
|
|
19568
|
+
positions: entity.polygon.hierarchy._value.positions,
|
|
19569
|
+
width: that._geojsonStyle.polygon.outlineWidth,
|
|
19570
|
+
material: that._geojsonStyle.polygon.outlineColor
|
|
19571
|
+
};
|
|
19572
|
+
}
|
|
19573
|
+
});
|
|
19255
19574
|
|
|
19256
|
-
|
|
19257
|
-
ret = ret.replace(/(^\s*)|(\s*$)/, "");
|
|
19258
|
-
var options = {
|
|
19259
|
-
name: name,
|
|
19260
|
-
camera: that._viewer.scene.camera,
|
|
19261
|
-
canvas: that._viewer.scene.canvas
|
|
19262
|
-
};
|
|
19263
|
-
var ds = new Cesium.KmlDataSource(options);
|
|
19264
|
-
var data = new Blob([ret], {
|
|
19265
|
-
type: "text/xml"
|
|
19266
|
-
});
|
|
19267
|
-
ds.load(data).then(ds => {
|
|
19268
|
-
that._viewer.dataSources.add(ds);
|
|
19575
|
+
that._viewer.dataSources.add(ds);
|
|
19269
19576
|
|
|
19270
|
-
|
|
19577
|
+
ds.autoAvoid(that._viewer);
|
|
19271
19578
|
|
|
19272
|
-
|
|
19273
|
-
guid: ds.guid,
|
|
19274
|
-
name: name,
|
|
19275
|
-
visible: true,
|
|
19276
|
-
serverType: "datasource",
|
|
19277
|
-
lsType: "ls"
|
|
19278
|
-
};
|
|
19579
|
+
that._viewer.flyTo(ds);
|
|
19279
19580
|
|
|
19280
|
-
|
|
19581
|
+
resolve("success");
|
|
19582
|
+
var layer = {
|
|
19583
|
+
guid: ds.guid,
|
|
19584
|
+
name: name,
|
|
19585
|
+
visible: true,
|
|
19586
|
+
serverType: "datasource",
|
|
19587
|
+
lsType: "ls"
|
|
19588
|
+
};
|
|
19281
19589
|
|
|
19282
|
-
|
|
19283
|
-
});
|
|
19284
|
-
break;
|
|
19590
|
+
that._layerManager.addTempLayerNode(layer);
|
|
19285
19591
|
|
|
19286
|
-
|
|
19287
|
-
|
|
19288
|
-
|
|
19289
|
-
camera: that._viewer.scene.camera,
|
|
19290
|
-
canvas: that._viewer.scene.canvas
|
|
19291
|
-
};
|
|
19292
|
-
var ds = new Cesium.KmlDataSource(options);
|
|
19293
|
-
ds.load(file).then(ds => {
|
|
19294
|
-
that._viewer.dataSources.add(ds);
|
|
19592
|
+
cb && cb(layer);
|
|
19593
|
+
});
|
|
19594
|
+
break;
|
|
19295
19595
|
|
|
19296
|
-
|
|
19596
|
+
case "kml":
|
|
19597
|
+
ret = ret.replace(/(^\s*)|(\s*$)/, "");
|
|
19598
|
+
var options = {
|
|
19599
|
+
name: name,
|
|
19600
|
+
camera: that._viewer.scene.camera,
|
|
19601
|
+
canvas: that._viewer.scene.canvas
|
|
19602
|
+
};
|
|
19603
|
+
var ds = new Cesium.KmlDataSource(options);
|
|
19604
|
+
var data = new Blob([ret], {
|
|
19605
|
+
type: "text/xml"
|
|
19606
|
+
});
|
|
19607
|
+
ds.load(data).then(ds => {
|
|
19608
|
+
that._viewer.dataSources.add(ds);
|
|
19297
19609
|
|
|
19298
|
-
|
|
19299
|
-
|
|
19300
|
-
|
|
19301
|
-
|
|
19302
|
-
|
|
19303
|
-
|
|
19304
|
-
|
|
19610
|
+
that._viewer.flyTo(ds);
|
|
19611
|
+
|
|
19612
|
+
resolve("success");
|
|
19613
|
+
var layer = {
|
|
19614
|
+
guid: ds.guid,
|
|
19615
|
+
name: name,
|
|
19616
|
+
visible: true,
|
|
19617
|
+
serverType: "datasource",
|
|
19618
|
+
lsType: "ls"
|
|
19619
|
+
};
|
|
19620
|
+
|
|
19621
|
+
that._layerManager.addTempLayerNode(layer);
|
|
19622
|
+
|
|
19623
|
+
cb && cb(layer);
|
|
19624
|
+
});
|
|
19625
|
+
break;
|
|
19305
19626
|
|
|
19306
|
-
|
|
19627
|
+
case "kmz":
|
|
19628
|
+
var options = {
|
|
19629
|
+
name: name,
|
|
19630
|
+
camera: that._viewer.scene.camera,
|
|
19631
|
+
canvas: that._viewer.scene.canvas
|
|
19632
|
+
};
|
|
19633
|
+
var ds = new Cesium.KmlDataSource(options);
|
|
19634
|
+
ds.load(file).then(ds => {
|
|
19635
|
+
that._viewer.dataSources.add(ds);
|
|
19307
19636
|
|
|
19308
|
-
|
|
19309
|
-
});
|
|
19310
|
-
break;
|
|
19637
|
+
that._viewer.flyTo(ds);
|
|
19311
19638
|
|
|
19312
|
-
|
|
19313
|
-
|
|
19639
|
+
resolve("success");
|
|
19640
|
+
var layer = {
|
|
19641
|
+
guid: ds.guid,
|
|
19642
|
+
name: name,
|
|
19643
|
+
visible: true,
|
|
19644
|
+
serverType: "datasource",
|
|
19645
|
+
lsType: "ls"
|
|
19646
|
+
};
|
|
19314
19647
|
|
|
19315
|
-
|
|
19316
|
-
var data = JSON.parse(ret);
|
|
19648
|
+
that._layerManager.addTempLayerNode(layer);
|
|
19317
19649
|
|
|
19318
|
-
|
|
19319
|
-
|
|
19320
|
-
|
|
19321
|
-
} catch (e) {}
|
|
19650
|
+
cb && cb(layer);
|
|
19651
|
+
});
|
|
19652
|
+
break;
|
|
19322
19653
|
|
|
19323
|
-
|
|
19324
|
-
|
|
19325
|
-
})).then(ds => {
|
|
19326
|
-
that._viewer.flyTo(ds);
|
|
19654
|
+
case "czml":
|
|
19655
|
+
ret = ret.replace(/(^\s*)|(\s*$)/, "");
|
|
19327
19656
|
|
|
19328
|
-
|
|
19329
|
-
|
|
19330
|
-
name: name,
|
|
19331
|
-
visible: true,
|
|
19332
|
-
serverType: "datasource",
|
|
19333
|
-
lsType: "ls"
|
|
19334
|
-
};
|
|
19657
|
+
try {
|
|
19658
|
+
var data = JSON.parse(ret);
|
|
19335
19659
|
|
|
19336
|
-
|
|
19660
|
+
if (typeof data == "object" && data) {
|
|
19661
|
+
ret = data;
|
|
19662
|
+
}
|
|
19663
|
+
} catch (e) {}
|
|
19337
19664
|
|
|
19338
|
-
|
|
19339
|
-
|
|
19665
|
+
that._viewer.dataSources.add(Cesium.CzmlDataSource.load(ret, {
|
|
19666
|
+
name: name
|
|
19667
|
+
})).then(ds => {
|
|
19668
|
+
that._viewer.flyTo(ds);
|
|
19340
19669
|
|
|
19341
|
-
|
|
19670
|
+
resolve("success");
|
|
19671
|
+
var layer = {
|
|
19672
|
+
guid: ds.guid,
|
|
19673
|
+
name: name,
|
|
19674
|
+
visible: true,
|
|
19675
|
+
serverType: "datasource",
|
|
19676
|
+
lsType: "ls"
|
|
19677
|
+
};
|
|
19342
19678
|
|
|
19343
|
-
|
|
19344
|
-
break;
|
|
19679
|
+
that._layerManager.addTempLayerNode(layer);
|
|
19345
19680
|
|
|
19346
|
-
|
|
19347
|
-
|
|
19681
|
+
cb && cb(layer);
|
|
19682
|
+
});
|
|
19348
19683
|
|
|
19349
|
-
|
|
19350
|
-
break;
|
|
19684
|
+
break;
|
|
19351
19685
|
|
|
19352
|
-
|
|
19353
|
-
|
|
19354
|
-
break;
|
|
19686
|
+
case "txt":
|
|
19687
|
+
break;
|
|
19355
19688
|
|
|
19356
|
-
|
|
19357
|
-
|
|
19358
|
-
}
|
|
19689
|
+
case "csv":
|
|
19690
|
+
break;
|
|
19359
19691
|
|
|
19360
|
-
|
|
19361
|
-
|
|
19692
|
+
case "xls":
|
|
19693
|
+
case "xlsx":
|
|
19694
|
+
break;
|
|
19362
19695
|
|
|
19363
|
-
|
|
19364
|
-
|
|
19365
|
-
|
|
19366
|
-
|
|
19696
|
+
default:
|
|
19697
|
+
break;
|
|
19698
|
+
}
|
|
19699
|
+
};
|
|
19700
|
+
|
|
19701
|
+
reader.onerror = function () {
|
|
19702
|
+
console.log(file.name + " read error.");
|
|
19703
|
+
reject(file.name + " read error.");
|
|
19704
|
+
};
|
|
19705
|
+
}
|
|
19706
|
+
});
|
|
19367
19707
|
} //解析数据源
|
|
19368
19708
|
|
|
19369
19709
|
|
|
@@ -19807,6 +20147,16 @@ class AddDataViewModel {
|
|
|
19807
20147
|
case "geojson":
|
|
19808
20148
|
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
19809
20149
|
ds.load(url, this._geojsonStyle).then(ds => {
|
|
20150
|
+
ds.entities.values.forEach(entity => {
|
|
20151
|
+
if (entity.polygon) {
|
|
20152
|
+
entity.polyline = {
|
|
20153
|
+
positions: entity.polygon.hierarchy._value.positions,
|
|
20154
|
+
width: this._geojsonStyle.polygon.outlineWidth,
|
|
20155
|
+
material: this._geojsonStyle.polygon.outlineColor
|
|
20156
|
+
};
|
|
20157
|
+
}
|
|
20158
|
+
}, this);
|
|
20159
|
+
|
|
19810
20160
|
this._viewer.dataSources.add(ds);
|
|
19811
20161
|
|
|
19812
20162
|
ds.autoAvoid(this._viewer);
|
|
@@ -19967,6 +20317,16 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
19967
20317
|
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
19968
20318
|
*/
|
|
19969
20319
|
position: [String, Object],
|
|
20320
|
+
// 几何服务地址前缀,例:http://support.kqgeo.com:29800/geometry-proxy/kqgis/rest/services/geometry
|
|
20321
|
+
geometryServerUrl: {
|
|
20322
|
+
type: String,
|
|
20323
|
+
required: true
|
|
20324
|
+
},
|
|
20325
|
+
// 几何服务token,例:eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJob3N0IiwiY3JlYXRlZCI6MTY1NTk2MzU1NzUyMywiZXhwIjoxNzY3MTEwNDAwfQ.BiNOr6vL6liHzlMK89XSvqmFY9fuWiYqDEwYmWxk-6vFKBgLeMC8FloBXyKcxOCl9Rd28y_pX4PhVRYP5cZTwA
|
|
20326
|
+
geometryServerToken: {
|
|
20327
|
+
type: String,
|
|
20328
|
+
required: true
|
|
20329
|
+
},
|
|
19970
20330
|
// 当前展示的tab标签页
|
|
19971
20331
|
activeName: {
|
|
19972
20332
|
type: String,
|
|
@@ -20019,7 +20379,8 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
20019
20379
|
});
|
|
20020
20380
|
let upload_ref = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null);
|
|
20021
20381
|
let upload_btn_ref = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null);
|
|
20022
|
-
let fileList = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)([]);
|
|
20382
|
+
let fileList = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)([]);
|
|
20383
|
+
let loadingFile = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(false); // 获取组件传参
|
|
20023
20384
|
|
|
20024
20385
|
let operatorArray = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.computed)(() => {
|
|
20025
20386
|
let array = [];
|
|
@@ -20167,7 +20528,9 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
20167
20528
|
];
|
|
20168
20529
|
dataSourceType.value = dataSourceTypeList.value[0];
|
|
20169
20530
|
let options = {
|
|
20170
|
-
billboardImage: const_image_namespaceObject.BILLBOARD_IMAGE_URL
|
|
20531
|
+
billboardImage: const_image_namespaceObject.BILLBOARD_IMAGE_URL,
|
|
20532
|
+
geometryServerUrl: props.geometryServerUrl,
|
|
20533
|
+
geometryServerToken: props.geometryServerToken
|
|
20171
20534
|
};
|
|
20172
20535
|
viewModel = new AddDataViewModel(scenceView, options);
|
|
20173
20536
|
}
|
|
@@ -20217,8 +20580,14 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
20217
20580
|
|
|
20218
20581
|
|
|
20219
20582
|
function loadFiles() {
|
|
20583
|
+
loadingFile.value = true;
|
|
20584
|
+
let promiseList = [];
|
|
20220
20585
|
fileList.value.forEach(file => {
|
|
20221
|
-
viewModel.parseFile(file.raw,
|
|
20586
|
+
promiseList.push(viewModel.parseFile(file.raw, props.loadCallback));
|
|
20587
|
+
});
|
|
20588
|
+
Promise.all(promiseList).then(() => {
|
|
20589
|
+
removeFiles();
|
|
20590
|
+
loadingFile.value = false;
|
|
20222
20591
|
});
|
|
20223
20592
|
} //加载URL
|
|
20224
20593
|
|
|
@@ -20287,7 +20656,7 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
20287
20656
|
name: "upload"
|
|
20288
20657
|
}, {
|
|
20289
20658
|
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)("div", AddDatavue_type_script_setup_true_lang_js_hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, {
|
|
20290
|
-
class: ""
|
|
20659
|
+
class: "kq3d-add-data-title"
|
|
20291
20660
|
}, {
|
|
20292
20661
|
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).fileFormatDescription), 1
|
|
20293
20662
|
/* TEXT */
|
|
@@ -20311,7 +20680,7 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
20311
20680
|
"auto-upload": false,
|
|
20312
20681
|
"file-list": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(fileList),
|
|
20313
20682
|
"onUpdate:file-list": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.isRef)(fileList) ? fileList.value = $event : fileList = $event),
|
|
20314
|
-
accept: ".geojson,.topojson,.json,.kml,.kmz,.czml",
|
|
20683
|
+
accept: ".zip,.geojson,.topojson,.json,.kml,.kmz,.czml,.txt",
|
|
20315
20684
|
"on-change": changeFile,
|
|
20316
20685
|
ref_key: "upload_ref",
|
|
20317
20686
|
ref: upload_ref
|
|
@@ -20379,7 +20748,7 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
20379
20748
|
action: "",
|
|
20380
20749
|
"show-file-list": false,
|
|
20381
20750
|
"auto-upload": false,
|
|
20382
|
-
accept: ".geojson,.topojson,.json,.kml,.kmz,.czml",
|
|
20751
|
+
accept: ".zip,.geojson,.topojson,.json,.kml,.kmz,.czml,.txt",
|
|
20383
20752
|
ref_key: "upload_btn_ref",
|
|
20384
20753
|
ref: upload_btn_ref,
|
|
20385
20754
|
class: "kq3d-add-data-footer-upload",
|
|
@@ -20420,7 +20789,8 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
20420
20789
|
onClick: _cache[2] || (_cache[2] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withModifiers)($event => loadFiles(), ["stop"])),
|
|
20421
20790
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).loadFiles,
|
|
20422
20791
|
type: "primary",
|
|
20423
|
-
disabled: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(disabled)
|
|
20792
|
+
disabled: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(disabled),
|
|
20793
|
+
loading: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(loadingFile)
|
|
20424
20794
|
}, {
|
|
20425
20795
|
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).loadFiles), 1
|
|
20426
20796
|
/* TEXT */
|
|
@@ -20430,7 +20800,7 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
20430
20800
|
|
|
20431
20801
|
}, 8
|
|
20432
20802
|
/* PROPS */
|
|
20433
|
-
, ["title", "disabled"])])])]),
|
|
20803
|
+
, ["title", "disabled", "loading"])])])]),
|
|
20434
20804
|
_: 3
|
|
20435
20805
|
/* FORWARDED */
|
|
20436
20806
|
|
|
@@ -20837,6 +21207,11 @@ const ParticleEffectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
20837
21207
|
type: Boolean,
|
|
20838
21208
|
default: true
|
|
20839
21209
|
},
|
|
21210
|
+
|
|
21211
|
+
/**
|
|
21212
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
21213
|
+
*/
|
|
21214
|
+
position: [String, Object],
|
|
20840
21215
|
// 是否生成HeaderTemp
|
|
20841
21216
|
showHeaderTemp: {
|
|
20842
21217
|
type: Boolean,
|
|
@@ -20886,8 +21261,21 @@ const ParticleEffectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
20886
21261
|
endScale: props.settingParams && props.settingParams.endScale || 1.0,
|
|
20887
21262
|
gravity: props.settingParams && props.settingParams.gravity || 0.0
|
|
20888
21263
|
});
|
|
20889
|
-
let viewModel = null;
|
|
21264
|
+
let viewModel = null; // 组件容器Ref
|
|
21265
|
+
|
|
21266
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null); // 生成组件默认header
|
|
21267
|
+
|
|
21268
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
21269
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
20890
21270
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
21271
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
21272
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.position, (newVal, oldVal) => {
|
|
21273
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
21274
|
+
});
|
|
21275
|
+
watchCreateHeaderTemp();
|
|
21276
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
21277
|
+
watchCreateHeaderTemp();
|
|
21278
|
+
});
|
|
20891
21279
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
20892
21280
|
|
|
20893
21281
|
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
@@ -20897,6 +21285,16 @@ const ParticleEffectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
20897
21285
|
}
|
|
20898
21286
|
});
|
|
20899
21287
|
});
|
|
21288
|
+
/**
|
|
21289
|
+
* @description 监听header生成
|
|
21290
|
+
*/
|
|
21291
|
+
|
|
21292
|
+
const watchCreateHeaderTemp = () => {
|
|
21293
|
+
if (props.showHeaderTemp) {
|
|
21294
|
+
// 生成headerTemp
|
|
21295
|
+
headerTemp.value = (0,util_namespaceObject.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toRefs)(props), headerTempRef);
|
|
21296
|
+
}
|
|
21297
|
+
};
|
|
20900
21298
|
|
|
20901
21299
|
function changeMode(mode) {
|
|
20902
21300
|
if (formItem.mode !== mode) {
|
|
@@ -21010,17 +21408,16 @@ const ParticleEffectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
21010
21408
|
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", {
|
|
21011
21409
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeClass)(["kq3d-particle-effect", {
|
|
21012
21410
|
'kq-box-shadow': __props.showShadow
|
|
21013
|
-
}])
|
|
21014
|
-
|
|
21411
|
+
}]),
|
|
21412
|
+
ref_key: "boxRef",
|
|
21413
|
+
ref: boxRef
|
|
21414
|
+
}, [__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)), {
|
|
21015
21415
|
key: 0,
|
|
21016
|
-
|
|
21017
|
-
|
|
21018
|
-
|
|
21019
|
-
|
|
21020
|
-
|
|
21021
|
-
}, null, 8
|
|
21022
|
-
/* PROPS */
|
|
21023
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (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", ParticleEffectvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, {
|
|
21416
|
+
ref_key: "headerTempRef",
|
|
21417
|
+
ref: headerTempRef
|
|
21418
|
+
}, null, 512
|
|
21419
|
+
/* NEED_PATCH */
|
|
21420
|
+
)) : (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", ParticleEffectvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, {
|
|
21024
21421
|
gutter: 20,
|
|
21025
21422
|
class: "rowclass"
|
|
21026
21423
|
}, {
|
|
@@ -21832,6 +22229,11 @@ const WeatherEffectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
21832
22229
|
type: Boolean,
|
|
21833
22230
|
default: true
|
|
21834
22231
|
},
|
|
22232
|
+
|
|
22233
|
+
/**
|
|
22234
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
22235
|
+
*/
|
|
22236
|
+
position: [String, Object],
|
|
21835
22237
|
// 是否生成HeaderTemp
|
|
21836
22238
|
showHeaderTemp: {
|
|
21837
22239
|
type: Boolean,
|
|
@@ -21879,8 +22281,21 @@ const WeatherEffectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
21879
22281
|
endScale: props.settingParams && props.settingParams.endScale || 1.3,
|
|
21880
22282
|
gravity: props.settingParams && props.settingParams.gravity || 1
|
|
21881
22283
|
});
|
|
21882
|
-
let viewModel = null;
|
|
22284
|
+
let viewModel = null; // 组件容器Ref
|
|
22285
|
+
|
|
22286
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null); // 生成组件默认header
|
|
22287
|
+
|
|
22288
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
22289
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
21883
22290
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
22291
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
22292
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.position, (newVal, oldVal) => {
|
|
22293
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
22294
|
+
});
|
|
22295
|
+
watchCreateHeaderTemp();
|
|
22296
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
22297
|
+
watchCreateHeaderTemp();
|
|
22298
|
+
});
|
|
21884
22299
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
21885
22300
|
|
|
21886
22301
|
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
@@ -21889,7 +22304,18 @@ const WeatherEffectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
21889
22304
|
viewModel = new WeatherEffectViewModel(scenceView);
|
|
21890
22305
|
}
|
|
21891
22306
|
});
|
|
21892
|
-
});
|
|
22307
|
+
});
|
|
22308
|
+
/**
|
|
22309
|
+
* @description 监听header生成
|
|
22310
|
+
*/
|
|
22311
|
+
|
|
22312
|
+
const watchCreateHeaderTemp = () => {
|
|
22313
|
+
if (props.showHeaderTemp) {
|
|
22314
|
+
// 生成headerTemp
|
|
22315
|
+
headerTemp.value = (0,util_namespaceObject.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toRefs)(props), headerTempRef);
|
|
22316
|
+
}
|
|
22317
|
+
}; //切换雨雪天气特效
|
|
22318
|
+
|
|
21893
22319
|
|
|
21894
22320
|
function changeMode(mode) {
|
|
21895
22321
|
if (formItem.mode !== mode) {
|
|
@@ -21983,17 +22409,16 @@ const WeatherEffectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
21983
22409
|
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", {
|
|
21984
22410
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeClass)(["kq3d-weather-effect", {
|
|
21985
22411
|
'kq-box-shadow': __props.showShadow
|
|
21986
|
-
}])
|
|
21987
|
-
|
|
22412
|
+
}]),
|
|
22413
|
+
ref_key: "boxRef",
|
|
22414
|
+
ref: boxRef
|
|
22415
|
+
}, [__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)), {
|
|
21988
22416
|
key: 0,
|
|
21989
|
-
|
|
21990
|
-
|
|
21991
|
-
|
|
21992
|
-
|
|
21993
|
-
|
|
21994
|
-
}, null, 8
|
|
21995
|
-
/* PROPS */
|
|
21996
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (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", WeatherEffectvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, {
|
|
22417
|
+
ref_key: "headerTempRef",
|
|
22418
|
+
ref: headerTempRef
|
|
22419
|
+
}, null, 512
|
|
22420
|
+
/* NEED_PATCH */
|
|
22421
|
+
)) : (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", WeatherEffectvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, {
|
|
21997
22422
|
gutter: 20,
|
|
21998
22423
|
class: "rowclass"
|
|
21999
22424
|
}, {
|
|
@@ -23003,6 +23428,9 @@ class ScreenshotViewModel {
|
|
|
23003
23428
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/screenshot/Screenshot.vue?vue&type=script&setup=true&lang=js
|
|
23004
23429
|
|
|
23005
23430
|
const Screenshotvue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
23431
|
+
class: "kq3d-screenshot-box"
|
|
23432
|
+
};
|
|
23433
|
+
const Screenshotvue_type_script_setup_true_lang_js_hoisted_2 = {
|
|
23006
23434
|
class: "kq3d-screenshot-footer"
|
|
23007
23435
|
};
|
|
23008
23436
|
|
|
@@ -23024,6 +23452,11 @@ const Screenshotvue_type_script_setup_true_lang_js_default_ = {
|
|
|
23024
23452
|
type: Boolean,
|
|
23025
23453
|
default: true
|
|
23026
23454
|
},
|
|
23455
|
+
|
|
23456
|
+
/**
|
|
23457
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
23458
|
+
*/
|
|
23459
|
+
position: [String, Object],
|
|
23027
23460
|
// 是否生成HeaderTemp
|
|
23028
23461
|
showHeaderTemp: {
|
|
23029
23462
|
type: Boolean,
|
|
@@ -23080,8 +23513,21 @@ const Screenshotvue_type_script_setup_true_lang_js_default_ = {
|
|
|
23080
23513
|
//倾斜摄影名称
|
|
23081
23514
|
tilesetStyle: props.settingParams && props.settingParams.tilesetStyle || style // 倾斜摄影样式
|
|
23082
23515
|
|
|
23083
|
-
});
|
|
23516
|
+
}); // 组件容器Ref
|
|
23517
|
+
|
|
23518
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null); // 生成组件默认header
|
|
23519
|
+
|
|
23520
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
23521
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
23084
23522
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
23523
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
23524
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.position, (newVal, oldVal) => {
|
|
23525
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
23526
|
+
});
|
|
23527
|
+
watchCreateHeaderTemp();
|
|
23528
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
23529
|
+
watchCreateHeaderTemp();
|
|
23530
|
+
});
|
|
23085
23531
|
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
23086
23532
|
if (scenceView) {
|
|
23087
23533
|
language.value = scenceView._language;
|
|
@@ -23093,7 +23539,18 @@ const Screenshotvue_type_script_setup_true_lang_js_default_ = {
|
|
|
23093
23539
|
viewModel = new ScreenshotViewModel(scenceView._viewer, formItem);
|
|
23094
23540
|
}
|
|
23095
23541
|
});
|
|
23096
|
-
});
|
|
23542
|
+
});
|
|
23543
|
+
/**
|
|
23544
|
+
* @description 监听header生成
|
|
23545
|
+
*/
|
|
23546
|
+
|
|
23547
|
+
const watchCreateHeaderTemp = () => {
|
|
23548
|
+
if (props.showHeaderTemp) {
|
|
23549
|
+
// 生成headerTemp
|
|
23550
|
+
headerTemp.value = (0,util_namespaceObject.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toRefs)(props), headerTempRef);
|
|
23551
|
+
}
|
|
23552
|
+
}; // 场景出图
|
|
23553
|
+
|
|
23097
23554
|
|
|
23098
23555
|
function sceneFigure() {
|
|
23099
23556
|
viewModel && viewModel.sceneFigure();
|
|
@@ -23159,17 +23616,16 @@ const Screenshotvue_type_script_setup_true_lang_js_default_ = {
|
|
|
23159
23616
|
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", {
|
|
23160
23617
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeClass)(["kq3d-screenshot", {
|
|
23161
23618
|
'kq-box-shadow': __props.showShadow
|
|
23162
|
-
}])
|
|
23163
|
-
|
|
23619
|
+
}]),
|
|
23620
|
+
ref_key: "boxRef",
|
|
23621
|
+
ref: boxRef
|
|
23622
|
+
}, [__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)), {
|
|
23164
23623
|
key: 0,
|
|
23165
|
-
|
|
23166
|
-
|
|
23167
|
-
|
|
23168
|
-
|
|
23169
|
-
|
|
23170
|
-
}, null, 8
|
|
23171
|
-
/* PROPS */
|
|
23172
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (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.createVNode)(_component_kq_form, {
|
|
23624
|
+
ref_key: "headerTempRef",
|
|
23625
|
+
ref: headerTempRef
|
|
23626
|
+
}, null, 512
|
|
23627
|
+
/* NEED_PATCH */
|
|
23628
|
+
)) : (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", Screenshotvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_form, {
|
|
23173
23629
|
"label-width": "120px",
|
|
23174
23630
|
"label-position": "left"
|
|
23175
23631
|
}, {
|
|
@@ -23324,7 +23780,7 @@ const Screenshotvue_type_script_setup_true_lang_js_default_ = {
|
|
|
23324
23780
|
_: 1
|
|
23325
23781
|
/* STABLE */
|
|
23326
23782
|
|
|
23327
|
-
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div",
|
|
23783
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", Screenshotvue_type_script_setup_true_lang_js_hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_button, {
|
|
23328
23784
|
onClick: _cache[8] || (_cache[8] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withModifiers)($event => sceneFigure(), ["stop"])),
|
|
23329
23785
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).screenshotTips,
|
|
23330
23786
|
type: "primary"
|
|
@@ -23337,7 +23793,7 @@ const Screenshotvue_type_script_setup_true_lang_js_default_ = {
|
|
|
23337
23793
|
|
|
23338
23794
|
}, 8
|
|
23339
23795
|
/* PROPS */
|
|
23340
|
-
, ["title"])])], 2
|
|
23796
|
+
, ["title"])])])], 2
|
|
23341
23797
|
/* CLASS */
|
|
23342
23798
|
);
|
|
23343
23799
|
};
|
|
@@ -23743,19 +24199,15 @@ const Rollervue_type_script_setup_true_lang_js_default_ = {
|
|
|
23743
24199
|
};
|
|
23744
24200
|
/* harmony default export */ var Rollervue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(Rollervue_type_script_setup_true_lang_js_default_, {
|
|
23745
24201
|
props: {
|
|
23746
|
-
//设置参数
|
|
23747
|
-
top: {
|
|
23748
|
-
type: Number,
|
|
23749
|
-
default: 16
|
|
23750
|
-
},
|
|
23751
|
-
right: {
|
|
23752
|
-
type: Number,
|
|
23753
|
-
default: 16
|
|
23754
|
-
},
|
|
23755
24202
|
showShadow: {
|
|
23756
24203
|
type: Boolean,
|
|
23757
24204
|
default: true
|
|
23758
24205
|
},
|
|
24206
|
+
|
|
24207
|
+
/**
|
|
24208
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
24209
|
+
*/
|
|
24210
|
+
position: [String, Object],
|
|
23759
24211
|
// 是否生成HeaderTemp
|
|
23760
24212
|
showHeaderTemp: {
|
|
23761
24213
|
type: Boolean,
|
|
@@ -23801,8 +24253,21 @@ const Rollervue_type_script_setup_true_lang_js_default_ = {
|
|
|
23801
24253
|
mode: props.settingParams && props.settingParams.mode || null
|
|
23802
24254
|
});
|
|
23803
24255
|
let layers = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.reactive)([]);
|
|
23804
|
-
let viewModel = null;
|
|
24256
|
+
let viewModel = null; // 组件容器Ref
|
|
24257
|
+
|
|
24258
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null); // 生成组件默认header
|
|
24259
|
+
|
|
24260
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
24261
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)();
|
|
23805
24262
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
24263
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
24264
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.position, (newVal, oldVal) => {
|
|
24265
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
24266
|
+
});
|
|
24267
|
+
watchCreateHeaderTemp();
|
|
24268
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
24269
|
+
watchCreateHeaderTemp();
|
|
24270
|
+
});
|
|
23806
24271
|
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
23807
24272
|
if (scenceView) {
|
|
23808
24273
|
language.value = scenceView._language;
|
|
@@ -23812,7 +24277,18 @@ const Rollervue_type_script_setup_true_lang_js_default_ = {
|
|
|
23812
24277
|
viewModel = new RollerViewModel(scenceView, options);
|
|
23813
24278
|
}
|
|
23814
24279
|
});
|
|
23815
|
-
});
|
|
24280
|
+
});
|
|
24281
|
+
/**
|
|
24282
|
+
* @description 监听header生成
|
|
24283
|
+
*/
|
|
24284
|
+
|
|
24285
|
+
const watchCreateHeaderTemp = () => {
|
|
24286
|
+
if (props.showHeaderTemp) {
|
|
24287
|
+
// 生成headerTemp
|
|
24288
|
+
headerTemp.value = (0,util_namespaceObject.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toRefs)(props), headerTempRef);
|
|
24289
|
+
}
|
|
24290
|
+
}; // 切换模式
|
|
24291
|
+
|
|
23816
24292
|
|
|
23817
24293
|
function changeMode() {
|
|
23818
24294
|
let mode = formItem.mode;
|
|
@@ -23860,17 +24336,15 @@ const Rollervue_type_script_setup_true_lang_js_default_ = {
|
|
|
23860
24336
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeClass)(["kq3d-roller", {
|
|
23861
24337
|
'kq-box-shadow': __props.showShadow
|
|
23862
24338
|
}]),
|
|
23863
|
-
|
|
23864
|
-
|
|
24339
|
+
ref_key: "boxRef",
|
|
24340
|
+
ref: boxRef
|
|
24341
|
+
}, [__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)), {
|
|
23865
24342
|
key: 0,
|
|
23866
|
-
|
|
23867
|
-
|
|
23868
|
-
|
|
23869
|
-
|
|
23870
|
-
|
|
23871
|
-
}, null, 8
|
|
23872
|
-
/* PROPS */
|
|
23873
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (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", Rollervue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, {
|
|
24343
|
+
ref_key: "headerTempRef",
|
|
24344
|
+
ref: headerTempRef
|
|
24345
|
+
}, null, 512
|
|
24346
|
+
/* NEED_PATCH */
|
|
24347
|
+
)) : (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", Rollervue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, {
|
|
23874
24348
|
style: {
|
|
23875
24349
|
"margin-bottom": "8px"
|
|
23876
24350
|
}
|
|
@@ -24043,8 +24517,8 @@ const Rollervue_type_script_setup_true_lang_js_default_ = {
|
|
|
24043
24517
|
|
|
24044
24518
|
}, 512
|
|
24045
24519
|
/* NEED_PATCH */
|
|
24046
|
-
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).mode !== null]])])],
|
|
24047
|
-
/* CLASS
|
|
24520
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).mode !== null]])])], 2
|
|
24521
|
+
/* CLASS */
|
|
24048
24522
|
);
|
|
24049
24523
|
};
|
|
24050
24524
|
}
|
|
@@ -24129,25 +24603,21 @@ class UndergroundViewModel {
|
|
|
24129
24603
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/underground/Underground.vue?vue&type=script&setup=true&lang=js
|
|
24130
24604
|
|
|
24131
24605
|
const Undergroundvue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
24132
|
-
class: "kq3d-underground"
|
|
24606
|
+
class: "kq3d-underground-switch"
|
|
24133
24607
|
};
|
|
24134
24608
|
|
|
24135
24609
|
|
|
24136
24610
|
|
|
24611
|
+
|
|
24137
24612
|
const Undergroundvue_type_script_setup_true_lang_js_default_ = {
|
|
24138
24613
|
name: "kq3dUnderground"
|
|
24139
24614
|
};
|
|
24140
24615
|
/* harmony default export */ var Undergroundvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(Undergroundvue_type_script_setup_true_lang_js_default_, {
|
|
24141
24616
|
props: {
|
|
24142
|
-
|
|
24143
|
-
|
|
24144
|
-
|
|
24145
|
-
|
|
24146
|
-
},
|
|
24147
|
-
right: {
|
|
24148
|
-
type: Number,
|
|
24149
|
-
default: 20
|
|
24150
|
-
}
|
|
24617
|
+
/**
|
|
24618
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
24619
|
+
*/
|
|
24620
|
+
position: [String, Object]
|
|
24151
24621
|
},
|
|
24152
24622
|
emits: ["undergroundChange"],
|
|
24153
24623
|
|
|
@@ -24163,8 +24633,14 @@ const Undergroundvue_type_script_setup_true_lang_js_default_ = {
|
|
|
24163
24633
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)({});
|
|
24164
24634
|
let isUndergroundMode = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(false);
|
|
24165
24635
|
let viewer = null;
|
|
24166
|
-
let viewModel = null;
|
|
24636
|
+
let viewModel = null; // 组件容器Ref
|
|
24637
|
+
|
|
24638
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null);
|
|
24167
24639
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
24640
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
24641
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.watch)(() => props.position, (newVal, oldVal) => {
|
|
24642
|
+
(0,util_namespaceObject.updatePosition)(boxRef.value, props);
|
|
24643
|
+
});
|
|
24168
24644
|
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
24169
24645
|
if (scenceView) {
|
|
24170
24646
|
viewer = scenceView._viewer;
|
|
@@ -24196,14 +24672,15 @@ const Undergroundvue_type_script_setup_true_lang_js_default_ = {
|
|
|
24196
24672
|
|
|
24197
24673
|
const _component_kq_form = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-form");
|
|
24198
24674
|
|
|
24199
|
-
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",
|
|
24675
|
+
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", {
|
|
24676
|
+
class: "kq3d-underground",
|
|
24677
|
+
ref_key: "boxRef",
|
|
24678
|
+
ref: boxRef
|
|
24679
|
+
}, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_form, {
|
|
24200
24680
|
"label-width": "120px",
|
|
24201
24681
|
"label-position": "left"
|
|
24202
24682
|
}, {
|
|
24203
|
-
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)("div", {
|
|
24204
|
-
class: "kq3d-underground-switch",
|
|
24205
|
-
style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeStyle)('top: ' + props.top + 'px; right: ' + props.right + 'px;')
|
|
24206
|
-
}, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_switch, {
|
|
24683
|
+
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)("div", Undergroundvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_switch, {
|
|
24207
24684
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(isUndergroundMode),
|
|
24208
24685
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.isRef)(isUndergroundMode) ? isUndergroundMode.value = $event : isUndergroundMode = $event),
|
|
24209
24686
|
onChange: undergroundChange,
|
|
@@ -24216,13 +24693,13 @@ const Undergroundvue_type_script_setup_true_lang_js_default_ = {
|
|
|
24216
24693
|
}
|
|
24217
24694
|
}, null, 8
|
|
24218
24695
|
/* PROPS */
|
|
24219
|
-
, ["modelValue", "active-text"])],
|
|
24220
|
-
/* STYLE */
|
|
24221
|
-
)]),
|
|
24696
|
+
, ["modelValue", "active-text"])])]),
|
|
24222
24697
|
_: 1
|
|
24223
24698
|
/* STABLE */
|
|
24224
24699
|
|
|
24225
|
-
})]
|
|
24700
|
+
})], 512
|
|
24701
|
+
/* NEED_PATCH */
|
|
24702
|
+
);
|
|
24226
24703
|
};
|
|
24227
24704
|
}
|
|
24228
24705
|
|