@kq_npm/client3d_webgl_vue 4.5.0 → 4.5.2
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 +2485 -0
- package/heatmap3d/style/heatmap3d.css +1 -0
- package/heatmap3d/style/index.js +3 -0
- package/index.js +2156 -240
- package/package.json +1 -1
- package/scenetohdimage/index.js +6 -3
- package/sceneview/index.js +2228 -273
- package/style.css +1 -1
package/sceneview/index.js
CHANGED
|
@@ -84,6 +84,30 @@ module.exports = function (cssWithMappingToString) {
|
|
|
84
84
|
|
|
85
85
|
/***/ }),
|
|
86
86
|
|
|
87
|
+
/***/ 6021:
|
|
88
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
89
|
+
|
|
90
|
+
"use strict";
|
|
91
|
+
var __webpack_unused_export__;
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
__webpack_unused_export__ = ({
|
|
95
|
+
value: true
|
|
96
|
+
}); // runtime helper for setting properties on components
|
|
97
|
+
// in a tree-shakable way
|
|
98
|
+
|
|
99
|
+
exports.Z = (sfc, props) => {
|
|
100
|
+
const target = sfc.__vccOpts || sfc;
|
|
101
|
+
|
|
102
|
+
for (const [key, val] of props) {
|
|
103
|
+
target[key] = val;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
return target;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
/***/ }),
|
|
110
|
+
|
|
87
111
|
/***/ 3961:
|
|
88
112
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
89
113
|
|
|
@@ -12226,7 +12250,1978 @@ const __default__ = {
|
|
|
12226
12250
|
|
|
12227
12251
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
12228
12252
|
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, {
|
|
12229
|
-
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).xRotate
|
|
12253
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).xRotate
|
|
12254
|
+
}, {
|
|
12255
|
+
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, {
|
|
12256
|
+
style: {
|
|
12257
|
+
"display": "flex"
|
|
12258
|
+
}
|
|
12259
|
+
}, {
|
|
12260
|
+
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, {
|
|
12261
|
+
span: 16
|
|
12262
|
+
}, {
|
|
12263
|
+
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, {
|
|
12264
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).xRotate,
|
|
12265
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).xRotate = $event),
|
|
12266
|
+
step: 1,
|
|
12267
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minXRotate,
|
|
12268
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxXRotate,
|
|
12269
|
+
onInput: _cache[9] || (_cache[9] = $event => paramsChanged('xRotate'))
|
|
12270
|
+
}, null, 8
|
|
12271
|
+
/* PROPS */
|
|
12272
|
+
, ["modelValue", "min", "max"])]),
|
|
12273
|
+
_: 1
|
|
12274
|
+
/* STABLE */
|
|
12275
|
+
|
|
12276
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
12277
|
+
span: 8
|
|
12278
|
+
}, {
|
|
12279
|
+
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, {
|
|
12280
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).xRotate,
|
|
12281
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).xRotate = $event),
|
|
12282
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minXRotate,
|
|
12283
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxXRotate,
|
|
12284
|
+
step: 1,
|
|
12285
|
+
"controls-position": "right",
|
|
12286
|
+
onInput: _cache[11] || (_cache[11] = $event => paramsChanged('xRotate'))
|
|
12287
|
+
}, null, 8
|
|
12288
|
+
/* PROPS */
|
|
12289
|
+
, ["modelValue", "min", "max"])]),
|
|
12290
|
+
_: 1
|
|
12291
|
+
/* STABLE */
|
|
12292
|
+
|
|
12293
|
+
})]),
|
|
12294
|
+
_: 1
|
|
12295
|
+
/* STABLE */
|
|
12296
|
+
|
|
12297
|
+
})]),
|
|
12298
|
+
_: 1
|
|
12299
|
+
/* STABLE */
|
|
12300
|
+
|
|
12301
|
+
}, 8
|
|
12302
|
+
/* PROPS */
|
|
12303
|
+
, ["label"])]),
|
|
12304
|
+
_: 1
|
|
12305
|
+
/* STABLE */
|
|
12306
|
+
|
|
12307
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
12308
|
+
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, {
|
|
12309
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).yRotate
|
|
12310
|
+
}, {
|
|
12311
|
+
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, {
|
|
12312
|
+
style: {
|
|
12313
|
+
"display": "flex"
|
|
12314
|
+
}
|
|
12315
|
+
}, {
|
|
12316
|
+
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, {
|
|
12317
|
+
span: 16
|
|
12318
|
+
}, {
|
|
12319
|
+
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, {
|
|
12320
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).yRotate,
|
|
12321
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).yRotate = $event),
|
|
12322
|
+
step: 1,
|
|
12323
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minXRotate,
|
|
12324
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxXRotate,
|
|
12325
|
+
onInput: _cache[13] || (_cache[13] = $event => paramsChanged('yRotate'))
|
|
12326
|
+
}, null, 8
|
|
12327
|
+
/* PROPS */
|
|
12328
|
+
, ["modelValue", "min", "max"])]),
|
|
12329
|
+
_: 1
|
|
12330
|
+
/* STABLE */
|
|
12331
|
+
|
|
12332
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
12333
|
+
span: 8
|
|
12334
|
+
}, {
|
|
12335
|
+
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, {
|
|
12336
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).yRotate,
|
|
12337
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).yRotate = $event),
|
|
12338
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minXRotate,
|
|
12339
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxXRotate,
|
|
12340
|
+
step: 1,
|
|
12341
|
+
"controls-position": "right",
|
|
12342
|
+
onInput: _cache[15] || (_cache[15] = $event => paramsChanged('yRotate'))
|
|
12343
|
+
}, null, 8
|
|
12344
|
+
/* PROPS */
|
|
12345
|
+
, ["modelValue", "min", "max"])]),
|
|
12346
|
+
_: 1
|
|
12347
|
+
/* STABLE */
|
|
12348
|
+
|
|
12349
|
+
})]),
|
|
12350
|
+
_: 1
|
|
12351
|
+
/* STABLE */
|
|
12352
|
+
|
|
12353
|
+
})]),
|
|
12354
|
+
_: 1
|
|
12355
|
+
/* STABLE */
|
|
12356
|
+
|
|
12357
|
+
}, 8
|
|
12358
|
+
/* PROPS */
|
|
12359
|
+
, ["label"])]),
|
|
12360
|
+
_: 1
|
|
12361
|
+
/* STABLE */
|
|
12362
|
+
|
|
12363
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
12364
|
+
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, {
|
|
12365
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).zRotate
|
|
12366
|
+
}, {
|
|
12367
|
+
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, {
|
|
12368
|
+
style: {
|
|
12369
|
+
"display": "flex"
|
|
12370
|
+
}
|
|
12371
|
+
}, {
|
|
12372
|
+
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, {
|
|
12373
|
+
span: 16
|
|
12374
|
+
}, {
|
|
12375
|
+
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, {
|
|
12376
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).zRotate,
|
|
12377
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).zRotate = $event),
|
|
12378
|
+
step: 1,
|
|
12379
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minZRotate,
|
|
12380
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxZRotate,
|
|
12381
|
+
onInput: _cache[17] || (_cache[17] = $event => paramsChanged('zRotate'))
|
|
12382
|
+
}, null, 8
|
|
12383
|
+
/* PROPS */
|
|
12384
|
+
, ["modelValue", "min", "max"])]),
|
|
12385
|
+
_: 1
|
|
12386
|
+
/* STABLE */
|
|
12387
|
+
|
|
12388
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
12389
|
+
span: 8
|
|
12390
|
+
}, {
|
|
12391
|
+
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, {
|
|
12392
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).zRotate,
|
|
12393
|
+
"onUpdate:modelValue": _cache[18] || (_cache[18] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).zRotate = $event),
|
|
12394
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minZRotate,
|
|
12395
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxZRotate,
|
|
12396
|
+
step: 1,
|
|
12397
|
+
"controls-position": "right",
|
|
12398
|
+
onInput: _cache[19] || (_cache[19] = $event => paramsChanged('zRotate'))
|
|
12399
|
+
}, null, 8
|
|
12400
|
+
/* PROPS */
|
|
12401
|
+
, ["modelValue", "min", "max"])]),
|
|
12402
|
+
_: 1
|
|
12403
|
+
/* STABLE */
|
|
12404
|
+
|
|
12405
|
+
})]),
|
|
12406
|
+
_: 1
|
|
12407
|
+
/* STABLE */
|
|
12408
|
+
|
|
12409
|
+
})]),
|
|
12410
|
+
_: 1
|
|
12411
|
+
/* STABLE */
|
|
12412
|
+
|
|
12413
|
+
}, 8
|
|
12414
|
+
/* PROPS */
|
|
12415
|
+
, ["label"])]),
|
|
12416
|
+
_: 1
|
|
12417
|
+
/* STABLE */
|
|
12418
|
+
|
|
12419
|
+
})]),
|
|
12420
|
+
_: 1
|
|
12421
|
+
/* STABLE */
|
|
12422
|
+
|
|
12423
|
+
})]),
|
|
12424
|
+
_: 1
|
|
12425
|
+
/* STABLE */
|
|
12426
|
+
|
|
12427
|
+
}, 8
|
|
12428
|
+
/* PROPS */
|
|
12429
|
+
, ["title"])]),
|
|
12430
|
+
_: 1
|
|
12431
|
+
/* STABLE */
|
|
12432
|
+
|
|
12433
|
+
}, 8
|
|
12434
|
+
/* PROPS */
|
|
12435
|
+
, ["model-value"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
12436
|
+
onClick: _cache[20] || (_cache[20] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => query(), ["stop"])),
|
|
12437
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).gpuQuery,
|
|
12438
|
+
type: "primary"
|
|
12439
|
+
}, {
|
|
12440
|
+
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).gpuQuery), 1
|
|
12441
|
+
/* TEXT */
|
|
12442
|
+
)]),
|
|
12443
|
+
_: 1
|
|
12444
|
+
/* STABLE */
|
|
12445
|
+
|
|
12446
|
+
}, 8
|
|
12447
|
+
/* PROPS */
|
|
12448
|
+
, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
12449
|
+
onClick: _cache[21] || (_cache[21] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => reset(), ["stop"])),
|
|
12450
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear
|
|
12451
|
+
}, {
|
|
12452
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear), 1
|
|
12453
|
+
/* TEXT */
|
|
12454
|
+
)]),
|
|
12455
|
+
_: 1
|
|
12456
|
+
/* STABLE */
|
|
12457
|
+
|
|
12458
|
+
}, 8
|
|
12459
|
+
/* PROPS */
|
|
12460
|
+
, ["title"])])])], 2
|
|
12461
|
+
/* CLASS */
|
|
12462
|
+
);
|
|
12463
|
+
};
|
|
12464
|
+
}
|
|
12465
|
+
|
|
12466
|
+
}));
|
|
12467
|
+
;// CONCATENATED MODULE: ./src/webgl/gpuspatialquery/GPUSpatialQuery.vue?vue&type=script&setup=true&lang=js
|
|
12468
|
+
|
|
12469
|
+
;// CONCATENATED MODULE: ./src/webgl/gpuspatialquery/GPUSpatialQuery.vue
|
|
12470
|
+
|
|
12471
|
+
|
|
12472
|
+
|
|
12473
|
+
const __exports__ = GPUSpatialQueryvue_type_script_setup_true_lang_js;
|
|
12474
|
+
|
|
12475
|
+
/* harmony default export */ var GPUSpatialQuery = (__exports__);
|
|
12476
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
12477
|
+
var init_js_ = __webpack_require__(7997);
|
|
12478
|
+
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
12479
|
+
;// CONCATENATED MODULE: ./src/webgl/gpuspatialquery/index.js
|
|
12480
|
+
|
|
12481
|
+
|
|
12482
|
+
|
|
12483
|
+
|
|
12484
|
+
GPUSpatialQuery.install = (Vue, opts) => {
|
|
12485
|
+
init_js_default()(Vue, opts);
|
|
12486
|
+
Vue.component(GPUSpatialQuery.name, GPUSpatialQuery);
|
|
12487
|
+
};
|
|
12488
|
+
|
|
12489
|
+
|
|
12490
|
+
|
|
12491
|
+
/***/ }),
|
|
12492
|
+
|
|
12493
|
+
/***/ 1162:
|
|
12494
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12495
|
+
|
|
12496
|
+
"use strict";
|
|
12497
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12498
|
+
/* harmony export */ "Z": function() { return /* binding */ HawkeyeViewModel; }
|
|
12499
|
+
/* harmony export */ });
|
|
12500
|
+
/* harmony import */ var _Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8270);
|
|
12501
|
+
|
|
12502
|
+
//鹰眼逻辑类
|
|
12503
|
+
class HawkeyeViewModel {
|
|
12504
|
+
//鹰眼三维对象
|
|
12505
|
+
constructor(scenceView, options) {
|
|
12506
|
+
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_overviewMap", null);
|
|
12507
|
+
|
|
12508
|
+
options.viewer = scenceView._viewer;
|
|
12509
|
+
options.centerRectColor = Cesium.Color.fromCssColorString(options.centerColor || "#0000ff").withAlpha(options.centerColorAlpha || 0.5);
|
|
12510
|
+
this.init(options);
|
|
12511
|
+
}
|
|
12512
|
+
|
|
12513
|
+
init(options) {
|
|
12514
|
+
// if(!options.layers) {
|
|
12515
|
+
// let layers = [];
|
|
12516
|
+
// options.viewer.imageryLayers._layers.forEach(function (layer) {
|
|
12517
|
+
// layers.push(layer);
|
|
12518
|
+
// });
|
|
12519
|
+
// options.layers = layers;
|
|
12520
|
+
// options.layers = new Cesium.Kq3dArcGISMapServerImageryProvider({
|
|
12521
|
+
// url: 'https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer'
|
|
12522
|
+
// });
|
|
12523
|
+
// }
|
|
12524
|
+
this._overviewMap = new Cesium.Kq3dOverviewMap(options);
|
|
12525
|
+
} //显示
|
|
12526
|
+
|
|
12527
|
+
|
|
12528
|
+
show() {
|
|
12529
|
+
this._overviewMap.show = true;
|
|
12530
|
+
} //隐藏
|
|
12531
|
+
|
|
12532
|
+
|
|
12533
|
+
hide() {
|
|
12534
|
+
this._overviewMap.show = false;
|
|
12535
|
+
} // 设置图层
|
|
12536
|
+
|
|
12537
|
+
|
|
12538
|
+
setLayers(layers) {
|
|
12539
|
+
if (Array.isArray(layers)) {
|
|
12540
|
+
this._overviewMap._viewer.imageryLayers.removeAll();
|
|
12541
|
+
|
|
12542
|
+
layers.forEach(layer => {
|
|
12543
|
+
this._overviewMap._viewer.imageryLayers.add(layer);
|
|
12544
|
+
});
|
|
12545
|
+
}
|
|
12546
|
+
} //销毁
|
|
12547
|
+
|
|
12548
|
+
|
|
12549
|
+
destroy() {
|
|
12550
|
+
this._overviewMap.destroy();
|
|
12551
|
+
|
|
12552
|
+
this._overviewMap = null;
|
|
12553
|
+
}
|
|
12554
|
+
|
|
12555
|
+
}
|
|
12556
|
+
|
|
12557
|
+
/***/ }),
|
|
12558
|
+
|
|
12559
|
+
/***/ 7686:
|
|
12560
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12561
|
+
|
|
12562
|
+
"use strict";
|
|
12563
|
+
|
|
12564
|
+
// EXPORTS
|
|
12565
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
12566
|
+
"default": function() { return /* reexport */ Hawkeye; }
|
|
12567
|
+
});
|
|
12568
|
+
|
|
12569
|
+
// UNUSED EXPORTS: HawkeyeViewModel
|
|
12570
|
+
|
|
12571
|
+
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
12572
|
+
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
|
|
12573
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
12574
|
+
var gis_utils_ = __webpack_require__(7135);
|
|
12575
|
+
// EXTERNAL MODULE: ./src/webgl/hawkeye/HawkeyeViewModel.js
|
|
12576
|
+
var HawkeyeViewModel = __webpack_require__(1162);
|
|
12577
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/hawkeye/Hawkeye.vue?vue&type=script&setup=true&lang=js
|
|
12578
|
+
|
|
12579
|
+
|
|
12580
|
+
|
|
12581
|
+
const __default__ = {
|
|
12582
|
+
name: "Kq3dHawkeye"
|
|
12583
|
+
};
|
|
12584
|
+
/* harmony default export */ var Hawkeyevue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
12585
|
+
props: {
|
|
12586
|
+
//指定组件绑定的viewer对象的div的id
|
|
12587
|
+
mapTarget: String,
|
|
12588
|
+
show: {
|
|
12589
|
+
type: Boolean,
|
|
12590
|
+
default: true
|
|
12591
|
+
},
|
|
12592
|
+
width: {
|
|
12593
|
+
type: Number,
|
|
12594
|
+
default: 300
|
|
12595
|
+
},
|
|
12596
|
+
height: {
|
|
12597
|
+
type: Number,
|
|
12598
|
+
default: 200
|
|
12599
|
+
},
|
|
12600
|
+
top: Number,
|
|
12601
|
+
left: Number,
|
|
12602
|
+
bottom: {
|
|
12603
|
+
type: Number,
|
|
12604
|
+
default: 16
|
|
12605
|
+
},
|
|
12606
|
+
right: {
|
|
12607
|
+
type: Number,
|
|
12608
|
+
default: 16
|
|
12609
|
+
},
|
|
12610
|
+
centerColor: {
|
|
12611
|
+
type: String,
|
|
12612
|
+
default: "#0000ff"
|
|
12613
|
+
},
|
|
12614
|
+
centerColorAlpha: {
|
|
12615
|
+
type: Number,
|
|
12616
|
+
default: 0.5
|
|
12617
|
+
},
|
|
12618
|
+
layers: Array
|
|
12619
|
+
},
|
|
12620
|
+
|
|
12621
|
+
setup(__props, {
|
|
12622
|
+
expose
|
|
12623
|
+
}) {
|
|
12624
|
+
const props = __props;
|
|
12625
|
+
let viewModel = null; // 获取组件传参
|
|
12626
|
+
|
|
12627
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
12628
|
+
//父组件ScenceView初始化完成后执行
|
|
12629
|
+
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
12630
|
+
if (scenceView) {
|
|
12631
|
+
let options = {
|
|
12632
|
+
show: props.show,
|
|
12633
|
+
width: props.width,
|
|
12634
|
+
height: props.height,
|
|
12635
|
+
bottom: props.bottom,
|
|
12636
|
+
right: props.right,
|
|
12637
|
+
zIndex: 9999,
|
|
12638
|
+
centerColor: props.centerColor,
|
|
12639
|
+
centerColorAlpha: props.centerColorAlpha,
|
|
12640
|
+
layers: props.layers
|
|
12641
|
+
};
|
|
12642
|
+
viewModel = new HawkeyeViewModel/* default */.Z(scenceView, options);
|
|
12643
|
+
}
|
|
12644
|
+
});
|
|
12645
|
+
});
|
|
12646
|
+
|
|
12647
|
+
function show() {
|
|
12648
|
+
viewModel && viewModel.show();
|
|
12649
|
+
}
|
|
12650
|
+
|
|
12651
|
+
function hide() {
|
|
12652
|
+
viewModel && viewModel.hide();
|
|
12653
|
+
}
|
|
12654
|
+
|
|
12655
|
+
function setLayers(layers) {
|
|
12656
|
+
viewModel && viewModel.setLayers(layers);
|
|
12657
|
+
} // 销毁
|
|
12658
|
+
|
|
12659
|
+
|
|
12660
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
12661
|
+
viewModel && viewModel.destroy();
|
|
12662
|
+
});
|
|
12663
|
+
expose({
|
|
12664
|
+
show,
|
|
12665
|
+
hide,
|
|
12666
|
+
setLayers
|
|
12667
|
+
});
|
|
12668
|
+
return (_ctx, _cache) => {
|
|
12669
|
+
return null;
|
|
12670
|
+
};
|
|
12671
|
+
}
|
|
12672
|
+
|
|
12673
|
+
}));
|
|
12674
|
+
;// CONCATENATED MODULE: ./src/webgl/hawkeye/Hawkeye.vue?vue&type=script&setup=true&lang=js
|
|
12675
|
+
|
|
12676
|
+
;// CONCATENATED MODULE: ./src/webgl/hawkeye/Hawkeye.vue
|
|
12677
|
+
|
|
12678
|
+
|
|
12679
|
+
|
|
12680
|
+
const __exports__ = Hawkeyevue_type_script_setup_true_lang_js;
|
|
12681
|
+
|
|
12682
|
+
/* harmony default export */ var Hawkeye = (__exports__);
|
|
12683
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
12684
|
+
var init_js_ = __webpack_require__(7997);
|
|
12685
|
+
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
12686
|
+
;// CONCATENATED MODULE: ./src/webgl/hawkeye/index.js
|
|
12687
|
+
|
|
12688
|
+
|
|
12689
|
+
|
|
12690
|
+
|
|
12691
|
+
Hawkeye.install = (Vue, opts) => {
|
|
12692
|
+
init_js_default()(Vue, opts);
|
|
12693
|
+
Vue.component(Hawkeye.name, Hawkeye);
|
|
12694
|
+
};
|
|
12695
|
+
|
|
12696
|
+
|
|
12697
|
+
|
|
12698
|
+
/***/ }),
|
|
12699
|
+
|
|
12700
|
+
/***/ 3983:
|
|
12701
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12702
|
+
|
|
12703
|
+
"use strict";
|
|
12704
|
+
|
|
12705
|
+
// EXPORTS
|
|
12706
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
12707
|
+
"default": function() { return /* reexport */ Heatmap3d; }
|
|
12708
|
+
});
|
|
12709
|
+
|
|
12710
|
+
// UNUSED EXPORTS: Heatmap3dViewModel
|
|
12711
|
+
|
|
12712
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.includes.js"
|
|
12713
|
+
var es_array_includes_js_ = __webpack_require__(3600);
|
|
12714
|
+
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
12715
|
+
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
|
|
12716
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
12717
|
+
var gis_utils_ = __webpack_require__(7135);
|
|
12718
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
12719
|
+
var util_ = __webpack_require__(3458);
|
|
12720
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
12721
|
+
var defineProperty = __webpack_require__(8270);
|
|
12722
|
+
// EXTERNAL MODULE: ./src/common/_ui/message/index.js + 1 modules
|
|
12723
|
+
var message = __webpack_require__(3694);
|
|
12724
|
+
;// CONCATENATED MODULE: ./src/webgl/heatmap3d/Heatmap3dViewModel.js
|
|
12725
|
+
|
|
12726
|
+
|
|
12727
|
+
//热力图
|
|
12728
|
+
|
|
12729
|
+
class Heatmap3dViewModel {
|
|
12730
|
+
constructor(scenceView, options) {
|
|
12731
|
+
(0,defineProperty/* default */.Z)(this, "_viewer", null);
|
|
12732
|
+
|
|
12733
|
+
(0,defineProperty/* default */.Z)(this, "_options", null);
|
|
12734
|
+
|
|
12735
|
+
(0,defineProperty/* default */.Z)(this, "_heatmap", null);
|
|
12736
|
+
|
|
12737
|
+
(0,defineProperty/* default */.Z)(this, "_mouseLabel", null);
|
|
12738
|
+
|
|
12739
|
+
(0,defineProperty/* default */.Z)(this, "language", null);
|
|
12740
|
+
|
|
12741
|
+
(0,defineProperty/* default */.Z)(this, "_heatmap2d", null);
|
|
12742
|
+
|
|
12743
|
+
(0,defineProperty/* default */.Z)(this, "_heatmap2dCountLayer", null);
|
|
12744
|
+
|
|
12745
|
+
(0,defineProperty/* default */.Z)(this, "heatmapData", null);
|
|
12746
|
+
|
|
12747
|
+
this._viewer = scenceView._viewer;
|
|
12748
|
+
this._options = options;
|
|
12749
|
+
this._viewer.scene.globe.depthTestAgainstTerrain = true; // 地图标注对象
|
|
12750
|
+
|
|
12751
|
+
this._mouseLabel = new Cesium.Kq3dHtmlTag(this._viewer, {
|
|
12752
|
+
position: new Cesium.Cartesian3(0, 0, 0),
|
|
12753
|
+
html: `<div>
|
|
12754
|
+
<div class="border-moving">
|
|
12755
|
+
<span id="mouse_lonlat" class="append"></span>
|
|
12756
|
+
<div class="border-moving-box" style="top:3px;left:3px;bottom:3px;right:3px;">
|
|
12757
|
+
<span></span><span></span><span></span><span></span>
|
|
12758
|
+
</div></div>
|
|
12759
|
+
<div class="guidline">
|
|
12760
|
+
<div class="pulse"></div>
|
|
12761
|
+
</div>
|
|
12762
|
+
</div>`,
|
|
12763
|
+
anchor: [0, -138],
|
|
12764
|
+
noEvent: true,
|
|
12765
|
+
visible: false
|
|
12766
|
+
}); // 地图拾取事件,交互展示
|
|
12767
|
+
|
|
12768
|
+
let that = this;
|
|
12769
|
+
var handler = new window.Cesium.ScreenSpaceEventHandler(this._viewer.canvas);
|
|
12770
|
+
handler.setInputAction(function (movement) {
|
|
12771
|
+
var worldPosition = that._viewer.scene.pickPosition(movement.position);
|
|
12772
|
+
|
|
12773
|
+
if (worldPosition) {
|
|
12774
|
+
that._mouseLabel.position = worldPosition;
|
|
12775
|
+
var lonlat = Cesium.Cartographic.fromCartesian(worldPosition);
|
|
12776
|
+
var lon = Cesium.Math.toDegrees(lonlat.longitude),
|
|
12777
|
+
lat = Cesium.Math.toDegrees(lonlat.latitude);
|
|
12778
|
+
var val = 0;
|
|
12779
|
+
|
|
12780
|
+
if (that._options.heatmapType == "3D") {
|
|
12781
|
+
val = String(that._heatmap.getValueAt({
|
|
12782
|
+
lng: lon,
|
|
12783
|
+
lat: lat
|
|
12784
|
+
}));
|
|
12785
|
+
} else if (that._options.heatmapType == "2D") {
|
|
12786
|
+
val = String(that._heatmap2d.getValueAt({
|
|
12787
|
+
lng: lon,
|
|
12788
|
+
lat: lat
|
|
12789
|
+
}));
|
|
12790
|
+
}
|
|
12791
|
+
|
|
12792
|
+
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>`);
|
|
12793
|
+
|
|
12794
|
+
that._mouseLabel.setVisible(true);
|
|
12795
|
+
} else {
|
|
12796
|
+
that._mouseLabel.setVisible(false);
|
|
12797
|
+
}
|
|
12798
|
+
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
12799
|
+
}
|
|
12800
|
+
|
|
12801
|
+
sanitizeInput(inputHTML) {
|
|
12802
|
+
const allowedTags = ['p', 'strong', 'em'];
|
|
12803
|
+
const tempDiv = document.createElement('div');
|
|
12804
|
+
tempDiv.innerHTML = inputHTML;
|
|
12805
|
+
const childNodes = Array.from(tempDiv.childNodes);
|
|
12806
|
+
childNodes.forEach(node => {
|
|
12807
|
+
if (!allowedTags.includes(node.tagName.toLowerCase())) {
|
|
12808
|
+
tempDiv.removeChild(node);
|
|
12809
|
+
}
|
|
12810
|
+
});
|
|
12811
|
+
return tempDiv.innerHTML;
|
|
12812
|
+
} // 创建三维热力图对象
|
|
12813
|
+
|
|
12814
|
+
|
|
12815
|
+
initHeatmap3d(heatmapData) {
|
|
12816
|
+
this._heatmap = new Cesium.Kq3dHeatmap3D({
|
|
12817
|
+
xField: 'lng',
|
|
12818
|
+
yField: 'lat',
|
|
12819
|
+
valueField: this._options.valueField || this.language["noSet"],
|
|
12820
|
+
radius: this._options.radius,
|
|
12821
|
+
scene: this._viewer.scene,
|
|
12822
|
+
height: this._options.height,
|
|
12823
|
+
heightRatio: this._options.heightRatio,
|
|
12824
|
+
alpha: this._options.transparents,
|
|
12825
|
+
dynamic: this._options.isFollowingPerspective,
|
|
12826
|
+
clampToGround: this._options.isGround,
|
|
12827
|
+
show: this._options.heatmapType == "3D" ? true : false
|
|
12828
|
+
});
|
|
12829
|
+
if (this._options.gradient) this._heatmap.gradient = this._options.gradient;
|
|
12830
|
+
|
|
12831
|
+
this._viewer.scene.primitives.add(this._heatmap);
|
|
12832
|
+
|
|
12833
|
+
this._heatmap && this._heatmap.setData(heatmapData);
|
|
12834
|
+
} // 创建二维热力图对象
|
|
12835
|
+
|
|
12836
|
+
|
|
12837
|
+
initHeatmap2d(heatmapData) {
|
|
12838
|
+
this._heatmap2d = new Cesium.Kq3dHeatmap2D({
|
|
12839
|
+
xField: 'lng',
|
|
12840
|
+
yField: 'lat',
|
|
12841
|
+
valueField: this._options.valueField || this.language["noSet"],
|
|
12842
|
+
canvasWidth: 1024,
|
|
12843
|
+
canvasHeight: 1024,
|
|
12844
|
+
radius: this._options.radius,
|
|
12845
|
+
blur: 1.0,
|
|
12846
|
+
gradient: this._options.gradient
|
|
12847
|
+
});
|
|
12848
|
+
|
|
12849
|
+
this._heatmap2d.setData(heatmapData);
|
|
12850
|
+
|
|
12851
|
+
let extent = this._heatmap2d.extent;
|
|
12852
|
+
let pv = new Cesium.SingleTileImageryProvider({
|
|
12853
|
+
url: this._heatmap2d.toDataURL(),
|
|
12854
|
+
rectangle: Cesium.Rectangle.fromDegrees(extent[0], extent[1], extent[2], extent[3])
|
|
12855
|
+
});
|
|
12856
|
+
this._heatmap2dCountLayer = new Cesium.ImageryLayer(pv, {
|
|
12857
|
+
alpha: this._options.transparents,
|
|
12858
|
+
show: this._options.heatmapType == "2D" ? true : false
|
|
12859
|
+
});
|
|
12860
|
+
|
|
12861
|
+
this._viewer.imageryLayers.add(this._heatmap2dCountLayer);
|
|
12862
|
+
} // 切换二维数据
|
|
12863
|
+
|
|
12864
|
+
|
|
12865
|
+
changeHeatmap2d() {
|
|
12866
|
+
if (this._options.gradient) this._heatmap2d.gradient = this._options.gradient;
|
|
12867
|
+
if (this._options.radius) this._heatmap2d.radius = this._options.radius;
|
|
12868
|
+
if (this._heatmap2dCountLayer) this._viewer.imageryLayers.remove(this._heatmap2dCountLayer, true);
|
|
12869
|
+
let extent = this._heatmap2d.extent;
|
|
12870
|
+
let pv = new Cesium.SingleTileImageryProvider({
|
|
12871
|
+
url: this._heatmap2d.toDataURL(),
|
|
12872
|
+
rectangle: Cesium.Rectangle.fromDegrees(extent[0], extent[1], extent[2], extent[3])
|
|
12873
|
+
});
|
|
12874
|
+
this._heatmap2dCountLayer = new Cesium.ImageryLayer(pv, {
|
|
12875
|
+
alpha: this._options.transparents,
|
|
12876
|
+
show: this._options.heatmapType == "2D" ? true : false
|
|
12877
|
+
});
|
|
12878
|
+
|
|
12879
|
+
this._viewer.imageryLayers.add(this._heatmap2dCountLayer);
|
|
12880
|
+
} // 设置颜色渲染
|
|
12881
|
+
|
|
12882
|
+
|
|
12883
|
+
setColorArray(val) {
|
|
12884
|
+
this._options.gradient = val;
|
|
12885
|
+
if (this._heatmap) this._heatmap.gradient = val;
|
|
12886
|
+
if (this._heatmap2d) this.changeHeatmap2d();
|
|
12887
|
+
} // 参数改变
|
|
12888
|
+
|
|
12889
|
+
|
|
12890
|
+
paramsChanged(key, val) {
|
|
12891
|
+
this._options[key] = val;
|
|
12892
|
+
if (!this._heatmap) return;
|
|
12893
|
+
if (!this._heatmap2dCountLayer) return;
|
|
12894
|
+
|
|
12895
|
+
switch (key) {
|
|
12896
|
+
case "heatmapType":
|
|
12897
|
+
this._mouseLabel.setVisible(false);
|
|
12898
|
+
|
|
12899
|
+
if (this._options.heatmapType == "3D") {
|
|
12900
|
+
this._viewer.scene.highDynamicRange = false;
|
|
12901
|
+
this._viewer.scene.globe.showGroundAtmosphere = true;
|
|
12902
|
+
this._heatmap.show = this._options.isShow;
|
|
12903
|
+
this._heatmap2dCountLayer.show = false;
|
|
12904
|
+
} else if (this._options.heatmapType == "2D") {
|
|
12905
|
+
this._viewer.scene.highDynamicRange = true;
|
|
12906
|
+
this._viewer.scene.globe.showGroundAtmosphere = false;
|
|
12907
|
+
this._heatmap.show = false;
|
|
12908
|
+
this._heatmap2dCountLayer.show = this._options.isShow;
|
|
12909
|
+
}
|
|
12910
|
+
|
|
12911
|
+
break;
|
|
12912
|
+
|
|
12913
|
+
case "radius":
|
|
12914
|
+
this._mouseLabel.setVisible(false);
|
|
12915
|
+
|
|
12916
|
+
this._heatmap[key] = Number(val);
|
|
12917
|
+
|
|
12918
|
+
if (this._heatmap.dynamic) {
|
|
12919
|
+
this._heatmap.dynamic = false;
|
|
12920
|
+
}
|
|
12921
|
+
|
|
12922
|
+
this.changeHeatmap2d();
|
|
12923
|
+
break;
|
|
12924
|
+
|
|
12925
|
+
case "height":
|
|
12926
|
+
this._mouseLabel.setVisible(false);
|
|
12927
|
+
|
|
12928
|
+
this._heatmap[key] = Number(val);
|
|
12929
|
+
|
|
12930
|
+
if (this._heatmap.dynamic) {
|
|
12931
|
+
this._heatmap.dynamic = false;
|
|
12932
|
+
}
|
|
12933
|
+
|
|
12934
|
+
break;
|
|
12935
|
+
|
|
12936
|
+
case "transparents":
|
|
12937
|
+
this._heatmap.alpha = Number(val);
|
|
12938
|
+
this._heatmap2dCountLayer.alpha = Number(val);
|
|
12939
|
+
break;
|
|
12940
|
+
|
|
12941
|
+
case "heightRatio":
|
|
12942
|
+
this._mouseLabel.setVisible(false);
|
|
12943
|
+
|
|
12944
|
+
this._heatmap.heightRatio = Number(val);
|
|
12945
|
+
break;
|
|
12946
|
+
|
|
12947
|
+
case "isShow":
|
|
12948
|
+
if (this._options.heatmapType == "3D") {
|
|
12949
|
+
this._heatmap.show = val;
|
|
12950
|
+
} else if (this._options.heatmapType == "2D") {
|
|
12951
|
+
this._heatmap2dCountLayer.show = val;
|
|
12952
|
+
}
|
|
12953
|
+
|
|
12954
|
+
this._mouseLabel.setVisible(false);
|
|
12955
|
+
|
|
12956
|
+
break;
|
|
12957
|
+
|
|
12958
|
+
case "isFollowingPerspective":
|
|
12959
|
+
this._heatmap.dynamic = val;
|
|
12960
|
+
|
|
12961
|
+
this._mouseLabel.setVisible(false);
|
|
12962
|
+
|
|
12963
|
+
break;
|
|
12964
|
+
|
|
12965
|
+
case "isGround":
|
|
12966
|
+
this._heatmap.clampToGround = val;
|
|
12967
|
+
|
|
12968
|
+
this._mouseLabel.setVisible(false);
|
|
12969
|
+
|
|
12970
|
+
break;
|
|
12971
|
+
|
|
12972
|
+
case "valueField":
|
|
12973
|
+
this.clear();
|
|
12974
|
+
|
|
12975
|
+
if (this.heatmapData) {
|
|
12976
|
+
this.initHeatmap3d(this.heatmapData);
|
|
12977
|
+
this.initHeatmap2d(this.heatmapData);
|
|
12978
|
+
}
|
|
12979
|
+
|
|
12980
|
+
break;
|
|
12981
|
+
|
|
12982
|
+
default:
|
|
12983
|
+
break;
|
|
12984
|
+
}
|
|
12985
|
+
} // 加载
|
|
12986
|
+
|
|
12987
|
+
|
|
12988
|
+
start() {
|
|
12989
|
+
this.clear();
|
|
12990
|
+
|
|
12991
|
+
if (this.heatmapData) {
|
|
12992
|
+
this.initHeatmap3d(this.heatmapData);
|
|
12993
|
+
this.initHeatmap2d(this.heatmapData);
|
|
12994
|
+
} else {
|
|
12995
|
+
(0,message/* default */.Z)({
|
|
12996
|
+
message: this.language["fileTypeMessage"] + "!",
|
|
12997
|
+
type: "warning",
|
|
12998
|
+
duration: 2000
|
|
12999
|
+
});
|
|
13000
|
+
return;
|
|
13001
|
+
}
|
|
13002
|
+
} //清除全部结果
|
|
13003
|
+
|
|
13004
|
+
|
|
13005
|
+
clear() {
|
|
13006
|
+
this._mouseLabel.setVisible(false);
|
|
13007
|
+
|
|
13008
|
+
if (this._heatmap) {
|
|
13009
|
+
this._viewer.scene.primitives.remove(this._heatmap);
|
|
13010
|
+
|
|
13011
|
+
this._heatmap = null;
|
|
13012
|
+
}
|
|
13013
|
+
|
|
13014
|
+
if (this._heatmap2d) this._heatmap2d = null;
|
|
13015
|
+
if (this._heatmap2dCountLayer) this._viewer.imageryLayers.remove(this._heatmap2dCountLayer, true);
|
|
13016
|
+
} //销毁
|
|
13017
|
+
|
|
13018
|
+
|
|
13019
|
+
destroy() {
|
|
13020
|
+
this.clear();
|
|
13021
|
+
|
|
13022
|
+
this._mouseLabel.destroy();
|
|
13023
|
+
}
|
|
13024
|
+
|
|
13025
|
+
}
|
|
13026
|
+
// EXTERNAL MODULE: external "@element-plus/icons-vue"
|
|
13027
|
+
var icons_vue_ = __webpack_require__(8422);
|
|
13028
|
+
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
13029
|
+
var client_icons_vue_ = __webpack_require__(348);
|
|
13030
|
+
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
13031
|
+
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
13032
|
+
;// 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
|
|
13033
|
+
|
|
13034
|
+
|
|
13035
|
+
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);
|
|
13036
|
+
|
|
13037
|
+
const _hoisted_1 = /*#__PURE__*/_withScopeId(() => /*#__PURE__*/(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
|
|
13038
|
+
class: "arrow"
|
|
13039
|
+
}, null, -1
|
|
13040
|
+
/* HOISTED */
|
|
13041
|
+
));
|
|
13042
|
+
|
|
13043
|
+
|
|
13044
|
+
/* harmony default export */ var CustomColorPickerSlidervue_type_script_setup_true_lang_js = ({
|
|
13045
|
+
__name: 'CustomColorPickerSlider',
|
|
13046
|
+
props: ["width", "color", "percentage", "id"],
|
|
13047
|
+
emits: ["updatePercentage", "updateColor", "deleteColorSlider"],
|
|
13048
|
+
|
|
13049
|
+
setup(__props, {
|
|
13050
|
+
emit
|
|
13051
|
+
}) {
|
|
13052
|
+
const props = __props; // eslint-disable-next-line vue/no-setup-props-destructure
|
|
13053
|
+
|
|
13054
|
+
const initId = props.id;
|
|
13055
|
+
const initColor = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.color);
|
|
13056
|
+
const rangeMin = -5;
|
|
13057
|
+
const rangeMax = props.width - 5;
|
|
13058
|
+
const position = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.percentage / 100 * props.width + rangeMin);
|
|
13059
|
+
const disabled = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false); // 为了防止在mouseup事件结束后,弹出颜色框
|
|
13060
|
+
|
|
13061
|
+
let offsetX = 0;
|
|
13062
|
+
let isDragging = false; // 是否拖动
|
|
13063
|
+
|
|
13064
|
+
let mouseDownX = 0; // 通过拖动的距离,判断是拖动还是点击
|
|
13065
|
+
|
|
13066
|
+
function handleMouseDown(event) {
|
|
13067
|
+
isDragging = true;
|
|
13068
|
+
offsetX = event.clientX - position.value;
|
|
13069
|
+
mouseDownX = event.clientX; // 监听mousemove、mouseup事件 注意是在document上监听
|
|
13070
|
+
|
|
13071
|
+
document.addEventListener("mousemove", handleMouseMove);
|
|
13072
|
+
document.addEventListener("mouseup", handleMouseUp); // 阻止了默认行为,防止出现not-allowed的光标
|
|
13073
|
+
|
|
13074
|
+
event.preventDefault();
|
|
13075
|
+
} // 处理MouseMove
|
|
13076
|
+
|
|
13077
|
+
|
|
13078
|
+
function handleMouseMove(event) {
|
|
13079
|
+
if (isDragging) {
|
|
13080
|
+
position.value = Math.min(Math.max(event.clientX - offsetX, rangeMin), rangeMax); // 拖动的过程中,不断改变percentage
|
|
13081
|
+
|
|
13082
|
+
const percentage = (position.value + Math.abs(rangeMin)) / (rangeMax - rangeMin) * 100;
|
|
13083
|
+
emit("updatePercentage", {
|
|
13084
|
+
percentage: percentage,
|
|
13085
|
+
id: initId
|
|
13086
|
+
});
|
|
13087
|
+
}
|
|
13088
|
+
}
|
|
13089
|
+
|
|
13090
|
+
function handleMouseUp(event) {
|
|
13091
|
+
if (isDragging) {
|
|
13092
|
+
isDragging = false; // 移除mousemove、mouseup的事件监听
|
|
13093
|
+
|
|
13094
|
+
document.removeEventListener("mousemove", handleMouseMove);
|
|
13095
|
+
document.removeEventListener("mouseup", handleMouseUp);
|
|
13096
|
+
} // 判断是否拖动模式
|
|
13097
|
+
|
|
13098
|
+
|
|
13099
|
+
if (Math.abs(event.clientX - mouseDownX) > 2) {
|
|
13100
|
+
// 是拖动模式 禁止colorPicker组件弹出
|
|
13101
|
+
disabled.value = true;
|
|
13102
|
+
setTimeout(function () {
|
|
13103
|
+
disabled.value = false;
|
|
13104
|
+
}, 100);
|
|
13105
|
+
}
|
|
13106
|
+
}
|
|
13107
|
+
|
|
13108
|
+
function updateColor(color) {
|
|
13109
|
+
initColor.value = color;
|
|
13110
|
+
emit("updateColor", {
|
|
13111
|
+
color: color,
|
|
13112
|
+
id: initId
|
|
13113
|
+
});
|
|
13114
|
+
}
|
|
13115
|
+
|
|
13116
|
+
function deleteColorSlider() {
|
|
13117
|
+
emit("deleteColorSlider", {
|
|
13118
|
+
id: initId
|
|
13119
|
+
});
|
|
13120
|
+
}
|
|
13121
|
+
|
|
13122
|
+
function handleClick(event) {
|
|
13123
|
+
// 阻止滑块上的点击事件冒泡
|
|
13124
|
+
event.stopPropagation();
|
|
13125
|
+
}
|
|
13126
|
+
|
|
13127
|
+
return (_ctx, _cache) => {
|
|
13128
|
+
const _component_kq_color_picker = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-color-picker");
|
|
13129
|
+
|
|
13130
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", {
|
|
13131
|
+
class: "cs",
|
|
13132
|
+
style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)({
|
|
13133
|
+
left: position.value + 'px'
|
|
13134
|
+
}),
|
|
13135
|
+
onMousedown: handleMouseDown,
|
|
13136
|
+
onClick: handleClick
|
|
13137
|
+
}, [_hoisted_1, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_color_picker, {
|
|
13138
|
+
modelValue: initColor.value,
|
|
13139
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => initColor.value = $event),
|
|
13140
|
+
onActiveChange: updateColor,
|
|
13141
|
+
disabled: disabled.value
|
|
13142
|
+
}, null, 8
|
|
13143
|
+
/* PROPS */
|
|
13144
|
+
, ["modelValue", "disabled"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
|
|
13145
|
+
class: "delete",
|
|
13146
|
+
onClick: deleteColorSlider
|
|
13147
|
+
}, "x")], 36
|
|
13148
|
+
/* STYLE, HYDRATE_EVENTS */
|
|
13149
|
+
);
|
|
13150
|
+
};
|
|
13151
|
+
}
|
|
13152
|
+
|
|
13153
|
+
});
|
|
13154
|
+
;// CONCATENATED MODULE: ./src/webgl/heatmap3d/CustomColorPickerSlider.vue?vue&type=script&setup=true&lang=js
|
|
13155
|
+
|
|
13156
|
+
// EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
|
|
13157
|
+
var injectStylesIntoStyleTag = __webpack_require__(3379);
|
|
13158
|
+
var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
|
|
13159
|
+
// 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
|
|
13160
|
+
var CustomColorPickerSlidervue_type_style_index_0_id_c771bfde_scoped_true_lang_scss = __webpack_require__(5757);
|
|
13161
|
+
;// 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
|
|
13162
|
+
|
|
13163
|
+
|
|
13164
|
+
|
|
13165
|
+
var options = {};
|
|
13166
|
+
|
|
13167
|
+
options.insert = "head";
|
|
13168
|
+
options.singleton = false;
|
|
13169
|
+
|
|
13170
|
+
var update = injectStylesIntoStyleTag_default()(CustomColorPickerSlidervue_type_style_index_0_id_c771bfde_scoped_true_lang_scss/* default */.Z, options);
|
|
13171
|
+
|
|
13172
|
+
|
|
13173
|
+
|
|
13174
|
+
/* 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 || {});
|
|
13175
|
+
;// CONCATENATED MODULE: ./src/webgl/heatmap3d/CustomColorPickerSlider.vue?vue&type=style&index=0&id=c771bfde&scoped=true&lang=scss
|
|
13176
|
+
|
|
13177
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/dist/exportHelper.js
|
|
13178
|
+
var exportHelper = __webpack_require__(6021);
|
|
13179
|
+
;// CONCATENATED MODULE: ./src/webgl/heatmap3d/CustomColorPickerSlider.vue
|
|
13180
|
+
|
|
13181
|
+
|
|
13182
|
+
|
|
13183
|
+
;
|
|
13184
|
+
|
|
13185
|
+
|
|
13186
|
+
const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(CustomColorPickerSlidervue_type_script_setup_true_lang_js, [['__scopeId',"data-v-c771bfde"]])
|
|
13187
|
+
|
|
13188
|
+
/* harmony default export */ var CustomColorPickerSlider = (__exports__);
|
|
13189
|
+
;// 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
|
|
13190
|
+
|
|
13191
|
+
|
|
13192
|
+
const CustomColorPickervue_type_script_setup_true_lang_js_withScopeId = n => (_pushScopeId("data-v-b1608504"), n = n(), _popScopeId(), n);
|
|
13193
|
+
|
|
13194
|
+
const CustomColorPickervue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
13195
|
+
class: "gp"
|
|
13196
|
+
};
|
|
13197
|
+
|
|
13198
|
+
|
|
13199
|
+
|
|
13200
|
+
/* harmony default export */ var CustomColorPickervue_type_script_setup_true_lang_js = ({
|
|
13201
|
+
__name: 'CustomColorPicker',
|
|
13202
|
+
props: ["data"],
|
|
13203
|
+
emits: ["color-changed"],
|
|
13204
|
+
|
|
13205
|
+
setup(__props, {
|
|
13206
|
+
emit
|
|
13207
|
+
}) {
|
|
13208
|
+
const props = __props; // 宽度
|
|
13209
|
+
|
|
13210
|
+
const width = 257;
|
|
13211
|
+
const items = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.data);
|
|
13212
|
+
let backgroundImage = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(updateBackgroundImage()); // 更新色带条
|
|
13213
|
+
|
|
13214
|
+
function updateBackgroundImage() {
|
|
13215
|
+
let style = [];
|
|
13216
|
+
|
|
13217
|
+
for (let i = 0; i < items.value.length; i++) {
|
|
13218
|
+
const item = items.value[i];
|
|
13219
|
+
style.push(`${item.color} ${item.percentage}%`);
|
|
13220
|
+
}
|
|
13221
|
+
|
|
13222
|
+
return `background-image: linear-gradient(90deg, ${style.toString()})`;
|
|
13223
|
+
} // 更新颜色百分比
|
|
13224
|
+
|
|
13225
|
+
|
|
13226
|
+
function updatePercentage(args) {
|
|
13227
|
+
const {
|
|
13228
|
+
percentage,
|
|
13229
|
+
id
|
|
13230
|
+
} = args;
|
|
13231
|
+
|
|
13232
|
+
for (let i = 0; i < items.value.length; i++) {
|
|
13233
|
+
if (items.value[i].id == id) {
|
|
13234
|
+
items.value[i].percentage = percentage;
|
|
13235
|
+
break;
|
|
13236
|
+
}
|
|
13237
|
+
} // 重新排序数组
|
|
13238
|
+
|
|
13239
|
+
|
|
13240
|
+
items.value.sort((a, b) => a.percentage - b.percentage);
|
|
13241
|
+
backgroundImage.value = updateBackgroundImage();
|
|
13242
|
+
emit("color-changed", items.value);
|
|
13243
|
+
} // 更新颜色
|
|
13244
|
+
|
|
13245
|
+
|
|
13246
|
+
function updateColor(args) {
|
|
13247
|
+
const {
|
|
13248
|
+
color,
|
|
13249
|
+
id
|
|
13250
|
+
} = args;
|
|
13251
|
+
|
|
13252
|
+
for (let i = 0; i < items.value.length; i++) {
|
|
13253
|
+
if (items.value[i].id == id) {
|
|
13254
|
+
items.value[i].color = color;
|
|
13255
|
+
break;
|
|
13256
|
+
}
|
|
13257
|
+
} // 重新排序数组
|
|
13258
|
+
|
|
13259
|
+
|
|
13260
|
+
items.value.sort((a, b) => a.percentage - b.percentage);
|
|
13261
|
+
backgroundImage.value = updateBackgroundImage();
|
|
13262
|
+
emit("color-changed", items.value);
|
|
13263
|
+
} // 删除色块
|
|
13264
|
+
|
|
13265
|
+
|
|
13266
|
+
function deleteColorSlider(args) {
|
|
13267
|
+
if (items.value.length <= 2) {
|
|
13268
|
+
return;
|
|
13269
|
+
}
|
|
13270
|
+
|
|
13271
|
+
const {
|
|
13272
|
+
id
|
|
13273
|
+
} = args;
|
|
13274
|
+
|
|
13275
|
+
for (let i = 0; i < items.value.length; i++) {
|
|
13276
|
+
if (items.value[i].id == id) {
|
|
13277
|
+
items.value.splice(i, 1);
|
|
13278
|
+
break;
|
|
13279
|
+
}
|
|
13280
|
+
}
|
|
13281
|
+
|
|
13282
|
+
backgroundImage.value = updateBackgroundImage();
|
|
13283
|
+
emit("color-changed", items.value);
|
|
13284
|
+
} // 增加色块
|
|
13285
|
+
|
|
13286
|
+
|
|
13287
|
+
function addColorSlider(event) {
|
|
13288
|
+
items.value.push({
|
|
13289
|
+
id: (0,util_.guid)(),
|
|
13290
|
+
color: "#0000FF",
|
|
13291
|
+
percentage: event.offsetX / width * 100
|
|
13292
|
+
}); // 重新排序数组
|
|
13293
|
+
|
|
13294
|
+
items.value.sort((a, b) => a.percentage - b.percentage);
|
|
13295
|
+
backgroundImage.value = updateBackgroundImage();
|
|
13296
|
+
emit("color-changed", items.value);
|
|
13297
|
+
}
|
|
13298
|
+
|
|
13299
|
+
return (_ctx, _cache) => {
|
|
13300
|
+
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", {
|
|
13301
|
+
class: "palette",
|
|
13302
|
+
style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(backgroundImage))
|
|
13303
|
+
}, null, 4
|
|
13304
|
+
/* STYLE */
|
|
13305
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
|
|
13306
|
+
class: "csh",
|
|
13307
|
+
onClick: addColorSlider
|
|
13308
|
+
}, [((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 => {
|
|
13309
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(CustomColorPickerSlider, {
|
|
13310
|
+
key: item.id,
|
|
13311
|
+
width: width,
|
|
13312
|
+
color: item.color,
|
|
13313
|
+
id: item.id,
|
|
13314
|
+
percentage: item.percentage,
|
|
13315
|
+
onUpdatePercentage: updatePercentage,
|
|
13316
|
+
onUpdateColor: updateColor,
|
|
13317
|
+
onDeleteColorSlider: deleteColorSlider
|
|
13318
|
+
}, null, 8
|
|
13319
|
+
/* PROPS */
|
|
13320
|
+
, ["color", "id", "percentage"]);
|
|
13321
|
+
}), 128
|
|
13322
|
+
/* KEYED_FRAGMENT */
|
|
13323
|
+
))])]);
|
|
13324
|
+
};
|
|
13325
|
+
}
|
|
13326
|
+
|
|
13327
|
+
});
|
|
13328
|
+
;// CONCATENATED MODULE: ./src/webgl/heatmap3d/CustomColorPicker.vue?vue&type=script&setup=true&lang=js
|
|
13329
|
+
|
|
13330
|
+
// 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
|
|
13331
|
+
var CustomColorPickervue_type_style_index_0_id_b1608504_scoped_true_lang_scss = __webpack_require__(4098);
|
|
13332
|
+
;// 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
|
|
13333
|
+
|
|
13334
|
+
|
|
13335
|
+
|
|
13336
|
+
var CustomColorPickervue_type_style_index_0_id_b1608504_scoped_true_lang_scss_options = {};
|
|
13337
|
+
|
|
13338
|
+
CustomColorPickervue_type_style_index_0_id_b1608504_scoped_true_lang_scss_options.insert = "head";
|
|
13339
|
+
CustomColorPickervue_type_style_index_0_id_b1608504_scoped_true_lang_scss_options.singleton = false;
|
|
13340
|
+
|
|
13341
|
+
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);
|
|
13342
|
+
|
|
13343
|
+
|
|
13344
|
+
|
|
13345
|
+
/* 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 || {});
|
|
13346
|
+
;// CONCATENATED MODULE: ./src/webgl/heatmap3d/CustomColorPicker.vue?vue&type=style&index=0&id=b1608504&scoped=true&lang=scss
|
|
13347
|
+
|
|
13348
|
+
;// CONCATENATED MODULE: ./src/webgl/heatmap3d/CustomColorPicker.vue
|
|
13349
|
+
|
|
13350
|
+
|
|
13351
|
+
|
|
13352
|
+
;
|
|
13353
|
+
|
|
13354
|
+
|
|
13355
|
+
const CustomColorPicker_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(CustomColorPickervue_type_script_setup_true_lang_js, [['__scopeId',"data-v-b1608504"]])
|
|
13356
|
+
|
|
13357
|
+
/* harmony default export */ var CustomColorPicker = (CustomColorPicker_exports_);
|
|
13358
|
+
;// 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
|
|
13359
|
+
|
|
13360
|
+
|
|
13361
|
+
const Heatmap3dvue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
13362
|
+
class: "kq3d-heatmap-box"
|
|
13363
|
+
};
|
|
13364
|
+
const _hoisted_2 = {
|
|
13365
|
+
class: "kq3d-heatmap-span"
|
|
13366
|
+
};
|
|
13367
|
+
const _hoisted_3 = {
|
|
13368
|
+
class: "kq3d-heatmap-span"
|
|
13369
|
+
};
|
|
13370
|
+
const _hoisted_4 = {
|
|
13371
|
+
class: "kq3d-heatmap-footer"
|
|
13372
|
+
};
|
|
13373
|
+
|
|
13374
|
+
|
|
13375
|
+
|
|
13376
|
+
|
|
13377
|
+
|
|
13378
|
+
|
|
13379
|
+
|
|
13380
|
+
|
|
13381
|
+
|
|
13382
|
+
|
|
13383
|
+
const __default__ = {
|
|
13384
|
+
name: "Kq3dHeatmap"
|
|
13385
|
+
};
|
|
13386
|
+
/* harmony default export */ var Heatmap3dvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
13387
|
+
props: {
|
|
13388
|
+
// 设置参数
|
|
13389
|
+
settingParams: {
|
|
13390
|
+
type: Object
|
|
13391
|
+
},
|
|
13392
|
+
// 是否显示阴影效果
|
|
13393
|
+
showShadow: {
|
|
13394
|
+
type: Boolean,
|
|
13395
|
+
default: true
|
|
13396
|
+
},
|
|
13397
|
+
|
|
13398
|
+
/**
|
|
13399
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
13400
|
+
*/
|
|
13401
|
+
position: [String, Object],
|
|
13402
|
+
// 是否生成HeaderTemp
|
|
13403
|
+
showHeaderTemp: {
|
|
13404
|
+
type: Boolean,
|
|
13405
|
+
default: false
|
|
13406
|
+
},
|
|
13407
|
+
// 是否折叠HeaderTemp,showHeaderTemp为true时生效
|
|
13408
|
+
isCollapseHeaderTemp: {
|
|
13409
|
+
type: Boolean,
|
|
13410
|
+
default: false
|
|
13411
|
+
},
|
|
13412
|
+
// HeaderTemp标题
|
|
13413
|
+
headerTempTitle: {
|
|
13414
|
+
type: String
|
|
13415
|
+
},
|
|
13416
|
+
// HeaderTemp图标
|
|
13417
|
+
headerTempIcon: {
|
|
13418
|
+
type: [Object, String],
|
|
13419
|
+
default: client_icons_vue_.IconHeatMap3D
|
|
13420
|
+
},
|
|
13421
|
+
// HeaderTemp Title&Icon的位置
|
|
13422
|
+
isRight: {
|
|
13423
|
+
type: Boolean,
|
|
13424
|
+
default: true
|
|
13425
|
+
}
|
|
13426
|
+
},
|
|
13427
|
+
|
|
13428
|
+
setup(__props, {
|
|
13429
|
+
expose
|
|
13430
|
+
}) {
|
|
13431
|
+
const props = __props;
|
|
13432
|
+
const {
|
|
13433
|
+
proxy
|
|
13434
|
+
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
13435
|
+
let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
|
|
13436
|
+
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
13437
|
+
let collapseValue = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
|
|
13438
|
+
let weightFields = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]); // 获取组件传参
|
|
13439
|
+
|
|
13440
|
+
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
13441
|
+
dataPath: props.settingParams && props.settingParams.dataPath || "",
|
|
13442
|
+
//数据地址,json文件或json地址
|
|
13443
|
+
heatmapType: props.settingParams && props.settingParams.heatmapType || "3D",
|
|
13444
|
+
//渲染方式
|
|
13445
|
+
radius: props.settingParams && props.settingParams.radius || 8,
|
|
13446
|
+
//半径
|
|
13447
|
+
minRadius: props.settingParams && props.settingParams.minRadius || 5,
|
|
13448
|
+
maxRadius: props.settingParams && props.settingParams.maxRadius || 100,
|
|
13449
|
+
transparents: props.settingParams && props.settingParams.transparents || 0.75,
|
|
13450
|
+
//透明度
|
|
13451
|
+
minTransparents: 0,
|
|
13452
|
+
maxTransparents: 1,
|
|
13453
|
+
height: props.settingParams && props.settingParams.height || 800,
|
|
13454
|
+
//高度
|
|
13455
|
+
minHeight: props.settingParams && props.settingParams.minHeight || 0,
|
|
13456
|
+
maxHeight: props.settingParams && props.settingParams.minHeight || 1000,
|
|
13457
|
+
heightRatio: props.settingParams && props.settingParams.heightRatio || 2,
|
|
13458
|
+
//高度比率
|
|
13459
|
+
minHeightRatio: props.settingParams && props.settingParams.minHeightRatio || 0.1,
|
|
13460
|
+
// 最小值
|
|
13461
|
+
maxHeightRatio: props.settingParams && props.settingParams.maxHeightRatio || 10,
|
|
13462
|
+
// 最大值
|
|
13463
|
+
isShow: props.settingParams && props.settingParams.isShow || true,
|
|
13464
|
+
// 是否显示
|
|
13465
|
+
isGround: props.settingParams && props.settingParams.isGround || false,
|
|
13466
|
+
// 是否贴地
|
|
13467
|
+
isFollowingPerspective: props.settingParams && props.settingParams.isFollowingPerspective || true,
|
|
13468
|
+
//跟随视角调整
|
|
13469
|
+
valueField: props.settingParams && props.settingParams.valueField || "",
|
|
13470
|
+
// 权重字段
|
|
13471
|
+
colorMode: props.settingParams && props.settingParams.colorMode || 1,
|
|
13472
|
+
// 1:预设 2:自定义
|
|
13473
|
+
colorRamp: props.settingParams && props.settingParams.colorRamp || 0 //色带索引,0-16
|
|
13474
|
+
|
|
13475
|
+
});
|
|
13476
|
+
let viewModel = null; // 组件容器Ref
|
|
13477
|
+
|
|
13478
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
13479
|
+
|
|
13480
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
13481
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 国际化
|
|
13482
|
+
|
|
13483
|
+
let {
|
|
13484
|
+
locale,
|
|
13485
|
+
messages
|
|
13486
|
+
} = (0,vue_i18n_cjs_js_.useI18n)();
|
|
13487
|
+
let headerTempTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
13488
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => locale.value, (newVal, oldVal) => {
|
|
13489
|
+
language.value = messages.value[newVal]["webgl"];
|
|
13490
|
+
headerTempTitle.value = language.value.heatmapTitle;
|
|
13491
|
+
if (viewModel) viewModel.language = language.value;
|
|
13492
|
+
});
|
|
13493
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
13494
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
13495
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
13496
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
13497
|
+
});
|
|
13498
|
+
watchCreateHeaderTemp();
|
|
13499
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
13500
|
+
watchCreateHeaderTemp();
|
|
13501
|
+
});
|
|
13502
|
+
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
13503
|
+
//父组 件ScenceView初始化完成后执行
|
|
13504
|
+
|
|
13505
|
+
weightFields.value = [language.value.noSet];
|
|
13506
|
+
if (!formItem.valueField) formItem.valueField = language.value.noSet;
|
|
13507
|
+
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
13508
|
+
if (scenceView) {
|
|
13509
|
+
viewModel = new Heatmap3dViewModel(scenceView, formItem);
|
|
13510
|
+
|
|
13511
|
+
if (viewModel) {
|
|
13512
|
+
viewModel.language = language.value;
|
|
13513
|
+
let test = heatColor.value; // 触发赋值
|
|
13514
|
+
}
|
|
13515
|
+
}
|
|
13516
|
+
});
|
|
13517
|
+
});
|
|
13518
|
+
/**
|
|
13519
|
+
* @description 监听header生成
|
|
13520
|
+
*/
|
|
13521
|
+
|
|
13522
|
+
const watchCreateHeaderTemp = () => {
|
|
13523
|
+
if (props.showHeaderTemp) {
|
|
13524
|
+
// 生成headerTemp
|
|
13525
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
13526
|
+
}
|
|
13527
|
+
};
|
|
13528
|
+
|
|
13529
|
+
function selectData(file) {
|
|
13530
|
+
let url = URL.createObjectURL(file.raw);
|
|
13531
|
+
formItem.dataPath = url;
|
|
13532
|
+
} // 参数改变
|
|
13533
|
+
|
|
13534
|
+
|
|
13535
|
+
function paramsChanged(key) {
|
|
13536
|
+
viewModel && viewModel.paramsChanged(key, formItem[key]);
|
|
13537
|
+
|
|
13538
|
+
switch (key) {
|
|
13539
|
+
case "radius":
|
|
13540
|
+
case "height":
|
|
13541
|
+
formItem.isFollowingPerspective = false;
|
|
13542
|
+
break;
|
|
13543
|
+
|
|
13544
|
+
default:
|
|
13545
|
+
break;
|
|
13546
|
+
}
|
|
13547
|
+
} // 加载
|
|
13548
|
+
|
|
13549
|
+
|
|
13550
|
+
function startAnalysis() {
|
|
13551
|
+
getDataByPath();
|
|
13552
|
+
} // 获取路径数据
|
|
13553
|
+
|
|
13554
|
+
|
|
13555
|
+
function getDataByPath() {
|
|
13556
|
+
if (formItem && formItem.dataPath) {
|
|
13557
|
+
Cesium.Resource.fetchJson(formItem.dataPath).then(res => {
|
|
13558
|
+
if (res && res.features) {
|
|
13559
|
+
if (res.features.length === 0) {
|
|
13560
|
+
(0,message/* default */.Z)({
|
|
13561
|
+
message: "features " + language.value.noDataMessage + "!",
|
|
13562
|
+
type: "warning",
|
|
13563
|
+
duration: 2000
|
|
13564
|
+
});
|
|
13565
|
+
return;
|
|
13566
|
+
}
|
|
13567
|
+
|
|
13568
|
+
let heatmapArr = [];
|
|
13569
|
+
let bigArray = [];
|
|
13570
|
+
res.features.forEach(element => {
|
|
13571
|
+
if (!element.properties || Object.keys(element.properties).length === 0) return;
|
|
13572
|
+
let result = getValidKeysAndValues(element.properties);
|
|
13573
|
+
bigArray.push(result.validKeys);
|
|
13574
|
+
heatmapArr.push({
|
|
13575
|
+
lng: element.geometry.coordinates[0],
|
|
13576
|
+
lat: element.geometry.coordinates[1],
|
|
13577
|
+
...result.newObj,
|
|
13578
|
+
...{
|
|
13579
|
+
noSet: 0
|
|
13580
|
+
}
|
|
13581
|
+
});
|
|
13582
|
+
});
|
|
13583
|
+
let commonArr = commonValues(bigArray);
|
|
13584
|
+
weightFields.value = [language.value.noSet].concat(commonArr); // if (!formItem.valueField) {
|
|
13585
|
+
// formItem.valueField = commonArr[0];
|
|
13586
|
+
// paramsChanged("valueField");
|
|
13587
|
+
// }
|
|
13588
|
+
|
|
13589
|
+
if (viewModel) {
|
|
13590
|
+
viewModel.heatmapData = heatmapArr;
|
|
13591
|
+
viewModel.start();
|
|
13592
|
+
}
|
|
13593
|
+
} else {
|
|
13594
|
+
(0,message/* default */.Z)({
|
|
13595
|
+
message: language.value.geojsonTypeMessage + "!",
|
|
13596
|
+
type: "warning",
|
|
13597
|
+
duration: 2000
|
|
13598
|
+
});
|
|
13599
|
+
return;
|
|
13600
|
+
}
|
|
13601
|
+
}).otherwise(ret => {
|
|
13602
|
+
console.log(ret);
|
|
13603
|
+
(0,message/* default */.Z)({
|
|
13604
|
+
message: language.value.dataParsingMessage + "!",
|
|
13605
|
+
type: "error",
|
|
13606
|
+
duration: 2000
|
|
13607
|
+
});
|
|
13608
|
+
return;
|
|
13609
|
+
});
|
|
13610
|
+
} else {
|
|
13611
|
+
(0,message/* default */.Z)({
|
|
13612
|
+
message: language.value.fileTypeMessage + "!",
|
|
13613
|
+
type: "warning",
|
|
13614
|
+
duration: 2000
|
|
13615
|
+
});
|
|
13616
|
+
return;
|
|
13617
|
+
}
|
|
13618
|
+
}
|
|
13619
|
+
|
|
13620
|
+
function commonValues(bigArray) {
|
|
13621
|
+
// 如果大数组为空,直接返回空数组
|
|
13622
|
+
if (bigArray.length === 0) {
|
|
13623
|
+
return [];
|
|
13624
|
+
} // 以第一个小数组为初始值进行比较
|
|
13625
|
+
|
|
13626
|
+
|
|
13627
|
+
let common = [...bigArray[0]];
|
|
13628
|
+
|
|
13629
|
+
for (let i = 1; i < bigArray.length; i++) {
|
|
13630
|
+
common = common.filter(item => bigArray[i].includes(item));
|
|
13631
|
+
}
|
|
13632
|
+
|
|
13633
|
+
return common;
|
|
13634
|
+
} // 获取对象键列表
|
|
13635
|
+
|
|
13636
|
+
|
|
13637
|
+
function getValidKeysAndValues(obj) {
|
|
13638
|
+
const validKeys = [];
|
|
13639
|
+
const newObj = {};
|
|
13640
|
+
|
|
13641
|
+
for (const key in obj) {
|
|
13642
|
+
const value = obj[key];
|
|
13643
|
+
|
|
13644
|
+
if (!isNaN(value) && value > 0) {
|
|
13645
|
+
validKeys.push(key);
|
|
13646
|
+
newObj[key] = value;
|
|
13647
|
+
}
|
|
13648
|
+
}
|
|
13649
|
+
|
|
13650
|
+
return {
|
|
13651
|
+
validKeys,
|
|
13652
|
+
newObj
|
|
13653
|
+
};
|
|
13654
|
+
} // 预设的色带
|
|
13655
|
+
|
|
13656
|
+
|
|
13657
|
+
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"]]); // 自定义的颜色
|
|
13658
|
+
|
|
13659
|
+
const customColors = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.computed)({
|
|
13660
|
+
get() {
|
|
13661
|
+
const custom = props.settingParams && props.settingParams.custom;
|
|
13662
|
+
|
|
13663
|
+
if (!custom || custom.length == 0) {
|
|
13664
|
+
return getCustomColors(colorData.value[formItem.colorRamp]);
|
|
13665
|
+
} else {
|
|
13666
|
+
return custom;
|
|
13667
|
+
}
|
|
13668
|
+
},
|
|
13669
|
+
|
|
13670
|
+
set(value) {
|
|
13671
|
+
regroupColors();
|
|
13672
|
+
}
|
|
13673
|
+
|
|
13674
|
+
});
|
|
13675
|
+
const heatColor = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.computed)({
|
|
13676
|
+
get() {
|
|
13677
|
+
if (formItem.colorMode === 1) {
|
|
13678
|
+
getCustomColors(colorData.value[formItem.colorRamp]);
|
|
13679
|
+
regroupColors();
|
|
13680
|
+
} else {
|
|
13681
|
+
onChangeColorRamp();
|
|
13682
|
+
}
|
|
13683
|
+
|
|
13684
|
+
return heatColor.value;
|
|
13685
|
+
},
|
|
13686
|
+
|
|
13687
|
+
set(value) {
|
|
13688
|
+
viewModel && viewModel.setColorArray(value);
|
|
13689
|
+
}
|
|
13690
|
+
|
|
13691
|
+
});
|
|
13692
|
+
|
|
13693
|
+
function getHeatColor() {} // 重组颜色渲染对象
|
|
13694
|
+
|
|
13695
|
+
|
|
13696
|
+
function regroupColors() {
|
|
13697
|
+
let obj = {};
|
|
13698
|
+
customColors.value.forEach(element => {
|
|
13699
|
+
obj[element.percentage / 100] = element.color;
|
|
13700
|
+
});
|
|
13701
|
+
heatColor.value = obj;
|
|
13702
|
+
}
|
|
13703
|
+
|
|
13704
|
+
function onChangeColorRamp() {
|
|
13705
|
+
// 固定的开头
|
|
13706
|
+
const colors = colorData.value[formItem.colorRamp];
|
|
13707
|
+
const len = colors.length;
|
|
13708
|
+
const delta = 1 / len;
|
|
13709
|
+
let ramp = {};
|
|
13710
|
+
|
|
13711
|
+
for (let i = 0; i < len - 1; i++) {
|
|
13712
|
+
ramp[delta * (i + 1)] = colors[i];
|
|
13713
|
+
}
|
|
13714
|
+
|
|
13715
|
+
ramp[1] = colors[len - 1];
|
|
13716
|
+
heatColor.value = {
|
|
13717
|
+
0: "rgba(0, 0, 0, 0)",
|
|
13718
|
+
...ramp
|
|
13719
|
+
};
|
|
13720
|
+
}
|
|
13721
|
+
|
|
13722
|
+
function getCustomColors(colors) {
|
|
13723
|
+
let custom = [];
|
|
13724
|
+
const len = colors.length;
|
|
13725
|
+
const delta = 1 / (len - 1);
|
|
13726
|
+
|
|
13727
|
+
for (let i = 0; i < len; i++) {
|
|
13728
|
+
custom.push({
|
|
13729
|
+
id: (0,util_.guid)(),
|
|
13730
|
+
color: colors[i],
|
|
13731
|
+
percentage: i * delta * 100
|
|
13732
|
+
});
|
|
13733
|
+
}
|
|
13734
|
+
|
|
13735
|
+
return custom;
|
|
13736
|
+
}
|
|
13737
|
+
|
|
13738
|
+
function colorChanged(items) {
|
|
13739
|
+
let ramp = {};
|
|
13740
|
+
|
|
13741
|
+
for (let i = 0; i < items.length; i++) {
|
|
13742
|
+
if (items[i].percentage == 0) {
|
|
13743
|
+
items[i].percentage = 1;
|
|
13744
|
+
}
|
|
13745
|
+
|
|
13746
|
+
ramp[items[i].percentage / 100] = items[i].color;
|
|
13747
|
+
}
|
|
13748
|
+
|
|
13749
|
+
heatColor.value = {
|
|
13750
|
+
0: "rgba(0, 0, 0, 0)",
|
|
13751
|
+
...ramp
|
|
13752
|
+
};
|
|
13753
|
+
}
|
|
13754
|
+
|
|
13755
|
+
function generateColorStyle(colors) {
|
|
13756
|
+
return `background-image: linear-gradient(90deg, ${colors.toString()})`;
|
|
13757
|
+
} // 反转色带的颜色
|
|
13758
|
+
|
|
13759
|
+
|
|
13760
|
+
function onClickReverseRamp(colors) {
|
|
13761
|
+
colors = colors.reverse();
|
|
13762
|
+
onChangeColorRamp();
|
|
13763
|
+
} // 清除
|
|
13764
|
+
|
|
13765
|
+
|
|
13766
|
+
function clearResult() {
|
|
13767
|
+
viewModel && viewModel.clear();
|
|
13768
|
+
} // 销毁
|
|
13769
|
+
|
|
13770
|
+
|
|
13771
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
13772
|
+
viewModel && viewModel.destroy();
|
|
13773
|
+
});
|
|
13774
|
+
expose({});
|
|
13775
|
+
return (_ctx, _cache) => {
|
|
13776
|
+
const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
|
|
13777
|
+
|
|
13778
|
+
const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-icon");
|
|
13779
|
+
|
|
13780
|
+
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
13781
|
+
|
|
13782
|
+
const _component_kq_upload = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-upload");
|
|
13783
|
+
|
|
13784
|
+
const _component_kq_input = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input");
|
|
13785
|
+
|
|
13786
|
+
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
13787
|
+
|
|
13788
|
+
const _component_kq_radio = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-radio");
|
|
13789
|
+
|
|
13790
|
+
const _component_kq_radio_group = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-radio-group");
|
|
13791
|
+
|
|
13792
|
+
const _component_kq_option = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-option");
|
|
13793
|
+
|
|
13794
|
+
const _component_kq_select = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-select");
|
|
13795
|
+
|
|
13796
|
+
const _component_kq_form_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form-item");
|
|
13797
|
+
|
|
13798
|
+
const _component_kq_radio_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-radio-button");
|
|
13799
|
+
|
|
13800
|
+
const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
|
|
13801
|
+
|
|
13802
|
+
const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
|
|
13803
|
+
|
|
13804
|
+
const _component_kq_switch = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-switch");
|
|
13805
|
+
|
|
13806
|
+
const _component_kq_form = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form");
|
|
13807
|
+
|
|
13808
|
+
const _component_kq_collapse_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse-item");
|
|
13809
|
+
|
|
13810
|
+
const _component_kq_collapse = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse");
|
|
13811
|
+
|
|
13812
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
13813
|
+
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-heatmap", {
|
|
13814
|
+
'kq-box-shadow': __props.showShadow
|
|
13815
|
+
}]),
|
|
13816
|
+
ref_key: "boxRef",
|
|
13817
|
+
ref: boxRef
|
|
13818
|
+
}, [__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)), {
|
|
13819
|
+
key: 0,
|
|
13820
|
+
ref_key: "headerTempRef",
|
|
13821
|
+
ref: headerTempRef
|
|
13822
|
+
}, null, 512
|
|
13823
|
+
/* NEED_PATCH */
|
|
13824
|
+
)) : (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, {
|
|
13825
|
+
gutter: 20,
|
|
13826
|
+
class: "rowClass"
|
|
13827
|
+
}, {
|
|
13828
|
+
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, {
|
|
13829
|
+
span: 6,
|
|
13830
|
+
class: "colClass"
|
|
13831
|
+
}, {
|
|
13832
|
+
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
|
|
13833
|
+
/* TEXT */
|
|
13834
|
+
)]),
|
|
13835
|
+
_: 1
|
|
13836
|
+
/* STABLE */
|
|
13837
|
+
|
|
13838
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
13839
|
+
span: 18
|
|
13840
|
+
}, {
|
|
13841
|
+
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, {
|
|
13842
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).dataPath,
|
|
13843
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).dataPath = $event),
|
|
13844
|
+
onChange: _cache[1] || (_cache[1] = $event => paramsChanged('dataPath')),
|
|
13845
|
+
placeholder: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).videoPathPlace
|
|
13846
|
+
}, {
|
|
13847
|
+
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, {
|
|
13848
|
+
"on-change": selectData,
|
|
13849
|
+
"auto-upload": false,
|
|
13850
|
+
"show-file-list": false,
|
|
13851
|
+
accept: ".json"
|
|
13852
|
+
}, {
|
|
13853
|
+
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, {
|
|
13854
|
+
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, {
|
|
13855
|
+
size: 16
|
|
13856
|
+
}, {
|
|
13857
|
+
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))]),
|
|
13858
|
+
_: 1
|
|
13859
|
+
/* STABLE */
|
|
13860
|
+
|
|
13861
|
+
})]),
|
|
13862
|
+
_: 1
|
|
13863
|
+
/* STABLE */
|
|
13864
|
+
|
|
13865
|
+
})]),
|
|
13866
|
+
_: 1
|
|
13867
|
+
/* STABLE */
|
|
13868
|
+
|
|
13869
|
+
})]),
|
|
13870
|
+
_: 1
|
|
13871
|
+
/* STABLE */
|
|
13872
|
+
|
|
13873
|
+
}, 8
|
|
13874
|
+
/* PROPS */
|
|
13875
|
+
, ["modelValue", "placeholder"])]),
|
|
13876
|
+
_: 1
|
|
13877
|
+
/* STABLE */
|
|
13878
|
+
|
|
13879
|
+
})]),
|
|
13880
|
+
_: 1
|
|
13881
|
+
/* STABLE */
|
|
13882
|
+
|
|
13883
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
13884
|
+
gutter: 20,
|
|
13885
|
+
class: "rowClass"
|
|
13886
|
+
}, {
|
|
13887
|
+
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, {
|
|
13888
|
+
span: 6,
|
|
13889
|
+
class: "colClass"
|
|
13890
|
+
}, {
|
|
13891
|
+
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
|
|
13892
|
+
/* TEXT */
|
|
13893
|
+
)]),
|
|
13894
|
+
_: 1
|
|
13895
|
+
/* STABLE */
|
|
13896
|
+
|
|
13897
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
13898
|
+
span: 18
|
|
13899
|
+
}, {
|
|
13900
|
+
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, {
|
|
13901
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).heatmapType,
|
|
13902
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).heatmapType = $event)
|
|
13903
|
+
}, {
|
|
13904
|
+
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, {
|
|
13905
|
+
label: "3D",
|
|
13906
|
+
onChange: _cache[2] || (_cache[2] = $event => paramsChanged('heatmapType'))
|
|
13907
|
+
}, {
|
|
13908
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)("3D")]),
|
|
13909
|
+
_: 1
|
|
13910
|
+
/* STABLE */
|
|
13911
|
+
|
|
13912
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_radio, {
|
|
13913
|
+
label: "2D",
|
|
13914
|
+
onChange: _cache[3] || (_cache[3] = $event => paramsChanged('heatmapType'))
|
|
13915
|
+
}, {
|
|
13916
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)("2D")]),
|
|
13917
|
+
_: 1
|
|
13918
|
+
/* STABLE */
|
|
13919
|
+
|
|
13920
|
+
})]),
|
|
13921
|
+
_: 1
|
|
13922
|
+
/* STABLE */
|
|
13923
|
+
|
|
13924
|
+
}, 8
|
|
13925
|
+
/* PROPS */
|
|
13926
|
+
, ["modelValue"])]),
|
|
13927
|
+
_: 1
|
|
13928
|
+
/* STABLE */
|
|
13929
|
+
|
|
13930
|
+
})]),
|
|
13931
|
+
_: 1
|
|
13932
|
+
/* STABLE */
|
|
13933
|
+
|
|
13934
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
13935
|
+
class: "kq3d-heatmap-tip"
|
|
13936
|
+
}, {
|
|
13937
|
+
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
|
|
13938
|
+
/* TEXT */
|
|
13939
|
+
)]),
|
|
13940
|
+
_: 1
|
|
13941
|
+
/* STABLE */
|
|
13942
|
+
|
|
13943
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_collapse, {
|
|
13944
|
+
"model-value": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(collapseValue),
|
|
13945
|
+
class: "kq3d-heatmap-collapse"
|
|
13946
|
+
}, {
|
|
13947
|
+
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, {
|
|
13948
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).analysisSettings,
|
|
13949
|
+
name: "setting"
|
|
13950
|
+
}, {
|
|
13951
|
+
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, {
|
|
13952
|
+
"label-width": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? '110px' : '130px',
|
|
13953
|
+
"label-position": "left"
|
|
13954
|
+
}, {
|
|
13955
|
+
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, {
|
|
13956
|
+
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, {
|
|
13957
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).weightField
|
|
13958
|
+
}, {
|
|
13959
|
+
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, {
|
|
13960
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).valueField,
|
|
13961
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).valueField = $event),
|
|
13962
|
+
onChange: _cache[6] || (_cache[6] = $event => paramsChanged('valueField')),
|
|
13963
|
+
style: {
|
|
13964
|
+
"width": "100%"
|
|
13965
|
+
}
|
|
13966
|
+
}, {
|
|
13967
|
+
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) => {
|
|
13968
|
+
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, {
|
|
13969
|
+
key: index,
|
|
13970
|
+
label: item,
|
|
13971
|
+
value: item
|
|
13972
|
+
}, null, 8
|
|
13973
|
+
/* PROPS */
|
|
13974
|
+
, ["label", "value"]);
|
|
13975
|
+
}), 128
|
|
13976
|
+
/* KEYED_FRAGMENT */
|
|
13977
|
+
))]),
|
|
13978
|
+
_: 1
|
|
13979
|
+
/* STABLE */
|
|
13980
|
+
|
|
13981
|
+
}, 8
|
|
13982
|
+
/* PROPS */
|
|
13983
|
+
, ["modelValue"])]),
|
|
13984
|
+
_: 1
|
|
13985
|
+
/* STABLE */
|
|
13986
|
+
|
|
13987
|
+
}, 8
|
|
13988
|
+
/* PROPS */
|
|
13989
|
+
, ["label"])]),
|
|
13990
|
+
_: 1
|
|
13991
|
+
/* STABLE */
|
|
13992
|
+
|
|
13993
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
13994
|
+
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, {
|
|
13995
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).colorScheme
|
|
13996
|
+
}, {
|
|
13997
|
+
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, {
|
|
13998
|
+
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, {
|
|
13999
|
+
style: {
|
|
14000
|
+
"text-align": "left"
|
|
14001
|
+
}
|
|
14002
|
+
}, {
|
|
14003
|
+
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, {
|
|
14004
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).colorMode,
|
|
14005
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).colorMode = $event)
|
|
14006
|
+
}, {
|
|
14007
|
+
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, {
|
|
14008
|
+
label: "1"
|
|
14009
|
+
}, {
|
|
14010
|
+
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
|
|
14011
|
+
/* TEXT */
|
|
14012
|
+
)]),
|
|
14013
|
+
_: 1
|
|
14014
|
+
/* STABLE */
|
|
14015
|
+
|
|
14016
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_radio_button, {
|
|
14017
|
+
label: "2"
|
|
14018
|
+
}, {
|
|
14019
|
+
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
|
|
14020
|
+
/* TEXT */
|
|
14021
|
+
)]),
|
|
14022
|
+
_: 1
|
|
14023
|
+
/* STABLE */
|
|
14024
|
+
|
|
14025
|
+
})]),
|
|
14026
|
+
_: 1
|
|
14027
|
+
/* STABLE */
|
|
14028
|
+
|
|
14029
|
+
}, 8
|
|
14030
|
+
/* PROPS */
|
|
14031
|
+
, ["modelValue"])]),
|
|
14032
|
+
_: 1
|
|
14033
|
+
/* STABLE */
|
|
14034
|
+
|
|
14035
|
+
})]),
|
|
14036
|
+
_: 1
|
|
14037
|
+
/* STABLE */
|
|
14038
|
+
|
|
14039
|
+
})]),
|
|
14040
|
+
_: 1
|
|
14041
|
+
/* STABLE */
|
|
14042
|
+
|
|
14043
|
+
}, 8
|
|
14044
|
+
/* PROPS */
|
|
14045
|
+
, ["label"])]),
|
|
14046
|
+
_: 1
|
|
14047
|
+
/* STABLE */
|
|
14048
|
+
|
|
14049
|
+
}), (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, {
|
|
14050
|
+
key: 0
|
|
14051
|
+
}, {
|
|
14052
|
+
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, {
|
|
14053
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).colorBand
|
|
14054
|
+
}, {
|
|
14055
|
+
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, {
|
|
14056
|
+
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, {
|
|
14057
|
+
style: {
|
|
14058
|
+
"text-align": "left"
|
|
14059
|
+
},
|
|
14060
|
+
class: "heatSelect"
|
|
14061
|
+
}, {
|
|
14062
|
+
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, {
|
|
14063
|
+
style: {
|
|
14064
|
+
"width": "100%"
|
|
14065
|
+
},
|
|
14066
|
+
"popper-class": "heat-color-select",
|
|
14067
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).colorRamp,
|
|
14068
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).colorRamp = $event),
|
|
14069
|
+
onChange: onChangeColorRamp
|
|
14070
|
+
}, {
|
|
14071
|
+
prefix: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
|
|
14072
|
+
class: "color-ramp",
|
|
14073
|
+
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]))
|
|
14074
|
+
}, null, 4
|
|
14075
|
+
/* STYLE */
|
|
14076
|
+
)]),
|
|
14077
|
+
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) => {
|
|
14078
|
+
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, {
|
|
14079
|
+
class: "color-option",
|
|
14080
|
+
key: index,
|
|
14081
|
+
value: index
|
|
14082
|
+
}, {
|
|
14083
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
|
|
14084
|
+
class: "color-ramp",
|
|
14085
|
+
style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)(generateColorStyle(item))
|
|
14086
|
+
}, null, 4
|
|
14087
|
+
/* STYLE */
|
|
14088
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_icon, {
|
|
14089
|
+
class: "reverse",
|
|
14090
|
+
onClick: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => onClickReverseRamp(item), ["stop"])
|
|
14091
|
+
}, {
|
|
14092
|
+
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))]),
|
|
14093
|
+
_: 2
|
|
14094
|
+
/* DYNAMIC */
|
|
14095
|
+
|
|
14096
|
+
}, 1032
|
|
14097
|
+
/* PROPS, DYNAMIC_SLOTS */
|
|
14098
|
+
, ["onClick"])]),
|
|
14099
|
+
_: 2
|
|
14100
|
+
/* DYNAMIC */
|
|
14101
|
+
|
|
14102
|
+
}, 1032
|
|
14103
|
+
/* PROPS, DYNAMIC_SLOTS */
|
|
14104
|
+
, ["value"]);
|
|
14105
|
+
}), 128
|
|
14106
|
+
/* KEYED_FRAGMENT */
|
|
14107
|
+
))]),
|
|
14108
|
+
_: 1
|
|
14109
|
+
/* STABLE */
|
|
14110
|
+
|
|
14111
|
+
}, 8
|
|
14112
|
+
/* PROPS */
|
|
14113
|
+
, ["modelValue"])]),
|
|
14114
|
+
_: 1
|
|
14115
|
+
/* STABLE */
|
|
14116
|
+
|
|
14117
|
+
})]),
|
|
14118
|
+
_: 1
|
|
14119
|
+
/* STABLE */
|
|
14120
|
+
|
|
14121
|
+
})]),
|
|
14122
|
+
_: 1
|
|
14123
|
+
/* STABLE */
|
|
14124
|
+
|
|
14125
|
+
}, 8
|
|
14126
|
+
/* PROPS */
|
|
14127
|
+
, ["label"])]),
|
|
14128
|
+
_: 1
|
|
14129
|
+
/* STABLE */
|
|
14130
|
+
|
|
14131
|
+
})) : (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, {
|
|
14132
|
+
key: 1
|
|
14133
|
+
}, {
|
|
14134
|
+
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, {
|
|
14135
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).colorBand
|
|
14136
|
+
}, {
|
|
14137
|
+
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, {
|
|
14138
|
+
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, {
|
|
14139
|
+
style: {
|
|
14140
|
+
"text-align": "left"
|
|
14141
|
+
}
|
|
14142
|
+
}, {
|
|
14143
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(CustomColorPicker, {
|
|
14144
|
+
data: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(customColors),
|
|
14145
|
+
onColorChanged: colorChanged
|
|
14146
|
+
}, null, 8
|
|
14147
|
+
/* PROPS */
|
|
14148
|
+
, ["data"])]),
|
|
14149
|
+
_: 1
|
|
14150
|
+
/* STABLE */
|
|
14151
|
+
|
|
14152
|
+
})]),
|
|
14153
|
+
_: 1
|
|
14154
|
+
/* STABLE */
|
|
14155
|
+
|
|
14156
|
+
})]),
|
|
14157
|
+
_: 1
|
|
14158
|
+
/* STABLE */
|
|
14159
|
+
|
|
14160
|
+
}, 8
|
|
14161
|
+
/* PROPS */
|
|
14162
|
+
, ["label"])]),
|
|
14163
|
+
_: 1
|
|
14164
|
+
/* STABLE */
|
|
14165
|
+
|
|
14166
|
+
})) : (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, {
|
|
14167
|
+
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, {
|
|
14168
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).radius + '(m)'
|
|
14169
|
+
}, {
|
|
14170
|
+
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, {
|
|
14171
|
+
style: {
|
|
14172
|
+
"display": "flex"
|
|
14173
|
+
}
|
|
14174
|
+
}, {
|
|
14175
|
+
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, {
|
|
14176
|
+
span: 16
|
|
14177
|
+
}, {
|
|
14178
|
+
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, {
|
|
14179
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).radius,
|
|
14180
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).radius = $event),
|
|
14181
|
+
step: 0.1,
|
|
14182
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minRadius,
|
|
14183
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxRadius,
|
|
14184
|
+
onInput: _cache[10] || (_cache[10] = $event => paramsChanged('radius'))
|
|
14185
|
+
}, null, 8
|
|
14186
|
+
/* PROPS */
|
|
14187
|
+
, ["modelValue", "step", "min", "max"])]),
|
|
14188
|
+
_: 1
|
|
14189
|
+
/* STABLE */
|
|
14190
|
+
|
|
14191
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
14192
|
+
span: 8
|
|
14193
|
+
}, {
|
|
14194
|
+
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, {
|
|
14195
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).radius,
|
|
14196
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).radius = $event),
|
|
14197
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minRadius,
|
|
14198
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxRadius,
|
|
14199
|
+
step: 0.1,
|
|
14200
|
+
onInput: _cache[12] || (_cache[12] = $event => paramsChanged('radius')),
|
|
14201
|
+
"controls-position": "right"
|
|
14202
|
+
}, null, 8
|
|
14203
|
+
/* PROPS */
|
|
14204
|
+
, ["modelValue", "min", "max", "step"])]),
|
|
14205
|
+
_: 1
|
|
14206
|
+
/* STABLE */
|
|
14207
|
+
|
|
14208
|
+
})]),
|
|
14209
|
+
_: 1
|
|
14210
|
+
/* STABLE */
|
|
14211
|
+
|
|
14212
|
+
})]),
|
|
14213
|
+
_: 1
|
|
14214
|
+
/* STABLE */
|
|
14215
|
+
|
|
14216
|
+
}, 8
|
|
14217
|
+
/* PROPS */
|
|
14218
|
+
, ["label"])]),
|
|
14219
|
+
_: 1
|
|
14220
|
+
/* STABLE */
|
|
14221
|
+
|
|
14222
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
14223
|
+
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, {
|
|
14224
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).transparents
|
|
12230
14225
|
}, {
|
|
12231
14226
|
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, {
|
|
12232
14227
|
style: {
|
|
@@ -12237,15 +14232,15 @@ const __default__ = {
|
|
|
12237
14232
|
span: 16
|
|
12238
14233
|
}, {
|
|
12239
14234
|
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, {
|
|
12240
|
-
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).
|
|
12241
|
-
"onUpdate:modelValue": _cache[
|
|
12242
|
-
step:
|
|
12243
|
-
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).
|
|
12244
|
-
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).
|
|
12245
|
-
onInput: _cache[
|
|
14235
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).transparents,
|
|
14236
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).transparents = $event),
|
|
14237
|
+
step: 0.01,
|
|
14238
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minTransparents,
|
|
14239
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxTransparents,
|
|
14240
|
+
onInput: _cache[14] || (_cache[14] = $event => paramsChanged('transparents'))
|
|
12246
14241
|
}, null, 8
|
|
12247
14242
|
/* PROPS */
|
|
12248
|
-
, ["modelValue", "min", "max"])]),
|
|
14243
|
+
, ["modelValue", "step", "min", "max"])]),
|
|
12249
14244
|
_: 1
|
|
12250
14245
|
/* STABLE */
|
|
12251
14246
|
|
|
@@ -12253,16 +14248,16 @@ const __default__ = {
|
|
|
12253
14248
|
span: 8
|
|
12254
14249
|
}, {
|
|
12255
14250
|
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, {
|
|
12256
|
-
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).
|
|
12257
|
-
"onUpdate:modelValue": _cache[
|
|
12258
|
-
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).
|
|
12259
|
-
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).
|
|
12260
|
-
step:
|
|
12261
|
-
|
|
12262
|
-
|
|
14251
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).transparents,
|
|
14252
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).transparents = $event),
|
|
14253
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minTransparents,
|
|
14254
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxTransparents,
|
|
14255
|
+
step: 0.01,
|
|
14256
|
+
onInput: _cache[16] || (_cache[16] = $event => paramsChanged('transparents')),
|
|
14257
|
+
"controls-position": "right"
|
|
12263
14258
|
}, null, 8
|
|
12264
14259
|
/* PROPS */
|
|
12265
|
-
, ["modelValue", "min", "max"])]),
|
|
14260
|
+
, ["modelValue", "min", "max", "step"])]),
|
|
12266
14261
|
_: 1
|
|
12267
14262
|
/* STABLE */
|
|
12268
14263
|
|
|
@@ -12280,9 +14275,9 @@ const __default__ = {
|
|
|
12280
14275
|
_: 1
|
|
12281
14276
|
/* STABLE */
|
|
12282
14277
|
|
|
12283
|
-
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
14278
|
+
}), (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, {
|
|
12284
14279
|
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, {
|
|
12285
|
-
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).
|
|
14280
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).height
|
|
12286
14281
|
}, {
|
|
12287
14282
|
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, {
|
|
12288
14283
|
style: {
|
|
@@ -12293,12 +14288,12 @@ const __default__ = {
|
|
|
12293
14288
|
span: 16
|
|
12294
14289
|
}, {
|
|
12295
14290
|
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, {
|
|
12296
|
-
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).
|
|
12297
|
-
"onUpdate:modelValue": _cache[
|
|
14291
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).height,
|
|
14292
|
+
"onUpdate:modelValue": _cache[17] || (_cache[17] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).height = $event),
|
|
12298
14293
|
step: 1,
|
|
12299
|
-
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).
|
|
12300
|
-
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).
|
|
12301
|
-
onInput: _cache[
|
|
14294
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minHeight,
|
|
14295
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxHeight,
|
|
14296
|
+
onInput: _cache[18] || (_cache[18] = $event => paramsChanged('height'))
|
|
12302
14297
|
}, null, 8
|
|
12303
14298
|
/* PROPS */
|
|
12304
14299
|
, ["modelValue", "min", "max"])]),
|
|
@@ -12309,13 +14304,13 @@ const __default__ = {
|
|
|
12309
14304
|
span: 8
|
|
12310
14305
|
}, {
|
|
12311
14306
|
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, {
|
|
12312
|
-
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).
|
|
12313
|
-
"onUpdate:modelValue": _cache[
|
|
12314
|
-
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).
|
|
12315
|
-
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).
|
|
14307
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).height,
|
|
14308
|
+
"onUpdate:modelValue": _cache[19] || (_cache[19] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).height = $event),
|
|
14309
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minHeight,
|
|
14310
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxHeight,
|
|
12316
14311
|
step: 1,
|
|
12317
|
-
|
|
12318
|
-
|
|
14312
|
+
onInput: _cache[20] || (_cache[20] = $event => paramsChanged('height')),
|
|
14313
|
+
"controls-position": "right"
|
|
12319
14314
|
}, null, 8
|
|
12320
14315
|
/* PROPS */
|
|
12321
14316
|
, ["modelValue", "min", "max"])]),
|
|
@@ -12336,9 +14331,11 @@ const __default__ = {
|
|
|
12336
14331
|
_: 1
|
|
12337
14332
|
/* STABLE */
|
|
12338
14333
|
|
|
12339
|
-
}
|
|
14334
|
+
}, 512
|
|
14335
|
+
/* NEED_PATCH */
|
|
14336
|
+
), [[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, {
|
|
12340
14337
|
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, {
|
|
12341
|
-
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).
|
|
14338
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).heightRatio
|
|
12342
14339
|
}, {
|
|
12343
14340
|
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, {
|
|
12344
14341
|
style: {
|
|
@@ -12349,15 +14346,15 @@ const __default__ = {
|
|
|
12349
14346
|
span: 16
|
|
12350
14347
|
}, {
|
|
12351
14348
|
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, {
|
|
12352
|
-
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).
|
|
12353
|
-
"onUpdate:modelValue": _cache[
|
|
12354
|
-
step: 1,
|
|
12355
|
-
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).
|
|
12356
|
-
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).
|
|
12357
|
-
onInput: _cache[
|
|
14349
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).heightRatio,
|
|
14350
|
+
"onUpdate:modelValue": _cache[21] || (_cache[21] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).heightRatio = $event),
|
|
14351
|
+
step: 0.1,
|
|
14352
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minHeightRatio,
|
|
14353
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxHeightRatio,
|
|
14354
|
+
onInput: _cache[22] || (_cache[22] = $event => paramsChanged('heightRatio'))
|
|
12358
14355
|
}, null, 8
|
|
12359
14356
|
/* PROPS */
|
|
12360
|
-
, ["modelValue", "min", "max"])]),
|
|
14357
|
+
, ["modelValue", "step", "min", "max"])]),
|
|
12361
14358
|
_: 1
|
|
12362
14359
|
/* STABLE */
|
|
12363
14360
|
|
|
@@ -12365,16 +14362,16 @@ const __default__ = {
|
|
|
12365
14362
|
span: 8
|
|
12366
14363
|
}, {
|
|
12367
14364
|
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, {
|
|
12368
|
-
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).
|
|
12369
|
-
"onUpdate:modelValue": _cache[
|
|
12370
|
-
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).
|
|
12371
|
-
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).
|
|
12372
|
-
step: 1,
|
|
12373
|
-
|
|
12374
|
-
|
|
14365
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).heightRatio,
|
|
14366
|
+
"onUpdate:modelValue": _cache[23] || (_cache[23] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).heightRatio = $event),
|
|
14367
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minHeightRatio,
|
|
14368
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxHeightRatio,
|
|
14369
|
+
step: 0.1,
|
|
14370
|
+
onInput: _cache[24] || (_cache[24] = $event => paramsChanged('heightRatio')),
|
|
14371
|
+
"controls-position": "right"
|
|
12375
14372
|
}, null, 8
|
|
12376
14373
|
/* PROPS */
|
|
12377
|
-
, ["modelValue", "min", "max"])]),
|
|
14374
|
+
, ["modelValue", "min", "max", "step"])]),
|
|
12378
14375
|
_: 1
|
|
12379
14376
|
/* STABLE */
|
|
12380
14377
|
|
|
@@ -12392,11 +14389,133 @@ const __default__ = {
|
|
|
12392
14389
|
_: 1
|
|
12393
14390
|
/* STABLE */
|
|
12394
14391
|
|
|
12395
|
-
}
|
|
14392
|
+
}, 512
|
|
14393
|
+
/* NEED_PATCH */
|
|
14394
|
+
), [[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, {
|
|
14395
|
+
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, {
|
|
14396
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).isShow
|
|
14397
|
+
}, {
|
|
14398
|
+
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, {
|
|
14399
|
+
style: {
|
|
14400
|
+
"display": "flex"
|
|
14401
|
+
}
|
|
14402
|
+
}, {
|
|
14403
|
+
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, {
|
|
14404
|
+
style: {
|
|
14405
|
+
"text-align": "left"
|
|
14406
|
+
}
|
|
14407
|
+
}, {
|
|
14408
|
+
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, {
|
|
14409
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).isShow,
|
|
14410
|
+
"onUpdate:modelValue": _cache[25] || (_cache[25] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).isShow = $event),
|
|
14411
|
+
onChange: _cache[26] || (_cache[26] = $event => paramsChanged('isShow'))
|
|
14412
|
+
}, null, 8
|
|
14413
|
+
/* PROPS */
|
|
14414
|
+
, ["modelValue"])]),
|
|
14415
|
+
_: 1
|
|
14416
|
+
/* STABLE */
|
|
14417
|
+
|
|
14418
|
+
})]),
|
|
14419
|
+
_: 1
|
|
14420
|
+
/* STABLE */
|
|
14421
|
+
|
|
14422
|
+
})]),
|
|
14423
|
+
_: 1
|
|
14424
|
+
/* STABLE */
|
|
14425
|
+
|
|
14426
|
+
}, 8
|
|
14427
|
+
/* PROPS */
|
|
14428
|
+
, ["label"])]),
|
|
14429
|
+
_: 1
|
|
14430
|
+
/* STABLE */
|
|
14431
|
+
|
|
14432
|
+
}), (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, {
|
|
14433
|
+
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, {
|
|
14434
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).isGround
|
|
14435
|
+
}, {
|
|
14436
|
+
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, {
|
|
14437
|
+
style: {
|
|
14438
|
+
"display": "flex"
|
|
14439
|
+
}
|
|
14440
|
+
}, {
|
|
14441
|
+
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, {
|
|
14442
|
+
style: {
|
|
14443
|
+
"text-align": "left"
|
|
14444
|
+
}
|
|
14445
|
+
}, {
|
|
14446
|
+
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, {
|
|
14447
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).isGround,
|
|
14448
|
+
"onUpdate:modelValue": _cache[27] || (_cache[27] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).isGround = $event),
|
|
14449
|
+
onChange: _cache[28] || (_cache[28] = $event => paramsChanged('isGround'))
|
|
14450
|
+
}, null, 8
|
|
14451
|
+
/* PROPS */
|
|
14452
|
+
, ["modelValue"])]),
|
|
14453
|
+
_: 1
|
|
14454
|
+
/* STABLE */
|
|
14455
|
+
|
|
14456
|
+
})]),
|
|
14457
|
+
_: 1
|
|
14458
|
+
/* STABLE */
|
|
14459
|
+
|
|
14460
|
+
})]),
|
|
14461
|
+
_: 1
|
|
14462
|
+
/* STABLE */
|
|
14463
|
+
|
|
14464
|
+
}, 8
|
|
14465
|
+
/* PROPS */
|
|
14466
|
+
, ["label"])]),
|
|
14467
|
+
_: 1
|
|
14468
|
+
/* STABLE */
|
|
14469
|
+
|
|
14470
|
+
}, 512
|
|
14471
|
+
/* NEED_PATCH */
|
|
14472
|
+
), [[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, {
|
|
14473
|
+
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, {
|
|
14474
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).isFollowingPerspective
|
|
14475
|
+
}, {
|
|
14476
|
+
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, {
|
|
14477
|
+
style: {
|
|
14478
|
+
"display": "flex"
|
|
14479
|
+
}
|
|
14480
|
+
}, {
|
|
14481
|
+
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, {
|
|
14482
|
+
style: {
|
|
14483
|
+
"text-align": "left"
|
|
14484
|
+
}
|
|
14485
|
+
}, {
|
|
14486
|
+
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, {
|
|
14487
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).isFollowingPerspective,
|
|
14488
|
+
"onUpdate:modelValue": _cache[29] || (_cache[29] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).isFollowingPerspective = $event),
|
|
14489
|
+
onChange: _cache[30] || (_cache[30] = $event => paramsChanged('isFollowingPerspective'))
|
|
14490
|
+
}, null, 8
|
|
14491
|
+
/* PROPS */
|
|
14492
|
+
, ["modelValue"])]),
|
|
14493
|
+
_: 1
|
|
14494
|
+
/* STABLE */
|
|
14495
|
+
|
|
14496
|
+
})]),
|
|
14497
|
+
_: 1
|
|
14498
|
+
/* STABLE */
|
|
14499
|
+
|
|
14500
|
+
})]),
|
|
14501
|
+
_: 1
|
|
14502
|
+
/* STABLE */
|
|
14503
|
+
|
|
14504
|
+
}, 8
|
|
14505
|
+
/* PROPS */
|
|
14506
|
+
, ["label"])]),
|
|
14507
|
+
_: 1
|
|
14508
|
+
/* STABLE */
|
|
14509
|
+
|
|
14510
|
+
}, 512
|
|
14511
|
+
/* NEED_PATCH */
|
|
14512
|
+
), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).heatmapType === '3D']])]),
|
|
12396
14513
|
_: 1
|
|
12397
14514
|
/* STABLE */
|
|
12398
14515
|
|
|
12399
|
-
}
|
|
14516
|
+
}, 8
|
|
14517
|
+
/* PROPS */
|
|
14518
|
+
, ["label-width"])]),
|
|
12400
14519
|
_: 1
|
|
12401
14520
|
/* STABLE */
|
|
12402
14521
|
|
|
@@ -12408,12 +14527,12 @@ const __default__ = {
|
|
|
12408
14527
|
|
|
12409
14528
|
}, 8
|
|
12410
14529
|
/* PROPS */
|
|
12411
|
-
, ["model-value"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div",
|
|
12412
|
-
onClick: _cache[
|
|
12413
|
-
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).
|
|
14530
|
+
, ["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, {
|
|
14531
|
+
onClick: _cache[31] || (_cache[31] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startAnalysis(), ["stop"])),
|
|
14532
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).heatmapLoad,
|
|
12414
14533
|
type: "primary"
|
|
12415
14534
|
}, {
|
|
12416
|
-
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).
|
|
14535
|
+
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
|
|
12417
14536
|
/* TEXT */
|
|
12418
14537
|
)]),
|
|
12419
14538
|
_: 1
|
|
@@ -12422,10 +14541,10 @@ const __default__ = {
|
|
|
12422
14541
|
}, 8
|
|
12423
14542
|
/* PROPS */
|
|
12424
14543
|
, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
12425
|
-
onClick: _cache[
|
|
12426
|
-
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).
|
|
14544
|
+
onClick: _cache[32] || (_cache[32] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clearResult(), ["stop"])),
|
|
14545
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearResult
|
|
12427
14546
|
}, {
|
|
12428
|
-
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).
|
|
14547
|
+
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
|
|
12429
14548
|
/* TEXT */
|
|
12430
14549
|
)]),
|
|
12431
14550
|
_: 1
|
|
@@ -12440,233 +14559,26 @@ const __default__ = {
|
|
|
12440
14559
|
}
|
|
12441
14560
|
|
|
12442
14561
|
}));
|
|
12443
|
-
;// CONCATENATED MODULE: ./src/webgl/
|
|
12444
|
-
|
|
12445
|
-
;// CONCATENATED MODULE: ./src/webgl/gpuspatialquery/GPUSpatialQuery.vue
|
|
12446
|
-
|
|
12447
|
-
|
|
12448
|
-
|
|
12449
|
-
const __exports__ = GPUSpatialQueryvue_type_script_setup_true_lang_js;
|
|
12450
|
-
|
|
12451
|
-
/* harmony default export */ var GPUSpatialQuery = (__exports__);
|
|
12452
|
-
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
12453
|
-
var init_js_ = __webpack_require__(7997);
|
|
12454
|
-
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
12455
|
-
;// CONCATENATED MODULE: ./src/webgl/gpuspatialquery/index.js
|
|
12456
|
-
|
|
12457
|
-
|
|
12458
|
-
|
|
12459
|
-
|
|
12460
|
-
GPUSpatialQuery.install = (Vue, opts) => {
|
|
12461
|
-
init_js_default()(Vue, opts);
|
|
12462
|
-
Vue.component(GPUSpatialQuery.name, GPUSpatialQuery);
|
|
12463
|
-
};
|
|
12464
|
-
|
|
12465
|
-
|
|
12466
|
-
|
|
12467
|
-
/***/ }),
|
|
12468
|
-
|
|
12469
|
-
/***/ 1162:
|
|
12470
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12471
|
-
|
|
12472
|
-
"use strict";
|
|
12473
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12474
|
-
/* harmony export */ "Z": function() { return /* binding */ HawkeyeViewModel; }
|
|
12475
|
-
/* harmony export */ });
|
|
12476
|
-
/* harmony import */ var _Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8270);
|
|
12477
|
-
|
|
12478
|
-
//鹰眼逻辑类
|
|
12479
|
-
class HawkeyeViewModel {
|
|
12480
|
-
//鹰眼三维对象
|
|
12481
|
-
constructor(scenceView, options) {
|
|
12482
|
-
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_overviewMap", null);
|
|
12483
|
-
|
|
12484
|
-
options.viewer = scenceView._viewer;
|
|
12485
|
-
options.centerRectColor = Cesium.Color.fromCssColorString(options.centerColor || "#0000ff").withAlpha(options.centerColorAlpha || 0.5);
|
|
12486
|
-
this.init(options);
|
|
12487
|
-
}
|
|
12488
|
-
|
|
12489
|
-
init(options) {
|
|
12490
|
-
// if(!options.layers) {
|
|
12491
|
-
// let layers = [];
|
|
12492
|
-
// options.viewer.imageryLayers._layers.forEach(function (layer) {
|
|
12493
|
-
// layers.push(layer);
|
|
12494
|
-
// });
|
|
12495
|
-
// options.layers = layers;
|
|
12496
|
-
// options.layers = new Cesium.Kq3dArcGISMapServerImageryProvider({
|
|
12497
|
-
// url: 'https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer'
|
|
12498
|
-
// });
|
|
12499
|
-
// }
|
|
12500
|
-
this._overviewMap = new Cesium.Kq3dOverviewMap(options);
|
|
12501
|
-
} //显示
|
|
12502
|
-
|
|
12503
|
-
|
|
12504
|
-
show() {
|
|
12505
|
-
this._overviewMap.show = true;
|
|
12506
|
-
} //隐藏
|
|
12507
|
-
|
|
12508
|
-
|
|
12509
|
-
hide() {
|
|
12510
|
-
this._overviewMap.show = false;
|
|
12511
|
-
} // 设置图层
|
|
12512
|
-
|
|
12513
|
-
|
|
12514
|
-
setLayers(layers) {
|
|
12515
|
-
if (Array.isArray(layers)) {
|
|
12516
|
-
this._overviewMap._viewer.imageryLayers.removeAll();
|
|
12517
|
-
|
|
12518
|
-
layers.forEach(layer => {
|
|
12519
|
-
this._overviewMap._viewer.imageryLayers.add(layer);
|
|
12520
|
-
});
|
|
12521
|
-
}
|
|
12522
|
-
} //销毁
|
|
12523
|
-
|
|
12524
|
-
|
|
12525
|
-
destroy() {
|
|
12526
|
-
this._overviewMap.destroy();
|
|
12527
|
-
|
|
12528
|
-
this._overviewMap = null;
|
|
12529
|
-
}
|
|
12530
|
-
|
|
12531
|
-
}
|
|
12532
|
-
|
|
12533
|
-
/***/ }),
|
|
12534
|
-
|
|
12535
|
-
/***/ 7686:
|
|
12536
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12537
|
-
|
|
12538
|
-
"use strict";
|
|
12539
|
-
|
|
12540
|
-
// EXPORTS
|
|
12541
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
12542
|
-
"default": function() { return /* reexport */ Hawkeye; }
|
|
12543
|
-
});
|
|
12544
|
-
|
|
12545
|
-
// UNUSED EXPORTS: HawkeyeViewModel
|
|
12546
|
-
|
|
12547
|
-
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
12548
|
-
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
|
|
12549
|
-
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
12550
|
-
var gis_utils_ = __webpack_require__(7135);
|
|
12551
|
-
// EXTERNAL MODULE: ./src/webgl/hawkeye/HawkeyeViewModel.js
|
|
12552
|
-
var HawkeyeViewModel = __webpack_require__(1162);
|
|
12553
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/hawkeye/Hawkeye.vue?vue&type=script&setup=true&lang=js
|
|
12554
|
-
|
|
12555
|
-
|
|
12556
|
-
|
|
12557
|
-
const __default__ = {
|
|
12558
|
-
name: "Kq3dHawkeye"
|
|
12559
|
-
};
|
|
12560
|
-
/* harmony default export */ var Hawkeyevue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
12561
|
-
props: {
|
|
12562
|
-
//指定组件绑定的viewer对象的div的id
|
|
12563
|
-
mapTarget: String,
|
|
12564
|
-
show: {
|
|
12565
|
-
type: Boolean,
|
|
12566
|
-
default: true
|
|
12567
|
-
},
|
|
12568
|
-
width: {
|
|
12569
|
-
type: Number,
|
|
12570
|
-
default: 300
|
|
12571
|
-
},
|
|
12572
|
-
height: {
|
|
12573
|
-
type: Number,
|
|
12574
|
-
default: 200
|
|
12575
|
-
},
|
|
12576
|
-
top: Number,
|
|
12577
|
-
left: Number,
|
|
12578
|
-
bottom: {
|
|
12579
|
-
type: Number,
|
|
12580
|
-
default: 16
|
|
12581
|
-
},
|
|
12582
|
-
right: {
|
|
12583
|
-
type: Number,
|
|
12584
|
-
default: 16
|
|
12585
|
-
},
|
|
12586
|
-
centerColor: {
|
|
12587
|
-
type: String,
|
|
12588
|
-
default: "#0000ff"
|
|
12589
|
-
},
|
|
12590
|
-
centerColorAlpha: {
|
|
12591
|
-
type: Number,
|
|
12592
|
-
default: 0.5
|
|
12593
|
-
},
|
|
12594
|
-
layers: Array
|
|
12595
|
-
},
|
|
12596
|
-
|
|
12597
|
-
setup(__props, {
|
|
12598
|
-
expose
|
|
12599
|
-
}) {
|
|
12600
|
-
const props = __props;
|
|
12601
|
-
let viewModel = null; // 获取组件传参
|
|
12602
|
-
|
|
12603
|
-
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
12604
|
-
//父组件ScenceView初始化完成后执行
|
|
12605
|
-
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
12606
|
-
if (scenceView) {
|
|
12607
|
-
let options = {
|
|
12608
|
-
show: props.show,
|
|
12609
|
-
width: props.width,
|
|
12610
|
-
height: props.height,
|
|
12611
|
-
bottom: props.bottom,
|
|
12612
|
-
right: props.right,
|
|
12613
|
-
zIndex: 9999,
|
|
12614
|
-
centerColor: props.centerColor,
|
|
12615
|
-
centerColorAlpha: props.centerColorAlpha,
|
|
12616
|
-
layers: props.layers
|
|
12617
|
-
};
|
|
12618
|
-
viewModel = new HawkeyeViewModel/* default */.Z(scenceView, options);
|
|
12619
|
-
}
|
|
12620
|
-
});
|
|
12621
|
-
});
|
|
12622
|
-
|
|
12623
|
-
function show() {
|
|
12624
|
-
viewModel && viewModel.show();
|
|
12625
|
-
}
|
|
12626
|
-
|
|
12627
|
-
function hide() {
|
|
12628
|
-
viewModel && viewModel.hide();
|
|
12629
|
-
}
|
|
12630
|
-
|
|
12631
|
-
function setLayers(layers) {
|
|
12632
|
-
viewModel && viewModel.setLayers(layers);
|
|
12633
|
-
} // 销毁
|
|
12634
|
-
|
|
12635
|
-
|
|
12636
|
-
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
12637
|
-
viewModel && viewModel.destroy();
|
|
12638
|
-
});
|
|
12639
|
-
expose({
|
|
12640
|
-
show,
|
|
12641
|
-
hide,
|
|
12642
|
-
setLayers
|
|
12643
|
-
});
|
|
12644
|
-
return (_ctx, _cache) => {
|
|
12645
|
-
return null;
|
|
12646
|
-
};
|
|
12647
|
-
}
|
|
12648
|
-
|
|
12649
|
-
}));
|
|
12650
|
-
;// CONCATENATED MODULE: ./src/webgl/hawkeye/Hawkeye.vue?vue&type=script&setup=true&lang=js
|
|
14562
|
+
;// CONCATENATED MODULE: ./src/webgl/heatmap3d/Heatmap3d.vue?vue&type=script&setup=true&lang=js
|
|
12651
14563
|
|
|
12652
|
-
;// CONCATENATED MODULE: ./src/webgl/
|
|
14564
|
+
;// CONCATENATED MODULE: ./src/webgl/heatmap3d/Heatmap3d.vue
|
|
12653
14565
|
|
|
12654
14566
|
|
|
12655
14567
|
|
|
12656
|
-
const
|
|
14568
|
+
const Heatmap3d_exports_ = Heatmap3dvue_type_script_setup_true_lang_js;
|
|
12657
14569
|
|
|
12658
|
-
/* harmony default export */ var
|
|
14570
|
+
/* harmony default export */ var Heatmap3d = (Heatmap3d_exports_);
|
|
12659
14571
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
12660
14572
|
var init_js_ = __webpack_require__(7997);
|
|
12661
14573
|
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
12662
|
-
;// CONCATENATED MODULE: ./src/webgl/
|
|
14574
|
+
;// CONCATENATED MODULE: ./src/webgl/heatmap3d/index.js
|
|
12663
14575
|
|
|
12664
14576
|
|
|
12665
14577
|
|
|
12666
14578
|
|
|
12667
|
-
|
|
14579
|
+
Heatmap3d.install = (Vue, opts) => {
|
|
12668
14580
|
init_js_default()(Vue, opts);
|
|
12669
|
-
Vue.component(
|
|
14581
|
+
Vue.component(Heatmap3d.name, Heatmap3d);
|
|
12670
14582
|
};
|
|
12671
14583
|
|
|
12672
14584
|
|
|
@@ -27827,7 +29739,8 @@ class SceneToHDImageViewModel {
|
|
|
27827
29739
|
canvas: this._viewer.scene.canvas
|
|
27828
29740
|
});
|
|
27829
29741
|
this.resizeExportRegionSize();
|
|
27830
|
-
}
|
|
29742
|
+
} // 重置输出图片尺寸
|
|
29743
|
+
|
|
27831
29744
|
|
|
27832
29745
|
resizeExportRegionSize() {
|
|
27833
29746
|
document.getElementById('exportPictureRegion').style.width = Number(this._options.imgWidth) * Number(this._options.pantographRatio) + 'px';
|
|
@@ -27865,7 +29778,8 @@ class SceneToHDImageViewModel {
|
|
|
27865
29778
|
|
|
27866
29779
|
this._canvasToImage.saveAsimages(canvas, options);
|
|
27867
29780
|
}
|
|
27868
|
-
}
|
|
29781
|
+
} // 重新设置场景尺寸
|
|
29782
|
+
|
|
27869
29783
|
|
|
27870
29784
|
scaleCesiumContainer() {
|
|
27871
29785
|
// var bWidth = document.getElementById(this._viewer._container.id).parentNode.clientWidth,
|
|
@@ -27884,7 +29798,8 @@ class SceneToHDImageViewModel {
|
|
|
27884
29798
|
|
|
27885
29799
|
changeDisplayArea() {
|
|
27886
29800
|
document.getElementById('exportPictureRegion').style.display = this._options.displayArea ? 'block' : 'none';
|
|
27887
|
-
}
|
|
29801
|
+
} // 调整出图范围尺寸
|
|
29802
|
+
|
|
27888
29803
|
|
|
27889
29804
|
changPantographRatio() {
|
|
27890
29805
|
this._viewer.container.style.transform = `translate(-50%,-50%) scale(${this._options.pantographRatio})`;
|
|
@@ -40653,6 +42568,40 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".coord-sightline{background:rgba(42,42
|
|
|
40653
42568
|
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
40654
42569
|
|
|
40655
42570
|
|
|
42571
|
+
/***/ }),
|
|
42572
|
+
|
|
42573
|
+
/***/ 4098:
|
|
42574
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
42575
|
+
|
|
42576
|
+
"use strict";
|
|
42577
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7705);
|
|
42578
|
+
/* 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__);
|
|
42579
|
+
// Imports
|
|
42580
|
+
|
|
42581
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
42582
|
+
// Module
|
|
42583
|
+
___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}", ""]);
|
|
42584
|
+
// Exports
|
|
42585
|
+
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
42586
|
+
|
|
42587
|
+
|
|
42588
|
+
/***/ }),
|
|
42589
|
+
|
|
42590
|
+
/***/ 5757:
|
|
42591
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
42592
|
+
|
|
42593
|
+
"use strict";
|
|
42594
|
+
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7705);
|
|
42595
|
+
/* 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__);
|
|
42596
|
+
// Imports
|
|
42597
|
+
|
|
42598
|
+
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
|
|
42599
|
+
// Module
|
|
42600
|
+
___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}", ""]);
|
|
42601
|
+
// Exports
|
|
42602
|
+
/* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
|
|
42603
|
+
|
|
42604
|
+
|
|
40656
42605
|
/***/ }),
|
|
40657
42606
|
|
|
40658
42607
|
/***/ 4355:
|
|
@@ -41221,6 +43170,8 @@ var terrainprofileanalysis = __webpack_require__(7649);
|
|
|
41221
43170
|
var scenetohdimage = __webpack_require__(8022);
|
|
41222
43171
|
// EXTERNAL MODULE: ./src/webgl/scaneffect/index.js + 4 modules
|
|
41223
43172
|
var scaneffect = __webpack_require__(7584);
|
|
43173
|
+
// EXTERNAL MODULE: ./src/webgl/heatmap3d/index.js + 14 modules
|
|
43174
|
+
var heatmap3d = __webpack_require__(3983);
|
|
41224
43175
|
// EXTERNAL MODULE: ./src/webgl/modelexcavate/index.js + 4 modules
|
|
41225
43176
|
var modelexcavate = __webpack_require__(1677);
|
|
41226
43177
|
// EXTERNAL MODULE: ./src/webgl/modelFlat/index.js + 4 modules
|
|
@@ -41332,6 +43283,9 @@ var geologicalbodyanalysis = __webpack_require__(9378);
|
|
|
41332
43283
|
// 扫描线
|
|
41333
43284
|
|
|
41334
43285
|
|
|
43286
|
+
// 热力图3d
|
|
43287
|
+
|
|
43288
|
+
|
|
41335
43289
|
// 模型开挖
|
|
41336
43290
|
|
|
41337
43291
|
|
|
@@ -41443,7 +43397,8 @@ const webglComponents = {
|
|
|
41443
43397
|
Kq3dModelExcavate: modelexcavate["default"],
|
|
41444
43398
|
Kq3dModelFlat: modelFlat["default"],
|
|
41445
43399
|
Kq3dSlopeAspectAnalysis: slopeaspectanalysis["default"],
|
|
41446
|
-
Kq3dSceneToHDImage: scenetohdimage["default"]
|
|
43400
|
+
Kq3dSceneToHDImage: scenetohdimage["default"],
|
|
43401
|
+
Kq3dHeatmap: heatmap3d["default"]
|
|
41447
43402
|
}; // 全局引入
|
|
41448
43403
|
|
|
41449
43404
|
const install = function (Vue, opts = {}) {
|