@kq_npm/client3d_webgl_vue 3.2.6-beta → 3.2.7-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/aspectanalysis/index.js +122 -91
- package/boxclip/index.js +182 -158
- package/clientPrint/index.js +46 -3
- package/excavatefillanalysis/index.js +149 -118
- package/floodanalysis/index.js +48 -5
- package/gpuspatialquery/index.js +188 -164
- package/index.js +153 -45
- package/isolineanalysis/index.js +34 -1
- package/modelselect/index.js +143 -119
- package/modelselect/style/modelselect.css +1 -1
- package/package.json +1 -1
- package/planeclip/index.js +182 -158
- package/scenceview/index.js +399 -347
- package/shadowanalysis/index.js +185 -161
- package/skylineanalysis/index.js +185 -158
- package/slopeanalysis/index.js +56 -16
- package/style.css +1 -1
- package/terrainoperation/index.js +195 -164
package/aspectanalysis/index.js
CHANGED
|
@@ -2,101 +2,30 @@
|
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ var __webpack_modules__ = ({
|
|
4
4
|
|
|
5
|
-
/***/
|
|
5
|
+
/***/ 909:
|
|
6
6
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
7
7
|
|
|
8
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9
|
-
/* harmony export */ "Z": function() { return /* binding */ AspectAnalysisViewModel; }
|
|
10
|
-
/* harmony export */ });
|
|
11
|
-
/* harmony import */ var _Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8270);
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* 坡向逻辑类
|
|
16
|
-
**/
|
|
17
|
-
class AspectAnalysisViewModel {
|
|
18
|
-
// 坡向三维对象
|
|
19
|
-
constructor(scenceView, aspect) {
|
|
20
|
-
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_aspectAnalysis", null);
|
|
21
|
-
|
|
22
|
-
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_globaOptions", {
|
|
23
|
-
//全局参数
|
|
24
|
-
viewer: null,
|
|
25
|
-
_drawManager: null
|
|
26
|
-
});
|
|
27
8
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
width: aspect.arrowWidth || 20,
|
|
33
|
-
// 箭头宽度
|
|
34
|
-
color: Cesium.Color.fromCssColorString(aspect.color || "#FFFF00"),
|
|
35
|
-
// 箭头颜色
|
|
36
|
-
viewer: scenceView._viewer
|
|
37
|
-
};
|
|
38
|
-
this._globaOptions.viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
|
|
39
|
-
// this._globaOptions.viewer.scene.globe.enableLighting = true;
|
|
40
|
-
|
|
41
|
-
this._globaOptions._drawManager = scenceView._drawManager;
|
|
42
|
-
var that = this;
|
|
43
|
-
this._aspectAnalysis = new Cesium.Kq3dAspect(options);
|
|
44
|
-
this._globaOptions._drawFinishedEventListener = this._globaOptions._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
45
|
-
if (shape) {
|
|
46
|
-
that._aspectAnalysis.positions = shape._controlPoints;
|
|
47
|
-
|
|
48
|
-
that._globaOptions._drawManager.clear();
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
} // 开始分析
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
start() {
|
|
55
|
-
// 判断是否添加了地形
|
|
56
|
-
if (this._globaOptions.viewer.terrainProvider.availability) {
|
|
57
|
-
if (this._globaOptions._drawManager) {
|
|
58
|
-
this.clear();
|
|
59
|
-
|
|
60
|
-
this._globaOptions._drawManager.startDraw("polygon", {
|
|
61
|
-
clampToGround: true
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
} else {
|
|
65
|
-
throw "请加载地形后分析!";
|
|
66
|
-
}
|
|
67
|
-
} // 设置采样间隔
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
setInterval(newValue) {
|
|
71
|
-
if (this._aspectAnalysis) this._aspectAnalysis._interval = newValue;
|
|
72
|
-
} // 设置箭头宽度
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
setArrowWidth(newValue) {
|
|
76
|
-
if (this._aspectAnalysis) this._aspectAnalysis._width = newValue;
|
|
77
|
-
} // 设置箭头颜色
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
setArrowColor(newValue) {
|
|
81
|
-
if (this._aspectAnalysis) this._aspectAnalysis._color = Cesium.Color.fromCssColorString(newValue);
|
|
82
|
-
} // 清除全部结果
|
|
9
|
+
// EXPORTS
|
|
10
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
11
|
+
"Z": function() { return /* binding */ message; }
|
|
12
|
+
});
|
|
83
13
|
|
|
14
|
+
;// CONCATENATED MODULE: external "element-plus/es"
|
|
15
|
+
var es_namespaceObject = require("element-plus/es");
|
|
16
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
17
|
+
var init_js_ = __webpack_require__(5406);
|
|
18
|
+
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
19
|
+
;// CONCATENATED MODULE: ./src/common/_ui/message/index.js
|
|
84
20
|
|
|
85
|
-
clear() {
|
|
86
|
-
this._globaOptions._drawManager && this._globaOptions._drawManager.stopDraw();
|
|
87
|
-
this._aspectAnalysis && this._aspectAnalysis.clear();
|
|
88
|
-
} // 销毁
|
|
89
21
|
|
|
90
22
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
this._aspectAnalysis && this._aspectAnalysis.clear();
|
|
96
|
-
this._aspectAnalysis = null;
|
|
97
|
-
}
|
|
23
|
+
es_namespaceObject.ElMessage.install = (Vue, opts) => {
|
|
24
|
+
init_js_default()(Vue, opts);
|
|
25
|
+
Vue.component("KqMessage", es_namespaceObject.ElMessage);
|
|
26
|
+
};
|
|
98
27
|
|
|
99
|
-
|
|
28
|
+
/* harmony default export */ var message = (es_namespaceObject.ElMessage);
|
|
100
29
|
|
|
101
30
|
/***/ }),
|
|
102
31
|
|
|
@@ -234,7 +163,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
234
163
|
|
|
235
164
|
// EXPORTS
|
|
236
165
|
__webpack_require__.d(__webpack_exports__, {
|
|
237
|
-
"AspectAnalysisViewModel": function() { return /* reexport */ AspectAnalysisViewModel
|
|
166
|
+
"AspectAnalysisViewModel": function() { return /* reexport */ AspectAnalysisViewModel; },
|
|
238
167
|
"default": function() { return /* reexport */ AspectAnalysis; }
|
|
239
168
|
});
|
|
240
169
|
|
|
@@ -242,8 +171,110 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
242
171
|
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(637);
|
|
243
172
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
244
173
|
var gis_utils_ = __webpack_require__(826);
|
|
245
|
-
// EXTERNAL MODULE: ./
|
|
246
|
-
var
|
|
174
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
175
|
+
var defineProperty = __webpack_require__(8270);
|
|
176
|
+
// EXTERNAL MODULE: ./src/common/_ui/message/index.js + 1 modules
|
|
177
|
+
var message = __webpack_require__(909);
|
|
178
|
+
;// CONCATENATED MODULE: ./src/webgl/aspectanalysis/AspectAnalysisViewModel.js
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* 坡向逻辑类
|
|
183
|
+
**/
|
|
184
|
+
|
|
185
|
+
class AspectAnalysisViewModel {
|
|
186
|
+
// 坡向三维对象
|
|
187
|
+
constructor(scenceView, aspect) {
|
|
188
|
+
(0,defineProperty/* default */.Z)(this, "_aspectAnalysis", null);
|
|
189
|
+
|
|
190
|
+
(0,defineProperty/* default */.Z)(this, "_globaOptions", {
|
|
191
|
+
//全局参数
|
|
192
|
+
viewer: null,
|
|
193
|
+
_drawManager: null
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
this._globaOptions.viewer = scenceView._viewer;
|
|
197
|
+
let options = {
|
|
198
|
+
interval: aspect.interval || 500,
|
|
199
|
+
// 采样间隔
|
|
200
|
+
width: aspect.arrowWidth || 20,
|
|
201
|
+
// 箭头宽度
|
|
202
|
+
color: Cesium.Color.fromCssColorString(aspect.color || "#FFFF00"),
|
|
203
|
+
// 箭头颜色
|
|
204
|
+
viewer: scenceView._viewer
|
|
205
|
+
};
|
|
206
|
+
this._globaOptions.viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
|
|
207
|
+
// this._globaOptions.viewer.scene.globe.enableLighting = true;
|
|
208
|
+
|
|
209
|
+
this._globaOptions._drawManager = scenceView._drawManager;
|
|
210
|
+
var that = this;
|
|
211
|
+
this._aspectAnalysis = new Cesium.Kq3dAspect(options);
|
|
212
|
+
this._globaOptions._drawFinishedEventListener = this._globaOptions._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
213
|
+
if (shape) {
|
|
214
|
+
that._aspectAnalysis.positions = shape._controlPoints;
|
|
215
|
+
|
|
216
|
+
that._globaOptions._drawManager.clear();
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
} // 开始分析
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
start() {
|
|
223
|
+
// 判断是否添加了地形
|
|
224
|
+
if (this._globaOptions.viewer.terrainProvider.availability) {
|
|
225
|
+
if (this._globaOptions.viewer.terrainProvider instanceof Cesium.CesiumTerrainProvider) {
|
|
226
|
+
if (this._globaOptions._drawManager) {
|
|
227
|
+
this.clear();
|
|
228
|
+
|
|
229
|
+
this._globaOptions._drawManager.startDraw("polygon", {
|
|
230
|
+
clampToGround: true
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
} else {
|
|
234
|
+
(0,message/* default */.Z)({
|
|
235
|
+
message: "只支持STK类型的地形分析!",
|
|
236
|
+
type: "warning"
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
} else {
|
|
240
|
+
(0,message/* default */.Z)({
|
|
241
|
+
message: "请加载地形后分析!",
|
|
242
|
+
type: "warning"
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
} // 设置采样间隔
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
setInterval(newValue) {
|
|
249
|
+
if (this._aspectAnalysis) this._aspectAnalysis._interval = newValue;
|
|
250
|
+
} // 设置箭头宽度
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
setArrowWidth(newValue) {
|
|
254
|
+
if (this._aspectAnalysis) this._aspectAnalysis._width = newValue;
|
|
255
|
+
} // 设置箭头颜色
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
setArrowColor(newValue) {
|
|
259
|
+
if (this._aspectAnalysis) this._aspectAnalysis._color = Cesium.Color.fromCssColorString(newValue);
|
|
260
|
+
} // 清除全部结果
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
clear() {
|
|
264
|
+
this._globaOptions._drawManager && this._globaOptions._drawManager.stopDraw();
|
|
265
|
+
this._aspectAnalysis && this._aspectAnalysis.clear();
|
|
266
|
+
} // 销毁
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
destroy() {
|
|
270
|
+
// 移除监听事件
|
|
271
|
+
this._globaOptions._drawFinishedEventListener && this._globaOptions._drawFinishedEventListener();
|
|
272
|
+
this._globaOptions._drawFinishedEventListener = null;
|
|
273
|
+
this._aspectAnalysis && this._aspectAnalysis.clear();
|
|
274
|
+
this._aspectAnalysis = null;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
}
|
|
247
278
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
248
279
|
var client_icons_vue_ = __webpack_require__(348);
|
|
249
280
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
@@ -354,7 +385,7 @@ const __default__ = {
|
|
|
354
385
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
355
386
|
if (scenceView) {
|
|
356
387
|
language.value = scenceView._language;
|
|
357
|
-
viewModel = new AspectAnalysisViewModel
|
|
388
|
+
viewModel = new AspectAnalysisViewModel(scenceView, {
|
|
358
389
|
interval: formItem.interval,
|
|
359
390
|
// 采样间隔
|
|
360
391
|
arrowWidth: formItem.arrowWidth,
|
package/boxclip/index.js
CHANGED
|
@@ -2,15 +2,183 @@
|
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ var __webpack_modules__ = ({
|
|
4
4
|
|
|
5
|
-
/***/
|
|
5
|
+
/***/ 909:
|
|
6
6
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
7
7
|
|
|
8
|
+
|
|
9
|
+
// EXPORTS
|
|
10
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
11
|
+
"Z": function() { return /* binding */ message; }
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
;// CONCATENATED MODULE: external "element-plus/es"
|
|
15
|
+
var es_namespaceObject = require("element-plus/es");
|
|
16
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
17
|
+
var init_js_ = __webpack_require__(5406);
|
|
18
|
+
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
19
|
+
;// CONCATENATED MODULE: ./src/common/_ui/message/index.js
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
es_namespaceObject.ElMessage.install = (Vue, opts) => {
|
|
24
|
+
init_js_default()(Vue, opts);
|
|
25
|
+
Vue.component("KqMessage", es_namespaceObject.ElMessage);
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/* harmony default export */ var message = (es_namespaceObject.ElMessage);
|
|
29
|
+
|
|
30
|
+
/***/ }),
|
|
31
|
+
|
|
32
|
+
/***/ 348:
|
|
33
|
+
/***/ (function(module) {
|
|
34
|
+
|
|
35
|
+
module.exports = require("@kq_npm/client_icons_vue");
|
|
36
|
+
|
|
37
|
+
/***/ }),
|
|
38
|
+
|
|
39
|
+
/***/ 826:
|
|
40
|
+
/***/ (function(module) {
|
|
41
|
+
|
|
42
|
+
module.exports = require("@kq_npm/client_common_vue/_utils/gis-utils");
|
|
43
|
+
|
|
44
|
+
/***/ }),
|
|
45
|
+
|
|
46
|
+
/***/ 9519:
|
|
47
|
+
/***/ (function(module) {
|
|
48
|
+
|
|
49
|
+
module.exports = require("@kq_npm/client_common_vue/_utils/util");
|
|
50
|
+
|
|
51
|
+
/***/ }),
|
|
52
|
+
|
|
53
|
+
/***/ 5406:
|
|
54
|
+
/***/ (function(module) {
|
|
55
|
+
|
|
56
|
+
module.exports = require("@kq_npm/client_common_vue/init.js");
|
|
57
|
+
|
|
58
|
+
/***/ }),
|
|
59
|
+
|
|
60
|
+
/***/ 637:
|
|
61
|
+
/***/ (function(module) {
|
|
62
|
+
|
|
63
|
+
module.exports = require("vue");
|
|
64
|
+
|
|
65
|
+
/***/ }),
|
|
66
|
+
|
|
67
|
+
/***/ 8270:
|
|
68
|
+
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
69
|
+
|
|
8
70
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9
|
-
/* harmony export */ "Z": function() { return /* binding */
|
|
71
|
+
/* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
|
|
10
72
|
/* harmony export */ });
|
|
11
|
-
|
|
73
|
+
function _defineProperty(obj, key, value) {
|
|
74
|
+
if (key in obj) {
|
|
75
|
+
Object.defineProperty(obj, key, {
|
|
76
|
+
value: value,
|
|
77
|
+
enumerable: true,
|
|
78
|
+
configurable: true,
|
|
79
|
+
writable: true
|
|
80
|
+
});
|
|
81
|
+
} else {
|
|
82
|
+
obj[key] = value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return obj;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/***/ })
|
|
89
|
+
|
|
90
|
+
/******/ });
|
|
91
|
+
/************************************************************************/
|
|
92
|
+
/******/ // The module cache
|
|
93
|
+
/******/ var __webpack_module_cache__ = {};
|
|
94
|
+
/******/
|
|
95
|
+
/******/ // The require function
|
|
96
|
+
/******/ function __webpack_require__(moduleId) {
|
|
97
|
+
/******/ // Check if module is in cache
|
|
98
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
99
|
+
/******/ if (cachedModule !== undefined) {
|
|
100
|
+
/******/ return cachedModule.exports;
|
|
101
|
+
/******/ }
|
|
102
|
+
/******/ // Create a new module (and put it into the cache)
|
|
103
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
104
|
+
/******/ // no module.id needed
|
|
105
|
+
/******/ // no module.loaded needed
|
|
106
|
+
/******/ exports: {}
|
|
107
|
+
/******/ };
|
|
108
|
+
/******/
|
|
109
|
+
/******/ // Execute the module function
|
|
110
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
111
|
+
/******/
|
|
112
|
+
/******/ // Return the exports of the module
|
|
113
|
+
/******/ return module.exports;
|
|
114
|
+
/******/ }
|
|
115
|
+
/******/
|
|
116
|
+
/************************************************************************/
|
|
117
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
118
|
+
/******/ !function() {
|
|
119
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
120
|
+
/******/ __webpack_require__.n = function(module) {
|
|
121
|
+
/******/ var getter = module && module.__esModule ?
|
|
122
|
+
/******/ function() { return module['default']; } :
|
|
123
|
+
/******/ function() { return module; };
|
|
124
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
125
|
+
/******/ return getter;
|
|
126
|
+
/******/ };
|
|
127
|
+
/******/ }();
|
|
128
|
+
/******/
|
|
129
|
+
/******/ /* webpack/runtime/define property getters */
|
|
130
|
+
/******/ !function() {
|
|
131
|
+
/******/ // define getter functions for harmony exports
|
|
132
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
133
|
+
/******/ for(var key in definition) {
|
|
134
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
135
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
136
|
+
/******/ }
|
|
137
|
+
/******/ }
|
|
138
|
+
/******/ };
|
|
139
|
+
/******/ }();
|
|
140
|
+
/******/
|
|
141
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
142
|
+
/******/ !function() {
|
|
143
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
144
|
+
/******/ }();
|
|
145
|
+
/******/
|
|
146
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
147
|
+
/******/ !function() {
|
|
148
|
+
/******/ // define __esModule on exports
|
|
149
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
150
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
151
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
152
|
+
/******/ }
|
|
153
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
154
|
+
/******/ };
|
|
155
|
+
/******/ }();
|
|
156
|
+
/******/
|
|
157
|
+
/************************************************************************/
|
|
158
|
+
var __webpack_exports__ = {};
|
|
159
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
160
|
+
!function() {
|
|
161
|
+
// ESM COMPAT FLAG
|
|
162
|
+
__webpack_require__.r(__webpack_exports__);
|
|
163
|
+
|
|
164
|
+
// EXPORTS
|
|
165
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
166
|
+
"BoxClipViewModel": function() { return /* reexport */ BoxClipViewModel; },
|
|
167
|
+
"default": function() { return /* reexport */ BoxClip; }
|
|
168
|
+
});
|
|
169
|
+
|
|
170
|
+
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
171
|
+
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(637);
|
|
172
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
173
|
+
var gis_utils_ = __webpack_require__(826);
|
|
174
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
175
|
+
var defineProperty = __webpack_require__(8270);
|
|
176
|
+
// EXTERNAL MODULE: ./src/common/_ui/message/index.js + 1 modules
|
|
177
|
+
var message = __webpack_require__(909);
|
|
178
|
+
;// CONCATENATED MODULE: ./src/webgl/boxclip/BoxClipViewModel.js
|
|
12
179
|
|
|
13
180
|
//Box裁剪逻辑类
|
|
181
|
+
|
|
14
182
|
class BoxClipViewModel {
|
|
15
183
|
//三维viewer对象
|
|
16
184
|
//Box裁剪存储参数对象
|
|
@@ -18,11 +186,11 @@ class BoxClipViewModel {
|
|
|
18
186
|
//绘制管理对象
|
|
19
187
|
//绘制完成监听事件
|
|
20
188
|
constructor(scenceView, options) {
|
|
21
|
-
(0,
|
|
189
|
+
(0,defineProperty/* default */.Z)(this, "_viewer", null);
|
|
22
190
|
|
|
23
|
-
(0,
|
|
191
|
+
(0,defineProperty/* default */.Z)(this, "_options", {});
|
|
24
192
|
|
|
25
|
-
(0,
|
|
193
|
+
(0,defineProperty/* default */.Z)(this, "_defaultOptions", {
|
|
26
194
|
//默认参数对象
|
|
27
195
|
clipTyp: 1,
|
|
28
196
|
boxColor: Cesium.Color.fromCssColorString("#316882").withAlpha(0.4),
|
|
@@ -43,11 +211,11 @@ class BoxClipViewModel {
|
|
|
43
211
|
paddingStrokeSpace: 5.0
|
|
44
212
|
});
|
|
45
213
|
|
|
46
|
-
(0,
|
|
214
|
+
(0,defineProperty/* default */.Z)(this, "_boxclipAnalysis", null);
|
|
47
215
|
|
|
48
|
-
(0,
|
|
216
|
+
(0,defineProperty/* default */.Z)(this, "_drawManager", null);
|
|
49
217
|
|
|
50
|
-
(0,
|
|
218
|
+
(0,defineProperty/* default */.Z)(this, "_removeEventListener", null);
|
|
51
219
|
|
|
52
220
|
this._options = Object.assign({}, options, this._defaultOptions);
|
|
53
221
|
this._viewer = scenceView._viewer; // this._viewer.enabledFXAA = true;
|
|
@@ -109,7 +277,10 @@ class BoxClipViewModel {
|
|
|
109
277
|
image: null
|
|
110
278
|
});
|
|
111
279
|
} else {
|
|
112
|
-
|
|
280
|
+
(0,message/* default */.Z)({
|
|
281
|
+
message: "请添加模型后裁剪!",
|
|
282
|
+
type: "warning"
|
|
283
|
+
});
|
|
113
284
|
}
|
|
114
285
|
} //清除全部
|
|
115
286
|
|
|
@@ -201,153 +372,6 @@ class BoxClipViewModel {
|
|
|
201
372
|
}
|
|
202
373
|
|
|
203
374
|
}
|
|
204
|
-
|
|
205
|
-
/***/ }),
|
|
206
|
-
|
|
207
|
-
/***/ 348:
|
|
208
|
-
/***/ (function(module) {
|
|
209
|
-
|
|
210
|
-
module.exports = require("@kq_npm/client_icons_vue");
|
|
211
|
-
|
|
212
|
-
/***/ }),
|
|
213
|
-
|
|
214
|
-
/***/ 826:
|
|
215
|
-
/***/ (function(module) {
|
|
216
|
-
|
|
217
|
-
module.exports = require("@kq_npm/client_common_vue/_utils/gis-utils");
|
|
218
|
-
|
|
219
|
-
/***/ }),
|
|
220
|
-
|
|
221
|
-
/***/ 9519:
|
|
222
|
-
/***/ (function(module) {
|
|
223
|
-
|
|
224
|
-
module.exports = require("@kq_npm/client_common_vue/_utils/util");
|
|
225
|
-
|
|
226
|
-
/***/ }),
|
|
227
|
-
|
|
228
|
-
/***/ 5406:
|
|
229
|
-
/***/ (function(module) {
|
|
230
|
-
|
|
231
|
-
module.exports = require("@kq_npm/client_common_vue/init.js");
|
|
232
|
-
|
|
233
|
-
/***/ }),
|
|
234
|
-
|
|
235
|
-
/***/ 637:
|
|
236
|
-
/***/ (function(module) {
|
|
237
|
-
|
|
238
|
-
module.exports = require("vue");
|
|
239
|
-
|
|
240
|
-
/***/ }),
|
|
241
|
-
|
|
242
|
-
/***/ 8270:
|
|
243
|
-
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
244
|
-
|
|
245
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
246
|
-
/* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
|
|
247
|
-
/* harmony export */ });
|
|
248
|
-
function _defineProperty(obj, key, value) {
|
|
249
|
-
if (key in obj) {
|
|
250
|
-
Object.defineProperty(obj, key, {
|
|
251
|
-
value: value,
|
|
252
|
-
enumerable: true,
|
|
253
|
-
configurable: true,
|
|
254
|
-
writable: true
|
|
255
|
-
});
|
|
256
|
-
} else {
|
|
257
|
-
obj[key] = value;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
return obj;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
/***/ })
|
|
264
|
-
|
|
265
|
-
/******/ });
|
|
266
|
-
/************************************************************************/
|
|
267
|
-
/******/ // The module cache
|
|
268
|
-
/******/ var __webpack_module_cache__ = {};
|
|
269
|
-
/******/
|
|
270
|
-
/******/ // The require function
|
|
271
|
-
/******/ function __webpack_require__(moduleId) {
|
|
272
|
-
/******/ // Check if module is in cache
|
|
273
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
274
|
-
/******/ if (cachedModule !== undefined) {
|
|
275
|
-
/******/ return cachedModule.exports;
|
|
276
|
-
/******/ }
|
|
277
|
-
/******/ // Create a new module (and put it into the cache)
|
|
278
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
279
|
-
/******/ // no module.id needed
|
|
280
|
-
/******/ // no module.loaded needed
|
|
281
|
-
/******/ exports: {}
|
|
282
|
-
/******/ };
|
|
283
|
-
/******/
|
|
284
|
-
/******/ // Execute the module function
|
|
285
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
286
|
-
/******/
|
|
287
|
-
/******/ // Return the exports of the module
|
|
288
|
-
/******/ return module.exports;
|
|
289
|
-
/******/ }
|
|
290
|
-
/******/
|
|
291
|
-
/************************************************************************/
|
|
292
|
-
/******/ /* webpack/runtime/compat get default export */
|
|
293
|
-
/******/ !function() {
|
|
294
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
295
|
-
/******/ __webpack_require__.n = function(module) {
|
|
296
|
-
/******/ var getter = module && module.__esModule ?
|
|
297
|
-
/******/ function() { return module['default']; } :
|
|
298
|
-
/******/ function() { return module; };
|
|
299
|
-
/******/ __webpack_require__.d(getter, { a: getter });
|
|
300
|
-
/******/ return getter;
|
|
301
|
-
/******/ };
|
|
302
|
-
/******/ }();
|
|
303
|
-
/******/
|
|
304
|
-
/******/ /* webpack/runtime/define property getters */
|
|
305
|
-
/******/ !function() {
|
|
306
|
-
/******/ // define getter functions for harmony exports
|
|
307
|
-
/******/ __webpack_require__.d = function(exports, definition) {
|
|
308
|
-
/******/ for(var key in definition) {
|
|
309
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
310
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
311
|
-
/******/ }
|
|
312
|
-
/******/ }
|
|
313
|
-
/******/ };
|
|
314
|
-
/******/ }();
|
|
315
|
-
/******/
|
|
316
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
317
|
-
/******/ !function() {
|
|
318
|
-
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
319
|
-
/******/ }();
|
|
320
|
-
/******/
|
|
321
|
-
/******/ /* webpack/runtime/make namespace object */
|
|
322
|
-
/******/ !function() {
|
|
323
|
-
/******/ // define __esModule on exports
|
|
324
|
-
/******/ __webpack_require__.r = function(exports) {
|
|
325
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
326
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
327
|
-
/******/ }
|
|
328
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
329
|
-
/******/ };
|
|
330
|
-
/******/ }();
|
|
331
|
-
/******/
|
|
332
|
-
/************************************************************************/
|
|
333
|
-
var __webpack_exports__ = {};
|
|
334
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
335
|
-
!function() {
|
|
336
|
-
// ESM COMPAT FLAG
|
|
337
|
-
__webpack_require__.r(__webpack_exports__);
|
|
338
|
-
|
|
339
|
-
// EXPORTS
|
|
340
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
341
|
-
"BoxClipViewModel": function() { return /* reexport */ BoxClipViewModel/* default */.Z; },
|
|
342
|
-
"default": function() { return /* reexport */ BoxClip; }
|
|
343
|
-
});
|
|
344
|
-
|
|
345
|
-
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
346
|
-
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(637);
|
|
347
|
-
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
348
|
-
var gis_utils_ = __webpack_require__(826);
|
|
349
|
-
// EXTERNAL MODULE: ./src/webgl/boxclip/BoxClipViewModel.js
|
|
350
|
-
var BoxClipViewModel = __webpack_require__(219);
|
|
351
375
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
352
376
|
var client_icons_vue_ = __webpack_require__(348);
|
|
353
377
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
@@ -475,7 +499,7 @@ const __default__ = {
|
|
|
475
499
|
axisZ: formItem.clipHeight,
|
|
476
500
|
angle: formItem.clipRotation
|
|
477
501
|
};
|
|
478
|
-
viewModel = new BoxClipViewModel
|
|
502
|
+
viewModel = new BoxClipViewModel(scenceView, options);
|
|
479
503
|
}
|
|
480
504
|
});
|
|
481
505
|
setTimeout(() => {
|