@shjjs/visual-ui 1.0.0 → 1.0.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.
Files changed (103) hide show
  1. package/es/components/commons-product-model/index.vue.mjs +2 -2
  2. package/es/components/commons-product-model/index.vue2.mjs +33 -33
  3. package/es/components/commons-three-loader3/index.vue.mjs +2 -2
  4. package/es/components/commons-three-loader3/index.vue2.mjs +40 -40
  5. package/es/components/index.d.ts +5 -0
  6. package/es/components/index.mjs +82 -72
  7. package/es/components/interaction-select/index.d.ts +188 -8
  8. package/es/components/interaction-select/index.vue.d.ts +193 -8
  9. package/es/components/interaction-select/index.vue.mjs +5 -11
  10. package/es/components/interaction-select/index.vue2.mjs +220 -2
  11. package/es/components/scene-amap2d/index.d.ts +2 -2
  12. package/es/components/scene-amap2d/index.vue.d.ts +2 -2
  13. package/es/components/scene-amap2d/index.vue.mjs +2 -2
  14. package/es/components/scene-amap2d/index.vue2.mjs +16 -16
  15. package/es/components/scene-amap3d/index.d.ts +2 -2
  16. package/es/components/scene-amap3d/index.vue.d.ts +2 -2
  17. package/es/components/scene-amap3d/index.vue.mjs +2 -2
  18. package/es/components/scene-amap3d/index.vue2.mjs +95 -88
  19. package/es/components/scene-map3d/index.d.ts +2 -2
  20. package/es/components/scene-map3d/index.vue.d.ts +2 -2
  21. package/es/components/scene-map3d/index.vue.mjs +2 -2
  22. package/es/components/scene-map3d/index.vue2.mjs +13 -13
  23. package/es/components/scene-map3d/map3d/module/MapMirror.mjs +1 -1
  24. package/es/components/scene-ue-iframe/index.d.ts +50 -0
  25. package/es/components/scene-ue-iframe/index.mjs +7 -0
  26. package/es/components/scene-ue-iframe/index.vue.d.ts +50 -0
  27. package/es/components/scene-ue-iframe/index.vue.mjs +7 -0
  28. package/es/components/scene-ue-iframe/index.vue2.mjs +48 -0
  29. package/es/components/scene-ue-shj/index.d.ts +50 -0
  30. package/es/components/scene-ue-shj/index.mjs +7 -0
  31. package/es/components/scene-ue-shj/index.vue.d.ts +50 -0
  32. package/es/components/scene-ue-shj/index.vue.mjs +7 -0
  33. package/es/components/scene-ue-shj/index.vue2.mjs +37 -0
  34. package/es/components/scene-unity-iframe/index.d.ts +61 -0
  35. package/es/components/scene-unity-iframe/index.mjs +7 -0
  36. package/es/components/scene-unity-iframe/index.vue.d.ts +61 -0
  37. package/es/components/scene-unity-iframe/index.vue.mjs +7 -0
  38. package/es/components/scene-unity-iframe/index.vue2.mjs +37 -0
  39. package/es/components/scene-unity-webgl/index.d.ts +61 -0
  40. package/es/components/scene-unity-webgl/index.mjs +7 -0
  41. package/es/components/scene-unity-webgl/index.vue.d.ts +61 -0
  42. package/es/components/scene-unity-webgl/index.vue.mjs +7 -0
  43. package/es/components/scene-unity-webgl/index.vue2.mjs +37 -0
  44. package/es/components/scene-vr/entity/audio.d.ts +6 -0
  45. package/es/components/scene-vr/index.d.ts +103 -0
  46. package/es/components/scene-vr/index.mjs +7 -0
  47. package/es/components/scene-vr/index.vue.d.ts +103 -0
  48. package/es/components/scene-vr/index.vue.mjs +7 -0
  49. package/es/components/scene-vr/index.vue2.mjs +355 -0
  50. package/es/components/scene-vr/resources/zv-add.svg.mjs +4 -0
  51. package/es/components/scene-vr/resources/zv-pause.svg.mjs +4 -0
  52. package/es/components/scene-vr/resources/zv-play.svg.mjs +4 -0
  53. package/es/components/scene-vr/resources/zv-reduce.svg.mjs +4 -0
  54. package/es/components/scene-vr/resources/zv-refresh.svg.mjs +4 -0
  55. package/es/components/scene-vr/resources/zv-return.svg.mjs +4 -0
  56. package/es/components/scene-vr/resources/zv-vr-select.svg.mjs +4 -0
  57. package/es/components/text-over-number/index.vue.d.ts +32 -32
  58. package/es/index.mjs +94 -84
  59. package/es/style.css +1 -1
  60. package/es/utils/clickOutSide.d.ts +5 -0
  61. package/es/utils/clickOutSide.mjs +13 -0
  62. package/es/utils/json2css.mjs +8 -8
  63. package/lib/components/commons-product-model/index.vue.js +1 -1
  64. package/lib/components/commons-product-model/index.vue2.js +1 -1
  65. package/lib/components/commons-three-loader3/index.vue.js +1 -1
  66. package/lib/components/commons-three-loader3/index.vue2.js +1 -1
  67. package/lib/components/index.js +1 -1
  68. package/lib/components/interaction-select/index.vue.js +1 -1
  69. package/lib/components/interaction-select/index.vue2.js +1 -1
  70. package/lib/components/scene-amap2d/index.vue.js +1 -1
  71. package/lib/components/scene-amap2d/index.vue2.js +1 -1
  72. package/lib/components/scene-amap3d/index.vue.js +1 -1
  73. package/lib/components/scene-amap3d/index.vue2.js +2 -2
  74. package/lib/components/scene-map3d/index.vue.js +1 -1
  75. package/lib/components/scene-map3d/index.vue2.js +1 -1
  76. package/lib/components/scene-map3d/map3d/module/MapMirror.js +1 -1
  77. package/lib/components/scene-ue-iframe/index.js +1 -0
  78. package/lib/components/scene-ue-iframe/index.vue.js +1 -0
  79. package/lib/components/scene-ue-iframe/index.vue2.js +1 -0
  80. package/lib/components/scene-ue-shj/index.js +1 -0
  81. package/lib/components/scene-ue-shj/index.vue.js +1 -0
  82. package/lib/components/scene-ue-shj/index.vue2.js +1 -0
  83. package/lib/components/scene-unity-iframe/index.js +1 -0
  84. package/lib/components/scene-unity-iframe/index.vue.js +1 -0
  85. package/lib/components/scene-unity-iframe/index.vue2.js +1 -0
  86. package/lib/components/scene-unity-webgl/index.js +1 -0
  87. package/lib/components/scene-unity-webgl/index.vue.js +1 -0
  88. package/lib/components/scene-unity-webgl/index.vue2.js +1 -0
  89. package/lib/components/scene-vr/index.js +1 -0
  90. package/lib/components/scene-vr/index.vue.js +1 -0
  91. package/lib/components/scene-vr/index.vue2.js +11 -0
  92. package/lib/components/scene-vr/resources/zv-add.svg.js +1 -0
  93. package/lib/components/scene-vr/resources/zv-pause.svg.js +1 -0
  94. package/lib/components/scene-vr/resources/zv-play.svg.js +1 -0
  95. package/lib/components/scene-vr/resources/zv-reduce.svg.js +1 -0
  96. package/lib/components/scene-vr/resources/zv-refresh.svg.js +1 -0
  97. package/lib/components/scene-vr/resources/zv-return.svg.js +1 -0
  98. package/lib/components/scene-vr/resources/zv-vr-select.svg.js +1 -0
  99. package/lib/index.js +1 -1
  100. package/lib/style.css +1 -1
  101. package/lib/utils/clickOutSide.js +1 -0
  102. package/lib/utils/json2css.js +1 -1
  103. package/package.json +2 -1
@@ -7,7 +7,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
7
7
  type: any;
8
8
  required: true;
9
9
  };
10
- globalEvent: {
10
+ useEvents: {
11
11
  type: ArrayConstructor;
12
12
  required: true;
13
13
  };
@@ -46,7 +46,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
46
46
  type: any;
47
47
  required: true;
48
48
  };
49
- globalEvent: {
49
+ useEvents: {
50
50
  type: ArrayConstructor;
51
51
  required: true;
52
52
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./index.vue2.mjs";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0b1540a4"]]);
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-93e7e6bc"]]);
5
5
  export {
6
- p as default
6
+ e as default
7
7
  };
@@ -1,18 +1,18 @@
1
- import { defineComponent as E, watch as d, openBlock as q, createElementBlock as K, normalizeClass as Q, unref as X, shallowRef as x, ref as g, onMounted as Y, onUnmounted as $, pushScopeId as ee, popScopeId as ae, createElementVNode as te } from "vue";
1
+ import { defineComponent as E, watch as d, openBlock as q, createElementBlock as K, normalizeClass as Q, unref as X, shallowRef as x, ref as m, onMounted as Y, onUnmounted as $, pushScopeId as ee, popScopeId as ae, createElementVNode as te } from "vue";
2
2
  import oe from "@amap/amap-jsapi-loader";
3
3
  import se from "axios";
4
4
  import { nanoid as le } from "nanoid";
5
- const re = (p) => (ee("data-v-0b1540a4"), p = p(), ae(), p), ne = /* @__PURE__ */ re(() => /* @__PURE__ */ te("div", {
5
+ const re = (p) => (ee("data-v-93e7e6bc"), p = p(), ae(), p), ne = /* @__PURE__ */ re(() => /* @__PURE__ */ te("div", {
6
6
  id: "zerov-amap-2d",
7
7
  class: "zerov-amap-container"
8
8
  }, null, -1)), ce = [
9
9
  ne
10
- ], ie = E({ name: "zv-scene-amap2d" }), ye = /* @__PURE__ */ E({
10
+ ], ie = E({ name: "zv-scene-amap2d" }), ge = /* @__PURE__ */ E({
11
11
  ...ie,
12
12
  props: {
13
13
  basicOption: {},
14
14
  sources: {},
15
- globalEvent: {},
15
+ useEvents: {},
16
16
  uuid: {}
17
17
  },
18
18
  emits: [
@@ -26,7 +26,7 @@ const re = (p) => (ee("data-v-0b1540a4"), p = p(), ae(), p), ne = /* @__PURE__ *
26
26
  ],
27
27
  setup(p, { expose: M, emit: A }) {
28
28
  const o = p, u = A, B = () => {
29
- const s = x(), n = x(), C = g(!1), m = g(), y = g(), f = g(), v = g(), S = (a) => {
29
+ const s = x(), n = x(), C = m(!1), y = m(), g = m(), f = m(), v = m(), S = (a) => {
30
30
  k(), window._AMapSecurityConfig = {
31
31
  securityJsCode: a.basic.securityJsCode
32
32
  }, oe.load({
@@ -65,33 +65,33 @@ const re = (p) => (ee("data-v-0b1540a4"), p = p(), ae(), p), ne = /* @__PURE__ *
65
65
  left: a.config.plugin.scale.position.left + "px",
66
66
  bottom: a.config.plugin.scale.position.bottom + "px"
67
67
  }
68
- }), s.value.addControl(f.value), m.value = new e.ControlBar({
68
+ }), s.value.addControl(f.value), y.value = new e.ControlBar({
69
69
  visible: a.config.plugin.controlBar.visible,
70
70
  showControlButton: a.config.plugin.controlBar.showControlButton,
71
71
  position: {
72
72
  right: a.config.plugin.controlBar.position.right + "px",
73
73
  top: a.config.plugin.controlBar.position.top + "px"
74
74
  }
75
- }), s.value.addControl(m.value), y.value = new e.ToolBar({
75
+ }), s.value.addControl(y.value), g.value = new e.ToolBar({
76
76
  visible: a.config.plugin.toolBar.visible,
77
77
  position: {
78
78
  left: a.config.plugin.toolBar.position.left + "px",
79
79
  top: a.config.plugin.toolBar.position.top + "px"
80
80
  }
81
- }), s.value.addControl(y.value), z(e), s.value.on("complete", () => {
81
+ }), s.value.addControl(g.value), z(e), s.value.on("complete", () => {
82
82
  setTimeout(() => {
83
- C.value = !0, u("amap2d-scene-success"), window.SHJParseEvent(o.globalEvent, "amap2d-scene-success", null);
83
+ C.value = !0, u("amap2d-scene-success"), window.SHJParseEvent(o.useEvents, "amap2d-scene-success", null);
84
84
  }, 666);
85
85
  }), s.value.on("zoomstart", () => {
86
- u("amap2d-scene-zoomstart"), window.SHJParseEvent(o.globalEvent, "amap2d-scene-zoomstart", null);
86
+ u("amap2d-scene-zoomstart"), window.SHJParseEvent(o.useEvents, "amap2d-scene-zoomstart", null);
87
87
  }), s.value.on("zoomend", () => {
88
- u("amap2d-scene-zoomend"), window.SHJParseEvent(o.globalEvent, "amap2d-scene-zoomend", null);
88
+ u("amap2d-scene-zoomend"), window.SHJParseEvent(o.useEvents, "amap2d-scene-zoomend", null);
89
89
  }), s.value.on("click", (t) => {
90
- u("amap2d-scene-mapclick", t.lnglat), window.SHJParseEvent(o.globalEvent, "amap2d-scene-mapclick", t.lnglat);
90
+ u("amap2d-scene-mapclick", t.lnglat), window.SHJParseEvent(o.useEvents, "amap2d-scene-mapclick", t.lnglat);
91
91
  }), s.value.on("dragstart", (t) => {
92
- u("amap2d-scene-dragstart", t.lnglat), window.SHJParseEvent(o.globalEvent, "amap2d-scene-dragstart", t.lnglat);
92
+ u("amap2d-scene-dragstart", t.lnglat), window.SHJParseEvent(o.useEvents, "amap2d-scene-dragstart", t.lnglat);
93
93
  }), s.value.on("dragend", (t) => {
94
- u("amap2d-scene-dragend", t.lnglat), window.SHJParseEvent(o.globalEvent, "amap2d-scene-dragend", t.lnglat);
94
+ u("amap2d-scene-dragend", t.lnglat), window.SHJParseEvent(o.useEvents, "amap2d-scene-dragend", t.lnglat);
95
95
  });
96
96
  }).catch((e) => {
97
97
  });
@@ -309,7 +309,7 @@ const re = (p) => (ee("data-v-0b1540a4"), p = p(), ae(), p), ne = /* @__PURE__ *
309
309
  dragEnable: a.config.dragEnable,
310
310
  zoomEnable: a.config.zoomEnable,
311
311
  rotateEnable: a.config.rotateEnable
312
- }), a.config.plugin.scale.visible ? f.value.show() : f.value.hide(), a.config.plugin.toolBar.visible ? y.value.show() : y.value.hide(), a.config.plugin.controlBar.visible ? m.value.show() : m.value.hide();
312
+ }), a.config.plugin.scale.visible ? f.value.show() : f.value.hide(), a.config.plugin.toolBar.visible ? g.value.show() : g.value.hide(), a.config.plugin.controlBar.visible ? y.value.show() : y.value.hide();
313
313
  }, T = () => {
314
314
  s.value.clearMap(), n.value.clear(), z(v.value);
315
315
  }, Z = (a) => {
@@ -370,5 +370,5 @@ const re = (p) => (ee("data-v-0b1540a4"), p = p(), ae(), p), ne = /* @__PURE__ *
370
370
  }
371
371
  });
372
372
  export {
373
- ye as default
373
+ ge as default
374
374
  };
@@ -7,7 +7,7 @@ export declare const ZvSceneAmap3d: import("../../utils/typescript").SFCWithInst
7
7
  type: any;
8
8
  required: true;
9
9
  };
10
- globalEvent: {
10
+ useEvents: {
11
11
  type: ArrayConstructor;
12
12
  required: true;
13
13
  };
@@ -46,7 +46,7 @@ export declare const ZvSceneAmap3d: import("../../utils/typescript").SFCWithInst
46
46
  type: any;
47
47
  required: true;
48
48
  };
49
- globalEvent: {
49
+ useEvents: {
50
50
  type: ArrayConstructor;
51
51
  required: true;
52
52
  };
@@ -7,7 +7,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
7
7
  type: any;
8
8
  required: true;
9
9
  };
10
- globalEvent: {
10
+ useEvents: {
11
11
  type: ArrayConstructor;
12
12
  required: true;
13
13
  };
@@ -46,7 +46,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
46
46
  type: any;
47
47
  required: true;
48
48
  };
49
- globalEvent: {
49
+ useEvents: {
50
50
  type: ArrayConstructor;
51
51
  required: true;
52
52
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./index.vue2.mjs";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fd3825f4"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8bca31f5"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };
@@ -1,19 +1,19 @@
1
- import { defineComponent as M, watch as u, openBlock as K, createElementBlock as Q, normalizeClass as X, unref as Y, shallowRef as E, ref as m, onMounted as ee, onUnmounted as ae, pushScopeId as te, popScopeId as se, createElementVNode as le } from "vue";
2
- import re from "@amap/amap-jsapi-loader";
3
- import ne from "axios";
4
- import { nanoid as oe } from "nanoid";
5
- import { debounce as ie } from "lodash";
6
- const ce = (g) => (te("data-v-fd3825f4"), g = g(), se(), g), de = /* @__PURE__ */ ce(() => /* @__PURE__ */ le("div", {
1
+ import { defineComponent as L, watch as d, openBlock as Q, createElementBlock as X, normalizeClass as Y, unref as ee, shallowRef as M, ref as f, onMounted as ae, onUnmounted as te, pushScopeId as se, popScopeId as le, createElementVNode as re } from "vue";
2
+ import ne from "@amap/amap-jsapi-loader";
3
+ import oe from "axios";
4
+ import { nanoid as ie } from "nanoid";
5
+ import { debounce as z } from "lodash";
6
+ const ce = (g) => (se("data-v-8bca31f5"), g = g(), le(), g), de = /* @__PURE__ */ ce(() => /* @__PURE__ */ re("div", {
7
7
  id: "zerov-amap-3d",
8
8
  class: "zerov-amap-container"
9
9
  }, null, -1)), ue = [
10
10
  de
11
- ], ye = M({ name: "zv-scene-amap3d" }), be = /* @__PURE__ */ M({
11
+ ], ye = L({ name: "zv-scene-amap3d" }), be = /* @__PURE__ */ L({
12
12
  ...ye,
13
13
  props: {
14
14
  basicOption: {},
15
15
  sources: {},
16
- globalEvent: {},
16
+ useEvents: {},
17
17
  uuid: {}
18
18
  },
19
19
  emits: [
@@ -26,12 +26,12 @@ const ce = (g) => (te("data-v-fd3825f4"), g = g(), se(), g), de = /* @__PURE__ *
26
26
  "amap3d-scene-dragend",
27
27
  "amap3d-scene-pulseLinkLayer"
28
28
  ],
29
- setup(g, { expose: L, emit: A }) {
30
- const s = g, d = A, P = () => {
31
- const n = E(), c = E(), z = m(!1), f = m(), v = m(), h = m(), p = m(), S = (a) => {
32
- O(), window._AMapSecurityConfig = {
29
+ setup(g, { expose: A, emit: P }) {
30
+ const s = g, u = P, I = () => {
31
+ const n = M(), c = M(), S = f(!1), v = f(), p = f(), h = f(), b = f(), C = (a) => {
32
+ E(), window._AMapSecurityConfig = {
33
33
  securityJsCode: a.basic.securityJsCode
34
- }, re.load({
34
+ }, ne.load({
35
35
  key: a.basic.key,
36
36
  // 申请好的Web端开发者Key,首次调用 load 时必填
37
37
  version: "2.0",
@@ -41,7 +41,7 @@ const ce = (g) => (te("data-v-fd3825f4"), g = g(), se(), g), de = /* @__PURE__ *
41
41
  },
42
42
  plugins: ["AMap.ControlBar", "AMap.ToolBar", "AMap.Scale", "AMap.HeatMap", "AMap.GeoJSON"]
43
43
  }).then((e) => {
44
- p.value = e, n.value = new e.Map("zerov-amap-3d", {
44
+ b.value = e, n.value = new e.Map("zerov-amap-3d", {
45
45
  rotateEnable: a.config.rotateEnable,
46
46
  // 是否开启地图旋转交互 鼠标右键 + 鼠标画圈移动 或 键盘Ctrl + 鼠标画圈移动
47
47
  pitchEnable: a.config.pitchEnable,
@@ -61,71 +61,74 @@ const ce = (g) => (te("data-v-fd3825f4"), g = g(), se(), g), de = /* @__PURE__ *
61
61
  features: a.config.features,
62
62
  pitch: a.config.pitch,
63
63
  // 0-83
64
- rotation: a.config.rotation
64
+ rotation: a.config.rotation,
65
65
  // 0-360
66
+ wallColor: a.config.floors.wallColor,
67
+ roofColor: a.config.floors.roofColor,
68
+ skyColor: a.config.skyColor
66
69
  }), c.value = new window.Loca.Container({
67
70
  map: n.value
68
- }), h.value = new p.value.Scale({
71
+ }), h.value = new b.value.Scale({
69
72
  visible: a.config.plugin.scale.visible,
70
73
  position: {
71
74
  left: a.config.plugin.scale.position.left + "px",
72
75
  bottom: a.config.plugin.scale.position.bottom + "px"
73
76
  }
74
- }), n.value.addControl(h.value), f.value = new e.ControlBar({
77
+ }), n.value.addControl(h.value), v.value = new e.ControlBar({
75
78
  visible: a.config.plugin.controlBar.visible,
76
79
  showControlButton: a.config.plugin.controlBar.showControlButton,
77
80
  position: {
78
81
  right: a.config.plugin.controlBar.position.right + "px",
79
82
  top: a.config.plugin.controlBar.position.top + "px"
80
83
  }
81
- }), n.value.addControl(f.value), v.value = new e.ToolBar({
84
+ }), n.value.addControl(v.value), p.value = new e.ToolBar({
82
85
  visible: a.config.plugin.toolBar.visible,
83
86
  position: {
84
87
  left: a.config.plugin.toolBar.position.left + "px",
85
88
  top: a.config.plugin.toolBar.position.top + "px"
86
89
  }
87
- }), n.value.addControl(v.value), x(e), n.value.on("complete", () => {
90
+ }), n.value.addControl(p.value), x(e), n.value.on("complete", () => {
88
91
  setTimeout(() => {
89
- z.value = !0, d("amap3d-scene-success"), window.SHJParseEvent(s.globalEvent, "amap3d-scene-success", null);
92
+ S.value = !0, u("amap3d-scene-success"), window.SHJParseEvent(s.useEvents, "amap3d-scene-success", null);
90
93
  }, 666);
91
94
  }), n.value.on("zoomstart", () => {
92
- d("amap3d-scene-zoomstart"), window.SHJParseEvent(s.globalEvent, "amap3d-scene-zoomstart", null);
95
+ u("amap3d-scene-zoomstart"), window.SHJParseEvent(s.useEvents, "amap3d-scene-zoomstart", null);
93
96
  }), n.value.on("zoomend", () => {
94
- d("amap3d-scene-zoomend"), window.SHJParseEvent(s.globalEvent, "amap3d-scene-zoomend", null);
97
+ u("amap3d-scene-zoomend"), window.SHJParseEvent(s.useEvents, "amap3d-scene-zoomend", null);
95
98
  }), n.value.on("click", (t) => {
96
- d("amap3d-scene-mapclick", t.lnglat), window.SHJParseEvent(s.globalEvent, "amap3d-scene-mapclick", t.lnglat);
99
+ u("amap3d-scene-mapclick", t.lnglat), window.SHJParseEvent(s.useEvents, "amap3d-scene-mapclick", t.lnglat);
97
100
  }), n.value.on("dragstart", (t) => {
98
- d("amap3d-scene-dragstart", t.lnglat), window.SHJParseEvent(s.globalEvent, "amap3d-scene-dragstart", t.lnglat);
101
+ u("amap3d-scene-dragstart", t.lnglat), window.SHJParseEvent(s.useEvents, "amap3d-scene-dragstart", t.lnglat);
99
102
  }), n.value.on("dragend", (t) => {
100
- d("amap3d-scene-dragend", t.lnglat), window.SHJParseEvent(s.globalEvent, "amap3d-scene-dragend", t.lnglat);
103
+ u("amap3d-scene-dragend", t.lnglat), window.SHJParseEvent(s.useEvents, "amap3d-scene-dragend", t.lnglat);
101
104
  });
102
105
  }).catch((e) => {
103
106
  });
104
- }, x = ie((a) => {
107
+ }, x = z((a) => {
105
108
  s.sources && s.sources.length > 0 ? window.SHJDatasourceV2({
106
109
  tId: s.uuid,
107
110
  sources: s.sources,
108
111
  callback: (e) => {
109
112
  try {
110
113
  const t = s.basicOption.widgets.find((l) => l._sourceId === e.id);
111
- t && t.type === "heatmap" && H(window.Loca, t, y(e.data[0].data, "Point")), t && t.type === "dotlayers" && D(window.Loca, t, y(e.data[0].data, "Point")), t && t.type === "scatter" && F(window.Loca, t, y(e.data[0].data, "Point")), t && t.type === "labelsLayer" && N(window.Loca, t, y(e.data[0].data, "Point")), t && t.type === "signagePoints" && G(window.Loca, t, y(e.data[0].data, "Point")), t && t.type === "pulseLinkLayer" && Z(window.Loca, t, y(e.data[0].data, "LineString"));
114
+ t && t.type === "heatmap" && D(window.Loca, t, y(e.data[0].data, "Point")), t && t.type === "dotlayers" && F(window.Loca, t, y(e.data[0].data, "Point")), t && t.type === "scatter" && N(window.Loca, t, y(e.data[0].data, "Point")), t && t.type === "labelsLayer" && G(window.Loca, t, y(e.data[0].data, "Point")), t && t.type === "signagePoints" && Z(window.Loca, t, y(e.data[0].data, "Point")), t && t.type === "pulseLinkLayer" && R(window.Loca, t, y(e.data[0].data, "LineString"));
112
115
  } catch {
113
116
  }
114
117
  s.basicOption.widgets.filter((t) => t.type === "boundary").forEach((t) => {
115
- C(a, t);
118
+ O(a, t);
116
119
  });
117
120
  }
118
121
  }) : s.basicOption.widgets.filter((e) => e.type === "boundary").forEach((e) => {
119
- C(a, e);
122
+ O(a, e);
120
123
  });
121
- }, 200), _ = (a) => {
124
+ }, 200), H = (a) => {
122
125
  const t = a.slice(a.indexOf("(") + 1, a.lastIndexOf(")")).split(",").map((r) => r.trim()), l = {};
123
126
  for (let r = 1; r < t.length; r++) {
124
- const o = t[r].split(" "), i = o[0], b = parseFloat(o[1]) / 100, U = Math.round(b * 100) / 100;
125
- l[U] = i;
127
+ const o = t[r].split(" "), i = o[0], w = parseFloat(o[1]) / 100, K = Math.round(w * 100) / 100;
128
+ l[K] = i;
126
129
  }
127
130
  return l;
128
- }, H = (a, e, t) => {
131
+ }, D = (a, e, t) => {
129
132
  try {
130
133
  const l = new a.HeatMapLayer({
131
134
  zIndex: 10,
@@ -140,7 +143,7 @@ const ce = (g) => (te("data-v-fd3825f4"), g = g(), se(), g), de = /* @__PURE__ *
140
143
  unit: e.style.unit,
141
144
  height: e.style.height,
142
145
  opacity: e.style.opacity,
143
- gradient: _(e.style.gradient),
146
+ gradient: H(e.style.gradient),
144
147
  value: function(o, i) {
145
148
  return i.coordinates[2] || 0;
146
149
  },
@@ -151,9 +154,9 @@ const ce = (g) => (te("data-v-fd3825f4"), g = g(), se(), g), de = /* @__PURE__ *
151
154
  }), c.value.add(l);
152
155
  } catch {
153
156
  }
154
- }, C = async (a, e) => {
157
+ }, O = async (a, e) => {
155
158
  try {
156
- const t = await ne.get(e.geojson);
159
+ const t = await oe.get(e.geojson);
157
160
  if (t.status === 200) {
158
161
  const l = new a.GeoJSON({
159
162
  geoJSON: t.data,
@@ -205,7 +208,7 @@ const ce = (g) => (te("data-v-fd3825f4"), g = g(), se(), g), de = /* @__PURE__ *
205
208
  }
206
209
  } catch {
207
210
  }
208
- }, D = (a, e, t) => {
211
+ }, F = (a, e, t) => {
209
212
  try {
210
213
  const l = new a.GeoJSONSource({
211
214
  data: t
@@ -235,7 +238,7 @@ const ce = (g) => (te("data-v-fd3825f4"), g = g(), se(), g), de = /* @__PURE__ *
235
238
  });
236
239
  } catch {
237
240
  }
238
- }, F = (a, e, t) => {
241
+ }, N = (a, e, t) => {
239
242
  try {
240
243
  const l = new a.GeoJSONSource({
241
244
  data: t
@@ -256,7 +259,7 @@ const ce = (g) => (te("data-v-fd3825f4"), g = g(), se(), g), de = /* @__PURE__ *
256
259
  }), c.value.animate.start();
257
260
  } catch {
258
261
  }
259
- }, N = (a, e, t) => {
262
+ }, G = (a, e, t) => {
260
263
  try {
261
264
  const l = new a.GeoJSONSource({
262
265
  data: t
@@ -300,7 +303,7 @@ const ce = (g) => (te("data-v-fd3825f4"), g = g(), se(), g), de = /* @__PURE__ *
300
303
  }), c.value.add(r);
301
304
  } catch {
302
305
  }
303
- }, G = (a, e, t) => {
306
+ }, Z = (a, e, t) => {
304
307
  try {
305
308
  const l = new a.GeoJSONSource({
306
309
  data: t
@@ -312,7 +315,7 @@ const ce = (g) => (te("data-v-fd3825f4"), g = g(), se(), g), de = /* @__PURE__ *
312
315
  depth: !1
313
316
  });
314
317
  r.setSource(l), r.setStyle({
315
- content: (i, b) => `<div style="
318
+ content: (i, w) => `<div style="
316
319
  width: ${e.signs.style.width}px;
317
320
  height: ${e.signs.style.height + 148}px;
318
321
  ">
@@ -328,7 +331,7 @@ const ce = (g) => (te("data-v-fd3825f4"), g = g(), se(), g), de = /* @__PURE__ *
328
331
  color:${e.signs.style.fillColor};
329
332
  margin:0;
330
333
  ">
331
- ${b.properties.name}
334
+ ${w.properties.name}
332
335
  </p>
333
336
  </div>`,
334
337
  unit: e.signs.style.unit,
@@ -345,7 +348,7 @@ const ce = (g) => (te("data-v-fd3825f4"), g = g(), se(), g), de = /* @__PURE__ *
345
348
  depth: !1
346
349
  });
347
350
  o.setSource(l), o.setStyle({
348
- content: (i, b) => `<div style="
351
+ content: (i, w) => `<div style="
349
352
  width: ${e.landmark.style.size[0]}px;
350
353
  height: ${e.landmark.style.size[1]}px;
351
354
  background: url(${e.landmark.style.image});
@@ -369,7 +372,7 @@ const ce = (g) => (te("data-v-fd3825f4"), g = g(), se(), g), de = /* @__PURE__ *
369
372
  }), c.value.add(o), c.value.animate.start();
370
373
  } catch {
371
374
  }
372
- }, Z = (a, e, t) => {
375
+ }, R = (a, e, t) => {
373
376
  const l = new a.PulseLinkLayer({
374
377
  zIndex: e.zIndex,
375
378
  opacity: e.opacity,
@@ -399,7 +402,7 @@ const ce = (g) => (te("data-v-fd3825f4"), g = g(), se(), g), de = /* @__PURE__ *
399
402
  trailColor: e.style.trailColor
400
403
  }), n.value.on("click", (o) => {
401
404
  const i = l.queryFeature(o.pixel.toArray());
402
- i && (d("amap3d-scene-pulseLinkLayer", i), window.SHJParseEvent(s.globalEvent, "amap3d-scene-pulseLinkLayer", i));
405
+ i && (u("amap3d-scene-pulseLinkLayer", i), window.SHJParseEvent(s.useEvents, "amap3d-scene-pulseLinkLayer", i));
403
406
  }), c.value.add(l), c.value.animate.start();
404
407
  }, y = (a, e) => {
405
408
  const t = {
@@ -409,7 +412,7 @@ const ce = (g) => (te("data-v-fd3825f4"), g = g(), se(), g), de = /* @__PURE__ *
409
412
  return a.forEach((l, r) => {
410
413
  const o = {
411
414
  type: "Feature",
412
- id: oe(),
415
+ id: ie(),
413
416
  properties: {
414
417
  type: e === "Point" ? e : 0,
415
418
  ...l
@@ -421,69 +424,73 @@ const ce = (g) => (te("data-v-fd3825f4"), g = g(), se(), g), de = /* @__PURE__ *
421
424
  };
422
425
  t.features.push(o);
423
426
  }), t;
424
- }, R = (a) => {
427
+ }, T = (a) => {
425
428
  n.value.setFeatures(a.config.features), n.value.setPitch(a.config.pitch), n.value.setRotation(a.config.rotation), n.value.setStatus({
426
429
  dragEnable: a.config.dragEnable,
427
430
  zoomEnable: a.config.zoomEnable,
428
431
  rotateEnable: a.config.rotateEnable,
429
432
  pitchEnable: a.config.pitchEnable
430
- }), a.config.plugin.scale.visible ? h.value.show() : h.value.hide(), a.config.plugin.toolBar.visible ? v.value.show() : v.value.hide(), a.config.plugin.controlBar.visible ? f.value.show() : f.value.hide();
431
- }, T = () => {
432
- n.value.clearMap(), c.value.clear(), x(p.value);
433
- }, j = (a) => {
434
- n.value.setMapStyle(a.config.mapStyle);
433
+ }), a.config.plugin.scale.visible ? h.value.show() : h.value.hide(), a.config.plugin.toolBar.visible ? p.value.show() : p.value.hide(), a.config.plugin.controlBar.visible ? v.value.show() : v.value.hide();
434
+ }, j = () => {
435
+ n.value.clearMap(), c.value.clear(), x(b.value);
435
436
  }, V = (a) => {
436
- n.value.setZoom(a.config.zoom, !1, 200);
437
+ n.value.setMapStyle(a.config.mapStyle);
437
438
  }, q = (a) => {
439
+ n.value.setZoom(a.config.zoom, !1, 200);
440
+ }, U = (a) => {
438
441
  n.value.setCenter(a.config.center, !1, 200);
439
- }, O = () => {
442
+ }, E = () => {
440
443
  n.value && (n.value.clearMap(), n.value.destroy(), n.value = null, c.value && (c.value.clear(), c.value.destroy(), c.value = null));
441
444
  };
442
- return ee(() => {
445
+ return ae(() => {
443
446
  setTimeout(() => {
444
- S(s.basicOption);
447
+ C(s.basicOption);
445
448
  }, 0);
446
- }), ae(() => O()), {
447
- initAMap3d: S,
448
- updateAMapStyle: j,
449
- updateAMapConfig: R,
450
- updateAMapComponents: T,
451
- updateAMapZoom: V,
452
- updateAMapCenter: q,
449
+ }), te(() => E()), {
450
+ initAMap3d: C,
451
+ updateAMapStyle: V,
452
+ updateAMapConfig: T,
453
+ updateAMapComponents: j,
454
+ updateAMapZoom: q,
455
+ updateAMapCenter: U,
453
456
  amap3d: n,
454
- loading: z,
455
- AMapPrototype: p
457
+ loading: S,
458
+ AMapPrototype: b
456
459
  };
457
460
  }, {
458
- initAMap3d: w,
459
- updateAMapStyle: I,
461
+ initAMap3d: m,
462
+ updateAMapStyle: B,
460
463
  updateAMapConfig: k,
461
- updateAMapComponents: B,
462
- updateAMapZoom: W,
463
- updateAMapCenter: J,
464
- loading: $,
464
+ updateAMapComponents: W,
465
+ updateAMapZoom: J,
466
+ updateAMapCenter: $,
467
+ loading: _,
465
468
  AMapPrototype: ge
466
- } = P();
467
- return u(() => s.basicOption.config, () => {
469
+ } = I();
470
+ return d(() => s.basicOption.config, () => {
468
471
  k(s.basicOption);
469
- }, { deep: !0 }), u(() => s.basicOption.config.zoom, () => {
470
- W(s.basicOption);
471
- }, { deep: !0 }), u(() => s.basicOption.config.center, () => {
472
+ }, { deep: !0 }), d(() => s.basicOption.config.zoom, () => {
472
473
  J(s.basicOption);
473
- }, { deep: !0 }), u(() => s.basicOption.widgets, () => {
474
- B();
475
- }, { deep: !0 }), u(() => s.basicOption.config.mapStyle, () => {
476
- I(s.basicOption);
477
- }, { deep: !0 }), u(() => s.basicOption.basic, () => {
478
- w(s.basicOption);
479
- }, { deep: !0 }), u(() => s.sources, () => {
480
- w(s.basicOption);
481
- }, { deep: !0 }), L({
482
- refresh: () => w(s.basicOption),
474
+ }, { deep: !0 }), d(() => s.basicOption.config.center, () => {
475
+ $(s.basicOption);
476
+ }, { deep: !0 }), d(() => s.basicOption.config.floors, z(() => {
477
+ m(s.basicOption);
478
+ }, 300), { deep: !0 }), d(() => s.basicOption.config.skyColor, z(() => {
479
+ m(s.basicOption);
480
+ }, 300), { deep: !0 }), d(() => s.basicOption.widgets, () => {
481
+ W();
482
+ }, { deep: !0 }), d(() => s.basicOption.config.mapStyle, () => {
483
+ B(s.basicOption);
484
+ }, { deep: !0 }), d(() => s.basicOption.basic, () => {
485
+ m(s.basicOption);
486
+ }, { deep: !0 }), d(() => s.sources, () => {
487
+ m(s.basicOption);
488
+ }, { deep: !0 }), A({
489
+ refresh: () => m(s.basicOption),
483
490
  refreshView: () => k(s.basicOption),
484
491
  refreshData: () => k(s.basicOption)
485
- }), (n, c) => (K(), Q("div", {
486
- class: X(["amap-3d-wrap", { show: Y($) }])
492
+ }), (n, c) => (Q(), X("div", {
493
+ class: Y(["amap-3d-wrap", { show: ee(_) }])
487
494
  }, ue, 2));
488
495
  }
489
496
  });
@@ -7,7 +7,7 @@ export declare const ZvSceneMap3d: import("../../utils/typescript").SFCWithInsta
7
7
  type: any;
8
8
  required: true;
9
9
  };
10
- globalEvent: {
10
+ useEvents: {
11
11
  type: ArrayConstructor;
12
12
  required: true;
13
13
  };
@@ -60,7 +60,7 @@ export declare const ZvSceneMap3d: import("../../utils/typescript").SFCWithInsta
60
60
  type: any;
61
61
  required: true;
62
62
  };
63
- globalEvent: {
63
+ useEvents: {
64
64
  type: ArrayConstructor;
65
65
  required: true;
66
66
  };
@@ -8,7 +8,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
8
8
  type: any;
9
9
  required: true;
10
10
  };
11
- globalEvent: {
11
+ useEvents: {
12
12
  type: ArrayConstructor;
13
13
  required: true;
14
14
  };
@@ -61,7 +61,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
61
61
  type: any;
62
62
  required: true;
63
63
  };
64
- globalEvent: {
64
+ useEvents: {
65
65
  type: ArrayConstructor;
66
66
  required: true;
67
67
  };
@@ -2,7 +2,7 @@ import o from "./index.vue2.mjs";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.mjs";
5
- const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3c54f0a5"]]);
5
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8e35eadb"]]);
6
6
  export {
7
- c as default
7
+ e as default
8
8
  };