@kq_npm/client3d_webgl_vue 4.0.8-beta → 4.1.0-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/adddata/index.js +277 -86
- package/index.js +548 -132
- package/light/index.js +1 -1
- package/limitheightanalysis/index.js +3 -1
- package/package.json +1 -1
- package/scenceview/index.js +557 -138
- package/sceneset/index.js +393 -7
- package/videofusion/index.js +49 -15
- package/videoproject/index.js +50 -21
package/sceneset/index.js
CHANGED
|
@@ -2,6 +2,369 @@
|
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ var __webpack_modules__ = ({
|
|
4
4
|
|
|
5
|
+
/***/ 7705:
|
|
6
|
+
/***/ (function(module) {
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
11
|
+
Author Tobias Koppers @sokra
|
|
12
|
+
*/
|
|
13
|
+
// css base code, injected by the css-loader
|
|
14
|
+
// eslint-disable-next-line func-names
|
|
15
|
+
|
|
16
|
+
module.exports = function (cssWithMappingToString) {
|
|
17
|
+
var list = []; // return the list of modules as css string
|
|
18
|
+
|
|
19
|
+
list.toString = function toString() {
|
|
20
|
+
return this.map(function (item) {
|
|
21
|
+
var content = cssWithMappingToString(item);
|
|
22
|
+
|
|
23
|
+
if (item[2]) {
|
|
24
|
+
return "@media ".concat(item[2], " {").concat(content, "}");
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
return content;
|
|
28
|
+
}).join("");
|
|
29
|
+
}; // import a list of modules into the list
|
|
30
|
+
// eslint-disable-next-line func-names
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
list.i = function (modules, mediaQuery, dedupe) {
|
|
34
|
+
if (typeof modules === "string") {
|
|
35
|
+
// eslint-disable-next-line no-param-reassign
|
|
36
|
+
modules = [[null, modules, ""]];
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
var alreadyImportedModules = {};
|
|
40
|
+
|
|
41
|
+
if (dedupe) {
|
|
42
|
+
for (var i = 0; i < this.length; i++) {
|
|
43
|
+
// eslint-disable-next-line prefer-destructuring
|
|
44
|
+
var id = this[i][0];
|
|
45
|
+
|
|
46
|
+
if (id != null) {
|
|
47
|
+
alreadyImportedModules[id] = true;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
for (var _i = 0; _i < modules.length; _i++) {
|
|
53
|
+
var item = [].concat(modules[_i]);
|
|
54
|
+
|
|
55
|
+
if (dedupe && alreadyImportedModules[item[0]]) {
|
|
56
|
+
// eslint-disable-next-line no-continue
|
|
57
|
+
continue;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
if (mediaQuery) {
|
|
61
|
+
if (!item[2]) {
|
|
62
|
+
item[2] = mediaQuery;
|
|
63
|
+
} else {
|
|
64
|
+
item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
list.push(item);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
return list;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/***/ }),
|
|
76
|
+
|
|
77
|
+
/***/ 3825:
|
|
78
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
79
|
+
|
|
80
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7705);
|
|
81
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
82
|
+
// Imports
|
|
83
|
+
|
|
84
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
85
|
+
// Module
|
|
86
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".cesium-performanceDisplay-defaultContainer{top:unset !important;bottom:16px;right:64px !important}", ""]);
|
|
87
|
+
// Exports
|
|
88
|
+
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/***/ }),
|
|
92
|
+
|
|
93
|
+
/***/ 3379:
|
|
94
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
var isOldIE = function isOldIE() {
|
|
99
|
+
var memo;
|
|
100
|
+
return function memorize() {
|
|
101
|
+
if (typeof memo === 'undefined') {
|
|
102
|
+
// Test for IE <= 9 as proposed by Browserhacks
|
|
103
|
+
// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
|
|
104
|
+
// Tests for existence of standard globals is to allow style-loader
|
|
105
|
+
// to operate correctly into non-standard environments
|
|
106
|
+
// @see https://github.com/webpack-contrib/style-loader/issues/177
|
|
107
|
+
memo = Boolean(window && document && document.all && !window.atob);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
return memo;
|
|
111
|
+
};
|
|
112
|
+
}();
|
|
113
|
+
|
|
114
|
+
var getTarget = function getTarget() {
|
|
115
|
+
var memo = {};
|
|
116
|
+
return function memorize(target) {
|
|
117
|
+
if (typeof memo[target] === 'undefined') {
|
|
118
|
+
var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself
|
|
119
|
+
|
|
120
|
+
if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
|
|
121
|
+
try {
|
|
122
|
+
// This will throw an exception if access to iframe is blocked
|
|
123
|
+
// due to cross-origin restrictions
|
|
124
|
+
styleTarget = styleTarget.contentDocument.head;
|
|
125
|
+
} catch (e) {
|
|
126
|
+
// istanbul ignore next
|
|
127
|
+
styleTarget = null;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
memo[target] = styleTarget;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
return memo[target];
|
|
135
|
+
};
|
|
136
|
+
}();
|
|
137
|
+
|
|
138
|
+
var stylesInDom = [];
|
|
139
|
+
|
|
140
|
+
function getIndexByIdentifier(identifier) {
|
|
141
|
+
var result = -1;
|
|
142
|
+
|
|
143
|
+
for (var i = 0; i < stylesInDom.length; i++) {
|
|
144
|
+
if (stylesInDom[i].identifier === identifier) {
|
|
145
|
+
result = i;
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
return result;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
function modulesToDom(list, options) {
|
|
154
|
+
var idCountMap = {};
|
|
155
|
+
var identifiers = [];
|
|
156
|
+
|
|
157
|
+
for (var i = 0; i < list.length; i++) {
|
|
158
|
+
var item = list[i];
|
|
159
|
+
var id = options.base ? item[0] + options.base : item[0];
|
|
160
|
+
var count = idCountMap[id] || 0;
|
|
161
|
+
var identifier = "".concat(id, " ").concat(count);
|
|
162
|
+
idCountMap[id] = count + 1;
|
|
163
|
+
var index = getIndexByIdentifier(identifier);
|
|
164
|
+
var obj = {
|
|
165
|
+
css: item[1],
|
|
166
|
+
media: item[2],
|
|
167
|
+
sourceMap: item[3]
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
if (index !== -1) {
|
|
171
|
+
stylesInDom[index].references++;
|
|
172
|
+
stylesInDom[index].updater(obj);
|
|
173
|
+
} else {
|
|
174
|
+
stylesInDom.push({
|
|
175
|
+
identifier: identifier,
|
|
176
|
+
updater: addStyle(obj, options),
|
|
177
|
+
references: 1
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
identifiers.push(identifier);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
return identifiers;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
function insertStyleElement(options) {
|
|
188
|
+
var style = document.createElement('style');
|
|
189
|
+
var attributes = options.attributes || {};
|
|
190
|
+
|
|
191
|
+
if (typeof attributes.nonce === 'undefined') {
|
|
192
|
+
var nonce = true ? __webpack_require__.nc : 0;
|
|
193
|
+
|
|
194
|
+
if (nonce) {
|
|
195
|
+
attributes.nonce = nonce;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
Object.keys(attributes).forEach(function (key) {
|
|
200
|
+
style.setAttribute(key, attributes[key]);
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
if (typeof options.insert === 'function') {
|
|
204
|
+
options.insert(style);
|
|
205
|
+
} else {
|
|
206
|
+
var target = getTarget(options.insert || 'head');
|
|
207
|
+
|
|
208
|
+
if (!target) {
|
|
209
|
+
throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
target.appendChild(style);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
return style;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
function removeStyleElement(style) {
|
|
219
|
+
// istanbul ignore if
|
|
220
|
+
if (style.parentNode === null) {
|
|
221
|
+
return false;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
style.parentNode.removeChild(style);
|
|
225
|
+
}
|
|
226
|
+
/* istanbul ignore next */
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
var replaceText = function replaceText() {
|
|
230
|
+
var textStore = [];
|
|
231
|
+
return function replace(index, replacement) {
|
|
232
|
+
textStore[index] = replacement;
|
|
233
|
+
return textStore.filter(Boolean).join('\n');
|
|
234
|
+
};
|
|
235
|
+
}();
|
|
236
|
+
|
|
237
|
+
function applyToSingletonTag(style, index, remove, obj) {
|
|
238
|
+
var css = remove ? '' : obj.media ? "@media ".concat(obj.media, " {").concat(obj.css, "}") : obj.css; // For old IE
|
|
239
|
+
|
|
240
|
+
/* istanbul ignore if */
|
|
241
|
+
|
|
242
|
+
if (style.styleSheet) {
|
|
243
|
+
style.styleSheet.cssText = replaceText(index, css);
|
|
244
|
+
} else {
|
|
245
|
+
var cssNode = document.createTextNode(css);
|
|
246
|
+
var childNodes = style.childNodes;
|
|
247
|
+
|
|
248
|
+
if (childNodes[index]) {
|
|
249
|
+
style.removeChild(childNodes[index]);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
if (childNodes.length) {
|
|
253
|
+
style.insertBefore(cssNode, childNodes[index]);
|
|
254
|
+
} else {
|
|
255
|
+
style.appendChild(cssNode);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
function applyToTag(style, options, obj) {
|
|
261
|
+
var css = obj.css;
|
|
262
|
+
var media = obj.media;
|
|
263
|
+
var sourceMap = obj.sourceMap;
|
|
264
|
+
|
|
265
|
+
if (media) {
|
|
266
|
+
style.setAttribute('media', media);
|
|
267
|
+
} else {
|
|
268
|
+
style.removeAttribute('media');
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
if (sourceMap && typeof btoa !== 'undefined') {
|
|
272
|
+
css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
|
|
273
|
+
} // For old IE
|
|
274
|
+
|
|
275
|
+
/* istanbul ignore if */
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
if (style.styleSheet) {
|
|
279
|
+
style.styleSheet.cssText = css;
|
|
280
|
+
} else {
|
|
281
|
+
while (style.firstChild) {
|
|
282
|
+
style.removeChild(style.firstChild);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
style.appendChild(document.createTextNode(css));
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
var singleton = null;
|
|
290
|
+
var singletonCounter = 0;
|
|
291
|
+
|
|
292
|
+
function addStyle(obj, options) {
|
|
293
|
+
var style;
|
|
294
|
+
var update;
|
|
295
|
+
var remove;
|
|
296
|
+
|
|
297
|
+
if (options.singleton) {
|
|
298
|
+
var styleIndex = singletonCounter++;
|
|
299
|
+
style = singleton || (singleton = insertStyleElement(options));
|
|
300
|
+
update = applyToSingletonTag.bind(null, style, styleIndex, false);
|
|
301
|
+
remove = applyToSingletonTag.bind(null, style, styleIndex, true);
|
|
302
|
+
} else {
|
|
303
|
+
style = insertStyleElement(options);
|
|
304
|
+
update = applyToTag.bind(null, style, options);
|
|
305
|
+
|
|
306
|
+
remove = function remove() {
|
|
307
|
+
removeStyleElement(style);
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
update(obj);
|
|
312
|
+
return function updateStyle(newObj) {
|
|
313
|
+
if (newObj) {
|
|
314
|
+
if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
update(obj = newObj);
|
|
319
|
+
} else {
|
|
320
|
+
remove();
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
module.exports = function (list, options) {
|
|
326
|
+
options = options || {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
|
|
327
|
+
// tags it will allow on a page
|
|
328
|
+
|
|
329
|
+
if (!options.singleton && typeof options.singleton !== 'boolean') {
|
|
330
|
+
options.singleton = isOldIE();
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
list = list || [];
|
|
334
|
+
var lastIdentifiers = modulesToDom(list, options);
|
|
335
|
+
return function update(newList) {
|
|
336
|
+
newList = newList || [];
|
|
337
|
+
|
|
338
|
+
if (Object.prototype.toString.call(newList) !== '[object Array]') {
|
|
339
|
+
return;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
for (var i = 0; i < lastIdentifiers.length; i++) {
|
|
343
|
+
var identifier = lastIdentifiers[i];
|
|
344
|
+
var index = getIndexByIdentifier(identifier);
|
|
345
|
+
stylesInDom[index].references--;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
var newLastIdentifiers = modulesToDom(newList, options);
|
|
349
|
+
|
|
350
|
+
for (var _i = 0; _i < lastIdentifiers.length; _i++) {
|
|
351
|
+
var _identifier = lastIdentifiers[_i];
|
|
352
|
+
|
|
353
|
+
var _index = getIndexByIdentifier(_identifier);
|
|
354
|
+
|
|
355
|
+
if (stylesInDom[_index].references === 0) {
|
|
356
|
+
stylesInDom[_index].updater();
|
|
357
|
+
|
|
358
|
+
stylesInDom.splice(_index, 1);
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
lastIdentifiers = newLastIdentifiers;
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
|
|
366
|
+
/***/ }),
|
|
367
|
+
|
|
5
368
|
/***/ 348:
|
|
6
369
|
/***/ (function(module) {
|
|
7
370
|
|
|
@@ -81,7 +444,7 @@ function _defineProperty(obj, key, value) {
|
|
|
81
444
|
/******/ }
|
|
82
445
|
/******/ // Create a new module (and put it into the cache)
|
|
83
446
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
84
|
-
/******/
|
|
447
|
+
/******/ id: moduleId,
|
|
85
448
|
/******/ // no module.loaded needed
|
|
86
449
|
/******/ exports: {}
|
|
87
450
|
/******/ };
|
|
@@ -134,6 +497,11 @@ function _defineProperty(obj, key, value) {
|
|
|
134
497
|
/******/ };
|
|
135
498
|
/******/ }();
|
|
136
499
|
/******/
|
|
500
|
+
/******/ /* webpack/runtime/nonce */
|
|
501
|
+
/******/ !function() {
|
|
502
|
+
/******/ __webpack_require__.nc = undefined;
|
|
503
|
+
/******/ }();
|
|
504
|
+
/******/
|
|
137
505
|
/************************************************************************/
|
|
138
506
|
var __webpack_exports__ = {};
|
|
139
507
|
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
@@ -207,6 +575,7 @@ class SceneSetViewModel {
|
|
|
207
575
|
|
|
208
576
|
this._viewer = viewer;
|
|
209
577
|
this._defaultSkyBox = viewer.scene.skyBox;
|
|
578
|
+
this._undergroundManager = new Cesium.Kq3dUndergroundManager(this._viewer.scene);
|
|
210
579
|
} // 获取场景内容
|
|
211
580
|
|
|
212
581
|
|
|
@@ -562,8 +931,6 @@ class SceneSetViewModel {
|
|
|
562
931
|
|
|
563
932
|
|
|
564
933
|
showGrid(type) {
|
|
565
|
-
console.log(this._viewer.scene.kq3dUndergroundManager);
|
|
566
|
-
|
|
567
934
|
if (this._gridLayer) {
|
|
568
935
|
this._viewer.imageryLayers.remove(this._gridLayer);
|
|
569
936
|
|
|
@@ -587,10 +954,6 @@ class SceneSetViewModel {
|
|
|
587
954
|
|
|
588
955
|
|
|
589
956
|
openUnderground(isOpen) {
|
|
590
|
-
if (!this._undergroundManager) {
|
|
591
|
-
this._undergroundManager = new Cesium.Kq3dUndergroundManager(this._viewer.scene);
|
|
592
|
-
}
|
|
593
|
-
|
|
594
957
|
this._undergroundManager.undergroundEnabled = isOpen;
|
|
595
958
|
this._undergroundManager.transparentEnabled = isOpen;
|
|
596
959
|
} // 设置地表透明度
|
|
@@ -2070,10 +2433,33 @@ const __default__ = {
|
|
|
2070
2433
|
}));
|
|
2071
2434
|
;// CONCATENATED MODULE: ./src/webgl/sceneset/SceneSet.vue?vue&type=script&setup=true&lang=js
|
|
2072
2435
|
|
|
2436
|
+
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
|
|
2437
|
+
var injectStylesIntoStyleTag = __webpack_require__(3379);
|
|
2438
|
+
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
|
|
2439
|
+
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/sceneset/SceneSet.vue?vue&type=style&index=0&id=8e9dc1cc&lang=scss
|
|
2440
|
+
var SceneSetvue_type_style_index_0_id_8e9dc1cc_lang_scss = __webpack_require__(3825);
|
|
2441
|
+
;// CONCATENATED MODULE: ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/sceneset/SceneSet.vue?vue&type=style&index=0&id=8e9dc1cc&lang=scss
|
|
2442
|
+
|
|
2443
|
+
|
|
2444
|
+
|
|
2445
|
+
var options = {};
|
|
2446
|
+
|
|
2447
|
+
options.insert = "head";
|
|
2448
|
+
options.singleton = false;
|
|
2449
|
+
|
|
2450
|
+
var update = injectStylesIntoStyleTag_default()(SceneSetvue_type_style_index_0_id_8e9dc1cc_lang_scss/* default */.Z, options);
|
|
2451
|
+
|
|
2452
|
+
|
|
2453
|
+
|
|
2454
|
+
/* harmony default export */ var sceneset_SceneSetvue_type_style_index_0_id_8e9dc1cc_lang_scss = (SceneSetvue_type_style_index_0_id_8e9dc1cc_lang_scss/* default.locals */.Z.locals || {});
|
|
2455
|
+
;// CONCATENATED MODULE: ./src/webgl/sceneset/SceneSet.vue?vue&type=style&index=0&id=8e9dc1cc&lang=scss
|
|
2456
|
+
|
|
2073
2457
|
;// CONCATENATED MODULE: ./src/webgl/sceneset/SceneSet.vue
|
|
2074
2458
|
|
|
2075
2459
|
|
|
2076
2460
|
|
|
2461
|
+
;
|
|
2462
|
+
|
|
2077
2463
|
const __exports__ = SceneSetvue_type_script_setup_true_lang_js;
|
|
2078
2464
|
|
|
2079
2465
|
/* harmony default export */ var SceneSet = (__exports__);
|
package/videofusion/index.js
CHANGED
|
@@ -50,11 +50,20 @@ class VideoFusiontViewModel {
|
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
fusion() {
|
|
53
|
+
let type = 3;
|
|
54
|
+
|
|
55
|
+
if (this._options.videoPath.indexOf('.m3u8') > 0) {
|
|
56
|
+
type = 5;
|
|
57
|
+
}
|
|
58
|
+
|
|
53
59
|
this.clear();
|
|
54
60
|
let cartographic = Cesium.Cartographic.fromCartesian(this._viewer.camera.positionWC);
|
|
61
|
+
this._options.heading = Cesium.Math.toDegrees(this._viewer.camera.heading);
|
|
62
|
+
this._options.pitch = Cesium.Math.toDegrees(this._viewer.camera.pitch);
|
|
63
|
+
this._options.roll = Cesium.Math.toDegrees(this._viewer.camera.roll);
|
|
55
64
|
var param = {
|
|
56
65
|
url: this._options.videoPath,
|
|
57
|
-
type:
|
|
66
|
+
type: type,
|
|
58
67
|
position: {
|
|
59
68
|
x: Cesium.Math.toDegrees(cartographic.longitude),
|
|
60
69
|
y: Cesium.Math.toDegrees(cartographic.latitude),
|
|
@@ -84,6 +93,15 @@ class VideoFusiontViewModel {
|
|
|
84
93
|
if (this._videoFusion) {
|
|
85
94
|
return this._videoFusion.param.position;
|
|
86
95
|
}
|
|
96
|
+
} // 获取HeadingPitchRoll
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
getHeadingPitchRoll() {
|
|
100
|
+
return {
|
|
101
|
+
heading: Math.round(this._options.heading),
|
|
102
|
+
pitch: Math.round(this._options.pitch),
|
|
103
|
+
roll: Math.round(this._options.roll)
|
|
104
|
+
};
|
|
87
105
|
} //飞入
|
|
88
106
|
|
|
89
107
|
|
|
@@ -450,9 +468,6 @@ const __default__ = {
|
|
|
450
468
|
expose
|
|
451
469
|
}) {
|
|
452
470
|
const props = __props;
|
|
453
|
-
const {
|
|
454
|
-
proxy
|
|
455
|
-
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
456
471
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
457
472
|
let collapseValue = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(""); // 获取组件传参
|
|
458
473
|
|
|
@@ -471,15 +486,17 @@ const __default__ = {
|
|
|
471
486
|
videoPath: props.settingParams && props.settingParams.videoPath || "",
|
|
472
487
|
fov: props.settingParams && props.settingParams.fov || 40,
|
|
473
488
|
far: props.settingParams && props.settingParams.far || 50,
|
|
474
|
-
heading:
|
|
475
|
-
pitch:
|
|
476
|
-
roll:
|
|
489
|
+
heading: 0,
|
|
490
|
+
pitch: 0,
|
|
491
|
+
roll: 0,
|
|
477
492
|
alpha: props.settingParams && props.settingParams.alpha || 1.0,
|
|
478
493
|
eclosion: props.settingParams && props.settingParams.eclosion || 0.5,
|
|
479
494
|
showHideLine: props.settingParams && props.settingParams.showHideLine !== undefined || false
|
|
480
495
|
}); // 显示坐标
|
|
481
496
|
|
|
482
|
-
let showCoordinate = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
497
|
+
let showCoordinate = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false); // 显示朝向角俯仰角翻转角
|
|
498
|
+
|
|
499
|
+
let showHpr = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
483
500
|
let viewModel = null; // 组件容器Ref
|
|
484
501
|
|
|
485
502
|
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
@@ -512,9 +529,6 @@ const __default__ = {
|
|
|
512
529
|
videoPath: formItem.videoPath,
|
|
513
530
|
fov: formItem.fov,
|
|
514
531
|
far: formItem.far,
|
|
515
|
-
heading: formItem.heading,
|
|
516
|
-
pitch: formItem.pitch,
|
|
517
|
-
roll: formItem.roll,
|
|
518
532
|
alpha: formItem.alpha,
|
|
519
533
|
eclosion: formItem.eclosion,
|
|
520
534
|
showHideLine: formItem.showHideLine
|
|
@@ -601,6 +615,7 @@ const __default__ = {
|
|
|
601
615
|
if (viewModel) {
|
|
602
616
|
viewModel.fusion();
|
|
603
617
|
setCoordinate();
|
|
618
|
+
serHpr();
|
|
604
619
|
}
|
|
605
620
|
}
|
|
606
621
|
}
|
|
@@ -620,6 +635,18 @@ const __default__ = {
|
|
|
620
635
|
formItem.maxHeight = coordinate.z + heightOffset;
|
|
621
636
|
showCoordinate.value = true;
|
|
622
637
|
}
|
|
638
|
+
} // 设置朝向角俯仰角翻转角
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
function serHpr() {
|
|
642
|
+
let hpr = viewModel.getHeadingPitchRoll();
|
|
643
|
+
|
|
644
|
+
if (hpr) {
|
|
645
|
+
formItem.heading = hpr.heading;
|
|
646
|
+
formItem.pitch = hpr.pitch;
|
|
647
|
+
formItem.roll = hpr.roll;
|
|
648
|
+
showHpr.value = true;
|
|
649
|
+
}
|
|
623
650
|
} // 飞入
|
|
624
651
|
|
|
625
652
|
|
|
@@ -630,6 +657,7 @@ const __default__ = {
|
|
|
630
657
|
|
|
631
658
|
function clearResult() {
|
|
632
659
|
showCoordinate.value = false;
|
|
660
|
+
showHpr.value = false;
|
|
633
661
|
viewModel && viewModel.clear();
|
|
634
662
|
} // 销毁
|
|
635
663
|
|
|
@@ -1036,7 +1064,7 @@ const __default__ = {
|
|
|
1036
1064
|
_: 1
|
|
1037
1065
|
/* STABLE */
|
|
1038
1066
|
|
|
1039
|
-
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
1067
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
1040
1068
|
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, {
|
|
1041
1069
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).heading
|
|
1042
1070
|
}, {
|
|
@@ -1092,7 +1120,9 @@ const __default__ = {
|
|
|
1092
1120
|
_: 1
|
|
1093
1121
|
/* STABLE */
|
|
1094
1122
|
|
|
1095
|
-
}
|
|
1123
|
+
}, 512
|
|
1124
|
+
/* NEED_PATCH */
|
|
1125
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
1096
1126
|
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, {
|
|
1097
1127
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).pitch
|
|
1098
1128
|
}, {
|
|
@@ -1148,7 +1178,9 @@ const __default__ = {
|
|
|
1148
1178
|
_: 1
|
|
1149
1179
|
/* STABLE */
|
|
1150
1180
|
|
|
1151
|
-
}
|
|
1181
|
+
}, 512
|
|
1182
|
+
/* NEED_PATCH */
|
|
1183
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
1152
1184
|
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, {
|
|
1153
1185
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).roll
|
|
1154
1186
|
}, {
|
|
@@ -1204,7 +1236,9 @@ const __default__ = {
|
|
|
1204
1236
|
_: 1
|
|
1205
1237
|
/* STABLE */
|
|
1206
1238
|
|
|
1207
|
-
}
|
|
1239
|
+
}, 512
|
|
1240
|
+
/* NEED_PATCH */
|
|
1241
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(showHpr)]]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
1208
1242
|
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, {
|
|
1209
1243
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).transparents
|
|
1210
1244
|
}, {
|