@kq_npm/client3d_webgl_vue 0.3.9-beta → 0.4.1-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +176 -1
- package/package.json +1 -1
- package/underground/index.js +252 -0
- package/underground/style/index.js +3 -0
- package/underground/style/underground.css +1 -0
package/index.js
CHANGED
|
@@ -496,6 +496,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
496
496
|
"KqScenceView": function() { return /* reexport */ ScenceView; },
|
|
497
497
|
"KqScenceViewViewModel": function() { return /* reexport */ ScenceViewViewModel; },
|
|
498
498
|
"default": function() { return /* binding */ webgl; },
|
|
499
|
+
"kq3dUnderground": function() { return /* reexport */ Underground; },
|
|
500
|
+
"kq3dUndergroundViewModel": function() { return /* reexport */ UndergroundViewModel; },
|
|
499
501
|
"kqAddData": function() { return /* reexport */ AddData; },
|
|
500
502
|
"webglComponents": function() { return /* reexport */ webglComponents; }
|
|
501
503
|
});
|
|
@@ -20537,6 +20539,176 @@ Roller.install = (Vue, opts) => {
|
|
|
20537
20539
|
};
|
|
20538
20540
|
|
|
20539
20541
|
|
|
20542
|
+
;// CONCATENATED MODULE: ./src/webgl/underground/UndergroundViewModel.js
|
|
20543
|
+
|
|
20544
|
+
class UndergroundViewModel {
|
|
20545
|
+
constructor(viewer) {
|
|
20546
|
+
_defineProperty(this, "_viewer", null);
|
|
20547
|
+
|
|
20548
|
+
_defineProperty(this, "_undergroundManager", null);
|
|
20549
|
+
|
|
20550
|
+
this._viewer = viewer;
|
|
20551
|
+
this._undergroundManager = new Cesium.Kq3dUndergroundManager(this._viewer.scene);
|
|
20552
|
+
}
|
|
20553
|
+
|
|
20554
|
+
open() {
|
|
20555
|
+
this._viewer.scene.skyAtmosphere.show = false; // 关闭碰撞检测
|
|
20556
|
+
|
|
20557
|
+
this._viewer.scene.screenSpaceCameraController.enableCollisionDetection = false; // false;
|
|
20558
|
+
// 关闭深度检测
|
|
20559
|
+
|
|
20560
|
+
this._viewer.scene.globe.depthTestAgainstTerrain = false; // false;
|
|
20561
|
+
|
|
20562
|
+
window.Cesium.Kq3dUndergroundMixin(this._viewer.scene); // 开启地下模式
|
|
20563
|
+
|
|
20564
|
+
this._undergroundManager.undergroundEnabled = true; // true;
|
|
20565
|
+
// 开启地形透明
|
|
20566
|
+
|
|
20567
|
+
this._undergroundManager.transparentEnabled = true; // true;
|
|
20568
|
+
// 设置地形透明度,透明度在0-1之间
|
|
20569
|
+
|
|
20570
|
+
this._undergroundManager.transparent = 0.5;
|
|
20571
|
+
}
|
|
20572
|
+
|
|
20573
|
+
close() {
|
|
20574
|
+
this._viewer.scene.skyAtmosphere.show = true; // 开启碰撞检测
|
|
20575
|
+
|
|
20576
|
+
this._viewer.scene.screenSpaceCameraController.enableCollisionDetection = true; // true;
|
|
20577
|
+
// 开启深度检测
|
|
20578
|
+
|
|
20579
|
+
this._viewer.scene.globe.depthTestAgainstTerrain = true; // true;
|
|
20580
|
+
// 关闭地下模式
|
|
20581
|
+
|
|
20582
|
+
this._undergroundManager.undergroundEnabled = false; // false;
|
|
20583
|
+
// 关闭地形透明
|
|
20584
|
+
|
|
20585
|
+
this._undergroundManager.transparentEnabled = false; // false;
|
|
20586
|
+
// 设置地形透明度,透明度在0-1之间
|
|
20587
|
+
|
|
20588
|
+
this._undergroundManager.transparent = 0;
|
|
20589
|
+
}
|
|
20590
|
+
|
|
20591
|
+
destroy() {
|
|
20592
|
+
this.close();
|
|
20593
|
+
}
|
|
20594
|
+
|
|
20595
|
+
}
|
|
20596
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/underground/Underground.vue?vue&type=script&setup=true&lang=js
|
|
20597
|
+
|
|
20598
|
+
const Undergroundvue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
20599
|
+
class: "kq3d-underground"
|
|
20600
|
+
};
|
|
20601
|
+
|
|
20602
|
+
|
|
20603
|
+
|
|
20604
|
+
const Undergroundvue_type_script_setup_true_lang_js_default_ = {
|
|
20605
|
+
name: "kq3dUnderground"
|
|
20606
|
+
};
|
|
20607
|
+
/* harmony default export */ var Undergroundvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(Undergroundvue_type_script_setup_true_lang_js_default_, {
|
|
20608
|
+
props: {
|
|
20609
|
+
//设置参数
|
|
20610
|
+
top: {
|
|
20611
|
+
type: Number,
|
|
20612
|
+
default: 20
|
|
20613
|
+
},
|
|
20614
|
+
right: {
|
|
20615
|
+
type: Number,
|
|
20616
|
+
default: 20
|
|
20617
|
+
}
|
|
20618
|
+
},
|
|
20619
|
+
|
|
20620
|
+
setup(__props) {
|
|
20621
|
+
const props = __props;
|
|
20622
|
+
const {
|
|
20623
|
+
proxy
|
|
20624
|
+
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.getCurrentInstance)(); //获取组件传参
|
|
20625
|
+
|
|
20626
|
+
let value = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(true);
|
|
20627
|
+
const value1 = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(true);
|
|
20628
|
+
let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)("");
|
|
20629
|
+
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)({});
|
|
20630
|
+
let isUndergroundMode = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(false);
|
|
20631
|
+
let viewer = null;
|
|
20632
|
+
let viewModel = null;
|
|
20633
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
20634
|
+
// currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
20635
|
+
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
20636
|
+
if (scenceView) {
|
|
20637
|
+
viewer = scenceView._viewer;
|
|
20638
|
+
language.value = scenceView._language;
|
|
20639
|
+
viewModel = new UndergroundViewModel(viewer);
|
|
20640
|
+
}
|
|
20641
|
+
});
|
|
20642
|
+
});
|
|
20643
|
+
|
|
20644
|
+
function undergroundChange() {
|
|
20645
|
+
if (isUndergroundMode.value) {
|
|
20646
|
+
viewModel.open();
|
|
20647
|
+
} else {
|
|
20648
|
+
viewModel.close();
|
|
20649
|
+
}
|
|
20650
|
+
} // 销毁
|
|
20651
|
+
|
|
20652
|
+
|
|
20653
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onBeforeUnmount)(() => {
|
|
20654
|
+
viewModel && viewModel.destroy();
|
|
20655
|
+
});
|
|
20656
|
+
return (_ctx, _cache) => {
|
|
20657
|
+
const _component_kq_switch = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-switch");
|
|
20658
|
+
|
|
20659
|
+
const _component_kq_form = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-form");
|
|
20660
|
+
|
|
20661
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementBlock)("section", Undergroundvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_form, {
|
|
20662
|
+
"label-width": "120px",
|
|
20663
|
+
"label-position": "left"
|
|
20664
|
+
}, {
|
|
20665
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", {
|
|
20666
|
+
class: "kq3d-underground-switch",
|
|
20667
|
+
style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeStyle)('top: ' + props.top + 'px; right: ' + props.right + 'px;')
|
|
20668
|
+
}, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_switch, {
|
|
20669
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(isUndergroundMode),
|
|
20670
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.isRef)(isUndergroundMode) ? isUndergroundMode.value = $event : isUndergroundMode = $event),
|
|
20671
|
+
onChange: undergroundChange,
|
|
20672
|
+
"active-color": "#409EFF",
|
|
20673
|
+
"inactive-color": "#C0CCDA",
|
|
20674
|
+
width: 30,
|
|
20675
|
+
"active-text": "地下",
|
|
20676
|
+
style: {
|
|
20677
|
+
"margin-right": "'5px'"
|
|
20678
|
+
}
|
|
20679
|
+
}, null, 8
|
|
20680
|
+
/* PROPS */
|
|
20681
|
+
, ["modelValue"])], 4
|
|
20682
|
+
/* STYLE */
|
|
20683
|
+
)]),
|
|
20684
|
+
_: 1
|
|
20685
|
+
/* STABLE */
|
|
20686
|
+
|
|
20687
|
+
})]);
|
|
20688
|
+
};
|
|
20689
|
+
}
|
|
20690
|
+
|
|
20691
|
+
}));
|
|
20692
|
+
;// CONCATENATED MODULE: ./src/webgl/underground/Underground.vue?vue&type=script&setup=true&lang=js
|
|
20693
|
+
|
|
20694
|
+
;// CONCATENATED MODULE: ./src/webgl/underground/Underground.vue
|
|
20695
|
+
|
|
20696
|
+
|
|
20697
|
+
|
|
20698
|
+
const Underground_exports_ = Undergroundvue_type_script_setup_true_lang_js;
|
|
20699
|
+
|
|
20700
|
+
/* harmony default export */ var Underground = (Underground_exports_);
|
|
20701
|
+
;// CONCATENATED MODULE: ./src/webgl/underground/index.js
|
|
20702
|
+
|
|
20703
|
+
|
|
20704
|
+
|
|
20705
|
+
|
|
20706
|
+
Underground.install = (Vue, opts) => {
|
|
20707
|
+
init_js_default()(Vue, opts);
|
|
20708
|
+
Vue.component(Underground.name, Underground);
|
|
20709
|
+
};
|
|
20710
|
+
|
|
20711
|
+
|
|
20540
20712
|
;// CONCATENATED MODULE: ./src/webgl/components.js
|
|
20541
20713
|
/**
|
|
20542
20714
|
* Author: 朱鹏超
|
|
@@ -20592,6 +20764,8 @@ Roller.install = (Vue, opts) => {
|
|
|
20592
20764
|
|
|
20593
20765
|
|
|
20594
20766
|
|
|
20767
|
+
|
|
20768
|
+
|
|
20595
20769
|
|
|
20596
20770
|
|
|
20597
20771
|
|
|
@@ -20620,7 +20794,8 @@ const webglComponents = {
|
|
|
20620
20794
|
Kq3dCompareMap: CompareMap,
|
|
20621
20795
|
Kq3dHawkeye: Hawkeye,
|
|
20622
20796
|
Kq3dRoller: Roller,
|
|
20623
|
-
Kq3dScreenShot: Screenshot
|
|
20797
|
+
Kq3dScreenShot: Screenshot,
|
|
20798
|
+
kq3dUnderground: Underground
|
|
20624
20799
|
}; // 全局引入
|
|
20625
20800
|
|
|
20626
20801
|
const install = function (Vue, opts = {}) {
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"0.
|
|
1
|
+
{"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"0.4.1-beta","homepage":"","keywords":["KQGIS","webGL","Vue"],"browserslist":["> 1%","last 2 versions","not dead","not ie 11"],"author":"KQWEB GROUP","license":"Apache-2.0","dependencies":{"colorcolor":"^1.1.1","echarts":"^5.3.3","js-cookie":"^3.0.1","omit.js":"^2.0.2","save":"^2.5.0","tinycolor2":"^1.4.2","vue-i18n":"^9.2.0-beta.36","xlsx":"^0.18.5","@turf/turf":"^6.5.0","css-vars-ponyfill":"^2.4.8","xe-utils":"^3.5.4"}}
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
/******/ (function() { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ // The require scope
|
|
4
|
+
/******/ var __webpack_require__ = {};
|
|
5
|
+
/******/
|
|
6
|
+
/************************************************************************/
|
|
7
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
8
|
+
/******/ !function() {
|
|
9
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
10
|
+
/******/ __webpack_require__.n = function(module) {
|
|
11
|
+
/******/ var getter = module && module.__esModule ?
|
|
12
|
+
/******/ function() { return module['default']; } :
|
|
13
|
+
/******/ function() { return module; };
|
|
14
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
15
|
+
/******/ return getter;
|
|
16
|
+
/******/ };
|
|
17
|
+
/******/ }();
|
|
18
|
+
/******/
|
|
19
|
+
/******/ /* webpack/runtime/define property getters */
|
|
20
|
+
/******/ !function() {
|
|
21
|
+
/******/ // define getter functions for harmony exports
|
|
22
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
23
|
+
/******/ for(var key in definition) {
|
|
24
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
25
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
26
|
+
/******/ }
|
|
27
|
+
/******/ }
|
|
28
|
+
/******/ };
|
|
29
|
+
/******/ }();
|
|
30
|
+
/******/
|
|
31
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
32
|
+
/******/ !function() {
|
|
33
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
34
|
+
/******/ }();
|
|
35
|
+
/******/
|
|
36
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
37
|
+
/******/ !function() {
|
|
38
|
+
/******/ // define __esModule on exports
|
|
39
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
40
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
41
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
42
|
+
/******/ }
|
|
43
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
44
|
+
/******/ };
|
|
45
|
+
/******/ }();
|
|
46
|
+
/******/
|
|
47
|
+
/************************************************************************/
|
|
48
|
+
var __webpack_exports__ = {};
|
|
49
|
+
// ESM COMPAT FLAG
|
|
50
|
+
__webpack_require__.r(__webpack_exports__);
|
|
51
|
+
|
|
52
|
+
// EXPORTS
|
|
53
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
54
|
+
"UndergroundViewModel": function() { return /* reexport */ UndergroundViewModel; },
|
|
55
|
+
"default": function() { return /* reexport */ Underground; }
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
;// CONCATENATED MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
59
|
+
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject = require("vue");
|
|
60
|
+
;// CONCATENATED MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
61
|
+
var gis_utils_namespaceObject = require("@kq_npm/client_common_vue/_utils/gis-utils");
|
|
62
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
63
|
+
function _defineProperty(obj, key, value) {
|
|
64
|
+
if (key in obj) {
|
|
65
|
+
Object.defineProperty(obj, key, {
|
|
66
|
+
value: value,
|
|
67
|
+
enumerable: true,
|
|
68
|
+
configurable: true,
|
|
69
|
+
writable: true
|
|
70
|
+
});
|
|
71
|
+
} else {
|
|
72
|
+
obj[key] = value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return obj;
|
|
76
|
+
}
|
|
77
|
+
;// CONCATENATED MODULE: ./src/webgl/underground/UndergroundViewModel.js
|
|
78
|
+
|
|
79
|
+
class UndergroundViewModel {
|
|
80
|
+
constructor(viewer) {
|
|
81
|
+
_defineProperty(this, "_viewer", null);
|
|
82
|
+
|
|
83
|
+
_defineProperty(this, "_undergroundManager", null);
|
|
84
|
+
|
|
85
|
+
this._viewer = viewer;
|
|
86
|
+
this._undergroundManager = new Cesium.Kq3dUndergroundManager(this._viewer.scene);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
open() {
|
|
90
|
+
this._viewer.scene.skyAtmosphere.show = false; // 关闭碰撞检测
|
|
91
|
+
|
|
92
|
+
this._viewer.scene.screenSpaceCameraController.enableCollisionDetection = false; // false;
|
|
93
|
+
// 关闭深度检测
|
|
94
|
+
|
|
95
|
+
this._viewer.scene.globe.depthTestAgainstTerrain = false; // false;
|
|
96
|
+
|
|
97
|
+
window.Cesium.Kq3dUndergroundMixin(this._viewer.scene); // 开启地下模式
|
|
98
|
+
|
|
99
|
+
this._undergroundManager.undergroundEnabled = true; // true;
|
|
100
|
+
// 开启地形透明
|
|
101
|
+
|
|
102
|
+
this._undergroundManager.transparentEnabled = true; // true;
|
|
103
|
+
// 设置地形透明度,透明度在0-1之间
|
|
104
|
+
|
|
105
|
+
this._undergroundManager.transparent = 0.5;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
close() {
|
|
109
|
+
this._viewer.scene.skyAtmosphere.show = true; // 开启碰撞检测
|
|
110
|
+
|
|
111
|
+
this._viewer.scene.screenSpaceCameraController.enableCollisionDetection = true; // true;
|
|
112
|
+
// 开启深度检测
|
|
113
|
+
|
|
114
|
+
this._viewer.scene.globe.depthTestAgainstTerrain = true; // true;
|
|
115
|
+
// 关闭地下模式
|
|
116
|
+
|
|
117
|
+
this._undergroundManager.undergroundEnabled = false; // false;
|
|
118
|
+
// 关闭地形透明
|
|
119
|
+
|
|
120
|
+
this._undergroundManager.transparentEnabled = false; // false;
|
|
121
|
+
// 设置地形透明度,透明度在0-1之间
|
|
122
|
+
|
|
123
|
+
this._undergroundManager.transparent = 0;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
destroy() {
|
|
127
|
+
this.close();
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
}
|
|
131
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/underground/Underground.vue?vue&type=script&setup=true&lang=js
|
|
132
|
+
|
|
133
|
+
const _hoisted_1 = {
|
|
134
|
+
class: "kq3d-underground"
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
const __default__ = {
|
|
140
|
+
name: "kq3dUnderground"
|
|
141
|
+
};
|
|
142
|
+
/* harmony default export */ var Undergroundvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
143
|
+
props: {
|
|
144
|
+
//设置参数
|
|
145
|
+
top: {
|
|
146
|
+
type: Number,
|
|
147
|
+
default: 20
|
|
148
|
+
},
|
|
149
|
+
right: {
|
|
150
|
+
type: Number,
|
|
151
|
+
default: 20
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
|
|
155
|
+
setup(__props) {
|
|
156
|
+
const props = __props;
|
|
157
|
+
const {
|
|
158
|
+
proxy
|
|
159
|
+
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.getCurrentInstance)(); //获取组件传参
|
|
160
|
+
|
|
161
|
+
let value = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(true);
|
|
162
|
+
const value1 = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(true);
|
|
163
|
+
let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)("");
|
|
164
|
+
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)({});
|
|
165
|
+
let isUndergroundMode = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(false);
|
|
166
|
+
let viewer = null;
|
|
167
|
+
let viewModel = null;
|
|
168
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
169
|
+
// currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
170
|
+
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
171
|
+
if (scenceView) {
|
|
172
|
+
viewer = scenceView._viewer;
|
|
173
|
+
language.value = scenceView._language;
|
|
174
|
+
viewModel = new UndergroundViewModel(viewer);
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
function undergroundChange() {
|
|
180
|
+
if (isUndergroundMode.value) {
|
|
181
|
+
viewModel.open();
|
|
182
|
+
} else {
|
|
183
|
+
viewModel.close();
|
|
184
|
+
}
|
|
185
|
+
} // 销毁
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onBeforeUnmount)(() => {
|
|
189
|
+
viewModel && viewModel.destroy();
|
|
190
|
+
});
|
|
191
|
+
return (_ctx, _cache) => {
|
|
192
|
+
const _component_kq_switch = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-switch");
|
|
193
|
+
|
|
194
|
+
const _component_kq_form = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-form");
|
|
195
|
+
|
|
196
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementBlock)("section", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_form, {
|
|
197
|
+
"label-width": "120px",
|
|
198
|
+
"label-position": "left"
|
|
199
|
+
}, {
|
|
200
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", {
|
|
201
|
+
class: "kq3d-underground-switch",
|
|
202
|
+
style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeStyle)('top: ' + props.top + 'px; right: ' + props.right + 'px;')
|
|
203
|
+
}, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_switch, {
|
|
204
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(isUndergroundMode),
|
|
205
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.isRef)(isUndergroundMode) ? isUndergroundMode.value = $event : isUndergroundMode = $event),
|
|
206
|
+
onChange: undergroundChange,
|
|
207
|
+
"active-color": "#409EFF",
|
|
208
|
+
"inactive-color": "#C0CCDA",
|
|
209
|
+
width: 30,
|
|
210
|
+
"active-text": "地下",
|
|
211
|
+
style: {
|
|
212
|
+
"margin-right": "'5px'"
|
|
213
|
+
}
|
|
214
|
+
}, null, 8
|
|
215
|
+
/* PROPS */
|
|
216
|
+
, ["modelValue"])], 4
|
|
217
|
+
/* STYLE */
|
|
218
|
+
)]),
|
|
219
|
+
_: 1
|
|
220
|
+
/* STABLE */
|
|
221
|
+
|
|
222
|
+
})]);
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
}));
|
|
227
|
+
;// CONCATENATED MODULE: ./src/webgl/underground/Underground.vue?vue&type=script&setup=true&lang=js
|
|
228
|
+
|
|
229
|
+
;// CONCATENATED MODULE: ./src/webgl/underground/Underground.vue
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
const __exports__ = Undergroundvue_type_script_setup_true_lang_js;
|
|
234
|
+
|
|
235
|
+
/* harmony default export */ var Underground = (__exports__);
|
|
236
|
+
;// CONCATENATED MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
237
|
+
var init_js_namespaceObject = require("@kq_npm/client_common_vue/init.js");
|
|
238
|
+
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_namespaceObject);
|
|
239
|
+
;// CONCATENATED MODULE: ./src/webgl/underground/index.js
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
Underground.install = (Vue, opts) => {
|
|
245
|
+
init_js_default()(Vue, opts);
|
|
246
|
+
Vue.component(Underground.name, Underground);
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
module.exports = __webpack_exports__;
|
|
251
|
+
/******/ })()
|
|
252
|
+
;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--kq-box-padding:16px;--kq-header-bg-color:var(--kq-color-primary);--kq-header-border-color:var(--kq-color-primary)}.kq3d-underground .kq3d-underground-switch{z-index:999;width:350px;border-radius:var(--kq-border-radius-base);padding:16px;pointer-events:auto;cursor:default;background-color:var(--kq-bg-color)}
|