@kq_npm/client3d_webgl_vue 3.2.9-beta → 3.3.1-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/adddata/index.js +26 -4
- package/index.js +93 -29
- package/modelselect/index.js +18 -11
- package/modelselect/style/modelselect.css +1 -1
- package/package.json +1 -1
- package/particleeffect/index.js +10 -2
- package/scenceview/index.js +95 -29
- package/sightlineanalysis/index.js +39 -2
- package/style.css +1 -1
- package/weathereffect/index.js +2 -0
package/adddata/index.js
CHANGED
|
@@ -897,6 +897,27 @@ class AddDataViewModel {
|
|
|
897
897
|
cb && cb(node);
|
|
898
898
|
break;
|
|
899
899
|
|
|
900
|
+
case "mvt":
|
|
901
|
+
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dMvtImageryProviderExt({
|
|
902
|
+
name: name,
|
|
903
|
+
style: url
|
|
904
|
+
}));
|
|
905
|
+
this.flyToLayer(layer);
|
|
906
|
+
node = {
|
|
907
|
+
guid: layer.guid,
|
|
908
|
+
name: name,
|
|
909
|
+
visible: true,
|
|
910
|
+
serverType: "imagerylayer",
|
|
911
|
+
lsType: "ls",
|
|
912
|
+
url: url,
|
|
913
|
+
addType: type
|
|
914
|
+
};
|
|
915
|
+
|
|
916
|
+
this._layerManager.addTempLayerNode(node);
|
|
917
|
+
|
|
918
|
+
cb && cb(node);
|
|
919
|
+
break;
|
|
920
|
+
|
|
900
921
|
case "wms":
|
|
901
922
|
this._viewer.addWMSLayerGroup(url).then(group => {
|
|
902
923
|
node = {
|
|
@@ -933,6 +954,7 @@ class AddDataViewModel {
|
|
|
933
954
|
break;
|
|
934
955
|
|
|
935
956
|
case "wmts":
|
|
957
|
+
case "kqgistileserver":
|
|
936
958
|
this._viewer.addWMTSLayerGroup(url).then(group => {
|
|
937
959
|
node = {
|
|
938
960
|
guid: group.guid,
|
|
@@ -1332,9 +1354,9 @@ const __default__ = {
|
|
|
1332
1354
|
description: language.value.imagertyDataflowServerdescription
|
|
1333
1355
|
}, {
|
|
1334
1356
|
type: "kqgistileserver",
|
|
1335
|
-
name: language.value.KQGISTileServer
|
|
1357
|
+
name: language.value.KQGISTileServer,
|
|
1336
1358
|
namePlaceholder: language.value.unnamedLayer,
|
|
1337
|
-
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/tile",
|
|
1359
|
+
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/tile/wmts",
|
|
1338
1360
|
description: language.value.imagertyTileServerdescription
|
|
1339
1361
|
}, {
|
|
1340
1362
|
type: "arcgismapserver",
|
|
@@ -1370,11 +1392,11 @@ const __default__ = {
|
|
|
1370
1392
|
type: "geojson",
|
|
1371
1393
|
name: language.value.GeoJson,
|
|
1372
1394
|
namePlaceholder: language.value.unnamedLayer,
|
|
1373
|
-
urlPlaceholder: language.value.format + ":
|
|
1395
|
+
urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx.geojson",
|
|
1374
1396
|
description: language.value.imagertyGeoJsondescription
|
|
1375
1397
|
}, {
|
|
1376
1398
|
type: "mvt",
|
|
1377
|
-
name: language.value.MVT
|
|
1399
|
+
name: language.value.MVT,
|
|
1378
1400
|
namePlaceholder: language.value.unnamedLayer,
|
|
1379
1401
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/mvt/style.json",
|
|
1380
1402
|
description: language.value.imagertyMVTdescription
|
package/index.js
CHANGED
|
@@ -2626,16 +2626,13 @@ class ScenceViewViewModel extends (mitt_default()) {
|
|
|
2626
2626
|
} //销毁
|
|
2627
2627
|
|
|
2628
2628
|
|
|
2629
|
-
destroy() {
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
this._viewer = null;
|
|
2637
|
-
this._drawManager = null;
|
|
2638
|
-
this._layerManager = null;
|
|
2629
|
+
destroy() {// if (this._removeEventListener) {
|
|
2630
|
+
// this._removeEventListener();
|
|
2631
|
+
// this._removeEventListener = null;
|
|
2632
|
+
// }
|
|
2633
|
+
// this._viewer = null;
|
|
2634
|
+
// this._drawManager = null;
|
|
2635
|
+
// this._layerManager = null;
|
|
2639
2636
|
} //创建底图
|
|
2640
2637
|
|
|
2641
2638
|
|
|
@@ -9153,17 +9150,14 @@ class ModelSelectViewModel {
|
|
|
9153
9150
|
;// 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
|
|
9154
9151
|
|
|
9155
9152
|
const ModelSelectvue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
9156
|
-
class: "kq3d-model-select-box"
|
|
9157
|
-
};
|
|
9158
|
-
const ModelSelectvue_type_script_setup_true_lang_js_hoisted_2 = {
|
|
9159
9153
|
class: "title"
|
|
9160
9154
|
};
|
|
9161
9155
|
|
|
9162
|
-
const
|
|
9156
|
+
const ModelSelectvue_type_script_setup_true_lang_js_hoisted_2 = /*#__PURE__*/(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("span", null, "所属图层名称:", -1
|
|
9163
9157
|
/* HOISTED */
|
|
9164
9158
|
);
|
|
9165
9159
|
|
|
9166
|
-
const
|
|
9160
|
+
const ModelSelectvue_type_script_setup_true_lang_js_hoisted_3 = {
|
|
9167
9161
|
class: "footer-buttons"
|
|
9168
9162
|
};
|
|
9169
9163
|
|
|
@@ -9233,7 +9227,8 @@ const ModelSelectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
9233
9227
|
let tableData = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)([]); //语言
|
|
9234
9228
|
|
|
9235
9229
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)({});
|
|
9236
|
-
let viewModel = null;
|
|
9230
|
+
let viewModel = null;
|
|
9231
|
+
let ref_box = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(); // 获取组件传参
|
|
9237
9232
|
// 表格头样式
|
|
9238
9233
|
|
|
9239
9234
|
let headClass = args => {
|
|
@@ -9351,15 +9346,20 @@ const ModelSelectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
9351
9346
|
ref: headerTempRef
|
|
9352
9347
|
}, null, 512
|
|
9353
9348
|
/* NEED_PATCH */
|
|
9354
|
-
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div",
|
|
9355
|
-
|
|
9349
|
+
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", {
|
|
9350
|
+
class: "kq3d-model-select-box",
|
|
9351
|
+
ref_key: "ref_box",
|
|
9352
|
+
ref: ref_box
|
|
9353
|
+
}, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, null, {
|
|
9354
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", ModelSelectvue_type_script_setup_true_lang_js_hoisted_1, [ModelSelectvue_type_script_setup_true_lang_js_hoisted_2, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("span", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(layerNameTitle)), 1
|
|
9356
9355
|
/* TEXT */
|
|
9357
9356
|
)])]),
|
|
9358
9357
|
_: 1
|
|
9359
9358
|
/* STABLE */
|
|
9360
9359
|
|
|
9361
9360
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, {
|
|
9362
|
-
class: "modelTable"
|
|
9361
|
+
class: "modelTable",
|
|
9362
|
+
style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeStyle)(__props.showHeaderTemp ? 'height: calc(100% - 70px)' : 'height: calc(100% - 35px)')
|
|
9363
9363
|
}, {
|
|
9364
9364
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_table, {
|
|
9365
9365
|
border: "",
|
|
@@ -9396,7 +9396,9 @@ const ModelSelectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
9396
9396
|
_: 1
|
|
9397
9397
|
/* STABLE */
|
|
9398
9398
|
|
|
9399
|
-
}
|
|
9399
|
+
}, 8
|
|
9400
|
+
/* PROPS */
|
|
9401
|
+
, ["style"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", ModelSelectvue_type_script_setup_true_lang_js_hoisted_3, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_button, {
|
|
9400
9402
|
onClick: _cache[0] || (_cache[0] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withModifiers)($event => pick(), ["stop"])),
|
|
9401
9403
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).pick,
|
|
9402
9404
|
type: "primary"
|
|
@@ -9421,7 +9423,9 @@ const ModelSelectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
9421
9423
|
|
|
9422
9424
|
}, 8
|
|
9423
9425
|
/* PROPS */
|
|
9424
|
-
, ["title"])])]
|
|
9426
|
+
, ["title"])])], 512
|
|
9427
|
+
/* NEED_PATCH */
|
|
9428
|
+
)], 2
|
|
9425
9429
|
/* CLASS */
|
|
9426
9430
|
);
|
|
9427
9431
|
};
|
|
@@ -9470,6 +9474,7 @@ var update = injectStylesIntoStyleTag_default()(divpoint/* default */.Z, options
|
|
|
9470
9474
|
;// CONCATENATED MODULE: ./src/webgl/sightlineanalysis/SightlineAnalysisViewModel.js
|
|
9471
9475
|
|
|
9472
9476
|
|
|
9477
|
+
|
|
9473
9478
|
//通视分析逻辑类
|
|
9474
9479
|
|
|
9475
9480
|
class SightlineAnalysisViewModel {
|
|
@@ -9483,6 +9488,7 @@ class SightlineAnalysisViewModel {
|
|
|
9483
9488
|
//创建的divpoint集合
|
|
9484
9489
|
//拾取的点位集合
|
|
9485
9490
|
//高亮的障碍物的id集合
|
|
9491
|
+
// 点位图标billboards集合
|
|
9486
9492
|
constructor(scenceView, options) {
|
|
9487
9493
|
_defineProperty(this, "_viewer", null);
|
|
9488
9494
|
|
|
@@ -9504,6 +9510,8 @@ class SightlineAnalysisViewModel {
|
|
|
9504
9510
|
|
|
9505
9511
|
_defineProperty(this, "_highlightIds", []);
|
|
9506
9512
|
|
|
9513
|
+
_defineProperty(this, "_billboards", []);
|
|
9514
|
+
|
|
9507
9515
|
this._viewer = scenceView._viewer;
|
|
9508
9516
|
this._viewer.scene.postProcessStages._fxaa.enabled = true;
|
|
9509
9517
|
this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
|
|
@@ -9529,6 +9537,8 @@ class SightlineAnalysisViewModel {
|
|
|
9529
9537
|
let that = this;
|
|
9530
9538
|
this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
9531
9539
|
if (shape && shape.type === "marker") {
|
|
9540
|
+
that.createBillboard(shape.position);
|
|
9541
|
+
|
|
9532
9542
|
if (that._addType === 1) {
|
|
9533
9543
|
that._sightlineAnalysis.setSeePoint(shape.position);
|
|
9534
9544
|
|
|
@@ -9545,6 +9555,18 @@ class SightlineAnalysisViewModel {
|
|
|
9545
9555
|
that._drawManager.clear();
|
|
9546
9556
|
}
|
|
9547
9557
|
});
|
|
9558
|
+
} // 创建图标
|
|
9559
|
+
|
|
9560
|
+
|
|
9561
|
+
createBillboard(pos) {
|
|
9562
|
+
this._billboards.push(this._viewer.entities.add({
|
|
9563
|
+
position: pos,
|
|
9564
|
+
billboard: {
|
|
9565
|
+
image: this._addType === 1 ? const_image_namespaceObject.OBSERVATION_POINT : const_image_namespaceObject.TARGET_POINT,
|
|
9566
|
+
verticalOrigin: Cesium.VerticalOrigin.BOTTOM,
|
|
9567
|
+
scale: 0.15
|
|
9568
|
+
}
|
|
9569
|
+
}));
|
|
9548
9570
|
} //创建点位置
|
|
9549
9571
|
|
|
9550
9572
|
|
|
@@ -9641,7 +9663,7 @@ class SightlineAnalysisViewModel {
|
|
|
9641
9663
|
this._addType = 1;
|
|
9642
9664
|
|
|
9643
9665
|
this._drawManager.startDraw("point", {
|
|
9644
|
-
image:
|
|
9666
|
+
image: const_image_namespaceObject.OBSERVATION_POINT
|
|
9645
9667
|
});
|
|
9646
9668
|
} //添加目标点
|
|
9647
9669
|
|
|
@@ -9651,7 +9673,7 @@ class SightlineAnalysisViewModel {
|
|
|
9651
9673
|
this._addType = 2;
|
|
9652
9674
|
|
|
9653
9675
|
this._drawManager.startDraw("point", {
|
|
9654
|
-
image:
|
|
9676
|
+
image: const_image_namespaceObject.TARGET_POINT
|
|
9655
9677
|
});
|
|
9656
9678
|
} //清除显示结果
|
|
9657
9679
|
|
|
@@ -9663,6 +9685,15 @@ class SightlineAnalysisViewModel {
|
|
|
9663
9685
|
}
|
|
9664
9686
|
|
|
9665
9687
|
this._pointCollection = [];
|
|
9688
|
+
} // 清楚billboards
|
|
9689
|
+
|
|
9690
|
+
|
|
9691
|
+
clearBillboards() {
|
|
9692
|
+
for (var i = 0; i < this._billboards.length; i++) {
|
|
9693
|
+
this._viewer.entities.remove(this._billboards[i]);
|
|
9694
|
+
}
|
|
9695
|
+
|
|
9696
|
+
this._billboards = [];
|
|
9666
9697
|
} //清除全部
|
|
9667
9698
|
|
|
9668
9699
|
|
|
@@ -9671,6 +9702,7 @@ class SightlineAnalysisViewModel {
|
|
|
9671
9702
|
|
|
9672
9703
|
this.clearDisplay();
|
|
9673
9704
|
this.clearHighlights();
|
|
9705
|
+
this.clearBillboards();
|
|
9674
9706
|
this._sightlineAnalysis && this._sightlineAnalysis.remove();
|
|
9675
9707
|
} //销毁
|
|
9676
9708
|
|
|
@@ -22312,6 +22344,27 @@ class AddDataViewModel {
|
|
|
22312
22344
|
cb && cb(node);
|
|
22313
22345
|
break;
|
|
22314
22346
|
|
|
22347
|
+
case "mvt":
|
|
22348
|
+
layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dMvtImageryProviderExt({
|
|
22349
|
+
name: name,
|
|
22350
|
+
style: url
|
|
22351
|
+
}));
|
|
22352
|
+
this.flyToLayer(layer);
|
|
22353
|
+
node = {
|
|
22354
|
+
guid: layer.guid,
|
|
22355
|
+
name: name,
|
|
22356
|
+
visible: true,
|
|
22357
|
+
serverType: "imagerylayer",
|
|
22358
|
+
lsType: "ls",
|
|
22359
|
+
url: url,
|
|
22360
|
+
addType: type
|
|
22361
|
+
};
|
|
22362
|
+
|
|
22363
|
+
this._layerManager.addTempLayerNode(node);
|
|
22364
|
+
|
|
22365
|
+
cb && cb(node);
|
|
22366
|
+
break;
|
|
22367
|
+
|
|
22315
22368
|
case "wms":
|
|
22316
22369
|
this._viewer.addWMSLayerGroup(url).then(group => {
|
|
22317
22370
|
node = {
|
|
@@ -22348,6 +22401,7 @@ class AddDataViewModel {
|
|
|
22348
22401
|
break;
|
|
22349
22402
|
|
|
22350
22403
|
case "wmts":
|
|
22404
|
+
case "kqgistileserver":
|
|
22351
22405
|
this._viewer.addWMTSLayerGroup(url).then(group => {
|
|
22352
22406
|
node = {
|
|
22353
22407
|
guid: group.guid,
|
|
@@ -22747,9 +22801,9 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
22747
22801
|
description: language.value.imagertyDataflowServerdescription
|
|
22748
22802
|
}, {
|
|
22749
22803
|
type: "kqgistileserver",
|
|
22750
|
-
name: language.value.KQGISTileServer
|
|
22804
|
+
name: language.value.KQGISTileServer,
|
|
22751
22805
|
namePlaceholder: language.value.unnamedLayer,
|
|
22752
|
-
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/tile",
|
|
22806
|
+
urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/tile/wmts",
|
|
22753
22807
|
description: language.value.imagertyTileServerdescription
|
|
22754
22808
|
}, {
|
|
22755
22809
|
type: "arcgismapserver",
|
|
@@ -22785,11 +22839,11 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
|
|
|
22785
22839
|
type: "geojson",
|
|
22786
22840
|
name: language.value.GeoJson,
|
|
22787
22841
|
namePlaceholder: language.value.unnamedLayer,
|
|
22788
|
-
urlPlaceholder: language.value.format + ":
|
|
22842
|
+
urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx.geojson",
|
|
22789
22843
|
description: language.value.imagertyGeoJsondescription
|
|
22790
22844
|
}, {
|
|
22791
22845
|
type: "mvt",
|
|
22792
|
-
name: language.value.MVT
|
|
22846
|
+
name: language.value.MVT,
|
|
22793
22847
|
namePlaceholder: language.value.unnamedLayer,
|
|
22794
22848
|
urlPlaceholder: language.value.format + ":http://<host>:<port>/mvt/style.json",
|
|
22795
22849
|
description: language.value.imagertyMVTdescription
|
|
@@ -23280,7 +23334,10 @@ class ParticleEffectViewModel {
|
|
|
23280
23334
|
scenceView._viewer.clock.shouldAnimate = true;
|
|
23281
23335
|
scenceView._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
23282
23336
|
this._scene = scenceView._viewer.scene;
|
|
23283
|
-
this._drawManager = scenceView._drawManager;
|
|
23337
|
+
this._drawManager = scenceView._drawManager; // 启动连续绘制
|
|
23338
|
+
|
|
23339
|
+
this._drawManager.enableMultiDraw(true);
|
|
23340
|
+
|
|
23284
23341
|
_gravityScratch = new Cesium.Cartesian3();
|
|
23285
23342
|
var that = this;
|
|
23286
23343
|
that._removeEventListener = that._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
@@ -23383,6 +23440,8 @@ class ParticleEffectViewModel {
|
|
|
23383
23440
|
clear() {
|
|
23384
23441
|
this._drawManager.stopDraw();
|
|
23385
23442
|
|
|
23443
|
+
this._drawManager.clear();
|
|
23444
|
+
|
|
23386
23445
|
for (let i = 0; i < this._particleSystemList.length; i++) {
|
|
23387
23446
|
this._scene.primitives.remove(this._particleSystemList[i]);
|
|
23388
23447
|
}
|
|
@@ -23392,7 +23451,10 @@ class ParticleEffectViewModel {
|
|
|
23392
23451
|
|
|
23393
23452
|
|
|
23394
23453
|
destroy() {
|
|
23395
|
-
this.clear();
|
|
23454
|
+
this.clear();
|
|
23455
|
+
|
|
23456
|
+
this._drawManager.enableMultiDraw(false); //移除监听事件
|
|
23457
|
+
|
|
23396
23458
|
|
|
23397
23459
|
this._removeEventListener && this._removeEventListener();
|
|
23398
23460
|
this._removeEventListener = null;
|
|
@@ -24423,6 +24485,8 @@ class WeatherEffectViewModel {
|
|
|
24423
24485
|
clear() {
|
|
24424
24486
|
this._drawManager.stopDraw();
|
|
24425
24487
|
|
|
24488
|
+
this._drawManager.clear();
|
|
24489
|
+
|
|
24426
24490
|
this._particleSystem && this._scene.primitives.remove(this._particleSystem);
|
|
24427
24491
|
this._particleSystem = null;
|
|
24428
24492
|
} //销毁
|
package/modelselect/index.js
CHANGED
|
@@ -303,17 +303,14 @@ var util_ = __webpack_require__(9519);
|
|
|
303
303
|
;// 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
|
|
304
304
|
|
|
305
305
|
const _hoisted_1 = {
|
|
306
|
-
class: "kq3d-model-select-box"
|
|
307
|
-
};
|
|
308
|
-
const _hoisted_2 = {
|
|
309
306
|
class: "title"
|
|
310
307
|
};
|
|
311
308
|
|
|
312
|
-
const
|
|
309
|
+
const _hoisted_2 = /*#__PURE__*/(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", null, "所属图层名称:", -1
|
|
313
310
|
/* HOISTED */
|
|
314
311
|
);
|
|
315
312
|
|
|
316
|
-
const
|
|
313
|
+
const _hoisted_3 = {
|
|
317
314
|
class: "footer-buttons"
|
|
318
315
|
};
|
|
319
316
|
|
|
@@ -383,7 +380,8 @@ const __default__ = {
|
|
|
383
380
|
let tableData = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]); //语言
|
|
384
381
|
|
|
385
382
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
386
|
-
let viewModel = null;
|
|
383
|
+
let viewModel = null;
|
|
384
|
+
let ref_box = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 获取组件传参
|
|
387
385
|
// 表格头样式
|
|
388
386
|
|
|
389
387
|
let headClass = args => {
|
|
@@ -501,15 +499,20 @@ const __default__ = {
|
|
|
501
499
|
ref: headerTempRef
|
|
502
500
|
}, null, 512
|
|
503
501
|
/* NEED_PATCH */
|
|
504
|
-
)) : (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",
|
|
505
|
-
|
|
502
|
+
)) : (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", {
|
|
503
|
+
class: "kq3d-model-select-box",
|
|
504
|
+
ref_key: "ref_box",
|
|
505
|
+
ref: ref_box
|
|
506
|
+
}, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
507
|
+
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, [_hoisted_2, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(layerNameTitle)), 1
|
|
506
508
|
/* TEXT */
|
|
507
509
|
)])]),
|
|
508
510
|
_: 1
|
|
509
511
|
/* STABLE */
|
|
510
512
|
|
|
511
513
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
512
|
-
class: "modelTable"
|
|
514
|
+
class: "modelTable",
|
|
515
|
+
style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)(__props.showHeaderTemp ? 'height: calc(100% - 70px)' : 'height: calc(100% - 35px)')
|
|
513
516
|
}, {
|
|
514
517
|
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_table, {
|
|
515
518
|
border: "",
|
|
@@ -546,7 +549,9 @@ const __default__ = {
|
|
|
546
549
|
_: 1
|
|
547
550
|
/* STABLE */
|
|
548
551
|
|
|
549
|
-
}
|
|
552
|
+
}, 8
|
|
553
|
+
/* PROPS */
|
|
554
|
+
, ["style"]), (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, {
|
|
550
555
|
onClick: _cache[0] || (_cache[0] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => pick(), ["stop"])),
|
|
551
556
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).pick,
|
|
552
557
|
type: "primary"
|
|
@@ -571,7 +576,9 @@ const __default__ = {
|
|
|
571
576
|
|
|
572
577
|
}, 8
|
|
573
578
|
/* PROPS */
|
|
574
|
-
, ["title"])])]
|
|
579
|
+
, ["title"])])], 512
|
|
580
|
+
/* NEED_PATCH */
|
|
581
|
+
)], 2
|
|
575
582
|
/* CLASS */
|
|
576
583
|
);
|
|
577
584
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.kq3d-model-select{z-index:999;border-radius:var(--kq-border-radius-base);padding:16px;pointer-events:auto;cursor:default;width:300px;height:400px;background-color:var(--kq-bg-color)}.kq3d-model-select .kq3d-model-select-box{height:calc(100% - 35px)}.kq3d-model-select .kq3d-model-select-box .title span{font-weight:700;color:var(--kq-text-color-primary)}.kq3d-model-select .modelTable{width:100%;
|
|
1
|
+
.kq3d-model-select{z-index:999;border-radius:var(--kq-border-radius-base);padding:16px;pointer-events:auto;cursor:default;width:300px;height:400px;background-color:var(--kq-bg-color)}.kq3d-model-select .kq3d-model-select-box{height:calc(100% - 35px)}.kq3d-model-select .kq3d-model-select-box .title span{font-weight:700;color:var(--kq-text-color-primary)}.kq3d-model-select .modelTable{width:100%;background-color:var(--kq-bg-color);pointer-events:auto}.kq3d-model-select .kq-row{margin-bottom:8px}.kq3d-model-select .footer-buttons{text-align:right}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"3.
|
|
1
|
+
{"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"3.3.1-beta","homepage":"","keywords":["KQGIS","webGL","Vue"],"browserslist":["> 1%","last 2 versions","not dead","not ie 11"],"author":"KQWEB GROUP","license":"Apache-2.0","dependencies":{"colorcolor":"^1.1.1","echarts":"^5.3.3","js-cookie":"^3.0.1","omit.js":"^2.0.2","save":"^2.5.0","tinycolor2":"^1.4.2","vue-i18n":"9.2.0-beta.36","xlsx":"^0.18.5","css-vars-ponyfill":"^2.4.8","html2canvas":"^1.4.1","xe-utils":"^3.5.4"}}
|
package/particleeffect/index.js
CHANGED
|
@@ -189,7 +189,10 @@ class ParticleEffectViewModel {
|
|
|
189
189
|
scenceView._viewer.clock.shouldAnimate = true;
|
|
190
190
|
scenceView._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
191
191
|
this._scene = scenceView._viewer.scene;
|
|
192
|
-
this._drawManager = scenceView._drawManager;
|
|
192
|
+
this._drawManager = scenceView._drawManager; // 启动连续绘制
|
|
193
|
+
|
|
194
|
+
this._drawManager.enableMultiDraw(true);
|
|
195
|
+
|
|
193
196
|
_gravityScratch = new Cesium.Cartesian3();
|
|
194
197
|
var that = this;
|
|
195
198
|
that._removeEventListener = that._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
@@ -292,6 +295,8 @@ class ParticleEffectViewModel {
|
|
|
292
295
|
clear() {
|
|
293
296
|
this._drawManager.stopDraw();
|
|
294
297
|
|
|
298
|
+
this._drawManager.clear();
|
|
299
|
+
|
|
295
300
|
for (let i = 0; i < this._particleSystemList.length; i++) {
|
|
296
301
|
this._scene.primitives.remove(this._particleSystemList[i]);
|
|
297
302
|
}
|
|
@@ -301,7 +306,10 @@ class ParticleEffectViewModel {
|
|
|
301
306
|
|
|
302
307
|
|
|
303
308
|
destroy() {
|
|
304
|
-
this.clear();
|
|
309
|
+
this.clear();
|
|
310
|
+
|
|
311
|
+
this._drawManager.enableMultiDraw(false); //移除监听事件
|
|
312
|
+
|
|
305
313
|
|
|
306
314
|
this._removeEventListener && this._removeEventListener();
|
|
307
315
|
this._removeEventListener = null;
|