@kq_npm/client3d_webgl_vue 4.4.9 → 4.5.1
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/heatmap3d/index.js +2466 -0
- package/heatmap3d/style/heatmap3d.css +1 -0
- package/heatmap3d/style/index.js +3 -0
- package/index.js +2131 -237
- package/package.json +1 -1
- package/sceneview/index.js +2203 -270
- package/style.css +1 -1
|
@@ -0,0 +1,2466 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/_utils/util"), require("@kq_npm/client_common_vue/init.js"));
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define(["vue", "@kq_npm/client_common_vue/_utils/gis-utils", "@kq_npm/client_common_vue/_utils/util", "@kq_npm/client_common_vue/init.js"], factory);
|
|
6
|
+
else {
|
|
7
|
+
var a = typeof exports === 'object' ? factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/_utils/util"), require("@kq_npm/client_common_vue/init.js")) : factory(root["Vue"], root["@kq_npm/client_common_vue/_utils/gis-utils"], root["@kq_npm/client_common_vue/_utils/util"], root["@kq_npm/client_common_vue/init.js"]);
|
|
8
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
|
+
}
|
|
10
|
+
})(this, function(__WEBPACK_EXTERNAL_MODULE__1895__, __WEBPACK_EXTERNAL_MODULE__7135__, __WEBPACK_EXTERNAL_MODULE__3458__, __WEBPACK_EXTERNAL_MODULE__7997__) {
|
|
11
|
+
return /******/ (function() { // webpackBootstrap
|
|
12
|
+
/******/ "use strict";
|
|
13
|
+
/******/ var __webpack_modules__ = ({
|
|
14
|
+
|
|
15
|
+
/***/ 7705:
|
|
16
|
+
/***/ (function(module) {
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
/*
|
|
20
|
+
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
21
|
+
Author Tobias Koppers @sokra
|
|
22
|
+
*/
|
|
23
|
+
// css base code, injected by the css-loader
|
|
24
|
+
// eslint-disable-next-line func-names
|
|
25
|
+
|
|
26
|
+
module.exports = function (cssWithMappingToString) {
|
|
27
|
+
var list = []; // return the list of modules as css string
|
|
28
|
+
|
|
29
|
+
list.toString = function toString() {
|
|
30
|
+
return this.map(function (item) {
|
|
31
|
+
var content = cssWithMappingToString(item);
|
|
32
|
+
|
|
33
|
+
if (item[2]) {
|
|
34
|
+
return "@media ".concat(item[2], " {").concat(content, "}");
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
return content;
|
|
38
|
+
}).join("");
|
|
39
|
+
}; // import a list of modules into the list
|
|
40
|
+
// eslint-disable-next-line func-names
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
list.i = function (modules, mediaQuery, dedupe) {
|
|
44
|
+
if (typeof modules === "string") {
|
|
45
|
+
// eslint-disable-next-line no-param-reassign
|
|
46
|
+
modules = [[null, modules, ""]];
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
var alreadyImportedModules = {};
|
|
50
|
+
|
|
51
|
+
if (dedupe) {
|
|
52
|
+
for (var i = 0; i < this.length; i++) {
|
|
53
|
+
// eslint-disable-next-line prefer-destructuring
|
|
54
|
+
var id = this[i][0];
|
|
55
|
+
|
|
56
|
+
if (id != null) {
|
|
57
|
+
alreadyImportedModules[id] = true;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
for (var _i = 0; _i < modules.length; _i++) {
|
|
63
|
+
var item = [].concat(modules[_i]);
|
|
64
|
+
|
|
65
|
+
if (dedupe && alreadyImportedModules[item[0]]) {
|
|
66
|
+
// eslint-disable-next-line no-continue
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
if (mediaQuery) {
|
|
71
|
+
if (!item[2]) {
|
|
72
|
+
item[2] = mediaQuery;
|
|
73
|
+
} else {
|
|
74
|
+
item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
list.push(item);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
return list;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/***/ }),
|
|
86
|
+
|
|
87
|
+
/***/ 6021:
|
|
88
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
89
|
+
|
|
90
|
+
var __webpack_unused_export__;
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
__webpack_unused_export__ = ({
|
|
94
|
+
value: true
|
|
95
|
+
}); // runtime helper for setting properties on components
|
|
96
|
+
// in a tree-shakable way
|
|
97
|
+
|
|
98
|
+
exports.Z = (sfc, props) => {
|
|
99
|
+
const target = sfc.__vccOpts || sfc;
|
|
100
|
+
|
|
101
|
+
for (const [key, val] of props) {
|
|
102
|
+
target[key] = val;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return target;
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
/***/ }),
|
|
109
|
+
|
|
110
|
+
/***/ 3694:
|
|
111
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
// EXPORTS
|
|
115
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
116
|
+
"Z": function() { return /* binding */ message; }
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
;// CONCATENATED MODULE: external "element-plus/dist/index.full.js"
|
|
120
|
+
var index_full_js_namespaceObject = require("element-plus/dist/index.full.js");
|
|
121
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
122
|
+
var init_js_ = __webpack_require__(7997);
|
|
123
|
+
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
124
|
+
;// CONCATENATED MODULE: ./src/common/_ui/message/index.js
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
index_full_js_namespaceObject.ElMessage.install = (Vue, opts) => {
|
|
129
|
+
init_js_default()(Vue, opts);
|
|
130
|
+
Vue.component("KqMessage", index_full_js_namespaceObject.ElMessage);
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
/* harmony default export */ var message = (index_full_js_namespaceObject.ElMessage);
|
|
134
|
+
|
|
135
|
+
/***/ }),
|
|
136
|
+
|
|
137
|
+
/***/ 4098:
|
|
138
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
139
|
+
|
|
140
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7705);
|
|
141
|
+
/* 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__);
|
|
142
|
+
// Imports
|
|
143
|
+
|
|
144
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
145
|
+
// Module
|
|
146
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".gp[data-v-b1608504]{display:flex;flex-direction:column;align-items:flex-start}.gp .palette[data-v-b1608504]{width:257px;height:16px}.gp .csh[data-v-b1608504]{width:257px;height:17.5px;position:relative;cursor:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAATUlEQVQ4T2NkwAH+////HybFyMjIiE0ZVkGQQpBmkB6QGaOaEUHHiByq6CEKCzBcMQLWjCMmcOkBi4NjgSKb8SWS0XjGDB28GYNQrgIAPsNjBG37r7sAAAAASUVORK5CYII=),crosshair !important}", ""]);
|
|
147
|
+
// Exports
|
|
148
|
+
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
/***/ }),
|
|
152
|
+
|
|
153
|
+
/***/ 5757:
|
|
154
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
155
|
+
|
|
156
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7705);
|
|
157
|
+
/* 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__);
|
|
158
|
+
// Imports
|
|
159
|
+
|
|
160
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
161
|
+
// Module
|
|
162
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".cs[data-v-c771bfde]{position:absolute;width:10px;cursor:pointer}.cs[data-v-c771bfde] .kq-color-picker{display:block}.cs[data-v-c771bfde] .kq-color-picker .kq-color-picker__trigger{display:flex;height:8px;width:10px;border:none;border-radius:0}.cs[data-v-c771bfde] .kq-color-picker .kq-color-picker__trigger .kq-color-picker__color{border:none;height:8px;width:10px}.cs[data-v-c771bfde] .kq-color-picker .kq-color-picker__trigger .kq-color-picker__color .kq-color-picker__color-inner{height:8px;width:10px}.cs[data-v-c771bfde] .kq-color-picker .kq-color-picker__trigger .kq-color-picker__color .kq-color-picker__color-inner .kq-color-picker__icon{display:none}.cs[data-v-c771bfde] .kq-color-picker .kq-color-picker__mask{display:none}.cs[data-v-c771bfde] .kq-color-picker:hover:not(.is-disabled) .kq-color-picker__trigger{border:none}.cs[data-v-c771bfde] .kq-color-picker.is-disabled .kq-color-picker__trigger{cursor:pointer}.cs .delete[data-v-c771bfde]{display:none;font-size:12px;line-height:normal;text-align:center;margin-left:-16px}.cs:hover .delete[data-v-c771bfde]{display:block}.cs .arrow[data-v-c771bfde]{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-bottom:4px solid #d9d9d9}.cs .content[data-v-c771bfde]{height:8px;width:10px;border:1px solid #d9d9d9;box-sizing:border-box}", ""]);
|
|
163
|
+
// Exports
|
|
164
|
+
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
/***/ }),
|
|
168
|
+
|
|
169
|
+
/***/ 3379:
|
|
170
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
var isOldIE = function isOldIE() {
|
|
175
|
+
var memo;
|
|
176
|
+
return function memorize() {
|
|
177
|
+
if (typeof memo === 'undefined') {
|
|
178
|
+
// Test for IE <= 9 as proposed by Browserhacks
|
|
179
|
+
// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805
|
|
180
|
+
// Tests for existence of standard globals is to allow style-loader
|
|
181
|
+
// to operate correctly into non-standard environments
|
|
182
|
+
// @see https://github.com/webpack-contrib/style-loader/issues/177
|
|
183
|
+
memo = Boolean(window && document && document.all && !window.atob);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
return memo;
|
|
187
|
+
};
|
|
188
|
+
}();
|
|
189
|
+
|
|
190
|
+
var getTarget = function getTarget() {
|
|
191
|
+
var memo = {};
|
|
192
|
+
return function memorize(target) {
|
|
193
|
+
if (typeof memo[target] === 'undefined') {
|
|
194
|
+
var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself
|
|
195
|
+
|
|
196
|
+
if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {
|
|
197
|
+
try {
|
|
198
|
+
// This will throw an exception if access to iframe is blocked
|
|
199
|
+
// due to cross-origin restrictions
|
|
200
|
+
styleTarget = styleTarget.contentDocument.head;
|
|
201
|
+
} catch (e) {
|
|
202
|
+
// istanbul ignore next
|
|
203
|
+
styleTarget = null;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
memo[target] = styleTarget;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
return memo[target];
|
|
211
|
+
};
|
|
212
|
+
}();
|
|
213
|
+
|
|
214
|
+
var stylesInDom = [];
|
|
215
|
+
|
|
216
|
+
function getIndexByIdentifier(identifier) {
|
|
217
|
+
var result = -1;
|
|
218
|
+
|
|
219
|
+
for (var i = 0; i < stylesInDom.length; i++) {
|
|
220
|
+
if (stylesInDom[i].identifier === identifier) {
|
|
221
|
+
result = i;
|
|
222
|
+
break;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
return result;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
function modulesToDom(list, options) {
|
|
230
|
+
var idCountMap = {};
|
|
231
|
+
var identifiers = [];
|
|
232
|
+
|
|
233
|
+
for (var i = 0; i < list.length; i++) {
|
|
234
|
+
var item = list[i];
|
|
235
|
+
var id = options.base ? item[0] + options.base : item[0];
|
|
236
|
+
var count = idCountMap[id] || 0;
|
|
237
|
+
var identifier = "".concat(id, " ").concat(count);
|
|
238
|
+
idCountMap[id] = count + 1;
|
|
239
|
+
var index = getIndexByIdentifier(identifier);
|
|
240
|
+
var obj = {
|
|
241
|
+
css: item[1],
|
|
242
|
+
media: item[2],
|
|
243
|
+
sourceMap: item[3]
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
if (index !== -1) {
|
|
247
|
+
stylesInDom[index].references++;
|
|
248
|
+
stylesInDom[index].updater(obj);
|
|
249
|
+
} else {
|
|
250
|
+
stylesInDom.push({
|
|
251
|
+
identifier: identifier,
|
|
252
|
+
updater: addStyle(obj, options),
|
|
253
|
+
references: 1
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
identifiers.push(identifier);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
return identifiers;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
function insertStyleElement(options) {
|
|
264
|
+
var style = document.createElement('style');
|
|
265
|
+
var attributes = options.attributes || {};
|
|
266
|
+
|
|
267
|
+
if (typeof attributes.nonce === 'undefined') {
|
|
268
|
+
var nonce = true ? __webpack_require__.nc : 0;
|
|
269
|
+
|
|
270
|
+
if (nonce) {
|
|
271
|
+
attributes.nonce = nonce;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
Object.keys(attributes).forEach(function (key) {
|
|
276
|
+
style.setAttribute(key, attributes[key]);
|
|
277
|
+
});
|
|
278
|
+
|
|
279
|
+
if (typeof options.insert === 'function') {
|
|
280
|
+
options.insert(style);
|
|
281
|
+
} else {
|
|
282
|
+
var target = getTarget(options.insert || 'head');
|
|
283
|
+
|
|
284
|
+
if (!target) {
|
|
285
|
+
throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
target.appendChild(style);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
return style;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
function removeStyleElement(style) {
|
|
295
|
+
// istanbul ignore if
|
|
296
|
+
if (style.parentNode === null) {
|
|
297
|
+
return false;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
style.parentNode.removeChild(style);
|
|
301
|
+
}
|
|
302
|
+
/* istanbul ignore next */
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
var replaceText = function replaceText() {
|
|
306
|
+
var textStore = [];
|
|
307
|
+
return function replace(index, replacement) {
|
|
308
|
+
textStore[index] = replacement;
|
|
309
|
+
return textStore.filter(Boolean).join('\n');
|
|
310
|
+
};
|
|
311
|
+
}();
|
|
312
|
+
|
|
313
|
+
function applyToSingletonTag(style, index, remove, obj) {
|
|
314
|
+
var css = remove ? '' : obj.media ? "@media ".concat(obj.media, " {").concat(obj.css, "}") : obj.css; // For old IE
|
|
315
|
+
|
|
316
|
+
/* istanbul ignore if */
|
|
317
|
+
|
|
318
|
+
if (style.styleSheet) {
|
|
319
|
+
style.styleSheet.cssText = replaceText(index, css);
|
|
320
|
+
} else {
|
|
321
|
+
var cssNode = document.createTextNode(css);
|
|
322
|
+
var childNodes = style.childNodes;
|
|
323
|
+
|
|
324
|
+
if (childNodes[index]) {
|
|
325
|
+
style.removeChild(childNodes[index]);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
if (childNodes.length) {
|
|
329
|
+
style.insertBefore(cssNode, childNodes[index]);
|
|
330
|
+
} else {
|
|
331
|
+
style.appendChild(cssNode);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
function applyToTag(style, options, obj) {
|
|
337
|
+
var css = obj.css;
|
|
338
|
+
var media = obj.media;
|
|
339
|
+
var sourceMap = obj.sourceMap;
|
|
340
|
+
|
|
341
|
+
if (media) {
|
|
342
|
+
style.setAttribute('media', media);
|
|
343
|
+
} else {
|
|
344
|
+
style.removeAttribute('media');
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
if (sourceMap && typeof btoa !== 'undefined') {
|
|
348
|
+
css += "\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), " */");
|
|
349
|
+
} // For old IE
|
|
350
|
+
|
|
351
|
+
/* istanbul ignore if */
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
if (style.styleSheet) {
|
|
355
|
+
style.styleSheet.cssText = css;
|
|
356
|
+
} else {
|
|
357
|
+
while (style.firstChild) {
|
|
358
|
+
style.removeChild(style.firstChild);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
style.appendChild(document.createTextNode(css));
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
var singleton = null;
|
|
366
|
+
var singletonCounter = 0;
|
|
367
|
+
|
|
368
|
+
function addStyle(obj, options) {
|
|
369
|
+
var style;
|
|
370
|
+
var update;
|
|
371
|
+
var remove;
|
|
372
|
+
|
|
373
|
+
if (options.singleton) {
|
|
374
|
+
var styleIndex = singletonCounter++;
|
|
375
|
+
style = singleton || (singleton = insertStyleElement(options));
|
|
376
|
+
update = applyToSingletonTag.bind(null, style, styleIndex, false);
|
|
377
|
+
remove = applyToSingletonTag.bind(null, style, styleIndex, true);
|
|
378
|
+
} else {
|
|
379
|
+
style = insertStyleElement(options);
|
|
380
|
+
update = applyToTag.bind(null, style, options);
|
|
381
|
+
|
|
382
|
+
remove = function remove() {
|
|
383
|
+
removeStyleElement(style);
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
update(obj);
|
|
388
|
+
return function updateStyle(newObj) {
|
|
389
|
+
if (newObj) {
|
|
390
|
+
if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap) {
|
|
391
|
+
return;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
update(obj = newObj);
|
|
395
|
+
} else {
|
|
396
|
+
remove();
|
|
397
|
+
}
|
|
398
|
+
};
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
module.exports = function (list, options) {
|
|
402
|
+
options = options || {}; // Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
|
|
403
|
+
// tags it will allow on a page
|
|
404
|
+
|
|
405
|
+
if (!options.singleton && typeof options.singleton !== 'boolean') {
|
|
406
|
+
options.singleton = isOldIE();
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
list = list || [];
|
|
410
|
+
var lastIdentifiers = modulesToDom(list, options);
|
|
411
|
+
return function update(newList) {
|
|
412
|
+
newList = newList || [];
|
|
413
|
+
|
|
414
|
+
if (Object.prototype.toString.call(newList) !== '[object Array]') {
|
|
415
|
+
return;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
for (var i = 0; i < lastIdentifiers.length; i++) {
|
|
419
|
+
var identifier = lastIdentifiers[i];
|
|
420
|
+
var index = getIndexByIdentifier(identifier);
|
|
421
|
+
stylesInDom[index].references--;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
var newLastIdentifiers = modulesToDom(newList, options);
|
|
425
|
+
|
|
426
|
+
for (var _i = 0; _i < lastIdentifiers.length; _i++) {
|
|
427
|
+
var _identifier = lastIdentifiers[_i];
|
|
428
|
+
|
|
429
|
+
var _index = getIndexByIdentifier(_identifier);
|
|
430
|
+
|
|
431
|
+
if (stylesInDom[_index].references === 0) {
|
|
432
|
+
stylesInDom[_index].updater();
|
|
433
|
+
|
|
434
|
+
stylesInDom.splice(_index, 1);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
lastIdentifiers = newLastIdentifiers;
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
|
|
442
|
+
/***/ }),
|
|
443
|
+
|
|
444
|
+
/***/ 8422:
|
|
445
|
+
/***/ (function(module) {
|
|
446
|
+
|
|
447
|
+
module.exports = require("@element-plus/icons-vue");
|
|
448
|
+
|
|
449
|
+
/***/ }),
|
|
450
|
+
|
|
451
|
+
/***/ 348:
|
|
452
|
+
/***/ (function(module) {
|
|
453
|
+
|
|
454
|
+
module.exports = require("@kq_npm/client_icons_vue");
|
|
455
|
+
|
|
456
|
+
/***/ }),
|
|
457
|
+
|
|
458
|
+
/***/ 3600:
|
|
459
|
+
/***/ (function(module) {
|
|
460
|
+
|
|
461
|
+
module.exports = require("core-js/modules/es.array.includes.js");
|
|
462
|
+
|
|
463
|
+
/***/ }),
|
|
464
|
+
|
|
465
|
+
/***/ 7080:
|
|
466
|
+
/***/ (function(module) {
|
|
467
|
+
|
|
468
|
+
module.exports = require("vue-i18n/dist/vue-i18n.cjs.js");
|
|
469
|
+
|
|
470
|
+
/***/ }),
|
|
471
|
+
|
|
472
|
+
/***/ 7135:
|
|
473
|
+
/***/ (function(module) {
|
|
474
|
+
|
|
475
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__7135__;
|
|
476
|
+
|
|
477
|
+
/***/ }),
|
|
478
|
+
|
|
479
|
+
/***/ 3458:
|
|
480
|
+
/***/ (function(module) {
|
|
481
|
+
|
|
482
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__3458__;
|
|
483
|
+
|
|
484
|
+
/***/ }),
|
|
485
|
+
|
|
486
|
+
/***/ 7997:
|
|
487
|
+
/***/ (function(module) {
|
|
488
|
+
|
|
489
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__7997__;
|
|
490
|
+
|
|
491
|
+
/***/ }),
|
|
492
|
+
|
|
493
|
+
/***/ 1895:
|
|
494
|
+
/***/ (function(module) {
|
|
495
|
+
|
|
496
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
|
|
497
|
+
|
|
498
|
+
/***/ }),
|
|
499
|
+
|
|
500
|
+
/***/ 8270:
|
|
501
|
+
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
502
|
+
|
|
503
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
504
|
+
/* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
|
|
505
|
+
/* harmony export */ });
|
|
506
|
+
function _defineProperty(obj, key, value) {
|
|
507
|
+
if (key in obj) {
|
|
508
|
+
Object.defineProperty(obj, key, {
|
|
509
|
+
value: value,
|
|
510
|
+
enumerable: true,
|
|
511
|
+
configurable: true,
|
|
512
|
+
writable: true
|
|
513
|
+
});
|
|
514
|
+
} else {
|
|
515
|
+
obj[key] = value;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
return obj;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
/***/ })
|
|
522
|
+
|
|
523
|
+
/******/ });
|
|
524
|
+
/************************************************************************/
|
|
525
|
+
/******/ // The module cache
|
|
526
|
+
/******/ var __webpack_module_cache__ = {};
|
|
527
|
+
/******/
|
|
528
|
+
/******/ // The require function
|
|
529
|
+
/******/ function __webpack_require__(moduleId) {
|
|
530
|
+
/******/ // Check if module is in cache
|
|
531
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
532
|
+
/******/ if (cachedModule !== undefined) {
|
|
533
|
+
/******/ return cachedModule.exports;
|
|
534
|
+
/******/ }
|
|
535
|
+
/******/ // Create a new module (and put it into the cache)
|
|
536
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
537
|
+
/******/ id: moduleId,
|
|
538
|
+
/******/ // no module.loaded needed
|
|
539
|
+
/******/ exports: {}
|
|
540
|
+
/******/ };
|
|
541
|
+
/******/
|
|
542
|
+
/******/ // Execute the module function
|
|
543
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
544
|
+
/******/
|
|
545
|
+
/******/ // Return the exports of the module
|
|
546
|
+
/******/ return module.exports;
|
|
547
|
+
/******/ }
|
|
548
|
+
/******/
|
|
549
|
+
/************************************************************************/
|
|
550
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
551
|
+
/******/ !function() {
|
|
552
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
553
|
+
/******/ __webpack_require__.n = function(module) {
|
|
554
|
+
/******/ var getter = module && module.__esModule ?
|
|
555
|
+
/******/ function() { return module['default']; } :
|
|
556
|
+
/******/ function() { return module; };
|
|
557
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
558
|
+
/******/ return getter;
|
|
559
|
+
/******/ };
|
|
560
|
+
/******/ }();
|
|
561
|
+
/******/
|
|
562
|
+
/******/ /* webpack/runtime/define property getters */
|
|
563
|
+
/******/ !function() {
|
|
564
|
+
/******/ // define getter functions for harmony exports
|
|
565
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
566
|
+
/******/ for(var key in definition) {
|
|
567
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
568
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
569
|
+
/******/ }
|
|
570
|
+
/******/ }
|
|
571
|
+
/******/ };
|
|
572
|
+
/******/ }();
|
|
573
|
+
/******/
|
|
574
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
575
|
+
/******/ !function() {
|
|
576
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
577
|
+
/******/ }();
|
|
578
|
+
/******/
|
|
579
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
580
|
+
/******/ !function() {
|
|
581
|
+
/******/ // define __esModule on exports
|
|
582
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
583
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
584
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
585
|
+
/******/ }
|
|
586
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
587
|
+
/******/ };
|
|
588
|
+
/******/ }();
|
|
589
|
+
/******/
|
|
590
|
+
/******/ /* webpack/runtime/nonce */
|
|
591
|
+
/******/ !function() {
|
|
592
|
+
/******/ __webpack_require__.nc = undefined;
|
|
593
|
+
/******/ }();
|
|
594
|
+
/******/
|
|
595
|
+
/************************************************************************/
|
|
596
|
+
var __webpack_exports__ = {};
|
|
597
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
598
|
+
!function() {
|
|
599
|
+
// ESM COMPAT FLAG
|
|
600
|
+
__webpack_require__.r(__webpack_exports__);
|
|
601
|
+
|
|
602
|
+
// EXPORTS
|
|
603
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
604
|
+
"Heatmap3dViewModel": function() { return /* reexport */ Heatmap3dViewModel; },
|
|
605
|
+
"default": function() { return /* reexport */ Heatmap3d; }
|
|
606
|
+
});
|
|
607
|
+
|
|
608
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.includes.js"
|
|
609
|
+
var es_array_includes_js_ = __webpack_require__(3600);
|
|
610
|
+
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
611
|
+
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
|
|
612
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
613
|
+
var gis_utils_ = __webpack_require__(7135);
|
|
614
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
615
|
+
var util_ = __webpack_require__(3458);
|
|
616
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
617
|
+
var defineProperty = __webpack_require__(8270);
|
|
618
|
+
// EXTERNAL MODULE: ./src/common/_ui/message/index.js + 1 modules
|
|
619
|
+
var message = __webpack_require__(3694);
|
|
620
|
+
;// CONCATENATED MODULE: ./src/webgl/heatmap3d/Heatmap3dViewModel.js
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
//热力图
|
|
624
|
+
|
|
625
|
+
class Heatmap3dViewModel {
|
|
626
|
+
constructor(scenceView, options) {
|
|
627
|
+
(0,defineProperty/* default */.Z)(this, "_viewer", null);
|
|
628
|
+
|
|
629
|
+
(0,defineProperty/* default */.Z)(this, "_options", null);
|
|
630
|
+
|
|
631
|
+
(0,defineProperty/* default */.Z)(this, "_heatmap", null);
|
|
632
|
+
|
|
633
|
+
(0,defineProperty/* default */.Z)(this, "_mouseLabel", null);
|
|
634
|
+
|
|
635
|
+
(0,defineProperty/* default */.Z)(this, "language", null);
|
|
636
|
+
|
|
637
|
+
(0,defineProperty/* default */.Z)(this, "_heatmap2d", null);
|
|
638
|
+
|
|
639
|
+
(0,defineProperty/* default */.Z)(this, "_heatmap2dCountLayer", null);
|
|
640
|
+
|
|
641
|
+
(0,defineProperty/* default */.Z)(this, "heatmapData", null);
|
|
642
|
+
|
|
643
|
+
this._viewer = scenceView._viewer;
|
|
644
|
+
this._options = options;
|
|
645
|
+
this._viewer.scene.globe.depthTestAgainstTerrain = true; // 地图标注对象
|
|
646
|
+
|
|
647
|
+
this._mouseLabel = new Cesium.Kq3dHtmlTag(this._viewer, {
|
|
648
|
+
position: new Cesium.Cartesian3(0, 0, 0),
|
|
649
|
+
html: `<div>
|
|
650
|
+
<div class="border-moving">
|
|
651
|
+
<span id="mouse_lonlat" class="append"></span>
|
|
652
|
+
<div class="border-moving-box" style="top:3px;left:3px;bottom:3px;right:3px;">
|
|
653
|
+
<span></span><span></span><span></span><span></span>
|
|
654
|
+
</div></div>
|
|
655
|
+
<div class="guidline">
|
|
656
|
+
<div class="pulse"></div>
|
|
657
|
+
</div>
|
|
658
|
+
</div>`,
|
|
659
|
+
anchor: [0, -138],
|
|
660
|
+
noEvent: true,
|
|
661
|
+
visible: false
|
|
662
|
+
}); // 地图拾取事件,交互展示
|
|
663
|
+
|
|
664
|
+
let that = this;
|
|
665
|
+
var handler = new window.Cesium.ScreenSpaceEventHandler(this._viewer.canvas);
|
|
666
|
+
handler.setInputAction(function (movement) {
|
|
667
|
+
var worldPosition = that._viewer.scene.pickPosition(movement.position);
|
|
668
|
+
|
|
669
|
+
if (worldPosition) {
|
|
670
|
+
that._mouseLabel.position = worldPosition;
|
|
671
|
+
var lonlat = Cesium.Cartographic.fromCartesian(worldPosition);
|
|
672
|
+
var lon = Cesium.Math.toDegrees(lonlat.longitude),
|
|
673
|
+
lat = Cesium.Math.toDegrees(lonlat.latitude);
|
|
674
|
+
var val = 0;
|
|
675
|
+
|
|
676
|
+
if (that._options.heatmapType == "3D") {
|
|
677
|
+
val = String(that._heatmap.getValueAt({
|
|
678
|
+
lng: lon,
|
|
679
|
+
lat: lat
|
|
680
|
+
}));
|
|
681
|
+
} else if (that._options.heatmapType == "2D") {
|
|
682
|
+
val = String(that._heatmap2d.getValueAt({
|
|
683
|
+
lng: lon,
|
|
684
|
+
lat: lat
|
|
685
|
+
}));
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
document.getElementById('mouse_lonlat').innerHTML = that.sanitizeInput(`<p>${that.language['longitude'] || "经度"}:${lon.toFixed(5)}</p><p>${that.language['latitude'] || "纬度"}:${lat.toFixed(5)}</p><p>${that.language['heatValue'] || "热力值"}:${val}</p>`);
|
|
689
|
+
|
|
690
|
+
that._mouseLabel.setVisible(true);
|
|
691
|
+
} else {
|
|
692
|
+
that._mouseLabel.setVisible(false);
|
|
693
|
+
}
|
|
694
|
+
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
sanitizeInput(inputHTML) {
|
|
698
|
+
const allowedTags = ['p', 'strong', 'em'];
|
|
699
|
+
const tempDiv = document.createElement('div');
|
|
700
|
+
tempDiv.innerHTML = inputHTML;
|
|
701
|
+
const childNodes = Array.from(tempDiv.childNodes);
|
|
702
|
+
childNodes.forEach(node => {
|
|
703
|
+
if (!allowedTags.includes(node.tagName.toLowerCase())) {
|
|
704
|
+
tempDiv.removeChild(node);
|
|
705
|
+
}
|
|
706
|
+
});
|
|
707
|
+
return tempDiv.innerHTML;
|
|
708
|
+
} // 创建三维热力图对象
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+
initHeatmap3d(heatmapData) {
|
|
712
|
+
this._heatmap = new Cesium.Kq3dHeatmap3D({
|
|
713
|
+
xField: 'lng',
|
|
714
|
+
yField: 'lat',
|
|
715
|
+
valueField: this._options.valueField || 'count',
|
|
716
|
+
radius: this._options.radius,
|
|
717
|
+
scene: this._viewer.scene,
|
|
718
|
+
height: this._options.height,
|
|
719
|
+
heightRatio: this._options.heightRatio,
|
|
720
|
+
alpha: this._options.transparents,
|
|
721
|
+
dynamic: this._options.isFollowingPerspective,
|
|
722
|
+
clampToGround: this._options.isGround,
|
|
723
|
+
show: this._options.heatmapType == "3D" ? true : false
|
|
724
|
+
});
|
|
725
|
+
if (this._options.gradient) this._heatmap.gradient = this._options.gradient;
|
|
726
|
+
|
|
727
|
+
this._viewer.scene.primitives.add(this._heatmap);
|
|
728
|
+
|
|
729
|
+
this._heatmap && this._heatmap.setData(heatmapData);
|
|
730
|
+
} // 创建二维热力图对象
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
initHeatmap2d(heatmapData) {
|
|
734
|
+
this._heatmap2d = new Cesium.Kq3dHeatmap2D({
|
|
735
|
+
xField: 'lng',
|
|
736
|
+
yField: 'lat',
|
|
737
|
+
valueField: this._options.valueField || 'count',
|
|
738
|
+
canvasWidth: 1024,
|
|
739
|
+
canvasHeight: 1024,
|
|
740
|
+
radius: this._options.radius,
|
|
741
|
+
blur: 1.0,
|
|
742
|
+
gradient: this._options.gradient
|
|
743
|
+
});
|
|
744
|
+
|
|
745
|
+
this._heatmap2d.setData(heatmapData);
|
|
746
|
+
|
|
747
|
+
let extent = this._heatmap2d.extent;
|
|
748
|
+
let pv = new Cesium.SingleTileImageryProvider({
|
|
749
|
+
url: this._heatmap2d.toDataURL(),
|
|
750
|
+
rectangle: Cesium.Rectangle.fromDegrees(extent[0], extent[1], extent[2], extent[3])
|
|
751
|
+
});
|
|
752
|
+
this._heatmap2dCountLayer = new Cesium.ImageryLayer(pv, {
|
|
753
|
+
alpha: this._options.transparents,
|
|
754
|
+
show: this._options.heatmapType == "2D" ? true : false
|
|
755
|
+
});
|
|
756
|
+
|
|
757
|
+
this._viewer.imageryLayers.add(this._heatmap2dCountLayer);
|
|
758
|
+
} // 切换二维数据
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
changeHeatmap2d() {
|
|
762
|
+
if (this._options.gradient) this._heatmap2d.gradient = this._options.gradient;
|
|
763
|
+
if (this._options.radius) this._heatmap2d.radius = this._options.radius;
|
|
764
|
+
if (this._heatmap2dCountLayer) this._viewer.imageryLayers.remove(this._heatmap2dCountLayer, true);
|
|
765
|
+
let extent = this._heatmap2d.extent;
|
|
766
|
+
let pv = new Cesium.SingleTileImageryProvider({
|
|
767
|
+
url: this._heatmap2d.toDataURL(),
|
|
768
|
+
rectangle: Cesium.Rectangle.fromDegrees(extent[0], extent[1], extent[2], extent[3])
|
|
769
|
+
});
|
|
770
|
+
this._heatmap2dCountLayer = new Cesium.ImageryLayer(pv, {
|
|
771
|
+
alpha: this._options.transparents,
|
|
772
|
+
show: this._options.heatmapType == "2D" ? true : false
|
|
773
|
+
});
|
|
774
|
+
|
|
775
|
+
this._viewer.imageryLayers.add(this._heatmap2dCountLayer);
|
|
776
|
+
} // 设置颜色渲染
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+
setColorArray(val) {
|
|
780
|
+
this._options.gradient = val;
|
|
781
|
+
if (this._heatmap) this._heatmap.gradient = val;
|
|
782
|
+
if (this._heatmap2d) this.changeHeatmap2d();
|
|
783
|
+
} // 参数改变
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
paramsChanged(key, val) {
|
|
787
|
+
this._options[key] = val;
|
|
788
|
+
if (!this._heatmap) return;
|
|
789
|
+
if (!this._heatmap2dCountLayer) return;
|
|
790
|
+
|
|
791
|
+
switch (key) {
|
|
792
|
+
case "heatmapType":
|
|
793
|
+
this._mouseLabel.setVisible(false);
|
|
794
|
+
|
|
795
|
+
if (this._options.heatmapType == "3D") {
|
|
796
|
+
this._viewer.scene.highDynamicRange = false;
|
|
797
|
+
this._viewer.scene.globe.showGroundAtmosphere = true;
|
|
798
|
+
this._heatmap.show = this._options.isShow;
|
|
799
|
+
this._heatmap2dCountLayer.show = false;
|
|
800
|
+
} else if (this._options.heatmapType == "2D") {
|
|
801
|
+
this._viewer.scene.highDynamicRange = true;
|
|
802
|
+
this._viewer.scene.globe.showGroundAtmosphere = false;
|
|
803
|
+
this._heatmap.show = false;
|
|
804
|
+
this._heatmap2dCountLayer.show = this._options.isShow;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
break;
|
|
808
|
+
|
|
809
|
+
case "radius":
|
|
810
|
+
this._mouseLabel.setVisible(false);
|
|
811
|
+
|
|
812
|
+
this._heatmap[key] = Number(val);
|
|
813
|
+
|
|
814
|
+
if (this._heatmap.dynamic) {
|
|
815
|
+
this._heatmap.dynamic = false;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
this.changeHeatmap2d();
|
|
819
|
+
break;
|
|
820
|
+
|
|
821
|
+
case "height":
|
|
822
|
+
this._mouseLabel.setVisible(false);
|
|
823
|
+
|
|
824
|
+
this._heatmap[key] = Number(val);
|
|
825
|
+
|
|
826
|
+
if (this._heatmap.dynamic) {
|
|
827
|
+
this._heatmap.dynamic = false;
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
break;
|
|
831
|
+
|
|
832
|
+
case "transparents":
|
|
833
|
+
this._heatmap.alpha = Number(val);
|
|
834
|
+
this._heatmap2dCountLayer.alpha = Number(val);
|
|
835
|
+
break;
|
|
836
|
+
|
|
837
|
+
case "heightRatio":
|
|
838
|
+
this._mouseLabel.setVisible(false);
|
|
839
|
+
|
|
840
|
+
this._heatmap.heightRatio = Number(val);
|
|
841
|
+
break;
|
|
842
|
+
|
|
843
|
+
case "isShow":
|
|
844
|
+
if (this._options.heatmapType == "3D") {
|
|
845
|
+
this._heatmap.show = val;
|
|
846
|
+
} else if (this._options.heatmapType == "2D") {
|
|
847
|
+
this._heatmap2dCountLayer.show = val;
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
this._mouseLabel.setVisible(false);
|
|
851
|
+
|
|
852
|
+
break;
|
|
853
|
+
|
|
854
|
+
case "isFollowingPerspective":
|
|
855
|
+
this._heatmap.dynamic = val;
|
|
856
|
+
|
|
857
|
+
this._mouseLabel.setVisible(false);
|
|
858
|
+
|
|
859
|
+
break;
|
|
860
|
+
|
|
861
|
+
case "isGround":
|
|
862
|
+
this._heatmap.clampToGround = val;
|
|
863
|
+
|
|
864
|
+
this._mouseLabel.setVisible(false);
|
|
865
|
+
|
|
866
|
+
break;
|
|
867
|
+
|
|
868
|
+
case "valueField":
|
|
869
|
+
this.clear();
|
|
870
|
+
|
|
871
|
+
if (this.heatmapData) {
|
|
872
|
+
this.initHeatmap3d(this.heatmapData);
|
|
873
|
+
this.initHeatmap2d(this.heatmapData);
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
break;
|
|
877
|
+
|
|
878
|
+
default:
|
|
879
|
+
break;
|
|
880
|
+
}
|
|
881
|
+
} // 加载
|
|
882
|
+
|
|
883
|
+
|
|
884
|
+
start() {
|
|
885
|
+
this.clear();
|
|
886
|
+
|
|
887
|
+
if (this.heatmapData) {
|
|
888
|
+
this.initHeatmap3d(this.heatmapData);
|
|
889
|
+
this.initHeatmap2d(this.heatmapData);
|
|
890
|
+
} else {
|
|
891
|
+
(0,message/* default */.Z)({
|
|
892
|
+
message: "先输入在线json地址或上传文件!",
|
|
893
|
+
type: "warning",
|
|
894
|
+
duration: 2000
|
|
895
|
+
});
|
|
896
|
+
return;
|
|
897
|
+
}
|
|
898
|
+
} //清除全部结果
|
|
899
|
+
|
|
900
|
+
|
|
901
|
+
clear() {
|
|
902
|
+
this._mouseLabel.setVisible(false);
|
|
903
|
+
|
|
904
|
+
if (this._heatmap) {
|
|
905
|
+
this._viewer.scene.primitives.remove(this._heatmap);
|
|
906
|
+
|
|
907
|
+
this._heatmap = null;
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
if (this._heatmap2d) this._heatmap2d = null;
|
|
911
|
+
if (this._heatmap2dCountLayer) this._viewer.imageryLayers.remove(this._heatmap2dCountLayer, true);
|
|
912
|
+
} //销毁
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
destroy() {
|
|
916
|
+
this.clear();
|
|
917
|
+
|
|
918
|
+
this._mouseLabel.destroy();
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
}
|
|
922
|
+
// EXTERNAL MODULE: external "@element-plus/icons-vue"
|
|
923
|
+
var icons_vue_ = __webpack_require__(8422);
|
|
924
|
+
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
925
|
+
var client_icons_vue_ = __webpack_require__(348);
|
|
926
|
+
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
927
|
+
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
928
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/heatmap3d/CustomColorPickerSlider.vue?vue&type=script&setup=true&lang=js
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
const _withScopeId = n => ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.pushScopeId)("data-v-c771bfde"), n = n(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.popScopeId)(), n);
|
|
932
|
+
|
|
933
|
+
const _hoisted_1 = /*#__PURE__*/_withScopeId(() => /*#__PURE__*/(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
|
|
934
|
+
class: "arrow"
|
|
935
|
+
}, null, -1
|
|
936
|
+
/* HOISTED */
|
|
937
|
+
));
|
|
938
|
+
|
|
939
|
+
|
|
940
|
+
/* harmony default export */ var CustomColorPickerSlidervue_type_script_setup_true_lang_js = ({
|
|
941
|
+
__name: 'CustomColorPickerSlider',
|
|
942
|
+
props: ["width", "color", "percentage", "id"],
|
|
943
|
+
emits: ["updatePercentage", "updateColor", "deleteColorSlider"],
|
|
944
|
+
|
|
945
|
+
setup(__props, {
|
|
946
|
+
emit
|
|
947
|
+
}) {
|
|
948
|
+
const props = __props; // eslint-disable-next-line vue/no-setup-props-destructure
|
|
949
|
+
|
|
950
|
+
const initId = props.id;
|
|
951
|
+
const initColor = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.color);
|
|
952
|
+
const rangeMin = -5;
|
|
953
|
+
const rangeMax = props.width - 5;
|
|
954
|
+
const position = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.percentage / 100 * props.width + rangeMin);
|
|
955
|
+
const disabled = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false); // 为了防止在mouseup事件结束后,弹出颜色框
|
|
956
|
+
|
|
957
|
+
let offsetX = 0;
|
|
958
|
+
let isDragging = false; // 是否拖动
|
|
959
|
+
|
|
960
|
+
let mouseDownX = 0; // 通过拖动的距离,判断是拖动还是点击
|
|
961
|
+
|
|
962
|
+
function handleMouseDown(event) {
|
|
963
|
+
isDragging = true;
|
|
964
|
+
offsetX = event.clientX - position.value;
|
|
965
|
+
mouseDownX = event.clientX; // 监听mousemove、mouseup事件 注意是在document上监听
|
|
966
|
+
|
|
967
|
+
document.addEventListener("mousemove", handleMouseMove);
|
|
968
|
+
document.addEventListener("mouseup", handleMouseUp); // 阻止了默认行为,防止出现not-allowed的光标
|
|
969
|
+
|
|
970
|
+
event.preventDefault();
|
|
971
|
+
} // 处理MouseMove
|
|
972
|
+
|
|
973
|
+
|
|
974
|
+
function handleMouseMove(event) {
|
|
975
|
+
if (isDragging) {
|
|
976
|
+
position.value = Math.min(Math.max(event.clientX - offsetX, rangeMin), rangeMax); // 拖动的过程中,不断改变percentage
|
|
977
|
+
|
|
978
|
+
const percentage = (position.value + Math.abs(rangeMin)) / (rangeMax - rangeMin) * 100;
|
|
979
|
+
emit("updatePercentage", {
|
|
980
|
+
percentage: percentage,
|
|
981
|
+
id: initId
|
|
982
|
+
});
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
function handleMouseUp(event) {
|
|
987
|
+
if (isDragging) {
|
|
988
|
+
isDragging = false; // 移除mousemove、mouseup的事件监听
|
|
989
|
+
|
|
990
|
+
document.removeEventListener("mousemove", handleMouseMove);
|
|
991
|
+
document.removeEventListener("mouseup", handleMouseUp);
|
|
992
|
+
} // 判断是否拖动模式
|
|
993
|
+
|
|
994
|
+
|
|
995
|
+
if (Math.abs(event.clientX - mouseDownX) > 2) {
|
|
996
|
+
// 是拖动模式 禁止colorPicker组件弹出
|
|
997
|
+
disabled.value = true;
|
|
998
|
+
setTimeout(function () {
|
|
999
|
+
disabled.value = false;
|
|
1000
|
+
}, 100);
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
function updateColor(color) {
|
|
1005
|
+
initColor.value = color;
|
|
1006
|
+
emit("updateColor", {
|
|
1007
|
+
color: color,
|
|
1008
|
+
id: initId
|
|
1009
|
+
});
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
function deleteColorSlider() {
|
|
1013
|
+
emit("deleteColorSlider", {
|
|
1014
|
+
id: initId
|
|
1015
|
+
});
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
function handleClick(event) {
|
|
1019
|
+
// 阻止滑块上的点击事件冒泡
|
|
1020
|
+
event.stopPropagation();
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
return (_ctx, _cache) => {
|
|
1024
|
+
const _component_kq_color_picker = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-color-picker");
|
|
1025
|
+
|
|
1026
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", {
|
|
1027
|
+
class: "cs",
|
|
1028
|
+
style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)({
|
|
1029
|
+
left: position.value + 'px'
|
|
1030
|
+
}),
|
|
1031
|
+
onMousedown: handleMouseDown,
|
|
1032
|
+
onClick: handleClick
|
|
1033
|
+
}, [_hoisted_1, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_color_picker, {
|
|
1034
|
+
modelValue: initColor.value,
|
|
1035
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => initColor.value = $event),
|
|
1036
|
+
onActiveChange: updateColor,
|
|
1037
|
+
disabled: disabled.value
|
|
1038
|
+
}, null, 8
|
|
1039
|
+
/* PROPS */
|
|
1040
|
+
, ["modelValue", "disabled"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
|
|
1041
|
+
class: "delete",
|
|
1042
|
+
onClick: deleteColorSlider
|
|
1043
|
+
}, "x")], 36
|
|
1044
|
+
/* STYLE, HYDRATE_EVENTS */
|
|
1045
|
+
);
|
|
1046
|
+
};
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
});
|
|
1050
|
+
;// CONCATENATED MODULE: ./src/webgl/heatmap3d/CustomColorPickerSlider.vue?vue&type=script&setup=true&lang=js
|
|
1051
|
+
|
|
1052
|
+
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
|
|
1053
|
+
var injectStylesIntoStyleTag = __webpack_require__(3379);
|
|
1054
|
+
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
|
|
1055
|
+
// 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/heatmap3d/CustomColorPickerSlider.vue?vue&type=style&index=0&id=c771bfde&scoped=true&lang=scss
|
|
1056
|
+
var CustomColorPickerSlidervue_type_style_index_0_id_c771bfde_scoped_true_lang_scss = __webpack_require__(5757);
|
|
1057
|
+
;// 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/heatmap3d/CustomColorPickerSlider.vue?vue&type=style&index=0&id=c771bfde&scoped=true&lang=scss
|
|
1058
|
+
|
|
1059
|
+
|
|
1060
|
+
|
|
1061
|
+
var options = {};
|
|
1062
|
+
|
|
1063
|
+
options.insert = "head";
|
|
1064
|
+
options.singleton = false;
|
|
1065
|
+
|
|
1066
|
+
var update = injectStylesIntoStyleTag_default()(CustomColorPickerSlidervue_type_style_index_0_id_c771bfde_scoped_true_lang_scss/* default */.Z, options);
|
|
1067
|
+
|
|
1068
|
+
|
|
1069
|
+
|
|
1070
|
+
/* harmony default export */ var heatmap3d_CustomColorPickerSlidervue_type_style_index_0_id_c771bfde_scoped_true_lang_scss = (CustomColorPickerSlidervue_type_style_index_0_id_c771bfde_scoped_true_lang_scss/* default.locals */.Z.locals || {});
|
|
1071
|
+
;// CONCATENATED MODULE: ./src/webgl/heatmap3d/CustomColorPickerSlider.vue?vue&type=style&index=0&id=c771bfde&scoped=true&lang=scss
|
|
1072
|
+
|
|
1073
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/dist/exportHelper.js
|
|
1074
|
+
var exportHelper = __webpack_require__(6021);
|
|
1075
|
+
;// CONCATENATED MODULE: ./src/webgl/heatmap3d/CustomColorPickerSlider.vue
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
;
|
|
1080
|
+
|
|
1081
|
+
|
|
1082
|
+
const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(CustomColorPickerSlidervue_type_script_setup_true_lang_js, [['__scopeId',"data-v-c771bfde"]])
|
|
1083
|
+
|
|
1084
|
+
/* harmony default export */ var CustomColorPickerSlider = (__exports__);
|
|
1085
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/heatmap3d/CustomColorPicker.vue?vue&type=script&setup=true&lang=js
|
|
1086
|
+
|
|
1087
|
+
|
|
1088
|
+
const CustomColorPickervue_type_script_setup_true_lang_js_withScopeId = n => (_pushScopeId("data-v-b1608504"), n = n(), _popScopeId(), n);
|
|
1089
|
+
|
|
1090
|
+
const CustomColorPickervue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
1091
|
+
class: "gp"
|
|
1092
|
+
};
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
|
|
1096
|
+
/* harmony default export */ var CustomColorPickervue_type_script_setup_true_lang_js = ({
|
|
1097
|
+
__name: 'CustomColorPicker',
|
|
1098
|
+
props: ["data"],
|
|
1099
|
+
emits: ["color-changed"],
|
|
1100
|
+
|
|
1101
|
+
setup(__props, {
|
|
1102
|
+
emit
|
|
1103
|
+
}) {
|
|
1104
|
+
const props = __props; // 宽度
|
|
1105
|
+
|
|
1106
|
+
const width = 257;
|
|
1107
|
+
const items = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.data);
|
|
1108
|
+
let backgroundImage = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(updateBackgroundImage()); // 更新色带条
|
|
1109
|
+
|
|
1110
|
+
function updateBackgroundImage() {
|
|
1111
|
+
let style = [];
|
|
1112
|
+
|
|
1113
|
+
for (let i = 0; i < items.value.length; i++) {
|
|
1114
|
+
const item = items.value[i];
|
|
1115
|
+
style.push(`${item.color} ${item.percentage}%`);
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
return `background-image: linear-gradient(90deg, ${style.toString()})`;
|
|
1119
|
+
} // 更新颜色百分比
|
|
1120
|
+
|
|
1121
|
+
|
|
1122
|
+
function updatePercentage(args) {
|
|
1123
|
+
const {
|
|
1124
|
+
percentage,
|
|
1125
|
+
id
|
|
1126
|
+
} = args;
|
|
1127
|
+
|
|
1128
|
+
for (let i = 0; i < items.value.length; i++) {
|
|
1129
|
+
if (items.value[i].id == id) {
|
|
1130
|
+
items.value[i].percentage = percentage;
|
|
1131
|
+
break;
|
|
1132
|
+
}
|
|
1133
|
+
} // 重新排序数组
|
|
1134
|
+
|
|
1135
|
+
|
|
1136
|
+
items.value.sort((a, b) => a.percentage - b.percentage);
|
|
1137
|
+
backgroundImage.value = updateBackgroundImage();
|
|
1138
|
+
emit("color-changed", items.value);
|
|
1139
|
+
} // 更新颜色
|
|
1140
|
+
|
|
1141
|
+
|
|
1142
|
+
function updateColor(args) {
|
|
1143
|
+
const {
|
|
1144
|
+
color,
|
|
1145
|
+
id
|
|
1146
|
+
} = args;
|
|
1147
|
+
|
|
1148
|
+
for (let i = 0; i < items.value.length; i++) {
|
|
1149
|
+
if (items.value[i].id == id) {
|
|
1150
|
+
items.value[i].color = color;
|
|
1151
|
+
break;
|
|
1152
|
+
}
|
|
1153
|
+
} // 重新排序数组
|
|
1154
|
+
|
|
1155
|
+
|
|
1156
|
+
items.value.sort((a, b) => a.percentage - b.percentage);
|
|
1157
|
+
backgroundImage.value = updateBackgroundImage();
|
|
1158
|
+
emit("color-changed", items.value);
|
|
1159
|
+
} // 删除色块
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
function deleteColorSlider(args) {
|
|
1163
|
+
if (items.value.length <= 2) {
|
|
1164
|
+
return;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
const {
|
|
1168
|
+
id
|
|
1169
|
+
} = args;
|
|
1170
|
+
|
|
1171
|
+
for (let i = 0; i < items.value.length; i++) {
|
|
1172
|
+
if (items.value[i].id == id) {
|
|
1173
|
+
items.value.splice(i, 1);
|
|
1174
|
+
break;
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
backgroundImage.value = updateBackgroundImage();
|
|
1179
|
+
emit("color-changed", items.value);
|
|
1180
|
+
} // 增加色块
|
|
1181
|
+
|
|
1182
|
+
|
|
1183
|
+
function addColorSlider(event) {
|
|
1184
|
+
items.value.push({
|
|
1185
|
+
id: (0,util_.guid)(),
|
|
1186
|
+
color: "#0000FF",
|
|
1187
|
+
percentage: event.offsetX / width * 100
|
|
1188
|
+
}); // 重新排序数组
|
|
1189
|
+
|
|
1190
|
+
items.value.sort((a, b) => a.percentage - b.percentage);
|
|
1191
|
+
backgroundImage.value = updateBackgroundImage();
|
|
1192
|
+
emit("color-changed", items.value);
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
return (_ctx, _cache) => {
|
|
1196
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", CustomColorPickervue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
|
|
1197
|
+
class: "palette",
|
|
1198
|
+
style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(backgroundImage))
|
|
1199
|
+
}, null, 4
|
|
1200
|
+
/* STYLE */
|
|
1201
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
|
|
1202
|
+
class: "csh",
|
|
1203
|
+
onClick: addColorSlider
|
|
1204
|
+
}, [((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.Fragment, null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.renderList)(items.value, item => {
|
|
1205
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(CustomColorPickerSlider, {
|
|
1206
|
+
key: item.id,
|
|
1207
|
+
width: width,
|
|
1208
|
+
color: item.color,
|
|
1209
|
+
id: item.id,
|
|
1210
|
+
percentage: item.percentage,
|
|
1211
|
+
onUpdatePercentage: updatePercentage,
|
|
1212
|
+
onUpdateColor: updateColor,
|
|
1213
|
+
onDeleteColorSlider: deleteColorSlider
|
|
1214
|
+
}, null, 8
|
|
1215
|
+
/* PROPS */
|
|
1216
|
+
, ["color", "id", "percentage"]);
|
|
1217
|
+
}), 128
|
|
1218
|
+
/* KEYED_FRAGMENT */
|
|
1219
|
+
))])]);
|
|
1220
|
+
};
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
});
|
|
1224
|
+
;// CONCATENATED MODULE: ./src/webgl/heatmap3d/CustomColorPicker.vue?vue&type=script&setup=true&lang=js
|
|
1225
|
+
|
|
1226
|
+
// 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/heatmap3d/CustomColorPicker.vue?vue&type=style&index=0&id=b1608504&scoped=true&lang=scss
|
|
1227
|
+
var CustomColorPickervue_type_style_index_0_id_b1608504_scoped_true_lang_scss = __webpack_require__(4098);
|
|
1228
|
+
;// 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/heatmap3d/CustomColorPicker.vue?vue&type=style&index=0&id=b1608504&scoped=true&lang=scss
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
|
|
1232
|
+
var CustomColorPickervue_type_style_index_0_id_b1608504_scoped_true_lang_scss_options = {};
|
|
1233
|
+
|
|
1234
|
+
CustomColorPickervue_type_style_index_0_id_b1608504_scoped_true_lang_scss_options.insert = "head";
|
|
1235
|
+
CustomColorPickervue_type_style_index_0_id_b1608504_scoped_true_lang_scss_options.singleton = false;
|
|
1236
|
+
|
|
1237
|
+
var CustomColorPickervue_type_style_index_0_id_b1608504_scoped_true_lang_scss_update = injectStylesIntoStyleTag_default()(CustomColorPickervue_type_style_index_0_id_b1608504_scoped_true_lang_scss/* default */.Z, CustomColorPickervue_type_style_index_0_id_b1608504_scoped_true_lang_scss_options);
|
|
1238
|
+
|
|
1239
|
+
|
|
1240
|
+
|
|
1241
|
+
/* harmony default export */ var heatmap3d_CustomColorPickervue_type_style_index_0_id_b1608504_scoped_true_lang_scss = (CustomColorPickervue_type_style_index_0_id_b1608504_scoped_true_lang_scss/* default.locals */.Z.locals || {});
|
|
1242
|
+
;// CONCATENATED MODULE: ./src/webgl/heatmap3d/CustomColorPicker.vue?vue&type=style&index=0&id=b1608504&scoped=true&lang=scss
|
|
1243
|
+
|
|
1244
|
+
;// CONCATENATED MODULE: ./src/webgl/heatmap3d/CustomColorPicker.vue
|
|
1245
|
+
|
|
1246
|
+
|
|
1247
|
+
|
|
1248
|
+
;
|
|
1249
|
+
|
|
1250
|
+
|
|
1251
|
+
const CustomColorPicker_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(CustomColorPickervue_type_script_setup_true_lang_js, [['__scopeId',"data-v-b1608504"]])
|
|
1252
|
+
|
|
1253
|
+
/* harmony default export */ var CustomColorPicker = (CustomColorPicker_exports_);
|
|
1254
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/heatmap3d/Heatmap3d.vue?vue&type=script&setup=true&lang=js
|
|
1255
|
+
|
|
1256
|
+
|
|
1257
|
+
const Heatmap3dvue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
1258
|
+
class: "kq3d-heatmap-box"
|
|
1259
|
+
};
|
|
1260
|
+
const _hoisted_2 = {
|
|
1261
|
+
class: "kq3d-heatmap-span"
|
|
1262
|
+
};
|
|
1263
|
+
const _hoisted_3 = {
|
|
1264
|
+
class: "kq3d-heatmap-span"
|
|
1265
|
+
};
|
|
1266
|
+
const _hoisted_4 = {
|
|
1267
|
+
class: "kq3d-heatmap-footer"
|
|
1268
|
+
};
|
|
1269
|
+
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
|
|
1274
|
+
|
|
1275
|
+
|
|
1276
|
+
|
|
1277
|
+
|
|
1278
|
+
|
|
1279
|
+
const __default__ = {
|
|
1280
|
+
name: "Kq3dHeatmap"
|
|
1281
|
+
};
|
|
1282
|
+
/* harmony default export */ var Heatmap3dvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
1283
|
+
props: {
|
|
1284
|
+
// 设置参数
|
|
1285
|
+
settingParams: {
|
|
1286
|
+
type: Object
|
|
1287
|
+
},
|
|
1288
|
+
// 是否显示阴影效果
|
|
1289
|
+
showShadow: {
|
|
1290
|
+
type: Boolean,
|
|
1291
|
+
default: true
|
|
1292
|
+
},
|
|
1293
|
+
|
|
1294
|
+
/**
|
|
1295
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
1296
|
+
*/
|
|
1297
|
+
position: [String, Object],
|
|
1298
|
+
// 是否生成HeaderTemp
|
|
1299
|
+
showHeaderTemp: {
|
|
1300
|
+
type: Boolean,
|
|
1301
|
+
default: false
|
|
1302
|
+
},
|
|
1303
|
+
// 是否折叠HeaderTemp,showHeaderTemp为true时生效
|
|
1304
|
+
isCollapseHeaderTemp: {
|
|
1305
|
+
type: Boolean,
|
|
1306
|
+
default: false
|
|
1307
|
+
},
|
|
1308
|
+
// HeaderTemp标题
|
|
1309
|
+
headerTempTitle: {
|
|
1310
|
+
type: String
|
|
1311
|
+
},
|
|
1312
|
+
// HeaderTemp图标
|
|
1313
|
+
headerTempIcon: {
|
|
1314
|
+
type: [Object, String],
|
|
1315
|
+
default: client_icons_vue_.IconHeatMap3D
|
|
1316
|
+
},
|
|
1317
|
+
// HeaderTemp Title&Icon的位置
|
|
1318
|
+
isRight: {
|
|
1319
|
+
type: Boolean,
|
|
1320
|
+
default: true
|
|
1321
|
+
}
|
|
1322
|
+
},
|
|
1323
|
+
|
|
1324
|
+
setup(__props, {
|
|
1325
|
+
expose
|
|
1326
|
+
}) {
|
|
1327
|
+
const props = __props;
|
|
1328
|
+
const {
|
|
1329
|
+
proxy
|
|
1330
|
+
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
1331
|
+
let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
|
|
1332
|
+
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
1333
|
+
let collapseValue = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
|
|
1334
|
+
let weightFields = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]); // 获取组件传参
|
|
1335
|
+
|
|
1336
|
+
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
1337
|
+
dataPath: props.settingParams && props.settingParams.dataPath || "",
|
|
1338
|
+
//数据地址,json文件或json地址
|
|
1339
|
+
heatmapType: props.settingParams && props.settingParams.heatmapType || "3D",
|
|
1340
|
+
//渲染方式
|
|
1341
|
+
radius: props.settingParams && props.settingParams.radius || 8,
|
|
1342
|
+
//半径
|
|
1343
|
+
minRadius: props.settingParams && props.settingParams.minRadius || 5,
|
|
1344
|
+
maxRadius: props.settingParams && props.settingParams.maxRadius || 100,
|
|
1345
|
+
transparents: props.settingParams && props.settingParams.transparents || 0.75,
|
|
1346
|
+
//透明度
|
|
1347
|
+
minTransparents: 0,
|
|
1348
|
+
maxTransparents: 1,
|
|
1349
|
+
height: props.settingParams && props.settingParams.height || 800,
|
|
1350
|
+
//高度
|
|
1351
|
+
minHeight: props.settingParams && props.settingParams.minHeight || 0,
|
|
1352
|
+
maxHeight: props.settingParams && props.settingParams.minHeight || 1000,
|
|
1353
|
+
heightRatio: props.settingParams && props.settingParams.heightRatio || 2,
|
|
1354
|
+
//高度比率
|
|
1355
|
+
minHeightRatio: props.settingParams && props.settingParams.minHeightRatio || 0.1,
|
|
1356
|
+
// 最小值
|
|
1357
|
+
maxHeightRatio: props.settingParams && props.settingParams.maxHeightRatio || 10,
|
|
1358
|
+
// 最大值
|
|
1359
|
+
isShow: props.settingParams && props.settingParams.isShow || true,
|
|
1360
|
+
// 是否显示
|
|
1361
|
+
isGround: props.settingParams && props.settingParams.isGround || false,
|
|
1362
|
+
// 是否贴地
|
|
1363
|
+
isFollowingPerspective: props.settingParams && props.settingParams.isFollowingPerspective || true,
|
|
1364
|
+
//跟随视角调整
|
|
1365
|
+
valueField: props.settingParams && props.settingParams.valueField || "",
|
|
1366
|
+
// 权重字段
|
|
1367
|
+
colorMode: props.settingParams && props.settingParams.colorMode || 1,
|
|
1368
|
+
// 1:预设 2:自定义
|
|
1369
|
+
colorRamp: props.settingParams && props.settingParams.colorRamp || 0 //色带索引,0-16
|
|
1370
|
+
|
|
1371
|
+
});
|
|
1372
|
+
let viewModel = null; // 组件容器Ref
|
|
1373
|
+
|
|
1374
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
1375
|
+
|
|
1376
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
1377
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 国际化
|
|
1378
|
+
|
|
1379
|
+
let {
|
|
1380
|
+
locale,
|
|
1381
|
+
messages
|
|
1382
|
+
} = (0,vue_i18n_cjs_js_.useI18n)();
|
|
1383
|
+
let headerTempTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
1384
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => locale.value, (newVal, oldVal) => {
|
|
1385
|
+
language.value = messages.value[newVal]["webgl"];
|
|
1386
|
+
headerTempTitle.value = language.value.heatmapTitle;
|
|
1387
|
+
if (viewModel) viewModel.language = language.value;
|
|
1388
|
+
});
|
|
1389
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
1390
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
1391
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
1392
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
1393
|
+
});
|
|
1394
|
+
watchCreateHeaderTemp();
|
|
1395
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
1396
|
+
watchCreateHeaderTemp();
|
|
1397
|
+
});
|
|
1398
|
+
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
1399
|
+
//父组 件ScenceView初始化完成后执行
|
|
1400
|
+
|
|
1401
|
+
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
1402
|
+
if (scenceView) {
|
|
1403
|
+
viewModel = new Heatmap3dViewModel(scenceView, formItem);
|
|
1404
|
+
|
|
1405
|
+
if (viewModel) {
|
|
1406
|
+
viewModel.language = language.value;
|
|
1407
|
+
let test = heatColor.value; // 触发赋值
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
});
|
|
1411
|
+
});
|
|
1412
|
+
/**
|
|
1413
|
+
* @description 监听header生成
|
|
1414
|
+
*/
|
|
1415
|
+
|
|
1416
|
+
const watchCreateHeaderTemp = () => {
|
|
1417
|
+
if (props.showHeaderTemp) {
|
|
1418
|
+
// 生成headerTemp
|
|
1419
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
1420
|
+
}
|
|
1421
|
+
};
|
|
1422
|
+
|
|
1423
|
+
function selectData(file) {
|
|
1424
|
+
let url = URL.createObjectURL(file.raw);
|
|
1425
|
+
formItem.dataPath = url;
|
|
1426
|
+
} // 参数改变
|
|
1427
|
+
|
|
1428
|
+
|
|
1429
|
+
function paramsChanged(key) {
|
|
1430
|
+
viewModel && viewModel.paramsChanged(key, formItem[key]);
|
|
1431
|
+
|
|
1432
|
+
switch (key) {
|
|
1433
|
+
case "radius":
|
|
1434
|
+
case "height":
|
|
1435
|
+
formItem.isFollowingPerspective = false;
|
|
1436
|
+
break;
|
|
1437
|
+
|
|
1438
|
+
default:
|
|
1439
|
+
break;
|
|
1440
|
+
}
|
|
1441
|
+
} // 加载
|
|
1442
|
+
|
|
1443
|
+
|
|
1444
|
+
function startAnalysis() {
|
|
1445
|
+
getDataByPath();
|
|
1446
|
+
} // 获取路径数据
|
|
1447
|
+
|
|
1448
|
+
|
|
1449
|
+
function getDataByPath() {
|
|
1450
|
+
if (formItem && formItem.dataPath) {
|
|
1451
|
+
Cesium.Resource.fetchJson(formItem.dataPath).then(res => {
|
|
1452
|
+
if (res && res.features && res.features.length > 0) {
|
|
1453
|
+
let heatmapArr = [];
|
|
1454
|
+
let bigArray = [];
|
|
1455
|
+
res.features.forEach(element => {
|
|
1456
|
+
if (!element.properties || Object.keys(element.properties).length === 0) return;
|
|
1457
|
+
let result = getValidKeysAndValues(element.properties);
|
|
1458
|
+
bigArray.push(result.validKeys);
|
|
1459
|
+
heatmapArr.push({
|
|
1460
|
+
lng: element.geometry.coordinates[0],
|
|
1461
|
+
lat: element.geometry.coordinates[1],
|
|
1462
|
+
...result.newObj
|
|
1463
|
+
});
|
|
1464
|
+
});
|
|
1465
|
+
let commonArr = commonValues(bigArray);
|
|
1466
|
+
weightFields.value = commonArr;
|
|
1467
|
+
|
|
1468
|
+
if (!formItem.valueField) {
|
|
1469
|
+
formItem.valueField = commonArr[0];
|
|
1470
|
+
paramsChanged("valueField");
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
if (viewModel) {
|
|
1474
|
+
viewModel.heatmapData = heatmapArr;
|
|
1475
|
+
viewModel.start();
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
}).otherwise(ret => {
|
|
1479
|
+
console.log(ret);
|
|
1480
|
+
(0,message/* default */.Z)({
|
|
1481
|
+
message: "数据路径有问题!",
|
|
1482
|
+
type: "error",
|
|
1483
|
+
duration: 2000
|
|
1484
|
+
});
|
|
1485
|
+
return;
|
|
1486
|
+
});
|
|
1487
|
+
} else {
|
|
1488
|
+
(0,message/* default */.Z)({
|
|
1489
|
+
message: "先输入在线json地址或上传文件!",
|
|
1490
|
+
type: "warning",
|
|
1491
|
+
duration: 2000
|
|
1492
|
+
});
|
|
1493
|
+
return;
|
|
1494
|
+
}
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
function commonValues(bigArray) {
|
|
1498
|
+
// 如果大数组为空,直接返回空数组
|
|
1499
|
+
if (bigArray.length === 0) {
|
|
1500
|
+
return [];
|
|
1501
|
+
} // 以第一个小数组为初始值进行比较
|
|
1502
|
+
|
|
1503
|
+
|
|
1504
|
+
let common = [...bigArray[0]];
|
|
1505
|
+
|
|
1506
|
+
for (let i = 1; i < bigArray.length; i++) {
|
|
1507
|
+
common = common.filter(item => bigArray[i].includes(item));
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
return common;
|
|
1511
|
+
} // 获取对象键列表
|
|
1512
|
+
|
|
1513
|
+
|
|
1514
|
+
function getValidKeysAndValues(obj) {
|
|
1515
|
+
const validKeys = [];
|
|
1516
|
+
const newObj = {};
|
|
1517
|
+
|
|
1518
|
+
for (const key in obj) {
|
|
1519
|
+
const value = obj[key];
|
|
1520
|
+
|
|
1521
|
+
if (!isNaN(value) && value > 0) {
|
|
1522
|
+
validKeys.push(key);
|
|
1523
|
+
newObj[key] = value;
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
return {
|
|
1528
|
+
validKeys,
|
|
1529
|
+
newObj
|
|
1530
|
+
};
|
|
1531
|
+
} // 预设的色带
|
|
1532
|
+
|
|
1533
|
+
|
|
1534
|
+
const colorData = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([["#F0EDB6", "#E0831F", "#910909"], ["#80FFFF", "#2EA7F2", "#000068"], ["#9999FF", "#99FFFF", "#FF9999", "#FFFF99"], ["#9766BF", "#C9ADAD", "#B5ADDD", "#93A9DD", "#74A9E1"], ["#0000FF", "#00FFFF", "#00FF00", "#FFFF00", "#FF0000"], ["#814BAB", "#821498", "#D53448", "#FDD944", "#FFFFFF"], ["#636CEA", "#1B1DD5", "#BE1C4D", "#F79390", "#FFFFCC"], ["#7FC97F", "#BEAED4", "#FDC086", "#FFFF99", "#386CB0", "#70027F", "#BF5B17"], ["#A6CEE3", "#1F78B4", "#B2DF8A", "#33A02C", "#FB9A99", "#D2212D", "#FDBF6F"], ["#E41A1C", "#377EB8", "#4DAF4A", "#984EA3", "#FF7F00", "#FFFF33", "#A65628"], ["#D73027", "#FC8D59", "#FEE08B", "#FFFFBF", "#D9EF8B", "#91CF60", "#1A9850"], ["#D53E4F", "#FC8D59", "#FEE08B", "#FFFFBF", "#E6F598", "#99D594", "#3288BD"], ["#D73027", "#FC8D59", "#FEE090", "#FFFFBF", "#E0F3F8", "#91BFDB", "#4575B4"], ["#B2182B", "#EF8A62", "#FDDBC7", "#FFFFFF", "#E0E0E0", "#999999", "#4D4D4D"], ["#E9F013", "#B3B3B3", "#408000", "#000080", "#0D3069", "#ABABAB", "#FFFCFF"], ["#B0B0B0", "#0000FF", "#00A6FF", "#00FF00", "#00FFFF", "#FF0000", "#FFA600", "#FF00FF", "#0000FF"], ["#531DAB", "#2F54EB", "#40A9FF", "#5CDBD3", "#B7EB8F", "#FFE58F", "#FFC069", "#FF7A45", "#F53B44", "#A8071A"]]); // 自定义的颜色
|
|
1535
|
+
|
|
1536
|
+
const customColors = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.computed)({
|
|
1537
|
+
get() {
|
|
1538
|
+
const custom = props.settingParams && props.settingParams.custom;
|
|
1539
|
+
|
|
1540
|
+
if (!custom || custom.length == 0) {
|
|
1541
|
+
return getCustomColors(colorData.value[formItem.colorRamp]);
|
|
1542
|
+
} else {
|
|
1543
|
+
return custom;
|
|
1544
|
+
}
|
|
1545
|
+
},
|
|
1546
|
+
|
|
1547
|
+
set(value) {
|
|
1548
|
+
regroupColors();
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
});
|
|
1552
|
+
const heatColor = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.computed)({
|
|
1553
|
+
get() {
|
|
1554
|
+
if (formItem.colorMode === 1) {
|
|
1555
|
+
getCustomColors(colorData.value[formItem.colorRamp]);
|
|
1556
|
+
regroupColors();
|
|
1557
|
+
} else {
|
|
1558
|
+
onChangeColorRamp();
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
return heatColor.value;
|
|
1562
|
+
},
|
|
1563
|
+
|
|
1564
|
+
set(value) {
|
|
1565
|
+
viewModel && viewModel.setColorArray(value);
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
});
|
|
1569
|
+
|
|
1570
|
+
function getHeatColor() {} // 重组颜色渲染对象
|
|
1571
|
+
|
|
1572
|
+
|
|
1573
|
+
function regroupColors() {
|
|
1574
|
+
let obj = {};
|
|
1575
|
+
customColors.value.forEach(element => {
|
|
1576
|
+
obj[element.percentage / 100] = element.color;
|
|
1577
|
+
});
|
|
1578
|
+
heatColor.value = obj;
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
function onChangeColorRamp() {
|
|
1582
|
+
// 固定的开头
|
|
1583
|
+
const colors = colorData.value[formItem.colorRamp];
|
|
1584
|
+
const len = colors.length;
|
|
1585
|
+
const delta = 1 / len;
|
|
1586
|
+
let ramp = {};
|
|
1587
|
+
|
|
1588
|
+
for (let i = 0; i < len - 1; i++) {
|
|
1589
|
+
ramp[delta * (i + 1)] = colors[i];
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
ramp[1] = colors[len - 1];
|
|
1593
|
+
heatColor.value = {
|
|
1594
|
+
0: "rgba(0, 0, 0, 0)",
|
|
1595
|
+
...ramp
|
|
1596
|
+
};
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1599
|
+
function getCustomColors(colors) {
|
|
1600
|
+
let custom = [];
|
|
1601
|
+
const len = colors.length;
|
|
1602
|
+
const delta = 1 / (len - 1);
|
|
1603
|
+
|
|
1604
|
+
for (let i = 0; i < len; i++) {
|
|
1605
|
+
custom.push({
|
|
1606
|
+
id: (0,util_.guid)(),
|
|
1607
|
+
color: colors[i],
|
|
1608
|
+
percentage: i * delta * 100
|
|
1609
|
+
});
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
return custom;
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1615
|
+
function colorChanged(items) {
|
|
1616
|
+
let ramp = {};
|
|
1617
|
+
|
|
1618
|
+
for (let i = 0; i < items.length; i++) {
|
|
1619
|
+
if (items[i].percentage == 0) {
|
|
1620
|
+
items[i].percentage = 1;
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
ramp[items[i].percentage / 100] = items[i].color;
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
heatColor.value = {
|
|
1627
|
+
0: "rgba(0, 0, 0, 0)",
|
|
1628
|
+
...ramp
|
|
1629
|
+
};
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
function generateColorStyle(colors) {
|
|
1633
|
+
return `background-image: linear-gradient(90deg, ${colors.toString()})`;
|
|
1634
|
+
} // 反转色带的颜色
|
|
1635
|
+
|
|
1636
|
+
|
|
1637
|
+
function onClickReverseRamp(colors) {
|
|
1638
|
+
colors = colors.reverse();
|
|
1639
|
+
onChangeColorRamp();
|
|
1640
|
+
} // 清除
|
|
1641
|
+
|
|
1642
|
+
|
|
1643
|
+
function clearResult() {
|
|
1644
|
+
viewModel && viewModel.clear();
|
|
1645
|
+
} // 销毁
|
|
1646
|
+
|
|
1647
|
+
|
|
1648
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
1649
|
+
viewModel && viewModel.destroy();
|
|
1650
|
+
});
|
|
1651
|
+
expose({});
|
|
1652
|
+
return (_ctx, _cache) => {
|
|
1653
|
+
const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
|
|
1654
|
+
|
|
1655
|
+
const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-icon");
|
|
1656
|
+
|
|
1657
|
+
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
1658
|
+
|
|
1659
|
+
const _component_kq_upload = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-upload");
|
|
1660
|
+
|
|
1661
|
+
const _component_kq_input = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input");
|
|
1662
|
+
|
|
1663
|
+
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
1664
|
+
|
|
1665
|
+
const _component_kq_radio = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-radio");
|
|
1666
|
+
|
|
1667
|
+
const _component_kq_radio_group = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-radio-group");
|
|
1668
|
+
|
|
1669
|
+
const _component_kq_option = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-option");
|
|
1670
|
+
|
|
1671
|
+
const _component_kq_select = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-select");
|
|
1672
|
+
|
|
1673
|
+
const _component_kq_form_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form-item");
|
|
1674
|
+
|
|
1675
|
+
const _component_kq_radio_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-radio-button");
|
|
1676
|
+
|
|
1677
|
+
const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
|
|
1678
|
+
|
|
1679
|
+
const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
|
|
1680
|
+
|
|
1681
|
+
const _component_kq_switch = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-switch");
|
|
1682
|
+
|
|
1683
|
+
const _component_kq_form = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form");
|
|
1684
|
+
|
|
1685
|
+
const _component_kq_collapse_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse-item");
|
|
1686
|
+
|
|
1687
|
+
const _component_kq_collapse = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse");
|
|
1688
|
+
|
|
1689
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
1690
|
+
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-heatmap", {
|
|
1691
|
+
'kq-box-shadow': __props.showShadow
|
|
1692
|
+
}]),
|
|
1693
|
+
ref_key: "boxRef",
|
|
1694
|
+
ref: boxRef
|
|
1695
|
+
}, [__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)), {
|
|
1696
|
+
key: 0,
|
|
1697
|
+
ref_key: "headerTempRef",
|
|
1698
|
+
ref: headerTempRef
|
|
1699
|
+
}, null, 512
|
|
1700
|
+
/* NEED_PATCH */
|
|
1701
|
+
)) : (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", Heatmap3dvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
1702
|
+
gutter: 20,
|
|
1703
|
+
class: "rowClass"
|
|
1704
|
+
}, {
|
|
1705
|
+
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, {
|
|
1706
|
+
span: 6,
|
|
1707
|
+
class: "colClass"
|
|
1708
|
+
}, {
|
|
1709
|
+
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).dataPath), 1
|
|
1710
|
+
/* TEXT */
|
|
1711
|
+
)]),
|
|
1712
|
+
_: 1
|
|
1713
|
+
/* STABLE */
|
|
1714
|
+
|
|
1715
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
1716
|
+
span: 18
|
|
1717
|
+
}, {
|
|
1718
|
+
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, {
|
|
1719
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).dataPath,
|
|
1720
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).dataPath = $event),
|
|
1721
|
+
onChange: _cache[1] || (_cache[1] = $event => paramsChanged('dataPath')),
|
|
1722
|
+
placeholder: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).videoPathPlace
|
|
1723
|
+
}, {
|
|
1724
|
+
append: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_upload, {
|
|
1725
|
+
"on-change": selectData,
|
|
1726
|
+
"auto-upload": false,
|
|
1727
|
+
"show-file-list": false,
|
|
1728
|
+
accept: ".json"
|
|
1729
|
+
}, {
|
|
1730
|
+
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_button, null, {
|
|
1731
|
+
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_icon, {
|
|
1732
|
+
size: 16
|
|
1733
|
+
}, {
|
|
1734
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconFolder2))]),
|
|
1735
|
+
_: 1
|
|
1736
|
+
/* STABLE */
|
|
1737
|
+
|
|
1738
|
+
})]),
|
|
1739
|
+
_: 1
|
|
1740
|
+
/* STABLE */
|
|
1741
|
+
|
|
1742
|
+
})]),
|
|
1743
|
+
_: 1
|
|
1744
|
+
/* STABLE */
|
|
1745
|
+
|
|
1746
|
+
})]),
|
|
1747
|
+
_: 1
|
|
1748
|
+
/* STABLE */
|
|
1749
|
+
|
|
1750
|
+
}, 8
|
|
1751
|
+
/* PROPS */
|
|
1752
|
+
, ["modelValue", "placeholder"])]),
|
|
1753
|
+
_: 1
|
|
1754
|
+
/* STABLE */
|
|
1755
|
+
|
|
1756
|
+
})]),
|
|
1757
|
+
_: 1
|
|
1758
|
+
/* STABLE */
|
|
1759
|
+
|
|
1760
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
1761
|
+
gutter: 20,
|
|
1762
|
+
class: "rowClass"
|
|
1763
|
+
}, {
|
|
1764
|
+
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, {
|
|
1765
|
+
span: 6,
|
|
1766
|
+
class: "colClass"
|
|
1767
|
+
}, {
|
|
1768
|
+
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_3, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).heatmapType), 1
|
|
1769
|
+
/* TEXT */
|
|
1770
|
+
)]),
|
|
1771
|
+
_: 1
|
|
1772
|
+
/* STABLE */
|
|
1773
|
+
|
|
1774
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
1775
|
+
span: 18
|
|
1776
|
+
}, {
|
|
1777
|
+
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_radio_group, {
|
|
1778
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).heatmapType,
|
|
1779
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).heatmapType = $event)
|
|
1780
|
+
}, {
|
|
1781
|
+
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_radio, {
|
|
1782
|
+
label: "3D",
|
|
1783
|
+
onChange: _cache[2] || (_cache[2] = $event => paramsChanged('heatmapType'))
|
|
1784
|
+
}, {
|
|
1785
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)("3D")]),
|
|
1786
|
+
_: 1
|
|
1787
|
+
/* STABLE */
|
|
1788
|
+
|
|
1789
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_radio, {
|
|
1790
|
+
label: "2D",
|
|
1791
|
+
onChange: _cache[3] || (_cache[3] = $event => paramsChanged('heatmapType'))
|
|
1792
|
+
}, {
|
|
1793
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)("2D")]),
|
|
1794
|
+
_: 1
|
|
1795
|
+
/* STABLE */
|
|
1796
|
+
|
|
1797
|
+
})]),
|
|
1798
|
+
_: 1
|
|
1799
|
+
/* STABLE */
|
|
1800
|
+
|
|
1801
|
+
}, 8
|
|
1802
|
+
/* PROPS */
|
|
1803
|
+
, ["modelValue"])]),
|
|
1804
|
+
_: 1
|
|
1805
|
+
/* STABLE */
|
|
1806
|
+
|
|
1807
|
+
})]),
|
|
1808
|
+
_: 1
|
|
1809
|
+
/* STABLE */
|
|
1810
|
+
|
|
1811
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
1812
|
+
class: "kq3d-heatmap-tip"
|
|
1813
|
+
}, {
|
|
1814
|
+
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).heatmapTips), 1
|
|
1815
|
+
/* TEXT */
|
|
1816
|
+
)]),
|
|
1817
|
+
_: 1
|
|
1818
|
+
/* STABLE */
|
|
1819
|
+
|
|
1820
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_collapse, {
|
|
1821
|
+
"model-value": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(collapseValue),
|
|
1822
|
+
class: "kq3d-heatmap-collapse"
|
|
1823
|
+
}, {
|
|
1824
|
+
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_collapse_item, {
|
|
1825
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).analysisSettings,
|
|
1826
|
+
name: "setting"
|
|
1827
|
+
}, {
|
|
1828
|
+
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, {
|
|
1829
|
+
"label-width": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? '110px' : '130px',
|
|
1830
|
+
"label-position": "left"
|
|
1831
|
+
}, {
|
|
1832
|
+
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, null, {
|
|
1833
|
+
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, {
|
|
1834
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).weightField
|
|
1835
|
+
}, {
|
|
1836
|
+
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_select, {
|
|
1837
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).valueField,
|
|
1838
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).valueField = $event),
|
|
1839
|
+
onChange: _cache[6] || (_cache[6] = $event => paramsChanged('valueField')),
|
|
1840
|
+
style: {
|
|
1841
|
+
"width": "100%"
|
|
1842
|
+
}
|
|
1843
|
+
}, {
|
|
1844
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.Fragment, null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.renderList)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(weightFields), (item, index) => {
|
|
1845
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_option, {
|
|
1846
|
+
key: index,
|
|
1847
|
+
label: item,
|
|
1848
|
+
value: item
|
|
1849
|
+
}, null, 8
|
|
1850
|
+
/* PROPS */
|
|
1851
|
+
, ["label", "value"]);
|
|
1852
|
+
}), 128
|
|
1853
|
+
/* KEYED_FRAGMENT */
|
|
1854
|
+
))]),
|
|
1855
|
+
_: 1
|
|
1856
|
+
/* STABLE */
|
|
1857
|
+
|
|
1858
|
+
}, 8
|
|
1859
|
+
/* PROPS */
|
|
1860
|
+
, ["modelValue"])]),
|
|
1861
|
+
_: 1
|
|
1862
|
+
/* STABLE */
|
|
1863
|
+
|
|
1864
|
+
}, 8
|
|
1865
|
+
/* PROPS */
|
|
1866
|
+
, ["label"])]),
|
|
1867
|
+
_: 1
|
|
1868
|
+
/* STABLE */
|
|
1869
|
+
|
|
1870
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
1871
|
+
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, {
|
|
1872
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).colorScheme
|
|
1873
|
+
}, {
|
|
1874
|
+
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, null, {
|
|
1875
|
+
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, {
|
|
1876
|
+
style: {
|
|
1877
|
+
"text-align": "left"
|
|
1878
|
+
}
|
|
1879
|
+
}, {
|
|
1880
|
+
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_radio_group, {
|
|
1881
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).colorMode,
|
|
1882
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).colorMode = $event)
|
|
1883
|
+
}, {
|
|
1884
|
+
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_radio_button, {
|
|
1885
|
+
label: "1"
|
|
1886
|
+
}, {
|
|
1887
|
+
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).preset), 1
|
|
1888
|
+
/* TEXT */
|
|
1889
|
+
)]),
|
|
1890
|
+
_: 1
|
|
1891
|
+
/* STABLE */
|
|
1892
|
+
|
|
1893
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_radio_button, {
|
|
1894
|
+
label: "2"
|
|
1895
|
+
}, {
|
|
1896
|
+
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).customTitle), 1
|
|
1897
|
+
/* TEXT */
|
|
1898
|
+
)]),
|
|
1899
|
+
_: 1
|
|
1900
|
+
/* STABLE */
|
|
1901
|
+
|
|
1902
|
+
})]),
|
|
1903
|
+
_: 1
|
|
1904
|
+
/* STABLE */
|
|
1905
|
+
|
|
1906
|
+
}, 8
|
|
1907
|
+
/* PROPS */
|
|
1908
|
+
, ["modelValue"])]),
|
|
1909
|
+
_: 1
|
|
1910
|
+
/* STABLE */
|
|
1911
|
+
|
|
1912
|
+
})]),
|
|
1913
|
+
_: 1
|
|
1914
|
+
/* STABLE */
|
|
1915
|
+
|
|
1916
|
+
})]),
|
|
1917
|
+
_: 1
|
|
1918
|
+
/* STABLE */
|
|
1919
|
+
|
|
1920
|
+
}, 8
|
|
1921
|
+
/* PROPS */
|
|
1922
|
+
, ["label"])]),
|
|
1923
|
+
_: 1
|
|
1924
|
+
/* STABLE */
|
|
1925
|
+
|
|
1926
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).colorMode == 1 ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_row, {
|
|
1927
|
+
key: 0
|
|
1928
|
+
}, {
|
|
1929
|
+
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, {
|
|
1930
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).colorBand
|
|
1931
|
+
}, {
|
|
1932
|
+
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, null, {
|
|
1933
|
+
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, {
|
|
1934
|
+
style: {
|
|
1935
|
+
"text-align": "left"
|
|
1936
|
+
},
|
|
1937
|
+
class: "heatSelect"
|
|
1938
|
+
}, {
|
|
1939
|
+
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_select, {
|
|
1940
|
+
style: {
|
|
1941
|
+
"width": "100%"
|
|
1942
|
+
},
|
|
1943
|
+
"popper-class": "heat-color-select",
|
|
1944
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).colorRamp,
|
|
1945
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).colorRamp = $event),
|
|
1946
|
+
onChange: onChangeColorRamp
|
|
1947
|
+
}, {
|
|
1948
|
+
prefix: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
|
|
1949
|
+
class: "color-ramp",
|
|
1950
|
+
style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)(generateColorStyle(colorData.value[(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).colorRamp]))
|
|
1951
|
+
}, null, 4
|
|
1952
|
+
/* STYLE */
|
|
1953
|
+
)]),
|
|
1954
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.Fragment, null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.renderList)(colorData.value, (item, index) => {
|
|
1955
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_option, {
|
|
1956
|
+
class: "color-option",
|
|
1957
|
+
key: index,
|
|
1958
|
+
value: index
|
|
1959
|
+
}, {
|
|
1960
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
|
|
1961
|
+
class: "color-ramp",
|
|
1962
|
+
style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)(generateColorStyle(item))
|
|
1963
|
+
}, null, 4
|
|
1964
|
+
/* STYLE */
|
|
1965
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_icon, {
|
|
1966
|
+
class: "reverse",
|
|
1967
|
+
onClick: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => onClickReverseRamp(item), ["stop"])
|
|
1968
|
+
}, {
|
|
1969
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(icons_vue_.Switch))]),
|
|
1970
|
+
_: 2
|
|
1971
|
+
/* DYNAMIC */
|
|
1972
|
+
|
|
1973
|
+
}, 1032
|
|
1974
|
+
/* PROPS, DYNAMIC_SLOTS */
|
|
1975
|
+
, ["onClick"])]),
|
|
1976
|
+
_: 2
|
|
1977
|
+
/* DYNAMIC */
|
|
1978
|
+
|
|
1979
|
+
}, 1032
|
|
1980
|
+
/* PROPS, DYNAMIC_SLOTS */
|
|
1981
|
+
, ["value"]);
|
|
1982
|
+
}), 128
|
|
1983
|
+
/* KEYED_FRAGMENT */
|
|
1984
|
+
))]),
|
|
1985
|
+
_: 1
|
|
1986
|
+
/* STABLE */
|
|
1987
|
+
|
|
1988
|
+
}, 8
|
|
1989
|
+
/* PROPS */
|
|
1990
|
+
, ["modelValue"])]),
|
|
1991
|
+
_: 1
|
|
1992
|
+
/* STABLE */
|
|
1993
|
+
|
|
1994
|
+
})]),
|
|
1995
|
+
_: 1
|
|
1996
|
+
/* STABLE */
|
|
1997
|
+
|
|
1998
|
+
})]),
|
|
1999
|
+
_: 1
|
|
2000
|
+
/* STABLE */
|
|
2001
|
+
|
|
2002
|
+
}, 8
|
|
2003
|
+
/* PROPS */
|
|
2004
|
+
, ["label"])]),
|
|
2005
|
+
_: 1
|
|
2006
|
+
/* STABLE */
|
|
2007
|
+
|
|
2008
|
+
})) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).colorMode == 2 ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_row, {
|
|
2009
|
+
key: 1
|
|
2010
|
+
}, {
|
|
2011
|
+
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, {
|
|
2012
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).colorBand
|
|
2013
|
+
}, {
|
|
2014
|
+
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, null, {
|
|
2015
|
+
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, {
|
|
2016
|
+
style: {
|
|
2017
|
+
"text-align": "left"
|
|
2018
|
+
}
|
|
2019
|
+
}, {
|
|
2020
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(CustomColorPicker, {
|
|
2021
|
+
data: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(customColors),
|
|
2022
|
+
onColorChanged: colorChanged
|
|
2023
|
+
}, null, 8
|
|
2024
|
+
/* PROPS */
|
|
2025
|
+
, ["data"])]),
|
|
2026
|
+
_: 1
|
|
2027
|
+
/* STABLE */
|
|
2028
|
+
|
|
2029
|
+
})]),
|
|
2030
|
+
_: 1
|
|
2031
|
+
/* STABLE */
|
|
2032
|
+
|
|
2033
|
+
})]),
|
|
2034
|
+
_: 1
|
|
2035
|
+
/* STABLE */
|
|
2036
|
+
|
|
2037
|
+
}, 8
|
|
2038
|
+
/* PROPS */
|
|
2039
|
+
, ["label"])]),
|
|
2040
|
+
_: 1
|
|
2041
|
+
/* STABLE */
|
|
2042
|
+
|
|
2043
|
+
})) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
2044
|
+
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, {
|
|
2045
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).radius + '(m)'
|
|
2046
|
+
}, {
|
|
2047
|
+
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, {
|
|
2048
|
+
style: {
|
|
2049
|
+
"display": "flex"
|
|
2050
|
+
}
|
|
2051
|
+
}, {
|
|
2052
|
+
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, {
|
|
2053
|
+
span: 16
|
|
2054
|
+
}, {
|
|
2055
|
+
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, {
|
|
2056
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).radius,
|
|
2057
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).radius = $event),
|
|
2058
|
+
step: 0.1,
|
|
2059
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minRadius,
|
|
2060
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxRadius,
|
|
2061
|
+
onInput: _cache[10] || (_cache[10] = $event => paramsChanged('radius'))
|
|
2062
|
+
}, null, 8
|
|
2063
|
+
/* PROPS */
|
|
2064
|
+
, ["modelValue", "step", "min", "max"])]),
|
|
2065
|
+
_: 1
|
|
2066
|
+
/* STABLE */
|
|
2067
|
+
|
|
2068
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
2069
|
+
span: 8
|
|
2070
|
+
}, {
|
|
2071
|
+
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, {
|
|
2072
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).radius,
|
|
2073
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).radius = $event),
|
|
2074
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minRadius,
|
|
2075
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxRadius,
|
|
2076
|
+
step: 0.1,
|
|
2077
|
+
onInput: _cache[12] || (_cache[12] = $event => paramsChanged('radius')),
|
|
2078
|
+
"controls-position": "right"
|
|
2079
|
+
}, null, 8
|
|
2080
|
+
/* PROPS */
|
|
2081
|
+
, ["modelValue", "min", "max", "step"])]),
|
|
2082
|
+
_: 1
|
|
2083
|
+
/* STABLE */
|
|
2084
|
+
|
|
2085
|
+
})]),
|
|
2086
|
+
_: 1
|
|
2087
|
+
/* STABLE */
|
|
2088
|
+
|
|
2089
|
+
})]),
|
|
2090
|
+
_: 1
|
|
2091
|
+
/* STABLE */
|
|
2092
|
+
|
|
2093
|
+
}, 8
|
|
2094
|
+
/* PROPS */
|
|
2095
|
+
, ["label"])]),
|
|
2096
|
+
_: 1
|
|
2097
|
+
/* STABLE */
|
|
2098
|
+
|
|
2099
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
2100
|
+
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, {
|
|
2101
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).transparents
|
|
2102
|
+
}, {
|
|
2103
|
+
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, {
|
|
2104
|
+
style: {
|
|
2105
|
+
"display": "flex"
|
|
2106
|
+
}
|
|
2107
|
+
}, {
|
|
2108
|
+
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, {
|
|
2109
|
+
span: 16
|
|
2110
|
+
}, {
|
|
2111
|
+
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, {
|
|
2112
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).transparents,
|
|
2113
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).transparents = $event),
|
|
2114
|
+
step: 0.01,
|
|
2115
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minTransparents,
|
|
2116
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxTransparents,
|
|
2117
|
+
onInput: _cache[14] || (_cache[14] = $event => paramsChanged('transparents'))
|
|
2118
|
+
}, null, 8
|
|
2119
|
+
/* PROPS */
|
|
2120
|
+
, ["modelValue", "step", "min", "max"])]),
|
|
2121
|
+
_: 1
|
|
2122
|
+
/* STABLE */
|
|
2123
|
+
|
|
2124
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
2125
|
+
span: 8
|
|
2126
|
+
}, {
|
|
2127
|
+
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, {
|
|
2128
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).transparents,
|
|
2129
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).transparents = $event),
|
|
2130
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minTransparents,
|
|
2131
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxTransparents,
|
|
2132
|
+
step: 0.01,
|
|
2133
|
+
onInput: _cache[16] || (_cache[16] = $event => paramsChanged('transparents')),
|
|
2134
|
+
"controls-position": "right"
|
|
2135
|
+
}, null, 8
|
|
2136
|
+
/* PROPS */
|
|
2137
|
+
, ["modelValue", "min", "max", "step"])]),
|
|
2138
|
+
_: 1
|
|
2139
|
+
/* STABLE */
|
|
2140
|
+
|
|
2141
|
+
})]),
|
|
2142
|
+
_: 1
|
|
2143
|
+
/* STABLE */
|
|
2144
|
+
|
|
2145
|
+
})]),
|
|
2146
|
+
_: 1
|
|
2147
|
+
/* STABLE */
|
|
2148
|
+
|
|
2149
|
+
}, 8
|
|
2150
|
+
/* PROPS */
|
|
2151
|
+
, ["label"])]),
|
|
2152
|
+
_: 1
|
|
2153
|
+
/* STABLE */
|
|
2154
|
+
|
|
2155
|
+
}), (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, {
|
|
2156
|
+
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, {
|
|
2157
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).height
|
|
2158
|
+
}, {
|
|
2159
|
+
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, {
|
|
2160
|
+
style: {
|
|
2161
|
+
"display": "flex"
|
|
2162
|
+
}
|
|
2163
|
+
}, {
|
|
2164
|
+
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, {
|
|
2165
|
+
span: 16
|
|
2166
|
+
}, {
|
|
2167
|
+
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, {
|
|
2168
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).height,
|
|
2169
|
+
"onUpdate:modelValue": _cache[17] || (_cache[17] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).height = $event),
|
|
2170
|
+
step: 1,
|
|
2171
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minHeight,
|
|
2172
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxHeight,
|
|
2173
|
+
onInput: _cache[18] || (_cache[18] = $event => paramsChanged('height'))
|
|
2174
|
+
}, null, 8
|
|
2175
|
+
/* PROPS */
|
|
2176
|
+
, ["modelValue", "min", "max"])]),
|
|
2177
|
+
_: 1
|
|
2178
|
+
/* STABLE */
|
|
2179
|
+
|
|
2180
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
2181
|
+
span: 8
|
|
2182
|
+
}, {
|
|
2183
|
+
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, {
|
|
2184
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).height,
|
|
2185
|
+
"onUpdate:modelValue": _cache[19] || (_cache[19] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).height = $event),
|
|
2186
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minHeight,
|
|
2187
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxHeight,
|
|
2188
|
+
step: 1,
|
|
2189
|
+
onInput: _cache[20] || (_cache[20] = $event => paramsChanged('height')),
|
|
2190
|
+
"controls-position": "right"
|
|
2191
|
+
}, null, 8
|
|
2192
|
+
/* PROPS */
|
|
2193
|
+
, ["modelValue", "min", "max"])]),
|
|
2194
|
+
_: 1
|
|
2195
|
+
/* STABLE */
|
|
2196
|
+
|
|
2197
|
+
})]),
|
|
2198
|
+
_: 1
|
|
2199
|
+
/* STABLE */
|
|
2200
|
+
|
|
2201
|
+
})]),
|
|
2202
|
+
_: 1
|
|
2203
|
+
/* STABLE */
|
|
2204
|
+
|
|
2205
|
+
}, 8
|
|
2206
|
+
/* PROPS */
|
|
2207
|
+
, ["label"])]),
|
|
2208
|
+
_: 1
|
|
2209
|
+
/* STABLE */
|
|
2210
|
+
|
|
2211
|
+
}, 512
|
|
2212
|
+
/* NEED_PATCH */
|
|
2213
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).heatmapType === '3D']]), (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, {
|
|
2214
|
+
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, {
|
|
2215
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).heightRatio
|
|
2216
|
+
}, {
|
|
2217
|
+
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, {
|
|
2218
|
+
style: {
|
|
2219
|
+
"display": "flex"
|
|
2220
|
+
}
|
|
2221
|
+
}, {
|
|
2222
|
+
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, {
|
|
2223
|
+
span: 16
|
|
2224
|
+
}, {
|
|
2225
|
+
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, {
|
|
2226
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).heightRatio,
|
|
2227
|
+
"onUpdate:modelValue": _cache[21] || (_cache[21] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).heightRatio = $event),
|
|
2228
|
+
step: 0.1,
|
|
2229
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minHeightRatio,
|
|
2230
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxHeightRatio,
|
|
2231
|
+
onInput: _cache[22] || (_cache[22] = $event => paramsChanged('heightRatio'))
|
|
2232
|
+
}, null, 8
|
|
2233
|
+
/* PROPS */
|
|
2234
|
+
, ["modelValue", "step", "min", "max"])]),
|
|
2235
|
+
_: 1
|
|
2236
|
+
/* STABLE */
|
|
2237
|
+
|
|
2238
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
2239
|
+
span: 8
|
|
2240
|
+
}, {
|
|
2241
|
+
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, {
|
|
2242
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).heightRatio,
|
|
2243
|
+
"onUpdate:modelValue": _cache[23] || (_cache[23] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).heightRatio = $event),
|
|
2244
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minHeightRatio,
|
|
2245
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxHeightRatio,
|
|
2246
|
+
step: 0.1,
|
|
2247
|
+
onInput: _cache[24] || (_cache[24] = $event => paramsChanged('heightRatio')),
|
|
2248
|
+
"controls-position": "right"
|
|
2249
|
+
}, null, 8
|
|
2250
|
+
/* PROPS */
|
|
2251
|
+
, ["modelValue", "min", "max", "step"])]),
|
|
2252
|
+
_: 1
|
|
2253
|
+
/* STABLE */
|
|
2254
|
+
|
|
2255
|
+
})]),
|
|
2256
|
+
_: 1
|
|
2257
|
+
/* STABLE */
|
|
2258
|
+
|
|
2259
|
+
})]),
|
|
2260
|
+
_: 1
|
|
2261
|
+
/* STABLE */
|
|
2262
|
+
|
|
2263
|
+
}, 8
|
|
2264
|
+
/* PROPS */
|
|
2265
|
+
, ["label"])]),
|
|
2266
|
+
_: 1
|
|
2267
|
+
/* STABLE */
|
|
2268
|
+
|
|
2269
|
+
}, 512
|
|
2270
|
+
/* NEED_PATCH */
|
|
2271
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).heatmapType === '3D']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
2272
|
+
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, {
|
|
2273
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).isShow
|
|
2274
|
+
}, {
|
|
2275
|
+
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, {
|
|
2276
|
+
style: {
|
|
2277
|
+
"display": "flex"
|
|
2278
|
+
}
|
|
2279
|
+
}, {
|
|
2280
|
+
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, {
|
|
2281
|
+
style: {
|
|
2282
|
+
"text-align": "left"
|
|
2283
|
+
}
|
|
2284
|
+
}, {
|
|
2285
|
+
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_switch, {
|
|
2286
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).isShow,
|
|
2287
|
+
"onUpdate:modelValue": _cache[25] || (_cache[25] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).isShow = $event),
|
|
2288
|
+
onChange: _cache[26] || (_cache[26] = $event => paramsChanged('isShow'))
|
|
2289
|
+
}, null, 8
|
|
2290
|
+
/* PROPS */
|
|
2291
|
+
, ["modelValue"])]),
|
|
2292
|
+
_: 1
|
|
2293
|
+
/* STABLE */
|
|
2294
|
+
|
|
2295
|
+
})]),
|
|
2296
|
+
_: 1
|
|
2297
|
+
/* STABLE */
|
|
2298
|
+
|
|
2299
|
+
})]),
|
|
2300
|
+
_: 1
|
|
2301
|
+
/* STABLE */
|
|
2302
|
+
|
|
2303
|
+
}, 8
|
|
2304
|
+
/* PROPS */
|
|
2305
|
+
, ["label"])]),
|
|
2306
|
+
_: 1
|
|
2307
|
+
/* STABLE */
|
|
2308
|
+
|
|
2309
|
+
}), (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, {
|
|
2310
|
+
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, {
|
|
2311
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).isGround
|
|
2312
|
+
}, {
|
|
2313
|
+
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, {
|
|
2314
|
+
style: {
|
|
2315
|
+
"display": "flex"
|
|
2316
|
+
}
|
|
2317
|
+
}, {
|
|
2318
|
+
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, {
|
|
2319
|
+
style: {
|
|
2320
|
+
"text-align": "left"
|
|
2321
|
+
}
|
|
2322
|
+
}, {
|
|
2323
|
+
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_switch, {
|
|
2324
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).isGround,
|
|
2325
|
+
"onUpdate:modelValue": _cache[27] || (_cache[27] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).isGround = $event),
|
|
2326
|
+
onChange: _cache[28] || (_cache[28] = $event => paramsChanged('isGround'))
|
|
2327
|
+
}, null, 8
|
|
2328
|
+
/* PROPS */
|
|
2329
|
+
, ["modelValue"])]),
|
|
2330
|
+
_: 1
|
|
2331
|
+
/* STABLE */
|
|
2332
|
+
|
|
2333
|
+
})]),
|
|
2334
|
+
_: 1
|
|
2335
|
+
/* STABLE */
|
|
2336
|
+
|
|
2337
|
+
})]),
|
|
2338
|
+
_: 1
|
|
2339
|
+
/* STABLE */
|
|
2340
|
+
|
|
2341
|
+
}, 8
|
|
2342
|
+
/* PROPS */
|
|
2343
|
+
, ["label"])]),
|
|
2344
|
+
_: 1
|
|
2345
|
+
/* STABLE */
|
|
2346
|
+
|
|
2347
|
+
}, 512
|
|
2348
|
+
/* NEED_PATCH */
|
|
2349
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).heatmapType === '3D']]), (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, {
|
|
2350
|
+
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, {
|
|
2351
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).isFollowingPerspective
|
|
2352
|
+
}, {
|
|
2353
|
+
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, {
|
|
2354
|
+
style: {
|
|
2355
|
+
"display": "flex"
|
|
2356
|
+
}
|
|
2357
|
+
}, {
|
|
2358
|
+
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, {
|
|
2359
|
+
style: {
|
|
2360
|
+
"text-align": "left"
|
|
2361
|
+
}
|
|
2362
|
+
}, {
|
|
2363
|
+
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_switch, {
|
|
2364
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).isFollowingPerspective,
|
|
2365
|
+
"onUpdate:modelValue": _cache[29] || (_cache[29] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).isFollowingPerspective = $event),
|
|
2366
|
+
onChange: _cache[30] || (_cache[30] = $event => paramsChanged('isFollowingPerspective'))
|
|
2367
|
+
}, null, 8
|
|
2368
|
+
/* PROPS */
|
|
2369
|
+
, ["modelValue"])]),
|
|
2370
|
+
_: 1
|
|
2371
|
+
/* STABLE */
|
|
2372
|
+
|
|
2373
|
+
})]),
|
|
2374
|
+
_: 1
|
|
2375
|
+
/* STABLE */
|
|
2376
|
+
|
|
2377
|
+
})]),
|
|
2378
|
+
_: 1
|
|
2379
|
+
/* STABLE */
|
|
2380
|
+
|
|
2381
|
+
}, 8
|
|
2382
|
+
/* PROPS */
|
|
2383
|
+
, ["label"])]),
|
|
2384
|
+
_: 1
|
|
2385
|
+
/* STABLE */
|
|
2386
|
+
|
|
2387
|
+
}, 512
|
|
2388
|
+
/* NEED_PATCH */
|
|
2389
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).heatmapType === '3D']])]),
|
|
2390
|
+
_: 1
|
|
2391
|
+
/* STABLE */
|
|
2392
|
+
|
|
2393
|
+
}, 8
|
|
2394
|
+
/* PROPS */
|
|
2395
|
+
, ["label-width"])]),
|
|
2396
|
+
_: 1
|
|
2397
|
+
/* STABLE */
|
|
2398
|
+
|
|
2399
|
+
}, 8
|
|
2400
|
+
/* PROPS */
|
|
2401
|
+
, ["title"])]),
|
|
2402
|
+
_: 1
|
|
2403
|
+
/* STABLE */
|
|
2404
|
+
|
|
2405
|
+
}, 8
|
|
2406
|
+
/* PROPS */
|
|
2407
|
+
, ["model-value"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_4, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
2408
|
+
onClick: _cache[31] || (_cache[31] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startAnalysis(), ["stop"])),
|
|
2409
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).heatmapLoad,
|
|
2410
|
+
type: "primary"
|
|
2411
|
+
}, {
|
|
2412
|
+
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).heatmapLoad), 1
|
|
2413
|
+
/* TEXT */
|
|
2414
|
+
)]),
|
|
2415
|
+
_: 1
|
|
2416
|
+
/* STABLE */
|
|
2417
|
+
|
|
2418
|
+
}, 8
|
|
2419
|
+
/* PROPS */
|
|
2420
|
+
, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
2421
|
+
onClick: _cache[32] || (_cache[32] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clearResult(), ["stop"])),
|
|
2422
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearResult
|
|
2423
|
+
}, {
|
|
2424
|
+
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).clearResult), 1
|
|
2425
|
+
/* TEXT */
|
|
2426
|
+
)]),
|
|
2427
|
+
_: 1
|
|
2428
|
+
/* STABLE */
|
|
2429
|
+
|
|
2430
|
+
}, 8
|
|
2431
|
+
/* PROPS */
|
|
2432
|
+
, ["title"])])])], 2
|
|
2433
|
+
/* CLASS */
|
|
2434
|
+
);
|
|
2435
|
+
};
|
|
2436
|
+
}
|
|
2437
|
+
|
|
2438
|
+
}));
|
|
2439
|
+
;// CONCATENATED MODULE: ./src/webgl/heatmap3d/Heatmap3d.vue?vue&type=script&setup=true&lang=js
|
|
2440
|
+
|
|
2441
|
+
;// CONCATENATED MODULE: ./src/webgl/heatmap3d/Heatmap3d.vue
|
|
2442
|
+
|
|
2443
|
+
|
|
2444
|
+
|
|
2445
|
+
const Heatmap3d_exports_ = Heatmap3dvue_type_script_setup_true_lang_js;
|
|
2446
|
+
|
|
2447
|
+
/* harmony default export */ var Heatmap3d = (Heatmap3d_exports_);
|
|
2448
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
2449
|
+
var init_js_ = __webpack_require__(7997);
|
|
2450
|
+
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
2451
|
+
;// CONCATENATED MODULE: ./src/webgl/heatmap3d/index.js
|
|
2452
|
+
|
|
2453
|
+
|
|
2454
|
+
|
|
2455
|
+
|
|
2456
|
+
Heatmap3d.install = (Vue, opts) => {
|
|
2457
|
+
init_js_default()(Vue, opts);
|
|
2458
|
+
Vue.component(Heatmap3d.name, Heatmap3d);
|
|
2459
|
+
};
|
|
2460
|
+
|
|
2461
|
+
|
|
2462
|
+
}();
|
|
2463
|
+
/******/ return __webpack_exports__;
|
|
2464
|
+
/******/ })()
|
|
2465
|
+
;
|
|
2466
|
+
});
|