@kq_npm/client3d_webgl_vue 2.6.8-beta → 2.7.0-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/compass/index.js CHANGED
@@ -1,86 +1,20 @@
1
1
  /******/ (function() { // webpackBootstrap
2
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__);
3
+ /******/ var __webpack_modules__ = ({
51
4
 
52
- // EXPORTS
53
- __webpack_require__.d(__webpack_exports__, {
54
- "CompassViewModel": function() { return /* reexport */ CompassViewModel; },
55
- "default": function() { return /* reexport */ Compass; }
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_icons_vue"
61
- var client_icons_vue_namespaceObject = require("@kq_npm/client_icons_vue");
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
- }
5
+ /***/ 9520:
6
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
74
7
 
75
- return obj;
76
- }
77
- ;// CONCATENATED MODULE: ./src/webgl/compass/CompassViewModel.js
8
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9
+ /* harmony export */ "Z": function() { return /* binding */ CompassViewModel; }
10
+ /* harmony export */ });
11
+ /* harmony import */ var _Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8270);
78
12
 
79
13
  // 重置视图
80
14
  class CompassViewModel {
81
15
  //三维viewer对象
82
16
  constructor(viewer) {
83
- _defineProperty(this, "_viewer", null);
17
+ (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_viewer", null);
84
18
 
85
19
  this._viewer = viewer;
86
20
  } //重置方向
@@ -134,8 +68,148 @@ class CompassViewModel {
134
68
  }
135
69
 
136
70
  }
137
- ;// CONCATENATED MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
138
- var gis_utils_namespaceObject = require("@kq_npm/client_common_vue/_utils/gis-utils");
71
+
72
+ /***/ }),
73
+
74
+ /***/ 348:
75
+ /***/ (function(module) {
76
+
77
+ module.exports = require("@kq_npm/client_icons_vue");
78
+
79
+ /***/ }),
80
+
81
+ /***/ 826:
82
+ /***/ (function(module) {
83
+
84
+ module.exports = require("@kq_npm/client_common_vue/_utils/gis-utils");
85
+
86
+ /***/ }),
87
+
88
+ /***/ 5406:
89
+ /***/ (function(module) {
90
+
91
+ module.exports = require("@kq_npm/client_common_vue/init.js");
92
+
93
+ /***/ }),
94
+
95
+ /***/ 637:
96
+ /***/ (function(module) {
97
+
98
+ module.exports = require("vue");
99
+
100
+ /***/ }),
101
+
102
+ /***/ 8270:
103
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
104
+
105
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
106
+ /* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
107
+ /* harmony export */ });
108
+ function _defineProperty(obj, key, value) {
109
+ if (key in obj) {
110
+ Object.defineProperty(obj, key, {
111
+ value: value,
112
+ enumerable: true,
113
+ configurable: true,
114
+ writable: true
115
+ });
116
+ } else {
117
+ obj[key] = value;
118
+ }
119
+
120
+ return obj;
121
+ }
122
+
123
+ /***/ })
124
+
125
+ /******/ });
126
+ /************************************************************************/
127
+ /******/ // The module cache
128
+ /******/ var __webpack_module_cache__ = {};
129
+ /******/
130
+ /******/ // The require function
131
+ /******/ function __webpack_require__(moduleId) {
132
+ /******/ // Check if module is in cache
133
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
134
+ /******/ if (cachedModule !== undefined) {
135
+ /******/ return cachedModule.exports;
136
+ /******/ }
137
+ /******/ // Create a new module (and put it into the cache)
138
+ /******/ var module = __webpack_module_cache__[moduleId] = {
139
+ /******/ // no module.id needed
140
+ /******/ // no module.loaded needed
141
+ /******/ exports: {}
142
+ /******/ };
143
+ /******/
144
+ /******/ // Execute the module function
145
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
146
+ /******/
147
+ /******/ // Return the exports of the module
148
+ /******/ return module.exports;
149
+ /******/ }
150
+ /******/
151
+ /************************************************************************/
152
+ /******/ /* webpack/runtime/compat get default export */
153
+ /******/ !function() {
154
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
155
+ /******/ __webpack_require__.n = function(module) {
156
+ /******/ var getter = module && module.__esModule ?
157
+ /******/ function() { return module['default']; } :
158
+ /******/ function() { return module; };
159
+ /******/ __webpack_require__.d(getter, { a: getter });
160
+ /******/ return getter;
161
+ /******/ };
162
+ /******/ }();
163
+ /******/
164
+ /******/ /* webpack/runtime/define property getters */
165
+ /******/ !function() {
166
+ /******/ // define getter functions for harmony exports
167
+ /******/ __webpack_require__.d = function(exports, definition) {
168
+ /******/ for(var key in definition) {
169
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
170
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
171
+ /******/ }
172
+ /******/ }
173
+ /******/ };
174
+ /******/ }();
175
+ /******/
176
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
177
+ /******/ !function() {
178
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
179
+ /******/ }();
180
+ /******/
181
+ /******/ /* webpack/runtime/make namespace object */
182
+ /******/ !function() {
183
+ /******/ // define __esModule on exports
184
+ /******/ __webpack_require__.r = function(exports) {
185
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
186
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
187
+ /******/ }
188
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
189
+ /******/ };
190
+ /******/ }();
191
+ /******/
192
+ /************************************************************************/
193
+ var __webpack_exports__ = {};
194
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
195
+ !function() {
196
+ // ESM COMPAT FLAG
197
+ __webpack_require__.r(__webpack_exports__);
198
+
199
+ // EXPORTS
200
+ __webpack_require__.d(__webpack_exports__, {
201
+ "CompassViewModel": function() { return /* reexport */ CompassViewModel/* default */.Z; },
202
+ "default": function() { return /* reexport */ Compass; }
203
+ });
204
+
205
+ // EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
206
+ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(637);
207
+ // EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
208
+ var client_icons_vue_ = __webpack_require__(348);
209
+ // EXTERNAL MODULE: ./src/webgl/compass/CompassViewModel.js
210
+ var CompassViewModel = __webpack_require__(9520);
211
+ // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
212
+ var gis_utils_ = __webpack_require__(826);
139
213
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/compass/Compass.vue?vue&type=script&setup=true&lang=js
140
214
 
141
215
 
@@ -168,14 +242,14 @@ const __default__ = {
168
242
 
169
243
  setup(__props) {
170
244
  const props = __props;
171
- let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)({});
245
+ let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
172
246
  let viewModel = null;
173
- let heading = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(0);
174
- (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
175
- gis_utils_namespaceObject.utils.getWebMap(props.mapTarget, scenceView => {
247
+ let heading = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(0);
248
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
249
+ gis_utils_.utils.getWebMap(props.mapTarget, scenceView => {
176
250
  if (scenceView) {
177
251
  language.value = scenceView._language;
178
- viewModel = new CompassViewModel(scenceView._viewer); //绑定指南针事件
252
+ viewModel = new CompassViewModel/* default */.Z(scenceView._viewer); //绑定指南针事件
179
253
 
180
254
  viewModel.bindCompassEvent(heading);
181
255
  }
@@ -187,27 +261,27 @@ const __default__ = {
187
261
  } // 销毁
188
262
 
189
263
 
190
- (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onBeforeUnmount)(() => {
264
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
191
265
  viewModel && viewModel.destroy();
192
266
  });
193
267
  return (_ctx, _cache) => {
194
- const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-icon");
268
+ const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-icon");
195
269
 
196
- const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-button");
270
+ const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
197
271
 
198
- return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createBlock)(_component_kq_button, {
272
+ 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_button, {
199
273
  onClick: btnClick,
200
- class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeClass)([{
274
+ class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)([{
201
275
  'kq-light-shadow': __props.showShadow
202
276
  }]),
203
- title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).resetOrientation,
204
- style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeStyle)('clip-path: circle(50%);width:' + __props.buttonSize)
277
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).resetOrientation,
278
+ style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)('clip-path: circle(50%);width:' + __props.buttonSize)
205
279
  }, {
206
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_icon, {
280
+ 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, {
207
281
  size: __props.iconSize,
208
- style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeStyle)('transform: rotate(-' + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(heading) + 'rad);-webkit-transform: rotate(-' + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(heading) + 'rad)')
282
+ style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)('transform: rotate(-' + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(heading) + 'rad);-webkit-transform: rotate(-' + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(heading) + 'rad)')
209
283
  }, {
210
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(client_icons_vue_namespaceObject.IconCompass3D))]),
284
+ 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_.IconCompass3D))]),
211
285
  _: 1
212
286
  /* STABLE */
213
287
 
@@ -233,9 +307,9 @@ const __default__ = {
233
307
  const __exports__ = Compassvue_type_script_setup_true_lang_js;
234
308
 
235
309
  /* harmony default export */ var Compass = (__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);
310
+ // EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
311
+ var init_js_ = __webpack_require__(5406);
312
+ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
239
313
  ;// CONCATENATED MODULE: ./src/webgl/compass/index.js
240
314
 
241
315
 
@@ -247,6 +321,7 @@ Compass.install = (Vue, opts) => {
247
321
  };
248
322
 
249
323
 
324
+ }();
250
325
  module.exports = __webpack_exports__;
251
326
  /******/ })()
252
327
  ;