@vcmap/ui 6.3.15 → 6.3.16

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/dist/assets/ui.js CHANGED
@@ -1 +1 @@
1
- export * from "./ui-bfb0fe7c.js";
1
+ export * from "./ui-b5da2833.js";
@@ -1 +1 @@
1
- export * from "./vue-5d6e374f.js";
1
+ export * from "./vue-88e25c27.js";
@@ -10,7 +10,7 @@ function loadCss(href) {
10
10
  elem.onerror = reject;
11
11
  document.head.appendChild(elem);
12
12
  });
13
- } await loadCss('./assets/vuetify-3e578d5f.css');import { watch as Q, onScopeDispose as Ze, effectScope as Zl, shallowRef as K, reactive as it, computed as b, watchEffect as Fe, toRefs as Yt, capitalize as Nn, unref as ot, Fragment as ie, isVNode as Rc, Comment as Nc, warn as ja, getCurrentInstance as Hc, ref as j, provide as De, inject as ye, defineComponent as zc, h as Gt, camelize as Ir, toRaw as Be, createVNode as r, mergeProps as O, onBeforeUnmount as Qe, readonly as Ql, onMounted as Ye, onDeactivated as _r, onActivated as Wc, nextTick as we, TransitionGroup as Jl, Transition as jt, isRef as Tn, toRef as $, onBeforeMount as ra, withDirectives as $e, resolveDirective as gt, vShow as Ct, onUpdated as jc, Text as Uc, resolveDynamicComponent as Yc, markRaw as Gc, Teleport as Kc, cloneVNode as qc, createTextVNode as Tt, onUnmounted as Tr, onBeforeUpdate as Xc, withModifiers as Tl, toDisplayString as Zc, vModelText as Qc, resolveComponent as Jc, render as Ar } from "./vue-5d6e374f.js";
13
+ } await loadCss('./assets/vuetify-f67ad16b.css');import { watch as Q, onScopeDispose as Ze, effectScope as Zl, shallowRef as K, reactive as it, computed as b, watchEffect as Fe, toRefs as Yt, capitalize as Nn, unref as ot, Fragment as ie, isVNode as Rc, Comment as Nc, warn as ja, getCurrentInstance as Hc, ref as j, provide as De, inject as ye, defineComponent as zc, h as Gt, camelize as Ir, toRaw as Be, createVNode as r, mergeProps as O, onBeforeUnmount as Qe, readonly as Ql, onMounted as Ye, onDeactivated as _r, onActivated as Wc, nextTick as we, TransitionGroup as Jl, Transition as jt, isRef as Tn, toRef as $, onBeforeMount as ra, withDirectives as $e, resolveDirective as gt, vShow as Ct, onUpdated as jc, Text as Uc, resolveDynamicComponent as Yc, markRaw as Gc, Teleport as Kc, cloneVNode as qc, createTextVNode as Tt, onUnmounted as Tr, onBeforeUpdate as Xc, withModifiers as Tl, toDisplayString as Zc, vModelText as Qc, resolveComponent as Jc, render as Ar } from "./vue-88e25c27.js";
14
14
  function rt(e, n) {
15
15
  let t;
16
16
  function a() {
@@ -1 +1 @@
1
- export * from "./vuetify-3e578d5f.js";
1
+ export * from "./vuetify-f67ad16b.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vcmap/ui",
3
- "version": "6.3.15",
3
+ "version": "6.3.16",
4
4
  "author": "Virtual City Systems",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -347,6 +347,7 @@
347
347
  :deep(.v-list-item) {
348
348
  padding: 0 8px 0 16px;
349
349
  }
350
+ :deep(.vcs-list),
350
351
  :deep(.v-list) {
351
352
  overflow: visible;
352
353
  }
@@ -66,6 +66,12 @@
66
66
  feature.setStyle(style);
67
67
  feature[originalStyle] = style;
68
68
  const styleOptions = getStyleOptions(style);
69
+ const text = styleOptions.text?.text;
70
+ if (text) {
71
+ styleOptions.label = Array.isArray(text)
72
+ ? text.filter((_, index) => index % 2 === 0).join('')
73
+ : text;
74
+ }
69
75
  feature[vectorStyleSymbol] = new VectorStyleItem(styleOptions);
70
76
  }
71
77
 
@@ -85,6 +85,7 @@
85
85
  startRotation,
86
86
  rotationMapControlSymbol,
87
87
  PanoramaMap,
88
+ BaseCesiumMap,
88
89
  } from '@vcmap/core';
89
90
  import { VContainer, VRow } from 'vuetify/components';
90
91
  import { useDisplay } from 'vuetify';
@@ -308,6 +309,12 @@
308
309
  headingRef.value = map.currentImage.viewDirectionAngle
309
310
  ? 90 - CesiumMath.toDegrees(map.currentImage.viewDirectionAngle)
310
311
  : directionToDegrees[map.currentImage.viewDirection];
312
+ } else if (map instanceof BaseCesiumMap) {
313
+ const camera = map.getCesiumWidget()?.camera;
314
+ if (camera) {
315
+ headingRef.value = CesiumMath.toDegrees(camera.heading);
316
+ tiltRef.value = CesiumMath.toDegrees(camera.pitch);
317
+ }
311
318
  } else {
312
319
  const vp = map.getViewpointSync();
313
320
  if (vp) {
File without changes