@kq_npm/client3d_webgl_vue 0.0.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 +1503 -0
- package/adddata/style/adddata.css +1 -0
- package/adddata/style/css.js +3 -0
- package/adddata/style/index.js +3 -0
- package/baseterraingallery/index.js +394 -0
- package/baseterraingallery/style/baseterraingallery.css +1 -0
- package/baseterraingallery/style/css.js +3 -0
- package/baseterraingallery/style/index.js +3 -0
- package/boxclip/index.js +1076 -0
- package/boxclip/style/boxclip.css +1 -0
- package/boxclip/style/css.js +3 -0
- package/boxclip/style/index.js +3 -0
- package/comparemap/index.js +466 -0
- package/comparemap/style/comparemap.css +1 -0
- package/comparemap/style/css.js +3 -0
- package/comparemap/style/index.js +3 -0
- package/css.js +3 -0
- package/excavatefillanalysis/index.js +599 -0
- package/excavatefillanalysis/style/css.js +3 -0
- package/excavatefillanalysis/style/excavatefillanalysis.css +1 -0
- package/excavatefillanalysis/style/index.js +3 -0
- package/flight/index.js +963 -0
- package/flight/style/css.js +3 -0
- package/flight/style/flight.css +1 -0
- package/flight/style/index.js +3 -0
- package/floodanalysis/index.js +824 -0
- package/floodanalysis/style/css.js +3 -0
- package/floodanalysis/style/floodanalysis.css +1 -0
- package/floodanalysis/style/index.js +3 -0
- package/gpuspatialquery/index.js +906 -0
- package/gpuspatialquery/style/css.js +3 -0
- package/gpuspatialquery/style/gpuspatialquery.css +1 -0
- package/gpuspatialquery/style/index.js +3 -0
- package/hawkeye/index.js +239 -0
- package/index.js +19807 -0
- package/isolineanalysis/index.js +2476 -0
- package/isolineanalysis/style/css.js +3 -0
- package/isolineanalysis/style/index.js +3 -0
- package/isolineanalysis/style/isolineanalysis.css +1 -0
- package/measure/index.js +560 -0
- package/measure/style/css.js +3 -0
- package/measure/style/index.js +3 -0
- package/measure/style/measure.css +1 -0
- package/modelselect/index.js +375 -0
- package/modelselect/style/css.js +3 -0
- package/modelselect/style/index.js +3 -0
- package/modelselect/style/modelselect.css +1 -0
- package/package.json +1 -0
- package/particleeffect/index.js +1079 -0
- package/particleeffect/style/css.js +3 -0
- package/particleeffect/style/index.js +3 -0
- package/particleeffect/style/particleeffect.css +1 -0
- package/planeclip/index.js +738 -0
- package/planeclip/style/css.js +3 -0
- package/planeclip/style/index.js +3 -0
- package/planeclip/style/planeclip.css +1 -0
- package/profileanalysis/index.js +781 -0
- package/profileanalysis/style/css.js +3 -0
- package/profileanalysis/style/index.js +3 -0
- package/profileanalysis/style/profileanalysis.css +1 -0
- package/roller/index.js +537 -0
- package/roller/style/css.js +3 -0
- package/roller/style/index.js +3 -0
- package/roller/style/roller.css +1 -0
- package/scenceview/index.js +1775 -0
- package/scenceview/style/css.js +3 -0
- package/scenceview/style/index.js +3 -0
- package/scenceview/style/scenceview.css +1 -0
- package/screenshot/index.js +551 -0
- package/screenshot/style/css.js +3 -0
- package/screenshot/style/index.js +3 -0
- package/screenshot/style/screenshot.css +1 -0
- package/shadowanalysis/index.js +1042 -0
- package/shadowanalysis/style/css.js +3 -0
- package/shadowanalysis/style/index.js +3 -0
- package/shadowanalysis/style/shadowanalysis.css +1 -0
- package/sightlineanalysis/index.js +1100 -0
- package/sightlineanalysis/style/css.js +3 -0
- package/sightlineanalysis/style/divpoint.css +1 -0
- package/sightlineanalysis/style/index.js +3 -0
- package/sightlineanalysis/style/sightlineanalysis.css +1 -0
- package/skylineanalysis/index.js +771 -0
- package/skylineanalysis/style/css.js +3 -0
- package/skylineanalysis/style/index.js +3 -0
- package/skylineanalysis/style/skylineanalysis.css +1 -0
- package/slopeanalysis/index.js +1028 -0
- package/slopeanalysis/style/css.js +3 -0
- package/slopeanalysis/style/index.js +3 -0
- package/slopeanalysis/style/slopeanalysis.css +1 -0
- package/style.css +1 -0
- package/style.js +3 -0
- package/terrainoperation/index.js +508 -0
- package/terrainoperation/style/css.js +3 -0
- package/terrainoperation/style/index.js +3 -0
- package/terrainoperation/style/terrainoperation.css +1 -0
- package/viewshedanalysis/index.js +582 -0
- package/viewshedanalysis/style/css.js +3 -0
- package/viewshedanalysis/style/index.js +3 -0
- package/viewshedanalysis/style/viewshedanalysis.css +1 -0
- package/weathereffect/index.js +835 -0
- package/weathereffect/style/css.js +3 -0
- package/weathereffect/style/index.js +3 -0
- package/weathereffect/style/weathereffect.css +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--kq-box-padding:16px;--kq-header-bg-color:var(--kq-color-primary);--kq-header-border-color:var(--kq-color-primary)}.kq3d-box-clip{z-index:999;width:372px;border-radius:var(--kq-border-radius-base);padding:16px;pointer-events:auto;cursor:default;background-color:var(--kq-bg-color)}.kq3d-box-clip.shadow{-webkit-box-shadow:var(--kq-box-shadow);box-shadow:var(--kq-box-shadow)}.kq3d-box-clip .kq-row{margin-bottom:5px}.kq3d-box-clip .kq3d-box-clip-span{color:var(--kq-text-color-regular);line-height:32px}.kq3d-box-clip .kq-select{width:100%}.kq3d-box-clip .kq3d-box-clip-tip{color:var(--kq-text-color-regular);font-size:13px}.kq3d-box-clip .kq3d-box-clip-tip p{margin:5px 0}.kq3d-box-clip .kq3d-box-clip-collapse .kq-row{display:block}.kq3d-box-clip .kq3d-box-clip-collapse .kq-divider--horizontal{margin:0}.kq3d-box-clip .kq-collapse{border:unset}.kq3d-box-clip .kq-collapse .kq-collapse-item__header{border:unset;height:38px;background-color:var(--kq-fill-color-light);font-weight:700;padding:0 16px;font-size:16px}.kq3d-box-clip .kq-collapse .kq-collapse-item__arrow{margin:0 0 0 auto}.kq3d-box-clip .kq-collapse .kq-collapse-item__wrap .kq-collapse-item__content{padding-bottom:unset;border:unset;padding-top:10px}.kq3d-box-clip .kq-form-item{margin-bottom:0}.kq3d-box-clip .kq-form-item__content{text-align:end;display:block}.kq3d-box-clip .kq-slider{width:95%}.kq3d-box-clip .kq-slider .kq-slider__button{width:14px;height:14px}.kq3d-box-clip .kq-input-number{width:65px}.kq3d-box-clip .kq-input-number .kq-input-number__decrease,.kq3d-box-clip .kq-input-number .kq-input-number__increase{width:20px}.kq3d-box-clip .kq-input-number .kq-input__wrapper{padding-left:0;padding-right:20px}.kq3d-box-clip .kq3d-box-clip-footer{float:right;padding:16px 0}
|
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
/******/ (function() { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ // The require scope
|
|
4
|
+
/******/ var __webpack_require__ = {};
|
|
5
|
+
/******/
|
|
6
|
+
/************************************************************************/
|
|
7
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
8
|
+
/******/ !function() {
|
|
9
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
10
|
+
/******/ __webpack_require__.n = function(module) {
|
|
11
|
+
/******/ var getter = module && module.__esModule ?
|
|
12
|
+
/******/ function() { return module['default']; } :
|
|
13
|
+
/******/ function() { return module; };
|
|
14
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
15
|
+
/******/ return getter;
|
|
16
|
+
/******/ };
|
|
17
|
+
/******/ }();
|
|
18
|
+
/******/
|
|
19
|
+
/******/ /* webpack/runtime/define property getters */
|
|
20
|
+
/******/ !function() {
|
|
21
|
+
/******/ // define getter functions for harmony exports
|
|
22
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
23
|
+
/******/ for(var key in definition) {
|
|
24
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
25
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
26
|
+
/******/ }
|
|
27
|
+
/******/ }
|
|
28
|
+
/******/ };
|
|
29
|
+
/******/ }();
|
|
30
|
+
/******/
|
|
31
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
32
|
+
/******/ !function() {
|
|
33
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
34
|
+
/******/ }();
|
|
35
|
+
/******/
|
|
36
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
37
|
+
/******/ !function() {
|
|
38
|
+
/******/ // define __esModule on exports
|
|
39
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
40
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
41
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
42
|
+
/******/ }
|
|
43
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
44
|
+
/******/ };
|
|
45
|
+
/******/ }();
|
|
46
|
+
/******/
|
|
47
|
+
/************************************************************************/
|
|
48
|
+
var __webpack_exports__ = {};
|
|
49
|
+
// ESM COMPAT FLAG
|
|
50
|
+
__webpack_require__.r(__webpack_exports__);
|
|
51
|
+
|
|
52
|
+
// EXPORTS
|
|
53
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
54
|
+
"CompareMapViewModel": function() { return /* reexport */ CompareMapViewModel; },
|
|
55
|
+
"default": function() { return /* reexport */ CompareMap; }
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
;// CONCATENATED MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
59
|
+
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject = require("vue");
|
|
60
|
+
;// CONCATENATED MODULE: external "@zpc_npm/vue-iclient-common/_utils/gis-utils"
|
|
61
|
+
var gis_utils_namespaceObject = require("@zpc_npm/vue-iclient-common/_utils/gis-utils");
|
|
62
|
+
;// CONCATENATED MODULE: external "@element-plus/icons-vue"
|
|
63
|
+
var icons_vue_namespaceObject = require("@element-plus/icons-vue");
|
|
64
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
65
|
+
function _defineProperty(obj, key, value) {
|
|
66
|
+
if (key in obj) {
|
|
67
|
+
Object.defineProperty(obj, key, {
|
|
68
|
+
value: value,
|
|
69
|
+
enumerable: true,
|
|
70
|
+
configurable: true,
|
|
71
|
+
writable: true
|
|
72
|
+
});
|
|
73
|
+
} else {
|
|
74
|
+
obj[key] = value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return obj;
|
|
78
|
+
}
|
|
79
|
+
;// CONCATENATED MODULE: ./src/webgl/comparemap/CompareMapViewModel.js
|
|
80
|
+
|
|
81
|
+
//多窗口逻辑类
|
|
82
|
+
class CompareMapViewModel {
|
|
83
|
+
constructor(scenceView) {
|
|
84
|
+
_defineProperty(this, "_scenceView", null);
|
|
85
|
+
|
|
86
|
+
_defineProperty(this, "_viewer", null);
|
|
87
|
+
|
|
88
|
+
this._scenceView = scenceView;
|
|
89
|
+
this._viewer = scenceView._viewer;
|
|
90
|
+
} //切换窗口模式
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
changeMode(mode) {
|
|
94
|
+
let viewMode = Cesium.SplitViewMode.NONE;
|
|
95
|
+
|
|
96
|
+
switch (mode) {
|
|
97
|
+
case 1:
|
|
98
|
+
viewMode = Cesium.SplitViewMode.NONE;
|
|
99
|
+
break;
|
|
100
|
+
|
|
101
|
+
case 2:
|
|
102
|
+
viewMode = Cesium.SplitViewMode.HORIZONTAL;
|
|
103
|
+
break;
|
|
104
|
+
// case 3:
|
|
105
|
+
// viewMode = Cesium.SplitViewMode.HORIZONTAL_TRIPLE;
|
|
106
|
+
// break;
|
|
107
|
+
|
|
108
|
+
case 4:
|
|
109
|
+
viewMode = Cesium.SplitViewMode.QUAD;
|
|
110
|
+
break;
|
|
111
|
+
// case 5:
|
|
112
|
+
// viewMode = [
|
|
113
|
+
// { index: 0, left: 0, top: 0, width: 1, height: 1 },
|
|
114
|
+
// { index: 1, left: 0.78, top: 0.06, width: 0.2, height: 0.2 }
|
|
115
|
+
// ];
|
|
116
|
+
// break;
|
|
117
|
+
|
|
118
|
+
default:
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
this._viewer.scene.splitViewMode = viewMode;
|
|
123
|
+
} //重置窗口模式
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
resetMode() {
|
|
127
|
+
this.changeMode();
|
|
128
|
+
|
|
129
|
+
let checkedLayerkeys = this._scenceView._layerManager.getLayerCheckedListKey();
|
|
130
|
+
|
|
131
|
+
for (let i = 0; i < checkedLayerkeys.length; i++) {
|
|
132
|
+
let layer = this._scenceView._layerManager.getLayerByGuid(checkedLayerkeys[i]);
|
|
133
|
+
|
|
134
|
+
if (layer) {
|
|
135
|
+
layer.showInViews = undefined;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
setLayerState(index, guid, visible) {
|
|
141
|
+
let layer = this._scenceView._layerManager.getLayerByGuid(guid);
|
|
142
|
+
|
|
143
|
+
if (layer) {
|
|
144
|
+
let showInViews = layer.showInViews || [0, 1, 2, 3];
|
|
145
|
+
|
|
146
|
+
if (visible) {
|
|
147
|
+
showInViews.push(index);
|
|
148
|
+
} else {
|
|
149
|
+
let num = showInViews.indexOf(index);
|
|
150
|
+
|
|
151
|
+
if (num > -1) {
|
|
152
|
+
showInViews.splice(num, 1);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
layer.showInViews = showInViews;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
}
|
|
161
|
+
;// CONCATENATED MODULE: external "core-js/modules/es.array.includes.js"
|
|
162
|
+
var es_array_includes_js_namespaceObject = require("core-js/modules/es.array.includes.js");
|
|
163
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/comparemap/CompareMapTree.vue?vue&type=script&setup=true&lang=js
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
const _hoisted_1 = {
|
|
167
|
+
class: "kq3d-compare-map-tree"
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
const __default__ = {
|
|
172
|
+
name: "Kq3dCompareMapTree"
|
|
173
|
+
};
|
|
174
|
+
/* harmony default export */ var CompareMapTreevue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
175
|
+
props: {
|
|
176
|
+
index: Number,
|
|
177
|
+
setLayerState: {
|
|
178
|
+
type: Function
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
|
|
182
|
+
setup(__props) {
|
|
183
|
+
const props = __props;
|
|
184
|
+
let layerTreeStyle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(); // 图层树选择框样式
|
|
185
|
+
|
|
186
|
+
let selectedLayers = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)([]); // 图层树选中值
|
|
187
|
+
|
|
188
|
+
let layerTreeData = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)([]); // 图层树选项数据
|
|
189
|
+
|
|
190
|
+
let preCheckedKeys = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)([]); // 记录上次图层树选中值
|
|
191
|
+
|
|
192
|
+
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)({});
|
|
193
|
+
let viewModel = null;
|
|
194
|
+
/**
|
|
195
|
+
* 勾选图层逻辑
|
|
196
|
+
*/
|
|
197
|
+
|
|
198
|
+
function changeLayer(values) {
|
|
199
|
+
let checkedKeys = preCheckedKeys.value;
|
|
200
|
+
|
|
201
|
+
if (checkedKeys.length > values.length) {
|
|
202
|
+
for (let val of checkedKeys.values()) {
|
|
203
|
+
if (!values.includes(val)) {
|
|
204
|
+
props.setLayerState(props.index, val, false);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
} else {
|
|
208
|
+
for (let val of values.values()) {
|
|
209
|
+
if (!checkedKeys.includes(val)) {
|
|
210
|
+
props.setLayerState(props.index, val, true);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
preCheckedKeys.value = values;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
219
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.nextTick)(() => {
|
|
220
|
+
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
221
|
+
if (scenceView) {
|
|
222
|
+
language.value = scenceView._language;
|
|
223
|
+
layerTreeData.value = gis_utils_namespaceObject.mapLayerUtils.getLayerCheckedList();
|
|
224
|
+
selectedLayers.value = gis_utils_namespaceObject.mapLayerUtils.getLayerCheckedListKey();
|
|
225
|
+
preCheckedKeys.value = selectedLayers.value;
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
});
|
|
229
|
+
});
|
|
230
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onBeforeUnmount)(() => {});
|
|
231
|
+
return (_ctx, _cache) => {
|
|
232
|
+
const _component_kq_option = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-option");
|
|
233
|
+
|
|
234
|
+
const _component_kq_select = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-select");
|
|
235
|
+
|
|
236
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementBlock)("section", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_select, {
|
|
237
|
+
"popper-append-to-body": true,
|
|
238
|
+
multiple: "",
|
|
239
|
+
"collapse-tags": "",
|
|
240
|
+
onChange: changeLayer,
|
|
241
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(selectedLayers),
|
|
242
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.isRef)(selectedLayers) ? selectedLayers.value = $event : selectedLayers = $event),
|
|
243
|
+
"value-key": "id",
|
|
244
|
+
placeholder: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).selectLayer,
|
|
245
|
+
style: {
|
|
246
|
+
"width": "220px"
|
|
247
|
+
}
|
|
248
|
+
}, {
|
|
249
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.Fragment, null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.renderList)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(layerTreeData), item => {
|
|
250
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createBlock)(_component_kq_option, {
|
|
251
|
+
key: item.guid,
|
|
252
|
+
label: item.name,
|
|
253
|
+
value: item.guid,
|
|
254
|
+
style: {
|
|
255
|
+
"width": "210px"
|
|
256
|
+
}
|
|
257
|
+
}, null, 8
|
|
258
|
+
/* PROPS */
|
|
259
|
+
, ["label", "value"]);
|
|
260
|
+
}), 128
|
|
261
|
+
/* KEYED_FRAGMENT */
|
|
262
|
+
))]),
|
|
263
|
+
_: 1
|
|
264
|
+
/* STABLE */
|
|
265
|
+
|
|
266
|
+
}, 8
|
|
267
|
+
/* PROPS */
|
|
268
|
+
, ["modelValue", "placeholder"])]);
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
}));
|
|
273
|
+
;// CONCATENATED MODULE: ./src/webgl/comparemap/CompareMapTree.vue?vue&type=script&setup=true&lang=js
|
|
274
|
+
|
|
275
|
+
;// CONCATENATED MODULE: ./src/webgl/comparemap/CompareMapTree.vue
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
const __exports__ = CompareMapTreevue_type_script_setup_true_lang_js;
|
|
280
|
+
|
|
281
|
+
/* harmony default export */ var CompareMapTree = (__exports__);
|
|
282
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/comparemap/CompareMap.vue?vue&type=script&setup=true&lang=js
|
|
283
|
+
|
|
284
|
+
const CompareMapvue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
285
|
+
class: "kq3d-compare-map"
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
const CompareMapvue_type_script_setup_true_lang_js_default_ = {
|
|
293
|
+
name: "Kq3dCompareMap"
|
|
294
|
+
};
|
|
295
|
+
/* harmony default export */ var CompareMapvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(CompareMapvue_type_script_setup_true_lang_js_default_, {
|
|
296
|
+
props: {
|
|
297
|
+
showShadow: {
|
|
298
|
+
type: Boolean,
|
|
299
|
+
default: false
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
emits: ["back"],
|
|
303
|
+
|
|
304
|
+
setup(__props, {
|
|
305
|
+
expose,
|
|
306
|
+
emit
|
|
307
|
+
}) {
|
|
308
|
+
const props = __props;
|
|
309
|
+
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)({});
|
|
310
|
+
let btnShow = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(false); // 分屏返回按钮
|
|
311
|
+
|
|
312
|
+
let viewModel = null;
|
|
313
|
+
let showTree1 = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(false); // 图层树1
|
|
314
|
+
|
|
315
|
+
let showTree2 = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(false); // 图层树2
|
|
316
|
+
|
|
317
|
+
let showTree3 = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(false); // 图层树3
|
|
318
|
+
|
|
319
|
+
let showTree4 = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(false); // 图层树4
|
|
320
|
+
|
|
321
|
+
let tree1Index = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(0);
|
|
322
|
+
let tree2Index = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(1);
|
|
323
|
+
let tree3Index = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(2);
|
|
324
|
+
let tree4Index = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(3);
|
|
325
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
326
|
+
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
327
|
+
if (scenceView) {
|
|
328
|
+
language.value = scenceView._language;
|
|
329
|
+
viewModel = new CompareMapViewModel(scenceView);
|
|
330
|
+
}
|
|
331
|
+
});
|
|
332
|
+
}); //切换窗口模式
|
|
333
|
+
|
|
334
|
+
function changeMode(mode) {
|
|
335
|
+
btnShow.value = true;
|
|
336
|
+
|
|
337
|
+
if (mode === 2) {
|
|
338
|
+
showTree1.value = true;
|
|
339
|
+
showTree2.value = true;
|
|
340
|
+
tree1Index.value = 0;
|
|
341
|
+
tree2Index.value = 1;
|
|
342
|
+
tree3Index.value = 2;
|
|
343
|
+
tree4Index.value = 3;
|
|
344
|
+
} else if (mode === 4) {
|
|
345
|
+
showTree1.value = true;
|
|
346
|
+
showTree2.value = true;
|
|
347
|
+
showTree3.value = true;
|
|
348
|
+
showTree4.value = true;
|
|
349
|
+
tree1Index.value = 2;
|
|
350
|
+
tree2Index.value = 3;
|
|
351
|
+
tree3Index.value = 0;
|
|
352
|
+
tree4Index.value = 1;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
viewModel && viewModel.changeMode(mode);
|
|
356
|
+
} //返回
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
function goBack() {
|
|
360
|
+
btnShow.value = false;
|
|
361
|
+
showTree1.value = false;
|
|
362
|
+
showTree2.value = false;
|
|
363
|
+
showTree3.value = false;
|
|
364
|
+
showTree4.value = false;
|
|
365
|
+
emit("back");
|
|
366
|
+
resetMode();
|
|
367
|
+
} //重置窗口模式
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
function resetMode() {
|
|
371
|
+
viewModel && viewModel.resetMode();
|
|
372
|
+
} //设置图层显示状态
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
function setLayerState(index, guid, visible) {
|
|
376
|
+
viewModel && viewModel.setLayerState(index, guid, visible);
|
|
377
|
+
} // 销毁
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onBeforeUnmount)(() => {
|
|
381
|
+
resetMode();
|
|
382
|
+
});
|
|
383
|
+
expose({
|
|
384
|
+
changeMode
|
|
385
|
+
});
|
|
386
|
+
return (_ctx, _cache) => {
|
|
387
|
+
const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-icon");
|
|
388
|
+
|
|
389
|
+
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-button");
|
|
390
|
+
|
|
391
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementBlock)("section", CompareMapvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(showTree1) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(CompareMapTree), {
|
|
392
|
+
key: 0,
|
|
393
|
+
class: "layer-tree-1",
|
|
394
|
+
index: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(tree1Index),
|
|
395
|
+
setLayerState: setLayerState
|
|
396
|
+
}, null, 8
|
|
397
|
+
/* PROPS */
|
|
398
|
+
, ["index"])) : (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.unref)(showTree2) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(CompareMapTree), {
|
|
399
|
+
key: 1,
|
|
400
|
+
class: "layer-tree-2",
|
|
401
|
+
index: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(tree2Index),
|
|
402
|
+
setLayerState: setLayerState
|
|
403
|
+
}, null, 8
|
|
404
|
+
/* PROPS */
|
|
405
|
+
, ["index"])) : (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.unref)(showTree3) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(CompareMapTree), {
|
|
406
|
+
key: 2,
|
|
407
|
+
class: "layer-tree-3",
|
|
408
|
+
index: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(tree3Index),
|
|
409
|
+
setLayerState: setLayerState
|
|
410
|
+
}, null, 8
|
|
411
|
+
/* PROPS */
|
|
412
|
+
, ["index"])) : (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.unref)(showTree4) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(CompareMapTree), {
|
|
413
|
+
key: 3,
|
|
414
|
+
class: "layer-tree-4",
|
|
415
|
+
index: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(tree4Index),
|
|
416
|
+
setLayerState: setLayerState
|
|
417
|
+
}, null, 8
|
|
418
|
+
/* PROPS */
|
|
419
|
+
, ["index"])) : (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.createCommentVNode)(" 返回 "), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_button, {
|
|
420
|
+
circle: "",
|
|
421
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).return,
|
|
422
|
+
class: "close-button",
|
|
423
|
+
onClick: _cache[0] || (_cache[0] = $event => goBack())
|
|
424
|
+
}, {
|
|
425
|
+
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_icon, null, {
|
|
426
|
+
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)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(icons_vue_namespaceObject.Back))]),
|
|
427
|
+
_: 1
|
|
428
|
+
/* STABLE */
|
|
429
|
+
|
|
430
|
+
})]),
|
|
431
|
+
_: 1
|
|
432
|
+
/* STABLE */
|
|
433
|
+
|
|
434
|
+
}, 8
|
|
435
|
+
/* PROPS */
|
|
436
|
+
, ["title"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(btnShow)]])]);
|
|
437
|
+
};
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
}));
|
|
441
|
+
;// CONCATENATED MODULE: ./src/webgl/comparemap/CompareMap.vue?vue&type=script&setup=true&lang=js
|
|
442
|
+
|
|
443
|
+
;// CONCATENATED MODULE: ./src/webgl/comparemap/CompareMap.vue
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
const CompareMap_exports_ = CompareMapvue_type_script_setup_true_lang_js;
|
|
448
|
+
|
|
449
|
+
/* harmony default export */ var CompareMap = (CompareMap_exports_);
|
|
450
|
+
;// CONCATENATED MODULE: external "@zpc_npm/vue-iclient-common/init.js"
|
|
451
|
+
var init_js_namespaceObject = require("@zpc_npm/vue-iclient-common/init.js");
|
|
452
|
+
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_namespaceObject);
|
|
453
|
+
;// CONCATENATED MODULE: ./src/webgl/comparemap/index.js
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
CompareMap.install = (Vue, opts) => {
|
|
459
|
+
init_js_default()(Vue, opts);
|
|
460
|
+
Vue.component(CompareMap.name, CompareMap);
|
|
461
|
+
};
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
module.exports = __webpack_exports__;
|
|
465
|
+
/******/ })()
|
|
466
|
+
;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--kq-box-padding:16px;--kq-header-bg-color:var(--kq-color-primary);--kq-header-border-color:var(--kq-color-primary)}.kq3d-compare-map .close-button{padding:0!important;position:absolute;color:var(--kq-color-primary);top:16px;right:16px;cursor:pointer;width:38px;height:38px;font-size:22px;z-index:9999;border-radius:50%}.kq3d-compare-map .kq3d-compare-map-tree{position:absolute;z-index:1000}.kq3d-compare-map .kq3d-compare-map-tree.layer-tree-1{top:16px;right:calc(50% + 16px)}.kq3d-compare-map .kq3d-compare-map-tree.layer-tree-2{top:16px;left:calc(50% + 16px)}.kq3d-compare-map .kq3d-compare-map-tree.layer-tree-3{top:calc(50% + 16px);right:calc(50% + 16px)}.kq3d-compare-map .kq3d-compare-map-tree.layer-tree-4{top:calc(50% + 16px);left:calc(50% + 16px)}
|
package/css.js
ADDED