@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/scenceview/index.js
CHANGED
|
@@ -184,183 +184,271 @@ class AddDataViewModel {
|
|
|
184
184
|
this._layerManager = scenceView._layerManager;
|
|
185
185
|
this._geojsonStyle.billboard.image = options.billboardImage;
|
|
186
186
|
this._language = scenceView._language;
|
|
187
|
+
this._geometryServerUrl = options.geometryServerUrl;
|
|
188
|
+
this._geometryServerToken = options.geometryServerToken;
|
|
187
189
|
} //解析文件
|
|
188
190
|
|
|
189
191
|
|
|
190
|
-
parseFile(file,
|
|
191
|
-
var reader = new FileReader();
|
|
192
|
-
reader.readAsText(file); //文本
|
|
193
|
-
//readAsDataURL(file); //base64 图片
|
|
194
|
-
//readAsArrayBuffer(file); //原始二进制数据
|
|
195
|
-
//readAsBinaryString(file);//二进制字符串
|
|
196
|
-
//reader.readAsBinaryString(file);
|
|
197
|
-
|
|
192
|
+
parseFile(file, cb) {
|
|
198
193
|
var that = this;
|
|
199
|
-
|
|
200
|
-
reader.onload = function (event) {
|
|
201
|
-
var ret = event.target.result;
|
|
194
|
+
return new Promise((resolve, reject) => {
|
|
202
195
|
var ext = file.name.replace(/.+\./, "").toLowerCase(); //文件扩展名
|
|
203
196
|
|
|
204
197
|
var name = file.name.replace(/(.*\/)*([^.]+).*/gi, "$2"); //文件名
|
|
205
198
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
199
|
+
if (ext === "zip") {
|
|
200
|
+
(0,util_.uploadSHP)(that._geometryServerUrl, file, that._geometryServerToken, null, function (res) {
|
|
201
|
+
if (res) {
|
|
202
|
+
if (res.srs) {
|
|
203
|
+
//返回的geojson数据已经做了处理,返回数据坐标系为4326
|
|
204
|
+
delete res.srs;
|
|
205
|
+
}
|
|
212
206
|
|
|
213
|
-
|
|
214
|
-
|
|
207
|
+
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
208
|
+
ds.load(res, that._geojsonStyle).then(ds => {
|
|
209
|
+
ds.entities.values.forEach(entity => {
|
|
210
|
+
if (entity.polygon) {
|
|
211
|
+
entity.polyline = {
|
|
212
|
+
positions: entity.polygon.hierarchy._value.positions,
|
|
213
|
+
width: that._geojsonStyle.polygon.outlineWidth,
|
|
214
|
+
material: that._geojsonStyle.polygon.outlineColor
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
});
|
|
215
218
|
|
|
216
|
-
|
|
217
|
-
ret = data;
|
|
218
|
-
}
|
|
219
|
-
} catch (e) {}
|
|
219
|
+
that._viewer.dataSources.add(ds);
|
|
220
220
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
221
|
+
ds.autoAvoid(that._viewer);
|
|
222
|
+
|
|
223
|
+
that._viewer.flyTo(ds);
|
|
224
|
+
|
|
225
|
+
resolve("success");
|
|
226
|
+
var layer = {
|
|
227
|
+
guid: ds.guid,
|
|
228
|
+
name: name,
|
|
229
|
+
visible: true,
|
|
230
|
+
serverType: "datasource",
|
|
231
|
+
lsType: "ls"
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
that._layerManager.addTempLayerNode(layer);
|
|
235
|
+
|
|
236
|
+
cb && cb(layer);
|
|
231
237
|
});
|
|
238
|
+
} else {
|
|
239
|
+
reject(file.name + " service parse error.");
|
|
240
|
+
cb && cb("error");
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
} else if (ext === "txt") {
|
|
244
|
+
let dataUrl = that._geometryServerUrl + (that._geometryServerToken ? "?ua_token=" + that._geometryServerToken : "");
|
|
245
|
+
(0,util_.readTxT)(file, dataUrl, "4326", res => {
|
|
246
|
+
if (res) {
|
|
247
|
+
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
248
|
+
ds.load(res, that._geojsonStyle).then(ds => {
|
|
249
|
+
ds.entities.values.forEach(entity => {
|
|
250
|
+
if (entity.polygon) {
|
|
251
|
+
entity.polyline = {
|
|
252
|
+
positions: entity.polygon.hierarchy._value.positions,
|
|
253
|
+
width: that._geojsonStyle.polygon.outlineWidth,
|
|
254
|
+
material: that._geojsonStyle.polygon.outlineColor
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
});
|
|
232
258
|
|
|
233
|
-
|
|
259
|
+
that._viewer.dataSources.add(ds);
|
|
234
260
|
|
|
235
|
-
|
|
261
|
+
ds.autoAvoid(that._viewer);
|
|
236
262
|
|
|
237
|
-
|
|
263
|
+
that._viewer.flyTo(ds);
|
|
238
264
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
265
|
+
resolve("success");
|
|
266
|
+
var layer = {
|
|
267
|
+
guid: ds.guid,
|
|
268
|
+
name: name,
|
|
269
|
+
visible: true,
|
|
270
|
+
serverType: "datasource",
|
|
271
|
+
lsType: "ls"
|
|
272
|
+
};
|
|
246
273
|
|
|
247
|
-
|
|
274
|
+
that._layerManager.addTempLayerNode(layer);
|
|
248
275
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
276
|
+
cb && cb(layer);
|
|
277
|
+
});
|
|
278
|
+
} else {
|
|
279
|
+
reject(file.name + " service parse error.");
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
} else {
|
|
283
|
+
var reader = new FileReader();
|
|
284
|
+
reader.readAsText(file); //文本
|
|
285
|
+
//readAsDataURL(file); //base64 图片
|
|
286
|
+
//readAsArrayBuffer(file); //原始二进制数据
|
|
287
|
+
//readAsBinaryString(file);//二进制字符串
|
|
288
|
+
//reader.readAsBinaryString(file);
|
|
289
|
+
|
|
290
|
+
reader.onload = function (event) {
|
|
291
|
+
var ret = event.target.result;
|
|
292
|
+
|
|
293
|
+
switch (ext) {
|
|
294
|
+
case "json":
|
|
295
|
+
case "geojson":
|
|
296
|
+
case "topojson":
|
|
297
|
+
ret = ret.replace(/(^\s*)|(\s*$)/, "");
|
|
298
|
+
ret = ret.substring(ret.indexOf("{"));
|
|
299
|
+
|
|
300
|
+
try {
|
|
301
|
+
var data = JSON.parse(ret);
|
|
302
|
+
|
|
303
|
+
if (typeof data == "object" && data) {
|
|
304
|
+
ret = data;
|
|
305
|
+
}
|
|
306
|
+
} catch (e) {}
|
|
307
|
+
|
|
308
|
+
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
309
|
+
ds.load(ret, that._geojsonStyle).then(ds => {
|
|
310
|
+
ds.entities.values.forEach(entity => {
|
|
311
|
+
if (entity.polygon) {
|
|
312
|
+
entity.polyline = {
|
|
313
|
+
positions: entity.polygon.hierarchy._value.positions,
|
|
314
|
+
width: that._geojsonStyle.polygon.outlineWidth,
|
|
315
|
+
material: that._geojsonStyle.polygon.outlineColor
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
});
|
|
252
319
|
|
|
253
|
-
|
|
254
|
-
ret = ret.replace(/(^\s*)|(\s*$)/, "");
|
|
255
|
-
var options = {
|
|
256
|
-
name: name,
|
|
257
|
-
camera: that._viewer.scene.camera,
|
|
258
|
-
canvas: that._viewer.scene.canvas
|
|
259
|
-
};
|
|
260
|
-
var ds = new Cesium.KmlDataSource(options);
|
|
261
|
-
var data = new Blob([ret], {
|
|
262
|
-
type: "text/xml"
|
|
263
|
-
});
|
|
264
|
-
ds.load(data).then(ds => {
|
|
265
|
-
that._viewer.dataSources.add(ds);
|
|
320
|
+
that._viewer.dataSources.add(ds);
|
|
266
321
|
|
|
267
|
-
|
|
322
|
+
ds.autoAvoid(that._viewer);
|
|
268
323
|
|
|
269
|
-
|
|
270
|
-
guid: ds.guid,
|
|
271
|
-
name: name,
|
|
272
|
-
visible: true,
|
|
273
|
-
serverType: "datasource",
|
|
274
|
-
lsType: "ls"
|
|
275
|
-
};
|
|
324
|
+
that._viewer.flyTo(ds);
|
|
276
325
|
|
|
277
|
-
|
|
326
|
+
resolve("success");
|
|
327
|
+
var layer = {
|
|
328
|
+
guid: ds.guid,
|
|
329
|
+
name: name,
|
|
330
|
+
visible: true,
|
|
331
|
+
serverType: "datasource",
|
|
332
|
+
lsType: "ls"
|
|
333
|
+
};
|
|
278
334
|
|
|
279
|
-
|
|
280
|
-
});
|
|
281
|
-
break;
|
|
335
|
+
that._layerManager.addTempLayerNode(layer);
|
|
282
336
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
camera: that._viewer.scene.camera,
|
|
287
|
-
canvas: that._viewer.scene.canvas
|
|
288
|
-
};
|
|
289
|
-
var ds = new Cesium.KmlDataSource(options);
|
|
290
|
-
ds.load(file).then(ds => {
|
|
291
|
-
that._viewer.dataSources.add(ds);
|
|
337
|
+
cb && cb(layer);
|
|
338
|
+
});
|
|
339
|
+
break;
|
|
292
340
|
|
|
293
|
-
|
|
341
|
+
case "kml":
|
|
342
|
+
ret = ret.replace(/(^\s*)|(\s*$)/, "");
|
|
343
|
+
var options = {
|
|
344
|
+
name: name,
|
|
345
|
+
camera: that._viewer.scene.camera,
|
|
346
|
+
canvas: that._viewer.scene.canvas
|
|
347
|
+
};
|
|
348
|
+
var ds = new Cesium.KmlDataSource(options);
|
|
349
|
+
var data = new Blob([ret], {
|
|
350
|
+
type: "text/xml"
|
|
351
|
+
});
|
|
352
|
+
ds.load(data).then(ds => {
|
|
353
|
+
that._viewer.dataSources.add(ds);
|
|
294
354
|
|
|
295
|
-
|
|
296
|
-
guid: ds.guid,
|
|
297
|
-
name: name,
|
|
298
|
-
visible: true,
|
|
299
|
-
serverType: "datasource",
|
|
300
|
-
lsType: "ls"
|
|
301
|
-
};
|
|
355
|
+
that._viewer.flyTo(ds);
|
|
302
356
|
|
|
303
|
-
|
|
357
|
+
resolve("success");
|
|
358
|
+
var layer = {
|
|
359
|
+
guid: ds.guid,
|
|
360
|
+
name: name,
|
|
361
|
+
visible: true,
|
|
362
|
+
serverType: "datasource",
|
|
363
|
+
lsType: "ls"
|
|
364
|
+
};
|
|
304
365
|
|
|
305
|
-
|
|
306
|
-
});
|
|
307
|
-
break;
|
|
366
|
+
that._layerManager.addTempLayerNode(layer);
|
|
308
367
|
|
|
309
|
-
|
|
310
|
-
|
|
368
|
+
cb && cb(layer);
|
|
369
|
+
});
|
|
370
|
+
break;
|
|
311
371
|
|
|
312
|
-
|
|
313
|
-
|
|
372
|
+
case "kmz":
|
|
373
|
+
var options = {
|
|
374
|
+
name: name,
|
|
375
|
+
camera: that._viewer.scene.camera,
|
|
376
|
+
canvas: that._viewer.scene.canvas
|
|
377
|
+
};
|
|
378
|
+
var ds = new Cesium.KmlDataSource(options);
|
|
379
|
+
ds.load(file).then(ds => {
|
|
380
|
+
that._viewer.dataSources.add(ds);
|
|
314
381
|
|
|
315
|
-
|
|
316
|
-
ret = data;
|
|
317
|
-
}
|
|
318
|
-
} catch (e) {}
|
|
382
|
+
that._viewer.flyTo(ds);
|
|
319
383
|
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
384
|
+
resolve("success");
|
|
385
|
+
var layer = {
|
|
386
|
+
guid: ds.guid,
|
|
387
|
+
name: name,
|
|
388
|
+
visible: true,
|
|
389
|
+
serverType: "datasource",
|
|
390
|
+
lsType: "ls"
|
|
391
|
+
};
|
|
324
392
|
|
|
325
|
-
|
|
326
|
-
guid: ds.guid,
|
|
327
|
-
name: name,
|
|
328
|
-
visible: true,
|
|
329
|
-
serverType: "datasource",
|
|
330
|
-
lsType: "ls"
|
|
331
|
-
};
|
|
393
|
+
that._layerManager.addTempLayerNode(layer);
|
|
332
394
|
|
|
333
|
-
|
|
395
|
+
cb && cb(layer);
|
|
396
|
+
});
|
|
397
|
+
break;
|
|
334
398
|
|
|
335
|
-
|
|
336
|
-
|
|
399
|
+
case "czml":
|
|
400
|
+
ret = ret.replace(/(^\s*)|(\s*$)/, "");
|
|
337
401
|
|
|
338
|
-
|
|
402
|
+
try {
|
|
403
|
+
var data = JSON.parse(ret);
|
|
339
404
|
|
|
340
|
-
|
|
341
|
-
|
|
405
|
+
if (typeof data == "object" && data) {
|
|
406
|
+
ret = data;
|
|
407
|
+
}
|
|
408
|
+
} catch (e) {}
|
|
342
409
|
|
|
343
|
-
|
|
344
|
-
|
|
410
|
+
that._viewer.dataSources.add(Cesium.CzmlDataSource.load(ret, {
|
|
411
|
+
name: name
|
|
412
|
+
})).then(ds => {
|
|
413
|
+
that._viewer.flyTo(ds);
|
|
345
414
|
|
|
346
|
-
|
|
347
|
-
|
|
415
|
+
resolve("success");
|
|
416
|
+
var layer = {
|
|
417
|
+
guid: ds.guid,
|
|
418
|
+
name: name,
|
|
419
|
+
visible: true,
|
|
420
|
+
serverType: "datasource",
|
|
421
|
+
lsType: "ls"
|
|
422
|
+
};
|
|
348
423
|
|
|
349
|
-
|
|
350
|
-
case "xlsx":
|
|
351
|
-
break;
|
|
424
|
+
that._layerManager.addTempLayerNode(layer);
|
|
352
425
|
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
}
|
|
426
|
+
cb && cb(layer);
|
|
427
|
+
});
|
|
356
428
|
|
|
357
|
-
|
|
358
|
-
};
|
|
429
|
+
break;
|
|
359
430
|
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
431
|
+
case "txt":
|
|
432
|
+
break;
|
|
433
|
+
|
|
434
|
+
case "csv":
|
|
435
|
+
break;
|
|
436
|
+
|
|
437
|
+
case "xls":
|
|
438
|
+
case "xlsx":
|
|
439
|
+
break;
|
|
440
|
+
|
|
441
|
+
default:
|
|
442
|
+
break;
|
|
443
|
+
}
|
|
444
|
+
};
|
|
445
|
+
|
|
446
|
+
reader.onerror = function () {
|
|
447
|
+
console.log(file.name + " read error.");
|
|
448
|
+
reject(file.name + " read error.");
|
|
449
|
+
};
|
|
450
|
+
}
|
|
451
|
+
});
|
|
364
452
|
} //解析数据源
|
|
365
453
|
|
|
366
454
|
|
|
@@ -804,6 +892,16 @@ class AddDataViewModel {
|
|
|
804
892
|
case "geojson":
|
|
805
893
|
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
806
894
|
ds.load(url, this._geojsonStyle).then(ds => {
|
|
895
|
+
ds.entities.values.forEach(entity => {
|
|
896
|
+
if (entity.polygon) {
|
|
897
|
+
entity.polyline = {
|
|
898
|
+
positions: entity.polygon.hierarchy._value.positions,
|
|
899
|
+
width: this._geojsonStyle.polygon.outlineWidth,
|
|
900
|
+
material: this._geojsonStyle.polygon.outlineColor
|
|
901
|
+
};
|
|
902
|
+
}
|
|
903
|
+
}, this);
|
|
904
|
+
|
|
807
905
|
this._viewer.dataSources.add(ds);
|
|
808
906
|
|
|
809
907
|
ds.autoAvoid(this._viewer);
|
|
@@ -964,6 +1062,16 @@ const __default__ = {
|
|
|
964
1062
|
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
965
1063
|
*/
|
|
966
1064
|
position: [String, Object],
|
|
1065
|
+
// 几何服务地址前缀,例:http://support.kqgeo.com:29800/geometry-proxy/kqgis/rest/services/geometry
|
|
1066
|
+
geometryServerUrl: {
|
|
1067
|
+
type: String,
|
|
1068
|
+
required: true
|
|
1069
|
+
},
|
|
1070
|
+
// 几何服务token,例:eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJob3N0IiwiY3JlYXRlZCI6MTY1NTk2MzU1NzUyMywiZXhwIjoxNzY3MTEwNDAwfQ.BiNOr6vL6liHzlMK89XSvqmFY9fuWiYqDEwYmWxk-6vFKBgLeMC8FloBXyKcxOCl9Rd28y_pX4PhVRYP5cZTwA
|
|
1071
|
+
geometryServerToken: {
|
|
1072
|
+
type: String,
|
|
1073
|
+
required: true
|
|
1074
|
+
},
|
|
967
1075
|
// 当前展示的tab标签页
|
|
968
1076
|
activeName: {
|
|
969
1077
|
type: String,
|
|
@@ -1016,7 +1124,8 @@ const __default__ = {
|
|
|
1016
1124
|
});
|
|
1017
1125
|
let upload_ref = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
1018
1126
|
let upload_btn_ref = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
1019
|
-
let fileList = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
1127
|
+
let fileList = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
1128
|
+
let loadingFile = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false); // 获取组件传参
|
|
1020
1129
|
|
|
1021
1130
|
let operatorArray = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.computed)(() => {
|
|
1022
1131
|
let array = [];
|
|
@@ -1164,7 +1273,9 @@ const __default__ = {
|
|
|
1164
1273
|
];
|
|
1165
1274
|
dataSourceType.value = dataSourceTypeList.value[0];
|
|
1166
1275
|
let options = {
|
|
1167
|
-
billboardImage: const_image_.BILLBOARD_IMAGE_URL
|
|
1276
|
+
billboardImage: const_image_.BILLBOARD_IMAGE_URL,
|
|
1277
|
+
geometryServerUrl: props.geometryServerUrl,
|
|
1278
|
+
geometryServerToken: props.geometryServerToken
|
|
1168
1279
|
};
|
|
1169
1280
|
viewModel = new AddDataViewModel(scenceView, options);
|
|
1170
1281
|
}
|
|
@@ -1214,8 +1325,14 @@ const __default__ = {
|
|
|
1214
1325
|
|
|
1215
1326
|
|
|
1216
1327
|
function loadFiles() {
|
|
1328
|
+
loadingFile.value = true;
|
|
1329
|
+
let promiseList = [];
|
|
1217
1330
|
fileList.value.forEach(file => {
|
|
1218
|
-
viewModel.parseFile(file.raw,
|
|
1331
|
+
promiseList.push(viewModel.parseFile(file.raw, props.loadCallback));
|
|
1332
|
+
});
|
|
1333
|
+
Promise.all(promiseList).then(() => {
|
|
1334
|
+
removeFiles();
|
|
1335
|
+
loadingFile.value = false;
|
|
1219
1336
|
});
|
|
1220
1337
|
} //加载URL
|
|
1221
1338
|
|
|
@@ -1284,7 +1401,7 @@ const __default__ = {
|
|
|
1284
1401
|
name: "upload"
|
|
1285
1402
|
}, {
|
|
1286
1403
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
1287
|
-
class: ""
|
|
1404
|
+
class: "kq3d-add-data-title"
|
|
1288
1405
|
}, {
|
|
1289
1406
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).fileFormatDescription), 1
|
|
1290
1407
|
/* TEXT */
|
|
@@ -1308,7 +1425,7 @@ const __default__ = {
|
|
|
1308
1425
|
"auto-upload": false,
|
|
1309
1426
|
"file-list": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(fileList),
|
|
1310
1427
|
"onUpdate:file-list": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(fileList) ? fileList.value = $event : fileList = $event),
|
|
1311
|
-
accept: ".geojson,.topojson,.json,.kml,.kmz,.czml",
|
|
1428
|
+
accept: ".zip,.geojson,.topojson,.json,.kml,.kmz,.czml,.txt",
|
|
1312
1429
|
"on-change": changeFile,
|
|
1313
1430
|
ref_key: "upload_ref",
|
|
1314
1431
|
ref: upload_ref
|
|
@@ -1376,7 +1493,7 @@ const __default__ = {
|
|
|
1376
1493
|
action: "",
|
|
1377
1494
|
"show-file-list": false,
|
|
1378
1495
|
"auto-upload": false,
|
|
1379
|
-
accept: ".geojson,.topojson,.json,.kml,.kmz,.czml",
|
|
1496
|
+
accept: ".zip,.geojson,.topojson,.json,.kml,.kmz,.czml,.txt",
|
|
1380
1497
|
ref_key: "upload_btn_ref",
|
|
1381
1498
|
ref: upload_btn_ref,
|
|
1382
1499
|
class: "kq3d-add-data-footer-upload",
|
|
@@ -1417,7 +1534,8 @@ const __default__ = {
|
|
|
1417
1534
|
onClick: _cache[2] || (_cache[2] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => loadFiles(), ["stop"])),
|
|
1418
1535
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).loadFiles,
|
|
1419
1536
|
type: "primary",
|
|
1420
|
-
disabled: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(disabled)
|
|
1537
|
+
disabled: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(disabled),
|
|
1538
|
+
loading: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(loadingFile)
|
|
1421
1539
|
}, {
|
|
1422
1540
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).loadFiles), 1
|
|
1423
1541
|
/* TEXT */
|
|
@@ -1427,7 +1545,7 @@ const __default__ = {
|
|
|
1427
1545
|
|
|
1428
1546
|
}, 8
|
|
1429
1547
|
/* PROPS */
|
|
1430
|
-
, ["title", "disabled"])])])]),
|
|
1548
|
+
, ["title", "disabled", "loading"])])])]),
|
|
1431
1549
|
_: 3
|
|
1432
1550
|
/* FORWARDED */
|
|
1433
1551
|
|
|
@@ -2310,7 +2428,8 @@ const __default__ = {
|
|
|
2310
2428
|
},
|
|
2311
2429
|
// HeaderTemp标题
|
|
2312
2430
|
headerTempTitle: {
|
|
2313
|
-
type: String
|
|
2431
|
+
type: String,
|
|
2432
|
+
default: "在线地形"
|
|
2314
2433
|
},
|
|
2315
2434
|
// HeaderTemp图标
|
|
2316
2435
|
headerTempIcon: {
|
|
@@ -4671,8 +4790,6 @@ const __default__ = {
|
|
|
4671
4790
|
clearResult
|
|
4672
4791
|
});
|
|
4673
4792
|
return (_ctx, _cache) => {
|
|
4674
|
-
const _component_HeaderTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("HeaderTemp");
|
|
4675
|
-
|
|
4676
4793
|
const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
|
|
4677
4794
|
|
|
4678
4795
|
const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
|
|
@@ -4705,16 +4822,7 @@ const __default__ = {
|
|
|
4705
4822
|
ref: headerTempRef
|
|
4706
4823
|
}, null, 512
|
|
4707
4824
|
/* NEED_PATCH */
|
|
4708
|
-
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true),
|
|
4709
|
-
key: 1,
|
|
4710
|
-
showShadow: __props.showShadow,
|
|
4711
|
-
headerTempTitle: __props.headerTempTitle || (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).excavateFillAnalysis,
|
|
4712
|
-
headerTempIcon: __props.headerTempIcon,
|
|
4713
|
-
isCollapse: __props.isCollapseHeaderTemp,
|
|
4714
|
-
isRight: __props.isRight
|
|
4715
|
-
}, null, 8
|
|
4716
|
-
/* PROPS */
|
|
4717
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
4825
|
+
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
4718
4826
|
style: {
|
|
4719
4827
|
"display": "flex"
|
|
4720
4828
|
}
|
|
@@ -4722,7 +4830,7 @@ const __default__ = {
|
|
|
4722
4830
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
|
|
4723
4831
|
class: "kq3d-excavate-fill-analysis-label",
|
|
4724
4832
|
style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)({
|
|
4725
|
-
width: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? '
|
|
4833
|
+
width: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? '100px' : '130px'
|
|
4726
4834
|
})
|
|
4727
4835
|
}, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).altitudeHeight), 5
|
|
4728
4836
|
/* TEXT, STYLE */
|
|
@@ -5500,8 +5608,8 @@ var client_icons_vue_ = __webpack_require__(348);
|
|
|
5500
5608
|
var gis_utils_ = __webpack_require__(826);
|
|
5501
5609
|
// EXTERNAL MODULE: ./src/webgl/flight/FlightViewModel.js
|
|
5502
5610
|
var FlightViewModel = __webpack_require__(5372);
|
|
5503
|
-
// EXTERNAL MODULE:
|
|
5504
|
-
var
|
|
5611
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
5612
|
+
var util_ = __webpack_require__(9519);
|
|
5505
5613
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/flight/Flight.vue?vue&type=script&setup=true&lang=js
|
|
5506
5614
|
|
|
5507
5615
|
const _hoisted_1 = {
|
|
@@ -5562,6 +5670,11 @@ const __default__ = {
|
|
|
5562
5670
|
deleteFlightPath: {
|
|
5563
5671
|
type: Function
|
|
5564
5672
|
},
|
|
5673
|
+
|
|
5674
|
+
/**
|
|
5675
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
5676
|
+
*/
|
|
5677
|
+
position: [String, Object],
|
|
5565
5678
|
// 是否生成HeaderTemp
|
|
5566
5679
|
showHeaderTemp: {
|
|
5567
5680
|
type: Boolean,
|
|
@@ -5612,9 +5725,22 @@ const __default__ = {
|
|
|
5612
5725
|
color: "var(--kq-color-info)",
|
|
5613
5726
|
"font-size": "14px"
|
|
5614
5727
|
};
|
|
5615
|
-
};
|
|
5728
|
+
}; // 组件容器Ref
|
|
5616
5729
|
|
|
5730
|
+
|
|
5731
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
5732
|
+
|
|
5733
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
5734
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
5617
5735
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
5736
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
5737
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
5738
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
5739
|
+
});
|
|
5740
|
+
watchCreateHeaderTemp();
|
|
5741
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
5742
|
+
watchCreateHeaderTemp();
|
|
5743
|
+
});
|
|
5618
5744
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
5619
5745
|
if (scenceView) {
|
|
5620
5746
|
language.value = scenceView._language;
|
|
@@ -5643,7 +5769,18 @@ const __default__ = {
|
|
|
5643
5769
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
5644
5770
|
viewModel.stop();
|
|
5645
5771
|
document.removeEventListener("click", hideDropDownMenu);
|
|
5646
|
-
});
|
|
5772
|
+
});
|
|
5773
|
+
/**
|
|
5774
|
+
* @description 监听header生成
|
|
5775
|
+
*/
|
|
5776
|
+
|
|
5777
|
+
const watchCreateHeaderTemp = () => {
|
|
5778
|
+
if (props.showHeaderTemp) {
|
|
5779
|
+
// 生成headerTemp
|
|
5780
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef);
|
|
5781
|
+
}
|
|
5782
|
+
}; //新建路径
|
|
5783
|
+
|
|
5647
5784
|
|
|
5648
5785
|
function addPath() {
|
|
5649
5786
|
pathList.forEach(path => {
|
|
@@ -5964,17 +6101,16 @@ const __default__ = {
|
|
|
5964
6101
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
5965
6102
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq-flight3d", {
|
|
5966
6103
|
'kq-box-shadow': __props.showShadow
|
|
5967
|
-
}])
|
|
5968
|
-
|
|
6104
|
+
}]),
|
|
6105
|
+
ref_key: "boxRef",
|
|
6106
|
+
ref: boxRef
|
|
6107
|
+
}, [__props.showHeaderTemp ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headerTemp)), {
|
|
5969
6108
|
key: 0,
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
}, null, 8
|
|
5976
|
-
/* PROPS */
|
|
5977
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [!(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isAdd) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_3, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
6109
|
+
ref_key: "headerTempRef",
|
|
6110
|
+
ref: headerTempRef
|
|
6111
|
+
}, null, 512
|
|
6112
|
+
/* NEED_PATCH */
|
|
6113
|
+
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [!(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isAdd) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_3, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
5978
6114
|
onClick: addPath,
|
|
5979
6115
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).addPath
|
|
5980
6116
|
}, {
|
|
@@ -6635,8 +6771,8 @@ class FloodAnalysisViewModel {
|
|
|
6635
6771
|
}
|
|
6636
6772
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
6637
6773
|
var client_icons_vue_ = __webpack_require__(348);
|
|
6638
|
-
// EXTERNAL MODULE:
|
|
6639
|
-
var
|
|
6774
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
6775
|
+
var util_ = __webpack_require__(9519);
|
|
6640
6776
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/floodanalysis/FloodAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
6641
6777
|
|
|
6642
6778
|
const _hoisted_1 = {
|
|
@@ -6673,6 +6809,11 @@ const __default__ = {
|
|
|
6673
6809
|
type: Boolean,
|
|
6674
6810
|
default: true
|
|
6675
6811
|
},
|
|
6812
|
+
|
|
6813
|
+
/**
|
|
6814
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
6815
|
+
*/
|
|
6816
|
+
position: [String, Object],
|
|
6676
6817
|
// 是否生成HeaderTemp
|
|
6677
6818
|
showHeaderTemp: {
|
|
6678
6819
|
type: Boolean,
|
|
@@ -6685,7 +6826,8 @@ const __default__ = {
|
|
|
6685
6826
|
},
|
|
6686
6827
|
// HeaderTemp标题
|
|
6687
6828
|
headerTempTitle: {
|
|
6688
|
-
type: String
|
|
6829
|
+
type: String,
|
|
6830
|
+
default: "淹没分析"
|
|
6689
6831
|
},
|
|
6690
6832
|
// HeaderTemp图标
|
|
6691
6833
|
headerTempIcon: {
|
|
@@ -6704,8 +6846,7 @@ const __default__ = {
|
|
|
6704
6846
|
}) {
|
|
6705
6847
|
const props = __props;
|
|
6706
6848
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
6707
|
-
let collapseValue = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
|
|
6708
|
-
let headerTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(""); // 淹没色调图片
|
|
6849
|
+
let collapseValue = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(""); // 淹没色调图片
|
|
6709
6850
|
|
|
6710
6851
|
const colorImages = [{
|
|
6711
6852
|
value: "0",
|
|
@@ -6752,8 +6893,21 @@ const __default__ = {
|
|
|
6752
6893
|
floodColorImage: props.settingParams && props.settingParams.floodColorImage || "0" // 淹没纹理色带值
|
|
6753
6894
|
|
|
6754
6895
|
});
|
|
6755
|
-
let viewModel = null;
|
|
6896
|
+
let viewModel = null; // 组件容器Ref
|
|
6897
|
+
|
|
6898
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
6899
|
+
|
|
6900
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
6901
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
6756
6902
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
6903
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
6904
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
6905
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
6906
|
+
});
|
|
6907
|
+
watchCreateHeaderTemp();
|
|
6908
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
6909
|
+
watchCreateHeaderTemp();
|
|
6910
|
+
});
|
|
6757
6911
|
gis_utils_.utils.getWebMap(props.target, scenceView => {
|
|
6758
6912
|
if (scenceView) {
|
|
6759
6913
|
language.value = scenceView._language;
|
|
@@ -6766,23 +6920,31 @@ const __default__ = {
|
|
|
6766
6920
|
maxHeight: formItem.floodMaxHeight,
|
|
6767
6921
|
colorImage: formItem.floodColorImage
|
|
6768
6922
|
}); //设置HeaderTemp标题
|
|
6769
|
-
|
|
6770
|
-
if (props.
|
|
6771
|
-
|
|
6772
|
-
} else {
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
}
|
|
6781
|
-
}
|
|
6782
|
-
}
|
|
6923
|
+
// if (!props.headerTempTitle) {
|
|
6924
|
+
// if (props.isShowMode) {
|
|
6925
|
+
// props.headerTempTitle = scenceView._language.floodAnalysis;
|
|
6926
|
+
// } else {
|
|
6927
|
+
// if (formItem.floodMode === 0) {
|
|
6928
|
+
// props.headerTempTitle = scenceView._language.floodTerrain + scenceView._language.floodAnalysis1;
|
|
6929
|
+
// } else if (formItem.floodMode === 1) {
|
|
6930
|
+
// props.headerTempTitle = scenceView._language.floodModel + scenceView._language.floodAnalysis1;
|
|
6931
|
+
// }
|
|
6932
|
+
// }
|
|
6933
|
+
// }
|
|
6783
6934
|
}
|
|
6784
6935
|
});
|
|
6785
|
-
});
|
|
6936
|
+
});
|
|
6937
|
+
/**
|
|
6938
|
+
* @description 监听header生成
|
|
6939
|
+
*/
|
|
6940
|
+
|
|
6941
|
+
const watchCreateHeaderTemp = () => {
|
|
6942
|
+
if (props.showHeaderTemp) {
|
|
6943
|
+
// 生成headerTemp
|
|
6944
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef);
|
|
6945
|
+
}
|
|
6946
|
+
}; //获取图片路径
|
|
6947
|
+
|
|
6786
6948
|
|
|
6787
6949
|
function getImagePath(value) {
|
|
6788
6950
|
var imagePath = "";
|
|
@@ -6884,17 +7046,16 @@ const __default__ = {
|
|
|
6884
7046
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
6885
7047
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-flood-analysis", {
|
|
6886
7048
|
'kq-box-shadow': __props.showShadow
|
|
6887
|
-
}])
|
|
6888
|
-
|
|
7049
|
+
}]),
|
|
7050
|
+
ref_key: "boxRef",
|
|
7051
|
+
ref: boxRef
|
|
7052
|
+
}, [__props.showHeaderTemp ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headerTemp)), {
|
|
6889
7053
|
key: 0,
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
}, null, 8
|
|
6896
|
-
/* PROPS */
|
|
6897
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
7054
|
+
ref_key: "headerTempRef",
|
|
7055
|
+
ref: headerTempRef
|
|
7056
|
+
}, null, 512
|
|
7057
|
+
/* NEED_PATCH */
|
|
7058
|
+
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
6898
7059
|
class: "kq3d-flood-analysis-tip"
|
|
6899
7060
|
}, {
|
|
6900
7061
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).floodTips), 1
|
|
@@ -7648,8 +7809,8 @@ var external_xe_utils_namespaceObject = require("xe-utils");
|
|
|
7648
7809
|
var external_xe_utils_default = /*#__PURE__*/__webpack_require__.n(external_xe_utils_namespaceObject);
|
|
7649
7810
|
// EXTERNAL MODULE: ./src/webgl/gpuspatialquery/GPUSpatialQueryViewModel.js
|
|
7650
7811
|
var GPUSpatialQueryViewModel = __webpack_require__(7775);
|
|
7651
|
-
// EXTERNAL MODULE:
|
|
7652
|
-
var
|
|
7812
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
7813
|
+
var util_ = __webpack_require__(9519);
|
|
7653
7814
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/gpuspatialquery/GPUSpatialQuery.vue?vue&type=script&setup=true&lang=js
|
|
7654
7815
|
|
|
7655
7816
|
const _hoisted_1 = {
|
|
@@ -7700,6 +7861,11 @@ const __default__ = {
|
|
|
7700
7861
|
type: Boolean,
|
|
7701
7862
|
default: true
|
|
7702
7863
|
},
|
|
7864
|
+
|
|
7865
|
+
/**
|
|
7866
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
7867
|
+
*/
|
|
7868
|
+
position: [String, Object],
|
|
7703
7869
|
// 是否生成HeaderTemp
|
|
7704
7870
|
showHeaderTemp: {
|
|
7705
7871
|
type: Boolean,
|
|
@@ -7763,8 +7929,21 @@ const __default__ = {
|
|
|
7763
7929
|
maxZRotate: props.settingParams && props.settingParams.maxZRotate || 90 // 绕Z轴旋转最大值
|
|
7764
7930
|
|
|
7765
7931
|
});
|
|
7766
|
-
let viewModel = null;
|
|
7932
|
+
let viewModel = null; // 组件容器Ref
|
|
7933
|
+
|
|
7934
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
7935
|
+
|
|
7936
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
7937
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
7767
7938
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
7939
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
7940
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
7941
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
7942
|
+
});
|
|
7943
|
+
watchCreateHeaderTemp();
|
|
7944
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
7945
|
+
watchCreateHeaderTemp();
|
|
7946
|
+
});
|
|
7768
7947
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
7769
7948
|
if (scenceView) {
|
|
7770
7949
|
language.value = scenceView._language;
|
|
@@ -7778,7 +7957,18 @@ const __default__ = {
|
|
|
7778
7957
|
});
|
|
7779
7958
|
}
|
|
7780
7959
|
});
|
|
7781
|
-
});
|
|
7960
|
+
});
|
|
7961
|
+
/**
|
|
7962
|
+
* @description 监听header生成
|
|
7963
|
+
*/
|
|
7964
|
+
|
|
7965
|
+
const watchCreateHeaderTemp = () => {
|
|
7966
|
+
if (props.showHeaderTemp) {
|
|
7967
|
+
// 生成headerTemp
|
|
7968
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef);
|
|
7969
|
+
}
|
|
7970
|
+
}; // 参数切换
|
|
7971
|
+
|
|
7782
7972
|
|
|
7783
7973
|
function paramsChanged(key) {
|
|
7784
7974
|
switch (key) {
|
|
@@ -7856,17 +8046,16 @@ const __default__ = {
|
|
|
7856
8046
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
7857
8047
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-gpu-spatial-query", {
|
|
7858
8048
|
'kq-box-shadow': __props.showShadow
|
|
7859
|
-
}])
|
|
7860
|
-
|
|
8049
|
+
}]),
|
|
8050
|
+
ref_key: "boxRef",
|
|
8051
|
+
ref: boxRef
|
|
8052
|
+
}, [__props.showHeaderTemp ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headerTemp)), {
|
|
7861
8053
|
key: 0,
|
|
7862
|
-
|
|
7863
|
-
|
|
7864
|
-
|
|
7865
|
-
|
|
7866
|
-
|
|
7867
|
-
}, null, 8
|
|
7868
|
-
/* PROPS */
|
|
7869
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form, {
|
|
8054
|
+
ref_key: "headerTempRef",
|
|
8055
|
+
ref: headerTempRef
|
|
8056
|
+
}, null, 512
|
|
8057
|
+
/* NEED_PATCH */
|
|
8058
|
+
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form, {
|
|
7870
8059
|
"label-width": "100px",
|
|
7871
8060
|
"label-position": "left"
|
|
7872
8061
|
}, {
|
|
@@ -8471,169 +8660,6 @@ Hawkeye.install = (Vue, opts) => {
|
|
|
8471
8660
|
|
|
8472
8661
|
|
|
8473
8662
|
|
|
8474
|
-
/***/ }),
|
|
8475
|
-
|
|
8476
|
-
/***/ 519:
|
|
8477
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
8478
|
-
|
|
8479
|
-
|
|
8480
|
-
// EXPORTS
|
|
8481
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
8482
|
-
"default": function() { return /* reexport */ HeaderTemp; }
|
|
8483
|
-
});
|
|
8484
|
-
|
|
8485
|
-
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
8486
|
-
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(637);
|
|
8487
|
-
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
8488
|
-
var util_ = __webpack_require__(9519);
|
|
8489
|
-
;// 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
|
|
8490
|
-
|
|
8491
|
-
const _hoisted_1 = {
|
|
8492
|
-
class: "kq-control-header-temp"
|
|
8493
|
-
};
|
|
8494
|
-
const _hoisted_2 = {
|
|
8495
|
-
class: "_title"
|
|
8496
|
-
};
|
|
8497
|
-
|
|
8498
|
-
|
|
8499
|
-
const __default__ = {
|
|
8500
|
-
name: "Kq3dHeaderTemp"
|
|
8501
|
-
};
|
|
8502
|
-
/* harmony default export */ var HeaderTempvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
8503
|
-
props: {
|
|
8504
|
-
// 是否显示阴影效果
|
|
8505
|
-
showShadow: {
|
|
8506
|
-
type: Boolean,
|
|
8507
|
-
default: true
|
|
8508
|
-
},
|
|
8509
|
-
// HeaderTemp标题
|
|
8510
|
-
headerTempTitle: {
|
|
8511
|
-
type: String,
|
|
8512
|
-
default: ""
|
|
8513
|
-
},
|
|
8514
|
-
// HeaderTemp图标
|
|
8515
|
-
headerTempIcon: {
|
|
8516
|
-
type: Object
|
|
8517
|
-
},
|
|
8518
|
-
// HeaderTemp是否折叠
|
|
8519
|
-
isCollapse: {
|
|
8520
|
-
type: Boolean,
|
|
8521
|
-
default: false
|
|
8522
|
-
},
|
|
8523
|
-
// HeaderTemp Title&Icon的位置
|
|
8524
|
-
isRight: {
|
|
8525
|
-
type: Boolean,
|
|
8526
|
-
default: true
|
|
8527
|
-
}
|
|
8528
|
-
},
|
|
8529
|
-
|
|
8530
|
-
setup(__props, {
|
|
8531
|
-
expose
|
|
8532
|
-
}) {
|
|
8533
|
-
const props = __props;
|
|
8534
|
-
const proxy = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)(); // 获取组件传参
|
|
8535
|
-
// 图标组件
|
|
8536
|
-
|
|
8537
|
-
let iconBtn = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
8538
|
-
let isCollapse = props.isCollapse;
|
|
8539
|
-
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
8540
|
-
iconBtn.value = props.headerTempIcon;
|
|
8541
|
-
let dom = proxy.parent.vnode.el;
|
|
8542
|
-
|
|
8543
|
-
if (!props.isRight) {
|
|
8544
|
-
(0,util_.addClass)(dom, ["kq-is-show", "kq-is-left"]);
|
|
8545
|
-
}
|
|
8546
|
-
|
|
8547
|
-
if (isCollapse) {
|
|
8548
|
-
if (props.showShadow) {
|
|
8549
|
-
(0,util_.addClass)(dom, ["kq-is-hide", "kq-light-shadow"]);
|
|
8550
|
-
(0,util_.removeClass)(dom, ["kq-is-show", "kq-box-shadow"]);
|
|
8551
|
-
} else {
|
|
8552
|
-
(0,util_.addClass)(dom, "kq-is-hide");
|
|
8553
|
-
(0,util_.removeClass)(dom, "kq-is-show");
|
|
8554
|
-
}
|
|
8555
|
-
} else {
|
|
8556
|
-
if (props.showShadow) {
|
|
8557
|
-
(0,util_.removeClass)(dom, ["kq-is-hide", "kq-light-shadow"]);
|
|
8558
|
-
(0,util_.addClass)(dom, ["kq-is-show", "kq-box-shadow"]);
|
|
8559
|
-
} else {
|
|
8560
|
-
(0,util_.removeClass)(dom, "kq-is-hide");
|
|
8561
|
-
(0,util_.addClass)(dom, "kq-is-show");
|
|
8562
|
-
}
|
|
8563
|
-
}
|
|
8564
|
-
}); // 图标按钮点击事件
|
|
8565
|
-
|
|
8566
|
-
function btnClick() {
|
|
8567
|
-
isCollapse = !isCollapse;
|
|
8568
|
-
let dom = proxy.parent.vnode.el;
|
|
8569
|
-
|
|
8570
|
-
if (isCollapse) {
|
|
8571
|
-
// 折叠
|
|
8572
|
-
if (props.showShadow) {
|
|
8573
|
-
(0,util_.addClass)(dom, ["kq-is-hide", "kq-light-shadow"]);
|
|
8574
|
-
(0,util_.removeClass)(dom, ["kq-is-show", "kq-box-shadow"]);
|
|
8575
|
-
} else {
|
|
8576
|
-
(0,util_.addClass)(dom, "kq-is-hide");
|
|
8577
|
-
(0,util_.removeClass)(dom, "kq-is-show");
|
|
8578
|
-
}
|
|
8579
|
-
} else {
|
|
8580
|
-
// 展开
|
|
8581
|
-
if (props.showShadow) {
|
|
8582
|
-
(0,util_.addClass)(dom, ["kq-is-show", "kq-box-shadow"]);
|
|
8583
|
-
(0,util_.removeClass)(dom, ["kq-is-hide", "kq-light-shadow"]);
|
|
8584
|
-
} else {
|
|
8585
|
-
(0,util_.addClass)(dom, "kq-is-show");
|
|
8586
|
-
(0,util_.removeClass)(dom, "kq-is-hide");
|
|
8587
|
-
}
|
|
8588
|
-
}
|
|
8589
|
-
}
|
|
8590
|
-
|
|
8591
|
-
expose({
|
|
8592
|
-
btnClick
|
|
8593
|
-
});
|
|
8594
|
-
return (_ctx, _cache) => {
|
|
8595
|
-
const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-icon");
|
|
8596
|
-
|
|
8597
|
-
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("h4", _hoisted_2, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)(__props.headerTempTitle), 1
|
|
8598
|
-
/* TEXT */
|
|
8599
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
|
|
8600
|
-
class: "_btn kq-control-header-temp_btn",
|
|
8601
|
-
onClick: btnClick
|
|
8602
|
-
}, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_icon, {
|
|
8603
|
-
size: 16
|
|
8604
|
-
}, {
|
|
8605
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(iconBtn))))]),
|
|
8606
|
-
_: 1
|
|
8607
|
-
/* STABLE */
|
|
8608
|
-
|
|
8609
|
-
})])]);
|
|
8610
|
-
};
|
|
8611
|
-
}
|
|
8612
|
-
|
|
8613
|
-
}));
|
|
8614
|
-
;// CONCATENATED MODULE: ./src/webgl/headertemp/HeaderTemp.vue?vue&type=script&setup=true&lang=js
|
|
8615
|
-
|
|
8616
|
-
;// CONCATENATED MODULE: ./src/webgl/headertemp/HeaderTemp.vue
|
|
8617
|
-
|
|
8618
|
-
|
|
8619
|
-
|
|
8620
|
-
const __exports__ = HeaderTempvue_type_script_setup_true_lang_js;
|
|
8621
|
-
|
|
8622
|
-
/* harmony default export */ var HeaderTemp = (__exports__);
|
|
8623
|
-
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
8624
|
-
var init_js_ = __webpack_require__(5406);
|
|
8625
|
-
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
8626
|
-
;// CONCATENATED MODULE: ./src/webgl/headertemp/index.js
|
|
8627
|
-
|
|
8628
|
-
|
|
8629
|
-
|
|
8630
|
-
HeaderTemp.install = (Vue, opts) => {
|
|
8631
|
-
init_js_default()(Vue, opts);
|
|
8632
|
-
Vue.component(HeaderTemp.name, HeaderTemp);
|
|
8633
|
-
};
|
|
8634
|
-
|
|
8635
|
-
|
|
8636
|
-
|
|
8637
8663
|
/***/ }),
|
|
8638
8664
|
|
|
8639
8665
|
/***/ 9783:
|
|
@@ -8995,8 +9021,8 @@ class IsolineAnalysisViewModel {
|
|
|
8995
9021
|
}
|
|
8996
9022
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
8997
9023
|
var client_icons_vue_ = __webpack_require__(348);
|
|
8998
|
-
// EXTERNAL MODULE:
|
|
8999
|
-
var
|
|
9024
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
9025
|
+
var util_ = __webpack_require__(9519);
|
|
9000
9026
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/isolineanalysis/IsolineAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
9001
9027
|
|
|
9002
9028
|
const _hoisted_1 = {
|
|
@@ -9086,6 +9112,11 @@ const __default__ = {
|
|
|
9086
9112
|
type: Boolean,
|
|
9087
9113
|
default: true
|
|
9088
9114
|
},
|
|
9115
|
+
|
|
9116
|
+
/**
|
|
9117
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
9118
|
+
*/
|
|
9119
|
+
position: [String, Object],
|
|
9089
9120
|
// 是否生成HeaderTemp
|
|
9090
9121
|
showHeaderTemp: {
|
|
9091
9122
|
type: Boolean,
|
|
@@ -9209,8 +9240,21 @@ const __default__ = {
|
|
|
9209
9240
|
surfaceAlpha: props.settingParams && props.settingParams.surfaceAlpha || 0.6 // 面透明度
|
|
9210
9241
|
|
|
9211
9242
|
});
|
|
9212
|
-
let viewModel = null;
|
|
9243
|
+
let viewModel = null; // 组件容器Ref
|
|
9244
|
+
|
|
9245
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
9246
|
+
|
|
9247
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
9248
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
9213
9249
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
9250
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
9251
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
9252
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
9253
|
+
});
|
|
9254
|
+
watchCreateHeaderTemp();
|
|
9255
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
9256
|
+
watchCreateHeaderTemp();
|
|
9257
|
+
});
|
|
9214
9258
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
9215
9259
|
|
|
9216
9260
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
@@ -9251,7 +9295,18 @@ const __default__ = {
|
|
|
9251
9295
|
viewModel = new IsolineAnalysisViewModel(scenceView, options);
|
|
9252
9296
|
}
|
|
9253
9297
|
});
|
|
9254
|
-
});
|
|
9298
|
+
});
|
|
9299
|
+
/**
|
|
9300
|
+
* @description 监听header生成
|
|
9301
|
+
*/
|
|
9302
|
+
|
|
9303
|
+
const watchCreateHeaderTemp = () => {
|
|
9304
|
+
if (props.showHeaderTemp) {
|
|
9305
|
+
// 生成headerTemp
|
|
9306
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef);
|
|
9307
|
+
}
|
|
9308
|
+
}; // 刷新自定义样式数组
|
|
9309
|
+
|
|
9255
9310
|
|
|
9256
9311
|
function refactorArr(type) {
|
|
9257
9312
|
if (!dataList || !dataList.length) return;
|
|
@@ -9442,17 +9497,16 @@ const __default__ = {
|
|
|
9442
9497
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
9443
9498
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-isoline-analysis", {
|
|
9444
9499
|
'kq-box-shadow': __props.showShadow
|
|
9445
|
-
}])
|
|
9446
|
-
|
|
9500
|
+
}]),
|
|
9501
|
+
ref_key: "boxRef",
|
|
9502
|
+
ref: boxRef
|
|
9503
|
+
}, [__props.showHeaderTemp ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headerTemp)), {
|
|
9447
9504
|
key: 0,
|
|
9448
|
-
|
|
9449
|
-
|
|
9450
|
-
|
|
9451
|
-
|
|
9452
|
-
|
|
9453
|
-
}, null, 8
|
|
9454
|
-
/* PROPS */
|
|
9455
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
9505
|
+
ref_key: "headerTempRef",
|
|
9506
|
+
ref: headerTempRef
|
|
9507
|
+
}, null, 512
|
|
9508
|
+
/* NEED_PATCH */
|
|
9509
|
+
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
9456
9510
|
gutter: 20
|
|
9457
9511
|
}, {
|
|
9458
9512
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
@@ -11396,8 +11450,8 @@ var client_icons_vue_ = __webpack_require__(348);
|
|
|
11396
11450
|
var gis_utils_ = __webpack_require__(826);
|
|
11397
11451
|
// EXTERNAL MODULE: ./src/webgl/measure/MeasureViewModel.js
|
|
11398
11452
|
var MeasureViewModel = __webpack_require__(193);
|
|
11399
|
-
// EXTERNAL MODULE:
|
|
11400
|
-
var
|
|
11453
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
11454
|
+
var util_ = __webpack_require__(9519);
|
|
11401
11455
|
;// 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
|
|
11402
11456
|
|
|
11403
11457
|
const _hoisted_1 = {
|
|
@@ -11524,6 +11578,11 @@ const __default__ = {
|
|
|
11524
11578
|
type: Boolean,
|
|
11525
11579
|
default: true
|
|
11526
11580
|
},
|
|
11581
|
+
|
|
11582
|
+
/**
|
|
11583
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
11584
|
+
*/
|
|
11585
|
+
position: [String, Object],
|
|
11527
11586
|
// 是否生成HeaderTemp
|
|
11528
11587
|
showHeaderTemp: {
|
|
11529
11588
|
type: Boolean,
|
|
@@ -11583,8 +11642,21 @@ const __default__ = {
|
|
|
11583
11642
|
}, {
|
|
11584
11643
|
label: "km²",
|
|
11585
11644
|
value: "km²"
|
|
11586
|
-
}]);
|
|
11645
|
+
}]); // 组件容器Ref
|
|
11646
|
+
|
|
11647
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
11648
|
+
|
|
11649
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
11650
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
11587
11651
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
11652
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
11653
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
11654
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
11655
|
+
});
|
|
11656
|
+
watchCreateHeaderTemp();
|
|
11657
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
11658
|
+
watchCreateHeaderTemp();
|
|
11659
|
+
});
|
|
11588
11660
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
11589
11661
|
if (scenceView) {
|
|
11590
11662
|
language.value = scenceView._language;
|
|
@@ -11628,7 +11700,18 @@ const __default__ = {
|
|
|
11628
11700
|
});
|
|
11629
11701
|
}
|
|
11630
11702
|
});
|
|
11631
|
-
});
|
|
11703
|
+
});
|
|
11704
|
+
/**
|
|
11705
|
+
* @description 监听header生成
|
|
11706
|
+
*/
|
|
11707
|
+
|
|
11708
|
+
const watchCreateHeaderTemp = () => {
|
|
11709
|
+
if (props.showHeaderTemp) {
|
|
11710
|
+
// 生成headerTemp
|
|
11711
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef);
|
|
11712
|
+
}
|
|
11713
|
+
}; //加载测量模式数据
|
|
11714
|
+
|
|
11632
11715
|
|
|
11633
11716
|
function loadModeData() {
|
|
11634
11717
|
modeList.push({
|
|
@@ -11778,17 +11861,16 @@ const __default__ = {
|
|
|
11778
11861
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
11779
11862
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq-measure3d", {
|
|
11780
11863
|
'kq-box-shadow': __props.showShadow
|
|
11781
|
-
}])
|
|
11782
|
-
|
|
11864
|
+
}]),
|
|
11865
|
+
ref_key: "boxRef",
|
|
11866
|
+
ref: boxRef
|
|
11867
|
+
}, [__props.showHeaderTemp ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headerTemp)), {
|
|
11783
11868
|
key: 0,
|
|
11784
|
-
|
|
11785
|
-
|
|
11786
|
-
|
|
11787
|
-
|
|
11788
|
-
|
|
11789
|
-
}, null, 8
|
|
11790
|
-
/* PROPS */
|
|
11791
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_3, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_4, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).mode), 1
|
|
11869
|
+
ref_key: "headerTempRef",
|
|
11870
|
+
ref: headerTempRef
|
|
11871
|
+
}, null, 512
|
|
11872
|
+
/* NEED_PATCH */
|
|
11873
|
+
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_3, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_4, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).mode), 1
|
|
11792
11874
|
/* TEXT */
|
|
11793
11875
|
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_select, {
|
|
11794
11876
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(mode),
|
|
@@ -12122,8 +12204,8 @@ var gis_utils_ = __webpack_require__(826);
|
|
|
12122
12204
|
var ModelSelectViewModel = __webpack_require__(5394);
|
|
12123
12205
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
12124
12206
|
var client_icons_vue_ = __webpack_require__(348);
|
|
12125
|
-
// EXTERNAL MODULE:
|
|
12126
|
-
var
|
|
12207
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
12208
|
+
var util_ = __webpack_require__(9519);
|
|
12127
12209
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/modelselect/ModelSelect.vue?vue&type=script&setup=true&lang=js
|
|
12128
12210
|
|
|
12129
12211
|
const _hoisted_1 = {
|
|
@@ -12161,6 +12243,11 @@ const __default__ = {
|
|
|
12161
12243
|
type: Boolean,
|
|
12162
12244
|
default: true
|
|
12163
12245
|
},
|
|
12246
|
+
|
|
12247
|
+
/**
|
|
12248
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
12249
|
+
*/
|
|
12250
|
+
position: [String, Object],
|
|
12164
12251
|
// 是否生成HeaderTemp
|
|
12165
12252
|
showHeaderTemp: {
|
|
12166
12253
|
type: Boolean,
|
|
@@ -12210,10 +12297,23 @@ const __default__ = {
|
|
|
12210
12297
|
color: "var(--kq-color-info)",
|
|
12211
12298
|
"font-size": "14px"
|
|
12212
12299
|
};
|
|
12213
|
-
};
|
|
12300
|
+
}; // 组件容器Ref
|
|
12301
|
+
|
|
12302
|
+
|
|
12303
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
12214
12304
|
|
|
12305
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
12306
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
12215
12307
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
12216
|
-
|
|
12308
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
12309
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
12310
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
12311
|
+
});
|
|
12312
|
+
watchCreateHeaderTemp();
|
|
12313
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
12314
|
+
watchCreateHeaderTemp();
|
|
12315
|
+
}); //父组件ScenceView初始化完成后执行
|
|
12316
|
+
|
|
12217
12317
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
12218
12318
|
if (scenceView) {
|
|
12219
12319
|
language.value = scenceView._language;
|
|
@@ -12221,6 +12321,16 @@ const __default__ = {
|
|
|
12221
12321
|
}
|
|
12222
12322
|
});
|
|
12223
12323
|
});
|
|
12324
|
+
/**
|
|
12325
|
+
* @description 监听header生成
|
|
12326
|
+
*/
|
|
12327
|
+
|
|
12328
|
+
const watchCreateHeaderTemp = () => {
|
|
12329
|
+
if (props.showHeaderTemp) {
|
|
12330
|
+
// 生成headerTemp
|
|
12331
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef);
|
|
12332
|
+
}
|
|
12333
|
+
};
|
|
12224
12334
|
|
|
12225
12335
|
function setModeFiled(val) {
|
|
12226
12336
|
viewModel._modeFiled = val;
|
|
@@ -12284,17 +12394,16 @@ const __default__ = {
|
|
|
12284
12394
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
12285
12395
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-model-select", {
|
|
12286
12396
|
'kq-box-shadow': __props.showShadow
|
|
12287
|
-
}])
|
|
12288
|
-
|
|
12289
|
-
|
|
12290
|
-
|
|
12291
|
-
|
|
12292
|
-
|
|
12293
|
-
|
|
12294
|
-
|
|
12295
|
-
|
|
12296
|
-
|
|
12297
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
12397
|
+
}]),
|
|
12398
|
+
ref_key: "boxRef",
|
|
12399
|
+
ref: boxRef
|
|
12400
|
+
}, [__props.showHeaderTemp ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headerTemp)), {
|
|
12401
|
+
key: 0,
|
|
12402
|
+
ref_key: "headerTempRef",
|
|
12403
|
+
ref: headerTempRef
|
|
12404
|
+
}, null, 512
|
|
12405
|
+
/* NEED_PATCH */
|
|
12406
|
+
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
12298
12407
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
12299
12408
|
span: 8
|
|
12300
12409
|
}, {
|
|
@@ -12659,8 +12768,8 @@ class ParticleEffectViewModel {
|
|
|
12659
12768
|
}
|
|
12660
12769
|
|
|
12661
12770
|
}
|
|
12662
|
-
// EXTERNAL MODULE:
|
|
12663
|
-
var
|
|
12771
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
12772
|
+
var util_ = __webpack_require__(9519);
|
|
12664
12773
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/particleeffect/ParticleEffect.vue?vue&type=script&setup=true&lang=js
|
|
12665
12774
|
|
|
12666
12775
|
const _hoisted_1 = {
|
|
@@ -12688,6 +12797,11 @@ const __default__ = {
|
|
|
12688
12797
|
type: Boolean,
|
|
12689
12798
|
default: true
|
|
12690
12799
|
},
|
|
12800
|
+
|
|
12801
|
+
/**
|
|
12802
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
12803
|
+
*/
|
|
12804
|
+
position: [String, Object],
|
|
12691
12805
|
// 是否生成HeaderTemp
|
|
12692
12806
|
showHeaderTemp: {
|
|
12693
12807
|
type: Boolean,
|
|
@@ -12737,8 +12851,21 @@ const __default__ = {
|
|
|
12737
12851
|
endScale: props.settingParams && props.settingParams.endScale || 1.0,
|
|
12738
12852
|
gravity: props.settingParams && props.settingParams.gravity || 0.0
|
|
12739
12853
|
});
|
|
12740
|
-
let viewModel = null;
|
|
12854
|
+
let viewModel = null; // 组件容器Ref
|
|
12855
|
+
|
|
12856
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
12857
|
+
|
|
12858
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
12859
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
12741
12860
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
12861
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
12862
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
12863
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
12864
|
+
});
|
|
12865
|
+
watchCreateHeaderTemp();
|
|
12866
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
12867
|
+
watchCreateHeaderTemp();
|
|
12868
|
+
});
|
|
12742
12869
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
12743
12870
|
|
|
12744
12871
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
@@ -12748,6 +12875,16 @@ const __default__ = {
|
|
|
12748
12875
|
}
|
|
12749
12876
|
});
|
|
12750
12877
|
});
|
|
12878
|
+
/**
|
|
12879
|
+
* @description 监听header生成
|
|
12880
|
+
*/
|
|
12881
|
+
|
|
12882
|
+
const watchCreateHeaderTemp = () => {
|
|
12883
|
+
if (props.showHeaderTemp) {
|
|
12884
|
+
// 生成headerTemp
|
|
12885
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef);
|
|
12886
|
+
}
|
|
12887
|
+
};
|
|
12751
12888
|
|
|
12752
12889
|
function changeMode(mode) {
|
|
12753
12890
|
if (formItem.mode !== mode) {
|
|
@@ -12861,17 +12998,16 @@ const __default__ = {
|
|
|
12861
12998
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
12862
12999
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-particle-effect", {
|
|
12863
13000
|
'kq-box-shadow': __props.showShadow
|
|
12864
|
-
}])
|
|
12865
|
-
|
|
13001
|
+
}]),
|
|
13002
|
+
ref_key: "boxRef",
|
|
13003
|
+
ref: boxRef
|
|
13004
|
+
}, [__props.showHeaderTemp ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headerTemp)), {
|
|
12866
13005
|
key: 0,
|
|
12867
|
-
|
|
12868
|
-
|
|
12869
|
-
|
|
12870
|
-
|
|
12871
|
-
|
|
12872
|
-
}, null, 8
|
|
12873
|
-
/* PROPS */
|
|
12874
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
13006
|
+
ref_key: "headerTempRef",
|
|
13007
|
+
ref: headerTempRef
|
|
13008
|
+
}, null, 512
|
|
13009
|
+
/* NEED_PATCH */
|
|
13010
|
+
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
12875
13011
|
gutter: 20,
|
|
12876
13012
|
class: "rowclass"
|
|
12877
13013
|
}, {
|
|
@@ -13698,8 +13834,8 @@ var gis_utils_ = __webpack_require__(826);
|
|
|
13698
13834
|
var PlaneClipViewModel = __webpack_require__(5673);
|
|
13699
13835
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
13700
13836
|
var client_icons_vue_ = __webpack_require__(348);
|
|
13701
|
-
// EXTERNAL MODULE:
|
|
13702
|
-
var
|
|
13837
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
13838
|
+
var util_ = __webpack_require__(9519);
|
|
13703
13839
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/planeclip/PlaneClip.vue?vue&type=script&setup=true&lang=js
|
|
13704
13840
|
|
|
13705
13841
|
const _hoisted_1 = {
|
|
@@ -13736,6 +13872,11 @@ const __default__ = {
|
|
|
13736
13872
|
type: Boolean,
|
|
13737
13873
|
default: true
|
|
13738
13874
|
},
|
|
13875
|
+
|
|
13876
|
+
/**
|
|
13877
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
13878
|
+
*/
|
|
13879
|
+
position: [String, Object],
|
|
13739
13880
|
// 是否生成HeaderTemp
|
|
13740
13881
|
showHeaderTemp: {
|
|
13741
13882
|
type: Boolean,
|
|
@@ -13782,8 +13923,21 @@ const __default__ = {
|
|
|
13782
13923
|
boxEnable: props.settingParams && props.settingParams.boxEnable !== undefined || false,
|
|
13783
13924
|
clipDistance: props.settingParams && props.settingParams.clipDistance || 0
|
|
13784
13925
|
});
|
|
13785
|
-
let viewModel = null;
|
|
13926
|
+
let viewModel = null; // 组件容器Ref
|
|
13927
|
+
|
|
13928
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
13929
|
+
|
|
13930
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
13931
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
13786
13932
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
13933
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
13934
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
13935
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
13936
|
+
});
|
|
13937
|
+
watchCreateHeaderTemp();
|
|
13938
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
13939
|
+
watchCreateHeaderTemp();
|
|
13940
|
+
});
|
|
13787
13941
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
13788
13942
|
//父组 件ScenceView初始化完成后执行
|
|
13789
13943
|
|
|
@@ -13811,7 +13965,18 @@ const __default__ = {
|
|
|
13811
13965
|
}
|
|
13812
13966
|
}
|
|
13813
13967
|
}, 1000);
|
|
13814
|
-
});
|
|
13968
|
+
});
|
|
13969
|
+
/**
|
|
13970
|
+
* @description 监听header生成
|
|
13971
|
+
*/
|
|
13972
|
+
|
|
13973
|
+
const watchCreateHeaderTemp = () => {
|
|
13974
|
+
if (props.showHeaderTemp) {
|
|
13975
|
+
// 生成headerTemp
|
|
13976
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef);
|
|
13977
|
+
}
|
|
13978
|
+
}; // 参数改变
|
|
13979
|
+
|
|
13815
13980
|
|
|
13816
13981
|
function paramsChanged(key) {
|
|
13817
13982
|
switch (key) {
|
|
@@ -13891,17 +14056,16 @@ const __default__ = {
|
|
|
13891
14056
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
13892
14057
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-plane-clip", {
|
|
13893
14058
|
'kq-box-shadow': __props.showShadow
|
|
13894
|
-
}])
|
|
13895
|
-
|
|
14059
|
+
}]),
|
|
14060
|
+
ref_key: "boxRef",
|
|
14061
|
+
ref: boxRef
|
|
14062
|
+
}, [__props.showHeaderTemp ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headerTemp)), {
|
|
13896
14063
|
key: 0,
|
|
13897
|
-
|
|
13898
|
-
|
|
13899
|
-
|
|
13900
|
-
|
|
13901
|
-
|
|
13902
|
-
}, null, 8
|
|
13903
|
-
/* PROPS */
|
|
13904
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
14064
|
+
ref_key: "headerTempRef",
|
|
14065
|
+
ref: headerTempRef
|
|
14066
|
+
}, null, 512
|
|
14067
|
+
/* NEED_PATCH */
|
|
14068
|
+
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
13905
14069
|
gutter: 20,
|
|
13906
14070
|
class: "rowClass"
|
|
13907
14071
|
}, {
|
|
@@ -14537,8 +14701,8 @@ var gis_utils_ = __webpack_require__(826);
|
|
|
14537
14701
|
var ProfileAnalysisViewModel = __webpack_require__(6132);
|
|
14538
14702
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
14539
14703
|
var client_icons_vue_ = __webpack_require__(348);
|
|
14540
|
-
// EXTERNAL MODULE:
|
|
14541
|
-
var
|
|
14704
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
14705
|
+
var util_ = __webpack_require__(9519);
|
|
14542
14706
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/profileanalysis/ProfileAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
14543
14707
|
|
|
14544
14708
|
const _hoisted_1 = {
|
|
@@ -14573,6 +14737,11 @@ const __default__ = {
|
|
|
14573
14737
|
type: Boolean,
|
|
14574
14738
|
default: true
|
|
14575
14739
|
},
|
|
14740
|
+
|
|
14741
|
+
/**
|
|
14742
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
14743
|
+
*/
|
|
14744
|
+
position: [String, Object],
|
|
14576
14745
|
// 是否生成HeaderTemp
|
|
14577
14746
|
showHeaderTemp: {
|
|
14578
14747
|
type: Boolean,
|
|
@@ -14638,8 +14807,21 @@ const __default__ = {
|
|
|
14638
14807
|
// 相机高度范围最大值
|
|
14639
14808
|
enablePerspective: props.settingParams && props.settingParams.isLabel !== undefined || true // 是否透视
|
|
14640
14809
|
|
|
14641
|
-
});
|
|
14810
|
+
}); // 组件容器Ref
|
|
14811
|
+
|
|
14812
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
14813
|
+
|
|
14814
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
14815
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
14642
14816
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
14817
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
14818
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
14819
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
14820
|
+
});
|
|
14821
|
+
watchCreateHeaderTemp();
|
|
14822
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
14823
|
+
watchCreateHeaderTemp();
|
|
14824
|
+
});
|
|
14643
14825
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
14644
14826
|
if (scenceView) {
|
|
14645
14827
|
language.value = scenceView._language;
|
|
@@ -14659,7 +14841,18 @@ const __default__ = {
|
|
|
14659
14841
|
resultCahrtVis.value = false;
|
|
14660
14842
|
}
|
|
14661
14843
|
});
|
|
14662
|
-
});
|
|
14844
|
+
});
|
|
14845
|
+
/**
|
|
14846
|
+
* @description 监听header生成
|
|
14847
|
+
*/
|
|
14848
|
+
|
|
14849
|
+
const watchCreateHeaderTemp = () => {
|
|
14850
|
+
if (props.showHeaderTemp) {
|
|
14851
|
+
// 生成headerTemp
|
|
14852
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef);
|
|
14853
|
+
}
|
|
14854
|
+
}; // 开始分析
|
|
14855
|
+
|
|
14663
14856
|
|
|
14664
14857
|
function startAnalysis() {
|
|
14665
14858
|
viewModel && viewModel.start();
|
|
@@ -14732,17 +14925,16 @@ const __default__ = {
|
|
|
14732
14925
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
14733
14926
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-profile-analysis", {
|
|
14734
14927
|
'kq-box-shadow': __props.showShadow
|
|
14735
|
-
}])
|
|
14736
|
-
|
|
14928
|
+
}]),
|
|
14929
|
+
ref_key: "boxRef",
|
|
14930
|
+
ref: boxRef
|
|
14931
|
+
}, [__props.showHeaderTemp ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headerTemp)), {
|
|
14737
14932
|
key: 0,
|
|
14738
|
-
|
|
14739
|
-
|
|
14740
|
-
|
|
14741
|
-
|
|
14742
|
-
|
|
14743
|
-
}, null, 8
|
|
14744
|
-
/* PROPS */
|
|
14745
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
14933
|
+
ref_key: "headerTempRef",
|
|
14934
|
+
ref: headerTempRef
|
|
14935
|
+
}, null, 512
|
|
14936
|
+
/* NEED_PATCH */
|
|
14937
|
+
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
14746
14938
|
class: "kq3d-profile-analysis-tip"
|
|
14747
14939
|
}, {
|
|
14748
14940
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).profileTips), 1
|
|
@@ -15462,8 +15654,8 @@ var client_icons_vue_ = __webpack_require__(348);
|
|
|
15462
15654
|
var gis_utils_ = __webpack_require__(826);
|
|
15463
15655
|
// EXTERNAL MODULE: ./src/webgl/roller/RollerViewModel.js
|
|
15464
15656
|
var RollerViewModel = __webpack_require__(6561);
|
|
15465
|
-
// EXTERNAL MODULE:
|
|
15466
|
-
var
|
|
15657
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
15658
|
+
var util_ = __webpack_require__(9519);
|
|
15467
15659
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/roller/Roller.vue?vue&type=script&setup=true&lang=js
|
|
15468
15660
|
|
|
15469
15661
|
const _hoisted_1 = {
|
|
@@ -15482,19 +15674,15 @@ const __default__ = {
|
|
|
15482
15674
|
};
|
|
15483
15675
|
/* harmony default export */ var Rollervue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
15484
15676
|
props: {
|
|
15485
|
-
//设置参数
|
|
15486
|
-
top: {
|
|
15487
|
-
type: Number,
|
|
15488
|
-
default: 16
|
|
15489
|
-
},
|
|
15490
|
-
right: {
|
|
15491
|
-
type: Number,
|
|
15492
|
-
default: 16
|
|
15493
|
-
},
|
|
15494
15677
|
showShadow: {
|
|
15495
15678
|
type: Boolean,
|
|
15496
15679
|
default: true
|
|
15497
15680
|
},
|
|
15681
|
+
|
|
15682
|
+
/**
|
|
15683
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
15684
|
+
*/
|
|
15685
|
+
position: [String, Object],
|
|
15498
15686
|
// 是否生成HeaderTemp
|
|
15499
15687
|
showHeaderTemp: {
|
|
15500
15688
|
type: Boolean,
|
|
@@ -15540,8 +15728,21 @@ const __default__ = {
|
|
|
15540
15728
|
mode: props.settingParams && props.settingParams.mode || null
|
|
15541
15729
|
});
|
|
15542
15730
|
let layers = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)([]);
|
|
15543
|
-
let viewModel = null;
|
|
15731
|
+
let viewModel = null; // 组件容器Ref
|
|
15732
|
+
|
|
15733
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
15734
|
+
|
|
15735
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
15736
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
15544
15737
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
15738
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
15739
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
15740
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
15741
|
+
});
|
|
15742
|
+
watchCreateHeaderTemp();
|
|
15743
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
15744
|
+
watchCreateHeaderTemp();
|
|
15745
|
+
});
|
|
15545
15746
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
15546
15747
|
if (scenceView) {
|
|
15547
15748
|
language.value = scenceView._language;
|
|
@@ -15551,7 +15752,18 @@ const __default__ = {
|
|
|
15551
15752
|
viewModel = new RollerViewModel/* default */.Z(scenceView, options);
|
|
15552
15753
|
}
|
|
15553
15754
|
});
|
|
15554
|
-
});
|
|
15755
|
+
});
|
|
15756
|
+
/**
|
|
15757
|
+
* @description 监听header生成
|
|
15758
|
+
*/
|
|
15759
|
+
|
|
15760
|
+
const watchCreateHeaderTemp = () => {
|
|
15761
|
+
if (props.showHeaderTemp) {
|
|
15762
|
+
// 生成headerTemp
|
|
15763
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef);
|
|
15764
|
+
}
|
|
15765
|
+
}; // 切换模式
|
|
15766
|
+
|
|
15555
15767
|
|
|
15556
15768
|
function changeMode() {
|
|
15557
15769
|
let mode = formItem.mode;
|
|
@@ -15599,17 +15811,15 @@ const __default__ = {
|
|
|
15599
15811
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-roller", {
|
|
15600
15812
|
'kq-box-shadow': __props.showShadow
|
|
15601
15813
|
}]),
|
|
15602
|
-
|
|
15603
|
-
|
|
15814
|
+
ref_key: "boxRef",
|
|
15815
|
+
ref: boxRef
|
|
15816
|
+
}, [__props.showHeaderTemp ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headerTemp)), {
|
|
15604
15817
|
key: 0,
|
|
15605
|
-
|
|
15606
|
-
|
|
15607
|
-
|
|
15608
|
-
|
|
15609
|
-
|
|
15610
|
-
}, null, 8
|
|
15611
|
-
/* PROPS */
|
|
15612
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
15818
|
+
ref_key: "headerTempRef",
|
|
15819
|
+
ref: headerTempRef
|
|
15820
|
+
}, null, 512
|
|
15821
|
+
/* NEED_PATCH */
|
|
15822
|
+
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
15613
15823
|
style: {
|
|
15614
15824
|
"margin-bottom": "8px"
|
|
15615
15825
|
}
|
|
@@ -15782,8 +15992,8 @@ const __default__ = {
|
|
|
15782
15992
|
|
|
15783
15993
|
}, 512
|
|
15784
15994
|
/* NEED_PATCH */
|
|
15785
|
-
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).mode !== null]])])],
|
|
15786
|
-
/* CLASS
|
|
15995
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).mode !== null]])])], 2
|
|
15996
|
+
/* CLASS */
|
|
15787
15997
|
);
|
|
15788
15998
|
};
|
|
15789
15999
|
}
|
|
@@ -15990,11 +16200,14 @@ var client_icons_vue_ = __webpack_require__(348);
|
|
|
15990
16200
|
var gis_utils_ = __webpack_require__(826);
|
|
15991
16201
|
// EXTERNAL MODULE: ./src/webgl/screenshot/ScreenshotViewModel.js
|
|
15992
16202
|
var ScreenshotViewModel = __webpack_require__(1248);
|
|
15993
|
-
// EXTERNAL MODULE:
|
|
15994
|
-
var
|
|
16203
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
16204
|
+
var util_ = __webpack_require__(9519);
|
|
15995
16205
|
;// 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
|
|
15996
16206
|
|
|
15997
16207
|
const _hoisted_1 = {
|
|
16208
|
+
class: "kq3d-screenshot-box"
|
|
16209
|
+
};
|
|
16210
|
+
const _hoisted_2 = {
|
|
15998
16211
|
class: "kq3d-screenshot-footer"
|
|
15999
16212
|
};
|
|
16000
16213
|
|
|
@@ -16016,6 +16229,11 @@ const __default__ = {
|
|
|
16016
16229
|
type: Boolean,
|
|
16017
16230
|
default: true
|
|
16018
16231
|
},
|
|
16232
|
+
|
|
16233
|
+
/**
|
|
16234
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
16235
|
+
*/
|
|
16236
|
+
position: [String, Object],
|
|
16019
16237
|
// 是否生成HeaderTemp
|
|
16020
16238
|
showHeaderTemp: {
|
|
16021
16239
|
type: Boolean,
|
|
@@ -16072,8 +16290,21 @@ const __default__ = {
|
|
|
16072
16290
|
//倾斜摄影名称
|
|
16073
16291
|
tilesetStyle: props.settingParams && props.settingParams.tilesetStyle || style // 倾斜摄影样式
|
|
16074
16292
|
|
|
16075
|
-
});
|
|
16293
|
+
}); // 组件容器Ref
|
|
16294
|
+
|
|
16295
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
16296
|
+
|
|
16297
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
16298
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
16076
16299
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
16300
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
16301
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
16302
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
16303
|
+
});
|
|
16304
|
+
watchCreateHeaderTemp();
|
|
16305
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
16306
|
+
watchCreateHeaderTemp();
|
|
16307
|
+
});
|
|
16077
16308
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
16078
16309
|
if (scenceView) {
|
|
16079
16310
|
language.value = scenceView._language;
|
|
@@ -16085,7 +16316,18 @@ const __default__ = {
|
|
|
16085
16316
|
viewModel = new ScreenshotViewModel/* default */.Z(scenceView._viewer, formItem);
|
|
16086
16317
|
}
|
|
16087
16318
|
});
|
|
16088
|
-
});
|
|
16319
|
+
});
|
|
16320
|
+
/**
|
|
16321
|
+
* @description 监听header生成
|
|
16322
|
+
*/
|
|
16323
|
+
|
|
16324
|
+
const watchCreateHeaderTemp = () => {
|
|
16325
|
+
if (props.showHeaderTemp) {
|
|
16326
|
+
// 生成headerTemp
|
|
16327
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef);
|
|
16328
|
+
}
|
|
16329
|
+
}; // 场景出图
|
|
16330
|
+
|
|
16089
16331
|
|
|
16090
16332
|
function sceneFigure() {
|
|
16091
16333
|
viewModel && viewModel.sceneFigure();
|
|
@@ -16151,17 +16393,16 @@ const __default__ = {
|
|
|
16151
16393
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
16152
16394
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-screenshot", {
|
|
16153
16395
|
'kq-box-shadow': __props.showShadow
|
|
16154
|
-
}])
|
|
16155
|
-
|
|
16396
|
+
}]),
|
|
16397
|
+
ref_key: "boxRef",
|
|
16398
|
+
ref: boxRef
|
|
16399
|
+
}, [__props.showHeaderTemp ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headerTemp)), {
|
|
16156
16400
|
key: 0,
|
|
16157
|
-
|
|
16158
|
-
|
|
16159
|
-
|
|
16160
|
-
|
|
16161
|
-
|
|
16162
|
-
}, null, 8
|
|
16163
|
-
/* PROPS */
|
|
16164
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form, {
|
|
16401
|
+
ref_key: "headerTempRef",
|
|
16402
|
+
ref: headerTempRef
|
|
16403
|
+
}, null, 512
|
|
16404
|
+
/* NEED_PATCH */
|
|
16405
|
+
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form, {
|
|
16165
16406
|
"label-width": "120px",
|
|
16166
16407
|
"label-position": "left"
|
|
16167
16408
|
}, {
|
|
@@ -16316,7 +16557,7 @@ const __default__ = {
|
|
|
16316
16557
|
_: 1
|
|
16317
16558
|
/* STABLE */
|
|
16318
16559
|
|
|
16319
|
-
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div",
|
|
16560
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
16320
16561
|
onClick: _cache[8] || (_cache[8] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => sceneFigure(), ["stop"])),
|
|
16321
16562
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).screenshotTips,
|
|
16322
16563
|
type: "primary"
|
|
@@ -16329,7 +16570,7 @@ const __default__ = {
|
|
|
16329
16570
|
|
|
16330
16571
|
}, 8
|
|
16331
16572
|
/* PROPS */
|
|
16332
|
-
, ["title"])])], 2
|
|
16573
|
+
, ["title"])])])], 2
|
|
16333
16574
|
/* CLASS */
|
|
16334
16575
|
);
|
|
16335
16576
|
};
|
|
@@ -16621,8 +16862,8 @@ var ShadowAnalysisViewModel = __webpack_require__(4167);
|
|
|
16621
16862
|
var const_image_ = __webpack_require__(9702);
|
|
16622
16863
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
16623
16864
|
var client_icons_vue_ = __webpack_require__(348);
|
|
16624
|
-
// EXTERNAL MODULE:
|
|
16625
|
-
var
|
|
16865
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
16866
|
+
var util_ = __webpack_require__(9519);
|
|
16626
16867
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/shadowanalysis/ShadowAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
16627
16868
|
|
|
16628
16869
|
const _hoisted_1 = {
|
|
@@ -16668,6 +16909,11 @@ const __default__ = {
|
|
|
16668
16909
|
type: Boolean,
|
|
16669
16910
|
default: true
|
|
16670
16911
|
},
|
|
16912
|
+
|
|
16913
|
+
/**
|
|
16914
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
16915
|
+
*/
|
|
16916
|
+
position: [String, Object],
|
|
16671
16917
|
// 是否生成HeaderTemp
|
|
16672
16918
|
showHeaderTemp: {
|
|
16673
16919
|
type: Boolean,
|
|
@@ -16781,8 +17027,21 @@ const __default__ = {
|
|
|
16781
17027
|
// 透明缩放范围最小值
|
|
16782
17028
|
maxAlphaScale: props.settingParams && props.settingParams.alphaScale || 1 // 透明缩放范围最大值
|
|
16783
17029
|
|
|
16784
|
-
});
|
|
17030
|
+
}); // 组件容器Ref
|
|
17031
|
+
|
|
17032
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
17033
|
+
|
|
17034
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
17035
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
16785
17036
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
17037
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
17038
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
17039
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
17040
|
+
});
|
|
17041
|
+
watchCreateHeaderTemp();
|
|
17042
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
17043
|
+
watchCreateHeaderTemp();
|
|
17044
|
+
});
|
|
16786
17045
|
time.value = [formItem.startTime, formItem.endTime];
|
|
16787
17046
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言类型
|
|
16788
17047
|
|
|
@@ -16814,7 +17073,18 @@ const __default__ = {
|
|
|
16814
17073
|
});
|
|
16815
17074
|
}
|
|
16816
17075
|
});
|
|
16817
|
-
});
|
|
17076
|
+
});
|
|
17077
|
+
/**
|
|
17078
|
+
* @description 监听header生成
|
|
17079
|
+
*/
|
|
17080
|
+
|
|
17081
|
+
const watchCreateHeaderTemp = () => {
|
|
17082
|
+
if (props.showHeaderTemp) {
|
|
17083
|
+
// 生成headerTemp
|
|
17084
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef);
|
|
17085
|
+
}
|
|
17086
|
+
}; // 获取当前日期
|
|
17087
|
+
|
|
16818
17088
|
|
|
16819
17089
|
function GetDateStr() {
|
|
16820
17090
|
var dd = new Date();
|
|
@@ -16937,17 +17207,16 @@ const __default__ = {
|
|
|
16937
17207
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
16938
17208
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-shadow-analysis", {
|
|
16939
17209
|
'kq-box-shadow': __props.showShadow
|
|
16940
|
-
}])
|
|
16941
|
-
|
|
17210
|
+
}]),
|
|
17211
|
+
ref_key: "boxRef",
|
|
17212
|
+
ref: boxRef
|
|
17213
|
+
}, [__props.showHeaderTemp ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headerTemp)), {
|
|
16942
17214
|
key: 0,
|
|
16943
|
-
|
|
16944
|
-
|
|
16945
|
-
|
|
16946
|
-
|
|
16947
|
-
|
|
16948
|
-
}, null, 8
|
|
16949
|
-
/* PROPS */
|
|
16950
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
17215
|
+
ref_key: "headerTempRef",
|
|
17216
|
+
ref: headerTempRef
|
|
17217
|
+
}, null, 512
|
|
17218
|
+
/* NEED_PATCH */
|
|
17219
|
+
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
16951
17220
|
class: "kq3d-shadow-analysis-datetime"
|
|
16952
17221
|
}, {
|
|
16953
17222
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
@@ -17777,8 +18046,8 @@ class SightlineAnalysisViewModel {
|
|
|
17777
18046
|
}
|
|
17778
18047
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
17779
18048
|
var client_icons_vue_ = __webpack_require__(348);
|
|
17780
|
-
// EXTERNAL MODULE:
|
|
17781
|
-
var
|
|
18049
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
18050
|
+
var util_ = __webpack_require__(9519);
|
|
17782
18051
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/sightlineanalysis/SightlineAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
17783
18052
|
|
|
17784
18053
|
const _hoisted_1 = {
|
|
@@ -17806,6 +18075,11 @@ const __default__ = {
|
|
|
17806
18075
|
type: Boolean,
|
|
17807
18076
|
default: true
|
|
17808
18077
|
},
|
|
18078
|
+
|
|
18079
|
+
/**
|
|
18080
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
18081
|
+
*/
|
|
18082
|
+
position: [String, Object],
|
|
17809
18083
|
// 是否生成HeaderTemp
|
|
17810
18084
|
showHeaderTemp: {
|
|
17811
18085
|
type: Boolean,
|
|
@@ -17848,9 +18122,22 @@ const __default__ = {
|
|
|
17848
18122
|
highlightObstacle: props.settingParams && props.settingParams.highlightObstacle !== undefined || false,
|
|
17849
18123
|
isLabel: props.settingParams && props.settingParams.isLabel !== undefined || true
|
|
17850
18124
|
});
|
|
17851
|
-
let viewModel = null;
|
|
18125
|
+
let viewModel = null; // 组件容器Ref
|
|
18126
|
+
|
|
18127
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
18128
|
+
|
|
18129
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
18130
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
17852
18131
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
17853
|
-
|
|
18132
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
18133
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
18134
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
18135
|
+
});
|
|
18136
|
+
watchCreateHeaderTemp();
|
|
18137
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
18138
|
+
watchCreateHeaderTemp();
|
|
18139
|
+
}); //父组件ScenceView初始化完成后执行
|
|
18140
|
+
|
|
17854
18141
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
17855
18142
|
if (scenceView) {
|
|
17856
18143
|
language.value = scenceView._language;
|
|
@@ -17865,6 +18152,16 @@ const __default__ = {
|
|
|
17865
18152
|
}
|
|
17866
18153
|
});
|
|
17867
18154
|
});
|
|
18155
|
+
/**
|
|
18156
|
+
* @description 监听header生成
|
|
18157
|
+
*/
|
|
18158
|
+
|
|
18159
|
+
const watchCreateHeaderTemp = () => {
|
|
18160
|
+
if (props.showHeaderTemp) {
|
|
18161
|
+
// 生成headerTemp
|
|
18162
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef);
|
|
18163
|
+
}
|
|
18164
|
+
};
|
|
17868
18165
|
|
|
17869
18166
|
function paramsChanged(key) {
|
|
17870
18167
|
switch (key) {
|
|
@@ -17937,17 +18234,16 @@ const __default__ = {
|
|
|
17937
18234
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
17938
18235
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-sightline-analysis", {
|
|
17939
18236
|
'kq-box-shadow': __props.showShadow
|
|
17940
|
-
}])
|
|
17941
|
-
|
|
18237
|
+
}]),
|
|
18238
|
+
ref_key: "boxRef",
|
|
18239
|
+
ref: boxRef
|
|
18240
|
+
}, [__props.showHeaderTemp ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headerTemp)), {
|
|
17942
18241
|
key: 0,
|
|
17943
|
-
|
|
17944
|
-
|
|
17945
|
-
|
|
17946
|
-
|
|
17947
|
-
|
|
17948
|
-
}, null, 8
|
|
17949
|
-
/* PROPS */
|
|
17950
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
18242
|
+
ref_key: "headerTempRef",
|
|
18243
|
+
ref: headerTempRef
|
|
18244
|
+
}, null, 512
|
|
18245
|
+
/* NEED_PATCH */
|
|
18246
|
+
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
17951
18247
|
class: "kq3d-sightline-analysis-tip"
|
|
17952
18248
|
}, {
|
|
17953
18249
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).sightTips), 1
|
|
@@ -18428,8 +18724,8 @@ var gis_utils_ = __webpack_require__(826);
|
|
|
18428
18724
|
var SkylineAnalysisViewModel = __webpack_require__(3084);
|
|
18429
18725
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
18430
18726
|
var client_icons_vue_ = __webpack_require__(348);
|
|
18431
|
-
// EXTERNAL MODULE:
|
|
18432
|
-
var
|
|
18727
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
18728
|
+
var util_ = __webpack_require__(9519);
|
|
18433
18729
|
;// CONCATENATED MODULE: external "echarts"
|
|
18434
18730
|
var external_echarts_namespaceObject = require("echarts");
|
|
18435
18731
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/skylineanalysis/SkylineAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
@@ -18469,6 +18765,11 @@ const __default__ = {
|
|
|
18469
18765
|
type: Boolean,
|
|
18470
18766
|
default: true
|
|
18471
18767
|
},
|
|
18768
|
+
|
|
18769
|
+
/**
|
|
18770
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
18771
|
+
*/
|
|
18772
|
+
position: [String, Object],
|
|
18472
18773
|
// 是否生成HeaderTemp
|
|
18473
18774
|
showHeaderTemp: {
|
|
18474
18775
|
type: Boolean,
|
|
@@ -18526,8 +18827,21 @@ const __default__ = {
|
|
|
18526
18827
|
// 限高体透明度范围最大值
|
|
18527
18828
|
skylineWidth: 2 // 天际线宽度
|
|
18528
18829
|
|
|
18529
|
-
});
|
|
18830
|
+
}); // 组件容器Ref
|
|
18831
|
+
|
|
18832
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
18833
|
+
|
|
18834
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
18835
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
18530
18836
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
18837
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
18838
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
18839
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
18840
|
+
});
|
|
18841
|
+
watchCreateHeaderTemp();
|
|
18842
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
18843
|
+
watchCreateHeaderTemp();
|
|
18844
|
+
});
|
|
18531
18845
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
18532
18846
|
if (scenceView) {
|
|
18533
18847
|
language.value = scenceView._language;
|
|
@@ -18541,7 +18855,18 @@ const __default__ = {
|
|
|
18541
18855
|
viewModel._skylineAnalysisChartTitle = language.value["skylineAnalysisChartTitle"];
|
|
18542
18856
|
}
|
|
18543
18857
|
});
|
|
18544
|
-
});
|
|
18858
|
+
});
|
|
18859
|
+
/**
|
|
18860
|
+
* @description 监听header生成
|
|
18861
|
+
*/
|
|
18862
|
+
|
|
18863
|
+
const watchCreateHeaderTemp = () => {
|
|
18864
|
+
if (props.showHeaderTemp) {
|
|
18865
|
+
// 生成headerTemp
|
|
18866
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef);
|
|
18867
|
+
}
|
|
18868
|
+
}; // 提取天际线
|
|
18869
|
+
|
|
18545
18870
|
|
|
18546
18871
|
function pickSkyLine() {
|
|
18547
18872
|
resultEcahrtVis.value = true;
|
|
@@ -18626,17 +18951,16 @@ const __default__ = {
|
|
|
18626
18951
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
18627
18952
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-skyline-analysis", {
|
|
18628
18953
|
'kq-box-shadow': __props.showShadow
|
|
18629
|
-
}])
|
|
18630
|
-
|
|
18954
|
+
}]),
|
|
18955
|
+
ref_key: "boxRef",
|
|
18956
|
+
ref: boxRef
|
|
18957
|
+
}, [__props.showHeaderTemp ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headerTemp)), {
|
|
18631
18958
|
key: 0,
|
|
18632
|
-
|
|
18633
|
-
|
|
18634
|
-
|
|
18635
|
-
|
|
18636
|
-
|
|
18637
|
-
}, null, 8
|
|
18638
|
-
/* PROPS */
|
|
18639
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_collapse, {
|
|
18959
|
+
ref_key: "headerTempRef",
|
|
18960
|
+
ref: headerTempRef
|
|
18961
|
+
}, null, 512
|
|
18962
|
+
/* NEED_PATCH */
|
|
18963
|
+
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_collapse, {
|
|
18640
18964
|
"model-value": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(collapseValue),
|
|
18641
18965
|
class: "kq3d-skyline-analysis-collapse"
|
|
18642
18966
|
}, {
|
|
@@ -19218,8 +19542,8 @@ class SlopeAnalysisViewModel {
|
|
|
19218
19542
|
}
|
|
19219
19543
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
19220
19544
|
var client_icons_vue_ = __webpack_require__(348);
|
|
19221
|
-
// EXTERNAL MODULE:
|
|
19222
|
-
var
|
|
19545
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
19546
|
+
var util_ = __webpack_require__(9519);
|
|
19223
19547
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/slopeanalysis/SlopeAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
19224
19548
|
|
|
19225
19549
|
const _hoisted_1 = {
|
|
@@ -19276,6 +19600,11 @@ const __default__ = {
|
|
|
19276
19600
|
type: Boolean,
|
|
19277
19601
|
default: true
|
|
19278
19602
|
},
|
|
19603
|
+
|
|
19604
|
+
/**
|
|
19605
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
19606
|
+
*/
|
|
19607
|
+
position: [String, Object],
|
|
19279
19608
|
// 是否生成HeaderTemp
|
|
19280
19609
|
showHeaderTemp: {
|
|
19281
19610
|
type: Boolean,
|
|
@@ -19355,8 +19684,21 @@ const __default__ = {
|
|
|
19355
19684
|
maxSlope: props.settingParams && props.settingParams.maxSlope || 60,
|
|
19356
19685
|
slopeColorAlpha: props.settingParams && props.settingParams.slopeColorAlpha || 0.3,
|
|
19357
19686
|
slopeColorText: props.settingParams && props.settingParams.slopeColorText || "#FF0000"
|
|
19358
|
-
});
|
|
19687
|
+
}); // 组件容器Ref
|
|
19688
|
+
|
|
19689
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
19690
|
+
|
|
19691
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
19692
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
19359
19693
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
19694
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
19695
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
19696
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
19697
|
+
});
|
|
19698
|
+
watchCreateHeaderTemp();
|
|
19699
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
19700
|
+
watchCreateHeaderTemp();
|
|
19701
|
+
});
|
|
19360
19702
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
19361
19703
|
|
|
19362
19704
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
@@ -19367,7 +19709,18 @@ const __default__ = {
|
|
|
19367
19709
|
// viewModel.setColorImage(imageUrl);
|
|
19368
19710
|
}
|
|
19369
19711
|
});
|
|
19370
|
-
});
|
|
19712
|
+
});
|
|
19713
|
+
/**
|
|
19714
|
+
* @description 监听header生成
|
|
19715
|
+
*/
|
|
19716
|
+
|
|
19717
|
+
const watchCreateHeaderTemp = () => {
|
|
19718
|
+
if (props.showHeaderTemp) {
|
|
19719
|
+
// 生成headerTemp
|
|
19720
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef);
|
|
19721
|
+
}
|
|
19722
|
+
}; // 刷新自定义样式数组
|
|
19723
|
+
|
|
19371
19724
|
|
|
19372
19725
|
function refactorArr(type) {
|
|
19373
19726
|
if (!dataList || !dataList.length) return;
|
|
@@ -19502,17 +19855,16 @@ const __default__ = {
|
|
|
19502
19855
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
19503
19856
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-slope-analysis", {
|
|
19504
19857
|
'kq-box-shadow': __props.showShadow
|
|
19505
|
-
}])
|
|
19506
|
-
|
|
19858
|
+
}]),
|
|
19859
|
+
ref_key: "boxRef",
|
|
19860
|
+
ref: boxRef
|
|
19861
|
+
}, [__props.showHeaderTemp ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headerTemp)), {
|
|
19507
19862
|
key: 0,
|
|
19508
|
-
|
|
19509
|
-
|
|
19510
|
-
|
|
19511
|
-
|
|
19512
|
-
|
|
19513
|
-
}, null, 8
|
|
19514
|
-
/* PROPS */
|
|
19515
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).fillStyle !== 'slopeFilter' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_row, {
|
|
19863
|
+
ref_key: "headerTempRef",
|
|
19864
|
+
ref: headerTempRef
|
|
19865
|
+
}, null, 512
|
|
19866
|
+
/* NEED_PATCH */
|
|
19867
|
+
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).fillStyle !== 'slopeFilter' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_row, {
|
|
19516
19868
|
key: 0,
|
|
19517
19869
|
class: "kq3d-slope-analysis-tip"
|
|
19518
19870
|
}, {
|
|
@@ -20409,8 +20761,8 @@ var gis_utils_ = __webpack_require__(826);
|
|
|
20409
20761
|
var TerrainOperationViewModel = __webpack_require__(5925);
|
|
20410
20762
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
20411
20763
|
var client_icons_vue_ = __webpack_require__(348);
|
|
20412
|
-
// EXTERNAL MODULE:
|
|
20413
|
-
var
|
|
20764
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
20765
|
+
var util_ = __webpack_require__(9519);
|
|
20414
20766
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/terrainoperation/TerrainOperation.vue?vue&type=script&setup=true&lang=js
|
|
20415
20767
|
|
|
20416
20768
|
const _hoisted_1 = {
|
|
@@ -20449,6 +20801,11 @@ const __default__ = {
|
|
|
20449
20801
|
type: Boolean,
|
|
20450
20802
|
default: true
|
|
20451
20803
|
},
|
|
20804
|
+
|
|
20805
|
+
/**
|
|
20806
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
20807
|
+
*/
|
|
20808
|
+
position: [String, Object],
|
|
20452
20809
|
// 是否生成HeaderTemp
|
|
20453
20810
|
showHeaderTemp: {
|
|
20454
20811
|
type: Boolean,
|
|
@@ -20495,8 +20852,21 @@ const __default__ = {
|
|
|
20495
20852
|
maxExcavationDepth: props.settingParams && props.settingParams.maxExcavationDepth || 5000 // 地形开挖深度范围最大值
|
|
20496
20853
|
|
|
20497
20854
|
});
|
|
20498
|
-
let viewModel = null;
|
|
20855
|
+
let viewModel = null; // 组件容器Ref
|
|
20856
|
+
|
|
20857
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
20858
|
+
|
|
20859
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
20860
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
20499
20861
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
20862
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
20863
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
20864
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
20865
|
+
});
|
|
20866
|
+
watchCreateHeaderTemp();
|
|
20867
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
20868
|
+
watchCreateHeaderTemp();
|
|
20869
|
+
});
|
|
20500
20870
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
20501
20871
|
|
|
20502
20872
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
@@ -20512,7 +20882,18 @@ const __default__ = {
|
|
|
20512
20882
|
});
|
|
20513
20883
|
}
|
|
20514
20884
|
});
|
|
20515
|
-
});
|
|
20885
|
+
});
|
|
20886
|
+
/**
|
|
20887
|
+
* @description 监听header生成
|
|
20888
|
+
*/
|
|
20889
|
+
|
|
20890
|
+
const watchCreateHeaderTemp = () => {
|
|
20891
|
+
if (props.showHeaderTemp) {
|
|
20892
|
+
// 生成headerTemp
|
|
20893
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef);
|
|
20894
|
+
}
|
|
20895
|
+
}; // 改变样式
|
|
20896
|
+
|
|
20516
20897
|
|
|
20517
20898
|
function changeStyle() {
|
|
20518
20899
|
viewModel && viewModel.setTerrainStyle(formItem.terrainStyle);
|
|
@@ -20559,17 +20940,16 @@ const __default__ = {
|
|
|
20559
20940
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
20560
20941
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-terrain-operation-analysis", {
|
|
20561
20942
|
'kq-box-shadow': __props.showShadow
|
|
20562
|
-
}])
|
|
20563
|
-
|
|
20943
|
+
}]),
|
|
20944
|
+
ref_key: "boxRef",
|
|
20945
|
+
ref: boxRef
|
|
20946
|
+
}, [__props.showHeaderTemp ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headerTemp)), {
|
|
20564
20947
|
key: 0,
|
|
20565
|
-
|
|
20566
|
-
|
|
20567
|
-
|
|
20568
|
-
|
|
20569
|
-
|
|
20570
|
-
}, null, 8
|
|
20571
|
-
/* PROPS */
|
|
20572
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [__props.operationMode === 0 ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_row, {
|
|
20948
|
+
ref_key: "headerTempRef",
|
|
20949
|
+
ref: headerTempRef
|
|
20950
|
+
}, null, 512
|
|
20951
|
+
/* NEED_PATCH */
|
|
20952
|
+
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [__props.operationMode === 0 ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_row, {
|
|
20573
20953
|
key: 0
|
|
20574
20954
|
}, {
|
|
20575
20955
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_radio, {
|
|
@@ -20813,28 +21193,26 @@ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(
|
|
|
20813
21193
|
var gis_utils_ = __webpack_require__(826);
|
|
20814
21194
|
// EXTERNAL MODULE: ./src/webgl/underground/UndergroundViewModel.js
|
|
20815
21195
|
var UndergroundViewModel = __webpack_require__(7656);
|
|
21196
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
21197
|
+
var util_ = __webpack_require__(9519);
|
|
20816
21198
|
;// 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
|
|
20817
21199
|
|
|
20818
21200
|
const _hoisted_1 = {
|
|
20819
|
-
class: "kq3d-underground"
|
|
21201
|
+
class: "kq3d-underground-switch"
|
|
20820
21202
|
};
|
|
20821
21203
|
|
|
20822
21204
|
|
|
20823
21205
|
|
|
21206
|
+
|
|
20824
21207
|
const __default__ = {
|
|
20825
21208
|
name: "kq3dUnderground"
|
|
20826
21209
|
};
|
|
20827
21210
|
/* harmony default export */ var Undergroundvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
20828
21211
|
props: {
|
|
20829
|
-
|
|
20830
|
-
|
|
20831
|
-
|
|
20832
|
-
|
|
20833
|
-
},
|
|
20834
|
-
right: {
|
|
20835
|
-
type: Number,
|
|
20836
|
-
default: 20
|
|
20837
|
-
}
|
|
21212
|
+
/**
|
|
21213
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
21214
|
+
*/
|
|
21215
|
+
position: [String, Object]
|
|
20838
21216
|
},
|
|
20839
21217
|
emits: ["undergroundChange"],
|
|
20840
21218
|
|
|
@@ -20850,8 +21228,14 @@ const __default__ = {
|
|
|
20850
21228
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
20851
21229
|
let isUndergroundMode = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
20852
21230
|
let viewer = null;
|
|
20853
|
-
let viewModel = null;
|
|
21231
|
+
let viewModel = null; // 组件容器Ref
|
|
21232
|
+
|
|
21233
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
20854
21234
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
21235
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
21236
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
21237
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
21238
|
+
});
|
|
20855
21239
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
20856
21240
|
if (scenceView) {
|
|
20857
21241
|
viewer = scenceView._viewer;
|
|
@@ -20883,14 +21267,15 @@ const __default__ = {
|
|
|
20883
21267
|
|
|
20884
21268
|
const _component_kq_form = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form");
|
|
20885
21269
|
|
|
20886
|
-
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section",
|
|
21270
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
21271
|
+
class: "kq3d-underground",
|
|
21272
|
+
ref_key: "boxRef",
|
|
21273
|
+
ref: boxRef
|
|
21274
|
+
}, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form, {
|
|
20887
21275
|
"label-width": "120px",
|
|
20888
21276
|
"label-position": "left"
|
|
20889
21277
|
}, {
|
|
20890
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
|
|
20891
|
-
class: "kq3d-underground-switch",
|
|
20892
|
-
style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)('top: ' + props.top + 'px; right: ' + props.right + 'px;')
|
|
20893
|
-
}, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_switch, {
|
|
21278
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_switch, {
|
|
20894
21279
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isUndergroundMode),
|
|
20895
21280
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(isUndergroundMode) ? isUndergroundMode.value = $event : isUndergroundMode = $event),
|
|
20896
21281
|
onChange: undergroundChange,
|
|
@@ -20903,13 +21288,13 @@ const __default__ = {
|
|
|
20903
21288
|
}
|
|
20904
21289
|
}, null, 8
|
|
20905
21290
|
/* PROPS */
|
|
20906
|
-
, ["modelValue", "active-text"])],
|
|
20907
|
-
/* STYLE */
|
|
20908
|
-
)]),
|
|
21291
|
+
, ["modelValue", "active-text"])])]),
|
|
20909
21292
|
_: 1
|
|
20910
21293
|
/* STABLE */
|
|
20911
21294
|
|
|
20912
|
-
})]
|
|
21295
|
+
})], 512
|
|
21296
|
+
/* NEED_PATCH */
|
|
21297
|
+
);
|
|
20913
21298
|
};
|
|
20914
21299
|
}
|
|
20915
21300
|
|
|
@@ -21065,8 +21450,8 @@ var gis_utils_ = __webpack_require__(826);
|
|
|
21065
21450
|
var ViewshedAnalysisViewModel = __webpack_require__(9721);
|
|
21066
21451
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
21067
21452
|
var client_icons_vue_ = __webpack_require__(348);
|
|
21068
|
-
// EXTERNAL MODULE:
|
|
21069
|
-
var
|
|
21453
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
21454
|
+
var util_ = __webpack_require__(9519);
|
|
21070
21455
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/viewshedanalysis/ViewshedAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
21071
21456
|
|
|
21072
21457
|
const _hoisted_1 = {
|
|
@@ -21094,6 +21479,11 @@ const __default__ = {
|
|
|
21094
21479
|
type: Boolean,
|
|
21095
21480
|
default: true
|
|
21096
21481
|
},
|
|
21482
|
+
|
|
21483
|
+
/**
|
|
21484
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
21485
|
+
*/
|
|
21486
|
+
position: [String, Object],
|
|
21097
21487
|
// 是否生成HeaderTemp
|
|
21098
21488
|
showHeaderTemp: {
|
|
21099
21489
|
type: Boolean,
|
|
@@ -21156,8 +21546,21 @@ const __default__ = {
|
|
|
21156
21546
|
// 不可见颜色
|
|
21157
21547
|
lineColor: props.settingParams && props.settingParams.lineColor || "#E6A23C"
|
|
21158
21548
|
});
|
|
21159
|
-
let viewModel = null;
|
|
21549
|
+
let viewModel = null; // 组件容器Ref
|
|
21550
|
+
|
|
21551
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
21552
|
+
|
|
21553
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
21554
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
21160
21555
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
21556
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
21557
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
21558
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
21559
|
+
});
|
|
21560
|
+
watchCreateHeaderTemp();
|
|
21561
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
21562
|
+
watchCreateHeaderTemp();
|
|
21563
|
+
});
|
|
21161
21564
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言类型
|
|
21162
21565
|
|
|
21163
21566
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
@@ -21174,6 +21577,16 @@ const __default__ = {
|
|
|
21174
21577
|
}
|
|
21175
21578
|
});
|
|
21176
21579
|
});
|
|
21580
|
+
/**
|
|
21581
|
+
* @description 监听header生成
|
|
21582
|
+
*/
|
|
21583
|
+
|
|
21584
|
+
const watchCreateHeaderTemp = () => {
|
|
21585
|
+
if (props.showHeaderTemp) {
|
|
21586
|
+
// 生成headerTemp
|
|
21587
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef);
|
|
21588
|
+
}
|
|
21589
|
+
};
|
|
21177
21590
|
|
|
21178
21591
|
function paramsChanged(key) {
|
|
21179
21592
|
switch (key) {
|
|
@@ -21249,17 +21662,16 @@ const __default__ = {
|
|
|
21249
21662
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
21250
21663
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-viewshed-analysis", {
|
|
21251
21664
|
'kq-box-shadow': __props.showShadow
|
|
21252
|
-
}])
|
|
21253
|
-
|
|
21665
|
+
}]),
|
|
21666
|
+
ref_key: "boxRef",
|
|
21667
|
+
ref: boxRef
|
|
21668
|
+
}, [__props.showHeaderTemp ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headerTemp)), {
|
|
21254
21669
|
key: 0,
|
|
21255
|
-
|
|
21256
|
-
|
|
21257
|
-
|
|
21258
|
-
|
|
21259
|
-
|
|
21260
|
-
}, null, 8
|
|
21261
|
-
/* PROPS */
|
|
21262
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
21670
|
+
ref_key: "headerTempRef",
|
|
21671
|
+
ref: headerTempRef
|
|
21672
|
+
}, null, 512
|
|
21673
|
+
/* NEED_PATCH */
|
|
21674
|
+
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
21263
21675
|
class: "kq3d-viewshed-analysis-tip"
|
|
21264
21676
|
}, {
|
|
21265
21677
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).viewshedTips), 1
|
|
@@ -21752,8 +22164,8 @@ class WeatherEffectViewModel {
|
|
|
21752
22164
|
}
|
|
21753
22165
|
|
|
21754
22166
|
}
|
|
21755
|
-
// EXTERNAL MODULE:
|
|
21756
|
-
var
|
|
22167
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
22168
|
+
var util_ = __webpack_require__(9519);
|
|
21757
22169
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/weathereffect/WeatherEffect.vue?vue&type=script&setup=true&lang=js
|
|
21758
22170
|
|
|
21759
22171
|
const _hoisted_1 = {
|
|
@@ -21781,6 +22193,11 @@ const __default__ = {
|
|
|
21781
22193
|
type: Boolean,
|
|
21782
22194
|
default: true
|
|
21783
22195
|
},
|
|
22196
|
+
|
|
22197
|
+
/**
|
|
22198
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
22199
|
+
*/
|
|
22200
|
+
position: [String, Object],
|
|
21784
22201
|
// 是否生成HeaderTemp
|
|
21785
22202
|
showHeaderTemp: {
|
|
21786
22203
|
type: Boolean,
|
|
@@ -21828,8 +22245,21 @@ const __default__ = {
|
|
|
21828
22245
|
endScale: props.settingParams && props.settingParams.endScale || 1.3,
|
|
21829
22246
|
gravity: props.settingParams && props.settingParams.gravity || 1
|
|
21830
22247
|
});
|
|
21831
|
-
let viewModel = null;
|
|
22248
|
+
let viewModel = null; // 组件容器Ref
|
|
22249
|
+
|
|
22250
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
22251
|
+
|
|
22252
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
22253
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
21832
22254
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
22255
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
22256
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
22257
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
22258
|
+
});
|
|
22259
|
+
watchCreateHeaderTemp();
|
|
22260
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
22261
|
+
watchCreateHeaderTemp();
|
|
22262
|
+
});
|
|
21833
22263
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
21834
22264
|
|
|
21835
22265
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
@@ -21838,7 +22268,18 @@ const __default__ = {
|
|
|
21838
22268
|
viewModel = new WeatherEffectViewModel(scenceView);
|
|
21839
22269
|
}
|
|
21840
22270
|
});
|
|
21841
|
-
});
|
|
22271
|
+
});
|
|
22272
|
+
/**
|
|
22273
|
+
* @description 监听header生成
|
|
22274
|
+
*/
|
|
22275
|
+
|
|
22276
|
+
const watchCreateHeaderTemp = () => {
|
|
22277
|
+
if (props.showHeaderTemp) {
|
|
22278
|
+
// 生成headerTemp
|
|
22279
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef);
|
|
22280
|
+
}
|
|
22281
|
+
}; //切换雨雪天气特效
|
|
22282
|
+
|
|
21842
22283
|
|
|
21843
22284
|
function changeMode(mode) {
|
|
21844
22285
|
if (formItem.mode !== mode) {
|
|
@@ -21932,17 +22373,16 @@ const __default__ = {
|
|
|
21932
22373
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
21933
22374
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-weather-effect", {
|
|
21934
22375
|
'kq-box-shadow': __props.showShadow
|
|
21935
|
-
}])
|
|
21936
|
-
|
|
22376
|
+
}]),
|
|
22377
|
+
ref_key: "boxRef",
|
|
22378
|
+
ref: boxRef
|
|
22379
|
+
}, [__props.showHeaderTemp ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headerTemp)), {
|
|
21937
22380
|
key: 0,
|
|
21938
|
-
|
|
21939
|
-
|
|
21940
|
-
|
|
21941
|
-
|
|
21942
|
-
|
|
21943
|
-
}, null, 8
|
|
21944
|
-
/* PROPS */
|
|
21945
|
-
, ["showShadow", "headerTempTitle", "headerTempIcon", "isCollapse", "isRight"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
22381
|
+
ref_key: "headerTempRef",
|
|
22382
|
+
ref: headerTempRef
|
|
22383
|
+
}, null, 512
|
|
22384
|
+
/* NEED_PATCH */
|
|
22385
|
+
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
21946
22386
|
gutter: 20,
|
|
21947
22387
|
class: "rowclass"
|
|
21948
22388
|
}, {
|
|
@@ -24701,18 +25141,19 @@ class LayerManager {
|
|
|
24701
25141
|
}
|
|
24702
25142
|
});
|
|
24703
25143
|
}
|
|
24704
|
-
}
|
|
25144
|
+
} //获取底图图层Index
|
|
24705
25145
|
|
|
24706
25146
|
|
|
24707
25147
|
getBaseLayerIndex() {
|
|
24708
|
-
|
|
24709
|
-
|
|
24710
|
-
|
|
24711
|
-
|
|
24712
|
-
|
|
24713
|
-
|
|
24714
|
-
|
|
24715
|
-
|
|
25148
|
+
let index = 1;
|
|
25149
|
+
|
|
25150
|
+
this._viewer.imageryLayers._layers.forEach(layer => {
|
|
25151
|
+
if (layer.target === "online") {
|
|
25152
|
+
index++;
|
|
25153
|
+
}
|
|
25154
|
+
});
|
|
25155
|
+
|
|
25156
|
+
return index;
|
|
24716
25157
|
} //设置图层置顶或取消置顶
|
|
24717
25158
|
|
|
24718
25159
|
|
|
@@ -25297,11 +25738,30 @@ class ScenceViewViewModel extends (mitt_default()) {
|
|
|
25297
25738
|
});
|
|
25298
25739
|
}
|
|
25299
25740
|
}
|
|
25741
|
+
}
|
|
25742
|
+
/**
|
|
25743
|
+
* 获取在线底图index
|
|
25744
|
+
*/
|
|
25745
|
+
|
|
25746
|
+
|
|
25747
|
+
_getOnlineBaseLayerIndex() {
|
|
25748
|
+
let index = 1;
|
|
25749
|
+
|
|
25750
|
+
this._viewer.imageryLayers._layers.forEach(layer => {
|
|
25751
|
+
if (layer.target === "online") {
|
|
25752
|
+
index++;
|
|
25753
|
+
}
|
|
25754
|
+
});
|
|
25755
|
+
|
|
25756
|
+
return index;
|
|
25300
25757
|
} //创建在线底图
|
|
25301
25758
|
|
|
25302
25759
|
|
|
25303
25760
|
_createOnlineLayer(layerConfig) {
|
|
25304
25761
|
let layer = null;
|
|
25762
|
+
|
|
25763
|
+
let index = this._getOnlineBaseLayerIndex();
|
|
25764
|
+
|
|
25305
25765
|
let layerType = layerConfig.renderType;
|
|
25306
25766
|
if (layerType) layerType = layerType.toLowerCase();
|
|
25307
25767
|
|
|
@@ -25310,7 +25770,7 @@ class ScenceViewViewModel extends (mitt_default()) {
|
|
|
25310
25770
|
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dKQGISMapServerImageryProviderExt({
|
|
25311
25771
|
url: layerConfig.url,
|
|
25312
25772
|
ua_token: layerConfig.accessToken
|
|
25313
|
-
}));
|
|
25773
|
+
}), index);
|
|
25314
25774
|
break;
|
|
25315
25775
|
|
|
25316
25776
|
case "wmts":
|
|
@@ -25326,7 +25786,7 @@ class ScenceViewViewModel extends (mitt_default()) {
|
|
|
25326
25786
|
subdomains: layerConfig.subdomains,
|
|
25327
25787
|
tilingScheme: layerConfig.epsg === "4326" ? new Cesium.GeographicTilingScheme() : new Cesium.WebMercatorTilingScheme()
|
|
25328
25788
|
};
|
|
25329
|
-
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.WebMapTileServiceImageryProvider(options));
|
|
25789
|
+
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.WebMapTileServiceImageryProvider(options), index);
|
|
25330
25790
|
break;
|
|
25331
25791
|
|
|
25332
25792
|
case "wms":
|
|
@@ -25337,31 +25797,31 @@ class ScenceViewViewModel extends (mitt_default()) {
|
|
|
25337
25797
|
transparent: "true",
|
|
25338
25798
|
format: "image/png"
|
|
25339
25799
|
}
|
|
25340
|
-
}));
|
|
25800
|
+
}), index);
|
|
25341
25801
|
break;
|
|
25342
25802
|
|
|
25343
25803
|
case "tianditu":
|
|
25344
25804
|
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dTiandituImageryProvider({
|
|
25345
25805
|
mapStyle: layerConfig.layerType + "_c"
|
|
25346
|
-
}));
|
|
25806
|
+
}), index);
|
|
25347
25807
|
break;
|
|
25348
25808
|
|
|
25349
25809
|
case "baidu":
|
|
25350
25810
|
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dBaiduMapsImageryProvider({
|
|
25351
25811
|
mapStyle: layerConfig.layerType
|
|
25352
|
-
}));
|
|
25812
|
+
}), index);
|
|
25353
25813
|
break;
|
|
25354
25814
|
|
|
25355
25815
|
case "gaode":
|
|
25356
25816
|
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dAMapsImageryProvider({
|
|
25357
25817
|
mapStyle: layerConfig.layerType
|
|
25358
|
-
}));
|
|
25818
|
+
}), index);
|
|
25359
25819
|
break;
|
|
25360
25820
|
|
|
25361
25821
|
case "tencent":
|
|
25362
25822
|
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dQQMapsImageryProvider({
|
|
25363
25823
|
mapStyle: layerConfig.layerType
|
|
25364
|
-
}));
|
|
25824
|
+
}), index);
|
|
25365
25825
|
break;
|
|
25366
25826
|
|
|
25367
25827
|
case "bing":
|
|
@@ -25369,26 +25829,26 @@ class ScenceViewViewModel extends (mitt_default()) {
|
|
|
25369
25829
|
url: layerConfig.url || "https://dev.virtualearth.net",
|
|
25370
25830
|
key: layerConfig.key || "AmXdbd8UeUJtaRSn7yVwyXgQlBBUqliLbHpgn2c76DfuHwAXfRrgS5qwfHU6Rhm8",
|
|
25371
25831
|
mapStyle: layerConfig.layerType
|
|
25372
|
-
}));
|
|
25832
|
+
}), index);
|
|
25373
25833
|
break;
|
|
25374
25834
|
|
|
25375
25835
|
case "arcgisonline":
|
|
25376
25836
|
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dArcGISMapServerImageryProvider({
|
|
25377
25837
|
url: layerConfig.url
|
|
25378
|
-
}));
|
|
25838
|
+
}), index);
|
|
25379
25839
|
break;
|
|
25380
25840
|
|
|
25381
25841
|
case "mapbox":
|
|
25382
25842
|
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.MapboxImageryProvider({
|
|
25383
25843
|
mapId: "mapbox." + layerConfig.layerType,
|
|
25384
25844
|
accessToken: layerConfig.key || "pk.eyJ1IjoiZXhhbXBsZXMiLCJhIjoiY2p1dHRybDR5MGJuZjQzcGhrZ2doeGgwNyJ9.a-vxW4UaxOoUMWUTGnEArw"
|
|
25385
|
-
}));
|
|
25845
|
+
}), index);
|
|
25386
25846
|
break;
|
|
25387
25847
|
|
|
25388
25848
|
case "osm":
|
|
25389
25849
|
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.createOpenStreetMapImageryProvider({
|
|
25390
25850
|
url: layerConfig.url
|
|
25391
|
-
}));
|
|
25851
|
+
}), index);
|
|
25392
25852
|
break;
|
|
25393
25853
|
}
|
|
25394
25854
|
|