@kq_npm/client3d_webgl_vue 4.0.9-beta → 4.1.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 +84 -24
- package/index.js +733 -98
- package/light/index.js +1 -1
- package/limitheightanalysis/index.js +3 -1
- package/modelexcavate/index.js +568 -0
- package/modelexcavate/style/index.js +3 -0
- package/modelexcavate/style/modelexcavate.css +1 -0
- package/package.json +1 -1
- package/scenceview/index.js +770 -101
- package/sceneset/index.js +393 -7
- package/statusbar/index.js +2 -1
- package/style.css +1 -1
- package/videofusion/index.js +49 -15
- package/videoproject/index.js +50 -21
package/light/index.js
CHANGED
|
@@ -689,7 +689,7 @@ const __default__ = {
|
|
|
689
689
|
class: "rowclass"
|
|
690
690
|
}, {
|
|
691
691
|
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_form_item, {
|
|
692
|
-
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).
|
|
692
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).lightColor
|
|
693
693
|
}, {
|
|
694
694
|
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_row, {
|
|
695
695
|
style: {
|
|
@@ -116,7 +116,9 @@ class LimitHeightAnalysisViewModel {
|
|
|
116
116
|
|
|
117
117
|
|
|
118
118
|
destroy() {
|
|
119
|
-
this.
|
|
119
|
+
this.clear();
|
|
120
|
+
this._drawFinishedEventListener && this._drawFinishedEventListener();
|
|
121
|
+
this._drawFinishedEventListener = null;
|
|
120
122
|
}
|
|
121
123
|
|
|
122
124
|
}
|
|
@@ -0,0 +1,568 @@
|
|
|
1
|
+
/******/ (function() { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ var __webpack_modules__ = ({
|
|
4
|
+
|
|
5
|
+
/***/ 1349:
|
|
6
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
7
|
+
|
|
8
|
+
/* harmony import */ var element_plus_es__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2442);
|
|
9
|
+
/* harmony import */ var element_plus_es__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(element_plus_es__WEBPACK_IMPORTED_MODULE_0__);
|
|
10
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5406);
|
|
11
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_1__);
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
element_plus_es__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
|
|
16
|
+
_init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
|
|
17
|
+
Vue.component("KqMessage", element_plus_es__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/* harmony default export */ __webpack_exports__["Z"] = (element_plus_es__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
21
|
+
|
|
22
|
+
/***/ }),
|
|
23
|
+
|
|
24
|
+
/***/ 348:
|
|
25
|
+
/***/ (function(module) {
|
|
26
|
+
|
|
27
|
+
module.exports = require("@kq_npm/client_icons_vue");
|
|
28
|
+
|
|
29
|
+
/***/ }),
|
|
30
|
+
|
|
31
|
+
/***/ 2442:
|
|
32
|
+
/***/ (function(module) {
|
|
33
|
+
|
|
34
|
+
module.exports = require("element-plus/es");
|
|
35
|
+
|
|
36
|
+
/***/ }),
|
|
37
|
+
|
|
38
|
+
/***/ 7080:
|
|
39
|
+
/***/ (function(module) {
|
|
40
|
+
|
|
41
|
+
module.exports = require("vue-i18n/dist/vue-i18n.cjs.js");
|
|
42
|
+
|
|
43
|
+
/***/ }),
|
|
44
|
+
|
|
45
|
+
/***/ 826:
|
|
46
|
+
/***/ (function(module) {
|
|
47
|
+
|
|
48
|
+
module.exports = require("@kq_npm/client_common_vue/_utils/gis-utils");
|
|
49
|
+
|
|
50
|
+
/***/ }),
|
|
51
|
+
|
|
52
|
+
/***/ 9519:
|
|
53
|
+
/***/ (function(module) {
|
|
54
|
+
|
|
55
|
+
module.exports = require("@kq_npm/client_common_vue/_utils/util");
|
|
56
|
+
|
|
57
|
+
/***/ }),
|
|
58
|
+
|
|
59
|
+
/***/ 5406:
|
|
60
|
+
/***/ (function(module) {
|
|
61
|
+
|
|
62
|
+
module.exports = require("@kq_npm/client_common_vue/init.js");
|
|
63
|
+
|
|
64
|
+
/***/ }),
|
|
65
|
+
|
|
66
|
+
/***/ 637:
|
|
67
|
+
/***/ (function(module) {
|
|
68
|
+
|
|
69
|
+
module.exports = require("vue");
|
|
70
|
+
|
|
71
|
+
/***/ }),
|
|
72
|
+
|
|
73
|
+
/***/ 8270:
|
|
74
|
+
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
75
|
+
|
|
76
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
77
|
+
/* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
|
|
78
|
+
/* harmony export */ });
|
|
79
|
+
function _defineProperty(obj, key, value) {
|
|
80
|
+
if (key in obj) {
|
|
81
|
+
Object.defineProperty(obj, key, {
|
|
82
|
+
value: value,
|
|
83
|
+
enumerable: true,
|
|
84
|
+
configurable: true,
|
|
85
|
+
writable: true
|
|
86
|
+
});
|
|
87
|
+
} else {
|
|
88
|
+
obj[key] = value;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return obj;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/***/ })
|
|
95
|
+
|
|
96
|
+
/******/ });
|
|
97
|
+
/************************************************************************/
|
|
98
|
+
/******/ // The module cache
|
|
99
|
+
/******/ var __webpack_module_cache__ = {};
|
|
100
|
+
/******/
|
|
101
|
+
/******/ // The require function
|
|
102
|
+
/******/ function __webpack_require__(moduleId) {
|
|
103
|
+
/******/ // Check if module is in cache
|
|
104
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
105
|
+
/******/ if (cachedModule !== undefined) {
|
|
106
|
+
/******/ return cachedModule.exports;
|
|
107
|
+
/******/ }
|
|
108
|
+
/******/ // Create a new module (and put it into the cache)
|
|
109
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
110
|
+
/******/ // no module.id needed
|
|
111
|
+
/******/ // no module.loaded needed
|
|
112
|
+
/******/ exports: {}
|
|
113
|
+
/******/ };
|
|
114
|
+
/******/
|
|
115
|
+
/******/ // Execute the module function
|
|
116
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
117
|
+
/******/
|
|
118
|
+
/******/ // Return the exports of the module
|
|
119
|
+
/******/ return module.exports;
|
|
120
|
+
/******/ }
|
|
121
|
+
/******/
|
|
122
|
+
/************************************************************************/
|
|
123
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
124
|
+
/******/ !function() {
|
|
125
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
126
|
+
/******/ __webpack_require__.n = function(module) {
|
|
127
|
+
/******/ var getter = module && module.__esModule ?
|
|
128
|
+
/******/ function() { return module['default']; } :
|
|
129
|
+
/******/ function() { return module; };
|
|
130
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
131
|
+
/******/ return getter;
|
|
132
|
+
/******/ };
|
|
133
|
+
/******/ }();
|
|
134
|
+
/******/
|
|
135
|
+
/******/ /* webpack/runtime/define property getters */
|
|
136
|
+
/******/ !function() {
|
|
137
|
+
/******/ // define getter functions for harmony exports
|
|
138
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
139
|
+
/******/ for(var key in definition) {
|
|
140
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
141
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
142
|
+
/******/ }
|
|
143
|
+
/******/ }
|
|
144
|
+
/******/ };
|
|
145
|
+
/******/ }();
|
|
146
|
+
/******/
|
|
147
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
148
|
+
/******/ !function() {
|
|
149
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
150
|
+
/******/ }();
|
|
151
|
+
/******/
|
|
152
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
153
|
+
/******/ !function() {
|
|
154
|
+
/******/ // define __esModule on exports
|
|
155
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
156
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
157
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
158
|
+
/******/ }
|
|
159
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
160
|
+
/******/ };
|
|
161
|
+
/******/ }();
|
|
162
|
+
/******/
|
|
163
|
+
/************************************************************************/
|
|
164
|
+
var __webpack_exports__ = {};
|
|
165
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
166
|
+
!function() {
|
|
167
|
+
// ESM COMPAT FLAG
|
|
168
|
+
__webpack_require__.r(__webpack_exports__);
|
|
169
|
+
|
|
170
|
+
// EXPORTS
|
|
171
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
172
|
+
"ModelExcavateViewModel": function() { return /* reexport */ ModelExcavateViewModel; },
|
|
173
|
+
"default": function() { return /* reexport */ ModelExcavate; }
|
|
174
|
+
});
|
|
175
|
+
|
|
176
|
+
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
177
|
+
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(637);
|
|
178
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
179
|
+
var gis_utils_ = __webpack_require__(826);
|
|
180
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
181
|
+
var defineProperty = __webpack_require__(8270);
|
|
182
|
+
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
183
|
+
var message = __webpack_require__(1349);
|
|
184
|
+
;// CONCATENATED MODULE: ./src/webgl/modelexcavate/ModelExcavateViewModel.js
|
|
185
|
+
|
|
186
|
+
//模型开挖逻辑类
|
|
187
|
+
|
|
188
|
+
class ModelExcavateViewModel {
|
|
189
|
+
//三维viewer对象
|
|
190
|
+
//Box裁剪存储参数对象
|
|
191
|
+
//绘制管理对象
|
|
192
|
+
//绘制完成监听事件
|
|
193
|
+
constructor(scenceView, options) {
|
|
194
|
+
(0,defineProperty/* default */.Z)(this, "_viewer", null);
|
|
195
|
+
|
|
196
|
+
(0,defineProperty/* default */.Z)(this, "_options", {});
|
|
197
|
+
|
|
198
|
+
(0,defineProperty/* default */.Z)(this, "_Kq3dTerrainExcavation", null);
|
|
199
|
+
|
|
200
|
+
(0,defineProperty/* default */.Z)(this, "_drawManager", null);
|
|
201
|
+
|
|
202
|
+
(0,defineProperty/* default */.Z)(this, "_removeEventListener", null);
|
|
203
|
+
|
|
204
|
+
this._viewer = scenceView._viewer;
|
|
205
|
+
this._options = options;
|
|
206
|
+
this._drawManager = scenceView._drawManager;
|
|
207
|
+
this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
|
|
208
|
+
// var kq3dFlattenning = new window.Cesium.Kq3dFlattenning(this._viewer, {});
|
|
209
|
+
// var g_flattenedPolygonTexture = kq3dFlattenning.createFlattenedPolygonTexture();
|
|
210
|
+
|
|
211
|
+
var that = this;
|
|
212
|
+
this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
213
|
+
if (shape) {
|
|
214
|
+
that._options.positions = shape._controlPoints;
|
|
215
|
+
this._Kq3dTerrainExcavation = this._Kq3dTerrainExcavation && this._Kq3dTerrainExcavation.destroy();
|
|
216
|
+
this._Kq3dTerrainExcavation = new window.Cesium.Kq3dTerrainExcavation({
|
|
217
|
+
viewer: this.viewer,
|
|
218
|
+
height: this._options.height,
|
|
219
|
+
positions: that._options.positions,
|
|
220
|
+
hasWall: false
|
|
221
|
+
});
|
|
222
|
+
|
|
223
|
+
that._drawManager.clear();
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
start() {
|
|
229
|
+
// 判断是否添加了模型
|
|
230
|
+
var flag = false;
|
|
231
|
+
var models = this._viewer.scene.primitives._primitives;
|
|
232
|
+
|
|
233
|
+
for (let i = 0; i < models.length; i++) {
|
|
234
|
+
if (models[i]._url) {
|
|
235
|
+
flag = true;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
if (flag) {
|
|
240
|
+
this.clear();
|
|
241
|
+
|
|
242
|
+
this._drawManager.startDraw("polygon", {
|
|
243
|
+
clampToGround: true
|
|
244
|
+
});
|
|
245
|
+
} else {
|
|
246
|
+
(0,message/* default */.Z)({
|
|
247
|
+
message: "请添加模型后拾取!",
|
|
248
|
+
type: "warning"
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
} //清除
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
clear() {
|
|
255
|
+
this._drawManager.stopDraw(); // 销毁地形开挖
|
|
256
|
+
|
|
257
|
+
} //销毁
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
destroy() {
|
|
261
|
+
this.clear();
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
}
|
|
265
|
+
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
266
|
+
var client_icons_vue_ = __webpack_require__(348);
|
|
267
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
268
|
+
var util_ = __webpack_require__(9519);
|
|
269
|
+
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
270
|
+
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
271
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/modelexcavate/ModelExcavate.vue?vue&type=script&setup=true&lang=js
|
|
272
|
+
|
|
273
|
+
const _hoisted_1 = {
|
|
274
|
+
class: "kq3d-model-excavate-box",
|
|
275
|
+
ref: "ref_box"
|
|
276
|
+
};
|
|
277
|
+
const _hoisted_2 = {
|
|
278
|
+
class: "kq3d-model-excavate-span"
|
|
279
|
+
};
|
|
280
|
+
const _hoisted_3 = {
|
|
281
|
+
class: "kq3d-model-excavate-footer"
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
//语言
|
|
289
|
+
|
|
290
|
+
const __default__ = {
|
|
291
|
+
name: "Kq3dModelExcavate"
|
|
292
|
+
};
|
|
293
|
+
/* harmony default export */ var ModelExcavatevue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
294
|
+
props: {
|
|
295
|
+
//指定组件绑定的viewer对象的div的id
|
|
296
|
+
mapTarget: String,
|
|
297
|
+
// 设置参数
|
|
298
|
+
settingParams: {
|
|
299
|
+
type: Object
|
|
300
|
+
},
|
|
301
|
+
// 是否显示阴影效果
|
|
302
|
+
showShadow: {
|
|
303
|
+
type: Boolean,
|
|
304
|
+
default: true
|
|
305
|
+
},
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
309
|
+
*/
|
|
310
|
+
position: [String, Object],
|
|
311
|
+
// 是否生成HeaderTemp
|
|
312
|
+
showHeaderTemp: {
|
|
313
|
+
type: Boolean,
|
|
314
|
+
default: false
|
|
315
|
+
},
|
|
316
|
+
// 是否折叠HeaderTemp,showHeaderTemp为true时生效
|
|
317
|
+
isCollapseHeaderTemp: {
|
|
318
|
+
type: Boolean,
|
|
319
|
+
default: false
|
|
320
|
+
},
|
|
321
|
+
// HeaderTemp标题
|
|
322
|
+
headerTempTitle: {
|
|
323
|
+
type: String
|
|
324
|
+
},
|
|
325
|
+
// HeaderTemp图标
|
|
326
|
+
headerTempIcon: {
|
|
327
|
+
type: [Object, String],
|
|
328
|
+
default: client_icons_vue_.IconModelExcavation
|
|
329
|
+
},
|
|
330
|
+
// HeaderTemp Title&Icon的位置
|
|
331
|
+
isRight: {
|
|
332
|
+
type: Boolean,
|
|
333
|
+
default: true
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
|
|
337
|
+
setup(__props, {
|
|
338
|
+
expose
|
|
339
|
+
}) {
|
|
340
|
+
const props = __props;
|
|
341
|
+
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
342
|
+
let viewModel = null;
|
|
343
|
+
let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(""); // 获取组件传参
|
|
344
|
+
|
|
345
|
+
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
346
|
+
excavationDepth: props.settingParams && props.settingParams.excavationDepth || 20,
|
|
347
|
+
// 地形开挖深度
|
|
348
|
+
minExcavationDepth: props.settingParams && props.settingParams.minExcavationDepth || 0,
|
|
349
|
+
// 地形开挖深度范围最小值
|
|
350
|
+
maxExcavationDepth: props.settingParams && props.settingParams.maxExcavationDepth || 100 // 地形开挖深度范围最大值
|
|
351
|
+
|
|
352
|
+
}); // 组件容器Ref
|
|
353
|
+
|
|
354
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
355
|
+
|
|
356
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
357
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 国际化
|
|
358
|
+
|
|
359
|
+
let {
|
|
360
|
+
locale,
|
|
361
|
+
messages
|
|
362
|
+
} = (0,vue_i18n_cjs_js_.useI18n)();
|
|
363
|
+
let headerTempTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
364
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => locale.value, (newVal, oldVal) => {
|
|
365
|
+
language.value = messages.value[newVal]["webgl"];
|
|
366
|
+
headerTempTitle.value = language.value.modelExcavateTitle;
|
|
367
|
+
});
|
|
368
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
369
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
370
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
371
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
372
|
+
});
|
|
373
|
+
watchCreateHeaderTemp();
|
|
374
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
375
|
+
watchCreateHeaderTemp();
|
|
376
|
+
}); //父组件ScenceView初始化完成后执行
|
|
377
|
+
|
|
378
|
+
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
379
|
+
if (scenceView) {
|
|
380
|
+
viewModel = new ModelExcavateViewModel(scenceView, {
|
|
381
|
+
excavationDepth: formItem.excavationDepth
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
});
|
|
385
|
+
});
|
|
386
|
+
/**
|
|
387
|
+
* @description 监听header生成
|
|
388
|
+
*/
|
|
389
|
+
|
|
390
|
+
const watchCreateHeaderTemp = () => {
|
|
391
|
+
if (props.showHeaderTemp) {
|
|
392
|
+
// 生成headerTemp
|
|
393
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
394
|
+
}
|
|
395
|
+
}; // 调整开挖深度
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
function changeHeight() {
|
|
399
|
+
viewModel && viewModel.setHeight(formItem.excavationDepth);
|
|
400
|
+
} // 开始分析
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
function startOperation() {
|
|
404
|
+
viewModel && viewModel.start();
|
|
405
|
+
} // 清除
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
function clear() {
|
|
409
|
+
viewModel && viewModel.clear();
|
|
410
|
+
} // 销毁
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
414
|
+
viewModel && viewModel.destroy();
|
|
415
|
+
});
|
|
416
|
+
expose({
|
|
417
|
+
clear
|
|
418
|
+
});
|
|
419
|
+
return (_ctx, _cache) => {
|
|
420
|
+
const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
|
|
421
|
+
|
|
422
|
+
const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
|
|
423
|
+
|
|
424
|
+
const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
|
|
425
|
+
|
|
426
|
+
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
427
|
+
|
|
428
|
+
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
429
|
+
|
|
430
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
431
|
+
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-model-excavate", {
|
|
432
|
+
'kq-box-shadow': __props.showShadow
|
|
433
|
+
}]),
|
|
434
|
+
ref_key: "boxRef",
|
|
435
|
+
ref: boxRef
|
|
436
|
+
}, [__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)), {
|
|
437
|
+
key: 0,
|
|
438
|
+
ref_key: "headerTempRef",
|
|
439
|
+
ref: headerTempRef
|
|
440
|
+
}, null, 512
|
|
441
|
+
/* NEED_PATCH */
|
|
442
|
+
)) : (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, {
|
|
443
|
+
gutter: 10
|
|
444
|
+
}, {
|
|
445
|
+
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, {
|
|
446
|
+
span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 7 : 10
|
|
447
|
+
}, {
|
|
448
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", _hoisted_2, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).excavationDepth), 1
|
|
449
|
+
/* TEXT */
|
|
450
|
+
)]),
|
|
451
|
+
_: 1
|
|
452
|
+
/* STABLE */
|
|
453
|
+
|
|
454
|
+
}, 8
|
|
455
|
+
/* PROPS */
|
|
456
|
+
, ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
457
|
+
span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 11 : 8
|
|
458
|
+
}, {
|
|
459
|
+
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_slider, {
|
|
460
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).excavationDepth,
|
|
461
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).excavationDepth = $event),
|
|
462
|
+
step: 100,
|
|
463
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minExcavationDepth,
|
|
464
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxExcavationDepth,
|
|
465
|
+
onChange: _cache[1] || (_cache[1] = $event => changeHeight()),
|
|
466
|
+
onClick: _cache[2] || (_cache[2] = $event => changeHeight())
|
|
467
|
+
}, null, 8
|
|
468
|
+
/* PROPS */
|
|
469
|
+
, ["modelValue", "min", "max"])]),
|
|
470
|
+
_: 1
|
|
471
|
+
/* STABLE */
|
|
472
|
+
|
|
473
|
+
}, 8
|
|
474
|
+
/* PROPS */
|
|
475
|
+
, ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
476
|
+
span: 6,
|
|
477
|
+
style: {
|
|
478
|
+
"text-align": "end"
|
|
479
|
+
}
|
|
480
|
+
}, {
|
|
481
|
+
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_input_number, {
|
|
482
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).excavationDepth,
|
|
483
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).excavationDepth = $event),
|
|
484
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minExcavationDepth,
|
|
485
|
+
step: 1,
|
|
486
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxExcavationDepth,
|
|
487
|
+
"controls-position": "right",
|
|
488
|
+
onInput: _cache[4] || (_cache[4] = $event => changeHeight())
|
|
489
|
+
}, null, 8
|
|
490
|
+
/* PROPS */
|
|
491
|
+
, ["modelValue", "min", "max"])]),
|
|
492
|
+
_: 1
|
|
493
|
+
/* STABLE */
|
|
494
|
+
|
|
495
|
+
})]),
|
|
496
|
+
_: 1
|
|
497
|
+
/* STABLE */
|
|
498
|
+
|
|
499
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
500
|
+
class: "kq3d-model-excavate-tip"
|
|
501
|
+
}, {
|
|
502
|
+
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).skylineTips), 1
|
|
503
|
+
/* TEXT */
|
|
504
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)(" <p v-if=\"formItem.terrainStyle === 2\">{{ \"(\" + language.reverseDrawPolygon + \")\" }}</p> ")]),
|
|
505
|
+
_: 1
|
|
506
|
+
/* STABLE */
|
|
507
|
+
|
|
508
|
+
}), (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, {
|
|
509
|
+
onClick: _cache[5] || (_cache[5] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startOperation(), ["stop"])),
|
|
510
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startOperation,
|
|
511
|
+
type: "primary"
|
|
512
|
+
}, {
|
|
513
|
+
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).startOperation), 1
|
|
514
|
+
/* TEXT */
|
|
515
|
+
)]),
|
|
516
|
+
_: 1
|
|
517
|
+
/* STABLE */
|
|
518
|
+
|
|
519
|
+
}, 8
|
|
520
|
+
/* PROPS */
|
|
521
|
+
, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
522
|
+
onClick: _cache[6] || (_cache[6] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clear(), ["stop"])),
|
|
523
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear
|
|
524
|
+
}, {
|
|
525
|
+
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).clear), 1
|
|
526
|
+
/* TEXT */
|
|
527
|
+
)]),
|
|
528
|
+
_: 1
|
|
529
|
+
/* STABLE */
|
|
530
|
+
|
|
531
|
+
}, 8
|
|
532
|
+
/* PROPS */
|
|
533
|
+
, ["title"])])], 512
|
|
534
|
+
/* NEED_PATCH */
|
|
535
|
+
)], 2
|
|
536
|
+
/* CLASS */
|
|
537
|
+
);
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
}));
|
|
542
|
+
;// CONCATENATED MODULE: ./src/webgl/modelexcavate/ModelExcavate.vue?vue&type=script&setup=true&lang=js
|
|
543
|
+
|
|
544
|
+
;// CONCATENATED MODULE: ./src/webgl/modelexcavate/ModelExcavate.vue
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
const __exports__ = ModelExcavatevue_type_script_setup_true_lang_js;
|
|
549
|
+
|
|
550
|
+
/* harmony default export */ var ModelExcavate = (__exports__);
|
|
551
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
552
|
+
var init_js_ = __webpack_require__(5406);
|
|
553
|
+
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
554
|
+
;// CONCATENATED MODULE: ./src/webgl/modelexcavate/index.js
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
ModelExcavate.install = (Vue, opts) => {
|
|
560
|
+
init_js_default()(Vue, opts);
|
|
561
|
+
Vue.component(ModelExcavate.name, ModelExcavate);
|
|
562
|
+
};
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
}();
|
|
566
|
+
module.exports = __webpack_exports__;
|
|
567
|
+
/******/ })()
|
|
568
|
+
;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.kq3d-model-excavate{z-index:999;border-radius:var(--kq-border-radius-base);padding:16px;pointer-events:auto;cursor:default;background-color:var(--kq-bg-color)}.kq3d-model-excavate .kq3d-model-excavate-box{width:350px}.kq3d-model-excavate .kq-form-item,.kq3d-model-excavate .kq-row{margin-bottom:8px}.kq3d-model-excavate .kq3d-model-excavate-span{line-height:32px}.kq3d-model-excavate .kq3d-model-excavate-span,.kq3d-model-excavate .kq3d-model-excavate-tip{color:var(--kq-text-color-regular);font-size:var(--kq-font-size-base)}.kq3d-model-excavate .kq3d-model-excavate-tip p{margin:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-font-feature-settings:"tnum" on,"lnum" on;font-feature-settings:"tnum" on,"lnum" on;font-family:Noto Sans SC;font-style:normal;font-weight:400}.kq3d-model-excavate .kq-slider{width:100%}.kq3d-model-excavate .kq-slider .kq-slider__button{width:14px;height:14px}.kq3d-model-excavate .kq-input-number.is-controls-right{width:65px}.kq3d-model-excavate .kq-input-number.is-controls-right .kq-input-number__decrease,.kq3d-model-excavate .kq-input-number.is-controls-right .kq-input-number__increase{width:20px}.kq3d-model-excavate .kq-col-8 .kq-input-number .kq-input__wrapper,.kq3d-model-excavate .kq-input-number.is-controls-right .kq-input__wrapper{padding-left:0;padding-right:20px}.kq3d-model-excavate .kq3d-model-excavate-footer{text-align:right;padding:8px 0 0}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"4.
|
|
1
|
+
{"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"4.1.1-beta","homepage":"","keywords":["KQGIS","webGL","Vue"],"restrictedVersion":true,"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.0","echarts-stat":"1.2.0","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"}}
|