@shjjs/visual-ui 1.0.1 → 1.0.3

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 (123) 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-data-picker/index.d.ts +14 -12
  8. package/es/components/interaction-data-picker/index.mjs +2 -2
  9. package/es/components/interaction-data-picker/index.vue.d.ts +14 -12
  10. package/es/components/interaction-data-picker/index.vue.mjs +5 -11
  11. package/es/components/interaction-data-picker/index.vue2.mjs +130 -2
  12. package/es/components/interaction-input/index.d.ts +25 -5
  13. package/es/components/interaction-input/index.vue.d.ts +25 -5
  14. package/es/components/interaction-input/index.vue.mjs +2 -2
  15. package/es/components/interaction-input/index.vue2.mjs +67 -36
  16. package/es/components/interaction-select/index.d.ts +188 -8
  17. package/es/components/interaction-select/index.vue.d.ts +193 -8
  18. package/es/components/interaction-select/index.vue.mjs +5 -11
  19. package/es/components/interaction-select/index.vue2.mjs +220 -2
  20. package/es/components/interaction-slider/index.d.ts +22 -5
  21. package/es/components/interaction-slider/index.vue.d.ts +22 -5
  22. package/es/components/interaction-slider/index.vue.mjs +2 -2
  23. package/es/components/interaction-slider/index.vue2.mjs +84 -50
  24. package/es/components/scene-amap2d/index.d.ts +2 -2
  25. package/es/components/scene-amap2d/index.vue.d.ts +2 -2
  26. package/es/components/scene-amap2d/index.vue.mjs +2 -2
  27. package/es/components/scene-amap2d/index.vue2.mjs +16 -16
  28. package/es/components/scene-amap3d/index.d.ts +2 -2
  29. package/es/components/scene-amap3d/index.vue.d.ts +2 -2
  30. package/es/components/scene-amap3d/index.vue.mjs +2 -2
  31. package/es/components/scene-amap3d/index.vue2.mjs +95 -88
  32. package/es/components/scene-map3d/index.d.ts +2 -2
  33. package/es/components/scene-map3d/index.vue.d.ts +2 -2
  34. package/es/components/scene-map3d/index.vue.mjs +2 -2
  35. package/es/components/scene-map3d/index.vue2.mjs +13 -13
  36. package/es/components/scene-map3d/map3d/module/MapMirror.mjs +1 -1
  37. package/es/components/scene-ue-iframe/index.d.ts +50 -0
  38. package/es/components/scene-ue-iframe/index.mjs +7 -0
  39. package/es/components/scene-ue-iframe/index.vue.d.ts +50 -0
  40. package/es/components/scene-ue-iframe/index.vue.mjs +7 -0
  41. package/es/components/scene-ue-iframe/index.vue2.mjs +48 -0
  42. package/es/components/scene-ue-shj/index.d.ts +50 -0
  43. package/es/components/scene-ue-shj/index.mjs +7 -0
  44. package/es/components/scene-ue-shj/index.vue.d.ts +50 -0
  45. package/es/components/scene-ue-shj/index.vue.mjs +7 -0
  46. package/es/components/scene-ue-shj/index.vue2.mjs +37 -0
  47. package/es/components/scene-unity-iframe/index.d.ts +61 -0
  48. package/es/components/scene-unity-iframe/index.mjs +7 -0
  49. package/es/components/scene-unity-iframe/index.vue.d.ts +61 -0
  50. package/es/components/scene-unity-iframe/index.vue.mjs +7 -0
  51. package/es/components/scene-unity-iframe/index.vue2.mjs +37 -0
  52. package/es/components/scene-unity-webgl/index.d.ts +61 -0
  53. package/es/components/scene-unity-webgl/index.mjs +7 -0
  54. package/es/components/scene-unity-webgl/index.vue.d.ts +61 -0
  55. package/es/components/scene-unity-webgl/index.vue.mjs +7 -0
  56. package/es/components/scene-unity-webgl/index.vue2.mjs +37 -0
  57. package/es/components/scene-vr/entity/audio.d.ts +6 -0
  58. package/es/components/scene-vr/index.d.ts +103 -0
  59. package/es/components/scene-vr/index.mjs +7 -0
  60. package/es/components/scene-vr/index.vue.d.ts +103 -0
  61. package/es/components/scene-vr/index.vue.mjs +7 -0
  62. package/es/components/scene-vr/index.vue2.mjs +355 -0
  63. package/es/components/scene-vr/resources/zv-add.svg.mjs +4 -0
  64. package/es/components/scene-vr/resources/zv-pause.svg.mjs +4 -0
  65. package/es/components/scene-vr/resources/zv-play.svg.mjs +4 -0
  66. package/es/components/scene-vr/resources/zv-reduce.svg.mjs +4 -0
  67. package/es/components/scene-vr/resources/zv-refresh.svg.mjs +4 -0
  68. package/es/components/scene-vr/resources/zv-return.svg.mjs +4 -0
  69. package/es/components/scene-vr/resources/zv-vr-select.svg.mjs +4 -0
  70. package/es/components/text-over-number/index.vue.d.ts +32 -32
  71. package/es/index.mjs +94 -84
  72. package/es/style.css +1 -1
  73. package/es/utils/clickOutSide.d.ts +5 -0
  74. package/es/utils/clickOutSide.mjs +13 -0
  75. package/es/utils/json2css.mjs +8 -8
  76. package/lib/components/commons-product-model/index.vue.js +1 -1
  77. package/lib/components/commons-product-model/index.vue2.js +1 -1
  78. package/lib/components/commons-three-loader3/index.vue.js +1 -1
  79. package/lib/components/commons-three-loader3/index.vue2.js +1 -1
  80. package/lib/components/index.js +1 -1
  81. package/lib/components/interaction-data-picker/index.js +1 -1
  82. package/lib/components/interaction-data-picker/index.vue.js +1 -1
  83. package/lib/components/interaction-data-picker/index.vue2.js +1 -1
  84. package/lib/components/interaction-input/index.vue.js +1 -1
  85. package/lib/components/interaction-input/index.vue2.js +1 -1
  86. package/lib/components/interaction-select/index.vue.js +1 -1
  87. package/lib/components/interaction-select/index.vue2.js +1 -1
  88. package/lib/components/interaction-slider/index.vue.js +1 -1
  89. package/lib/components/interaction-slider/index.vue2.js +1 -1
  90. package/lib/components/scene-amap2d/index.vue.js +1 -1
  91. package/lib/components/scene-amap2d/index.vue2.js +1 -1
  92. package/lib/components/scene-amap3d/index.vue.js +1 -1
  93. package/lib/components/scene-amap3d/index.vue2.js +2 -2
  94. package/lib/components/scene-map3d/index.vue.js +1 -1
  95. package/lib/components/scene-map3d/index.vue2.js +1 -1
  96. package/lib/components/scene-map3d/map3d/module/MapMirror.js +1 -1
  97. package/lib/components/scene-ue-iframe/index.js +1 -0
  98. package/lib/components/scene-ue-iframe/index.vue.js +1 -0
  99. package/lib/components/scene-ue-iframe/index.vue2.js +1 -0
  100. package/lib/components/scene-ue-shj/index.js +1 -0
  101. package/lib/components/scene-ue-shj/index.vue.js +1 -0
  102. package/lib/components/scene-ue-shj/index.vue2.js +1 -0
  103. package/lib/components/scene-unity-iframe/index.js +1 -0
  104. package/lib/components/scene-unity-iframe/index.vue.js +1 -0
  105. package/lib/components/scene-unity-iframe/index.vue2.js +1 -0
  106. package/lib/components/scene-unity-webgl/index.js +1 -0
  107. package/lib/components/scene-unity-webgl/index.vue.js +1 -0
  108. package/lib/components/scene-unity-webgl/index.vue2.js +1 -0
  109. package/lib/components/scene-vr/index.js +1 -0
  110. package/lib/components/scene-vr/index.vue.js +1 -0
  111. package/lib/components/scene-vr/index.vue2.js +11 -0
  112. package/lib/components/scene-vr/resources/zv-add.svg.js +1 -0
  113. package/lib/components/scene-vr/resources/zv-pause.svg.js +1 -0
  114. package/lib/components/scene-vr/resources/zv-play.svg.js +1 -0
  115. package/lib/components/scene-vr/resources/zv-reduce.svg.js +1 -0
  116. package/lib/components/scene-vr/resources/zv-refresh.svg.js +1 -0
  117. package/lib/components/scene-vr/resources/zv-return.svg.js +1 -0
  118. package/lib/components/scene-vr/resources/zv-vr-select.svg.js +1 -0
  119. package/lib/index.js +1 -1
  120. package/lib/style.css +1 -1
  121. package/lib/utils/clickOutSide.js +1 -0
  122. package/lib/utils/json2css.js +1 -1
  123. package/package.json +1 -1
@@ -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
  };
@@ -22,7 +22,7 @@ const oe = { class: "value" }, ae = ["onClick"], le = {
22
22
  props: {
23
23
  basicOption: {},
24
24
  sources: {},
25
- globalEvent: {},
25
+ useEvents: {},
26
26
  uuid: {}
27
27
  },
28
28
  emits: [
@@ -46,9 +46,9 @@ const oe = { class: "value" }, ae = ["onClick"], le = {
46
46
  callback: (o) => {
47
47
  try {
48
48
  const t = a.basicOption.widgets && a.basicOption.widgets.find((s) => s._sourceId === o.id);
49
- t && t.type === "bar" && l.value.createBar(t, o.data[0].data, !0, e), t && t.type === "scatter" && l.value.createScatter(t, o.data[0].data, !0, e), t && t.type === "flyline" && l.value.createFlyLine(t, o.data[0].data, !0, e), t && t.type === "regionalLevel" && l.value.createRegionalLevel(t, o.data[0].data, !0, e), e && (l.value.createBarTimeLine(), l.value.createScatterTimeLine(), l.value.createFlyLineTimeLine(), l.value.createRegionalLevelTimeLine()), i("on-data-change", o), window.SHJParseEvent(a.globalEvent, "on-data-change", o);
49
+ t && t.type === "bar" && l.value.createBar(t, o.data[0].data, !0, e), t && t.type === "scatter" && l.value.createScatter(t, o.data[0].data, !0, e), t && t.type === "flyline" && l.value.createFlyLine(t, o.data[0].data, !0, e), t && t.type === "regionalLevel" && l.value.createRegionalLevel(t, o.data[0].data, !0, e), e && (l.value.createBarTimeLine(), l.value.createScatterTimeLine(), l.value.createFlyLineTimeLine(), l.value.createRegionalLevelTimeLine()), i("on-data-change", o), window.SHJParseEvent(a.useEvents, "on-data-change", o);
50
50
  } catch {
51
- i("on-data-change", null), window.SHJParseEvent(a.globalEvent, "on-data-change", null);
51
+ i("on-data-change", null), window.SHJParseEvent(a.useEvents, "on-data-change", null);
52
52
  }
53
53
  }
54
54
  });
@@ -58,32 +58,32 @@ const oe = { class: "value" }, ae = ["onClick"], le = {
58
58
  e.id = w, e.className = "zerov-map-3d", e.style.width = "100%", e.style.height = "100%", document.getElementById(I).appendChild(e);
59
59
  }, m = (e) => (O.value = !1, C.value = !1, l.value && (l.value.destroy(), l.value = null), N(), new x(document.getElementById(w), { geoProjectionCenter: [108.55, 36.32] }, e, {
60
60
  onAreaMouseover: (t) => {
61
- i("on-area-mouseover", t), window.SHJParseEvent(a.globalEvent, "on-area-mouseover", t);
61
+ i("on-area-mouseover", t), window.SHJParseEvent(a.useEvents, "on-area-mouseover", t);
62
62
  },
63
63
  onAreaMouseout: (t) => {
64
- i("on-area-mouseout", t), window.SHJParseEvent(a.globalEvent, "on-area-mouseout", t);
64
+ i("on-area-mouseout", t), window.SHJParseEvent(a.useEvents, "on-area-mouseout", t);
65
65
  },
66
66
  onLoadChild: (t) => {
67
- if (i("on-area-click", t), window.SHJParseEvent(a.globalEvent, "on-area-click", t), t.adcode !== r.present && a.basicOption.scene.isDrilling && a.basicOption.scene.defaultMapAdcode !== 1) {
68
- i("on-drill-down", t), window.SHJParseEvent(a.globalEvent, "on-drill-down", t);
67
+ if (i("on-area-click", t), window.SHJParseEvent(a.useEvents, "on-area-click", t), t.adcode !== r.present && a.basicOption.scene.isDrilling && a.basicOption.scene.defaultMapAdcode !== 1) {
68
+ i("on-drill-down", t), window.SHJParseEvent(a.useEvents, "on-drill-down", t);
69
69
  const s = v(a.basicOption);
70
70
  s.scene.defaultMapAdcode = t.adcode, l.value = m(s), r.push(t.adcode), r.past.length <= 0 ? p.value = !1 : p.value = !0;
71
71
  }
72
72
  },
73
73
  onMapSuccess: () => {
74
- O.value = !0, i("on-loaded"), window.SHJParseEvent(a.globalEvent, "on-loaded", null);
74
+ O.value = !0, i("on-loaded"), window.SHJParseEvent(a.useEvents, "on-loaded", null);
75
75
  },
76
76
  onMapAnimationSuccess: () => {
77
- y(), C.value = !0, i("on-animated"), window.SHJParseEvent(a.globalEvent, "on-animated", null);
77
+ y(), C.value = !0, i("on-animated"), window.SHJParseEvent(a.useEvents, "on-animated", null);
78
78
  },
79
79
  onClickBar: (t) => {
80
- i("on-bar-click", t), window.SHJParseEvent(a.globalEvent, "on-bar-click", t);
80
+ i("on-bar-click", t), window.SHJParseEvent(a.useEvents, "on-bar-click", t);
81
81
  },
82
82
  onClickScatter: (t) => {
83
- i("on-scatter-click", t), window.SHJParseEvent(a.globalEvent, "on-scatter-click", t);
83
+ i("on-scatter-click", t), window.SHJParseEvent(a.useEvents, "on-scatter-click", t);
84
84
  },
85
85
  onClickFlyline: (t) => {
86
- i("on-flyline-click", t), window.SHJParseEvent(a.globalEvent, "on-flyline-click", t);
86
+ i("on-flyline-click", t), window.SHJParseEvent(a.useEvents, "on-flyline-click", t);
87
87
  }
88
88
  }));
89
89
  K(() => {
@@ -94,7 +94,7 @@ const oe = { class: "value" }, ae = ["onClick"], le = {
94
94
  l.value && l.value.destroy();
95
95
  });
96
96
  const P = () => {
97
- i("on-return", { adcode: r.present }), window.SHJParseEvent(a.globalEvent, "on-return", { adcode: r.present }), r.undo();
97
+ i("on-return", { adcode: r.present }), window.SHJParseEvent(a.useEvents, "on-return", { adcode: r.present }), r.undo();
98
98
  const e = v(a.basicOption);
99
99
  e.scene.defaultMapAdcode = r.present, l.value = m(e), r.past.length <= 0 ? p.value = !1 : p.value = !0;
100
100
  }, j = () => {
@@ -74,7 +74,7 @@ function d(r) {
74
74
  multisample: 0,
75
75
  shader: n
76
76
  });
77
- e.material.transparent = !0, e.position.y = 0.2, e.rotateX(-Math.PI / 2), r.groundMirror = e, r.groundMirror.visible = r.option.map.mirrorShow, r.scene.add(e);
77
+ e.material.transparent = !0, e.position.y = 0, e.rotateX(-Math.PI / 2), r.groundMirror = e, r.groundMirror.visible = r.option.map.mirrorShow, r.scene.add(e);
78
78
  }
79
79
  export {
80
80
  d as createMirror
@@ -0,0 +1,50 @@
1
+ export declare const ZvSceneUeIframe: import("../../utils/typescript").SFCWithInstall<import("vue").DefineComponent<{
2
+ basicOption: {
3
+ type: any;
4
+ required: true;
5
+ };
6
+ sources: {
7
+ type: any;
8
+ required: true;
9
+ };
10
+ useEvents: {
11
+ type: ArrayConstructor;
12
+ required: true;
13
+ };
14
+ uuid: {
15
+ type: StringConstructor;
16
+ required: true;
17
+ };
18
+ isPreview: {
19
+ type: BooleanConstructor;
20
+ required: true;
21
+ };
22
+ }, {
23
+ props: any;
24
+ emit: (event: "on-message", ...args: any[]) => void;
25
+ useUeScene: (basicOption: any) => void;
26
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "on-message"[], "on-message", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
27
+ basicOption: {
28
+ type: any;
29
+ required: true;
30
+ };
31
+ sources: {
32
+ type: any;
33
+ required: true;
34
+ };
35
+ useEvents: {
36
+ type: ArrayConstructor;
37
+ required: true;
38
+ };
39
+ uuid: {
40
+ type: StringConstructor;
41
+ required: true;
42
+ };
43
+ isPreview: {
44
+ type: BooleanConstructor;
45
+ required: true;
46
+ };
47
+ }>> & {
48
+ "onOn-message"?: (...args: any[]) => any;
49
+ }, {}, {}>> & Record<string, any>;
50
+ export default ZvSceneUeIframe;
@@ -0,0 +1,7 @@
1
+ import t from "./index.vue.mjs";
2
+ import { withInstall as r } from "../../utils/install.mjs";
3
+ const a = r(t);
4
+ export {
5
+ a as ZvSceneUeIframe,
6
+ a as default
7
+ };
@@ -0,0 +1,50 @@
1
+ declare const _sfc_main: import("vue").DefineComponent<{
2
+ basicOption: {
3
+ type: any;
4
+ required: true;
5
+ };
6
+ sources: {
7
+ type: any;
8
+ required: true;
9
+ };
10
+ useEvents: {
11
+ type: ArrayConstructor;
12
+ required: true;
13
+ };
14
+ uuid: {
15
+ type: StringConstructor;
16
+ required: true;
17
+ };
18
+ isPreview: {
19
+ type: BooleanConstructor;
20
+ required: true;
21
+ };
22
+ }, {
23
+ props: any;
24
+ emit: (event: "on-message", ...args: any[]) => void;
25
+ useUeScene: (basicOption: any) => void;
26
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "on-message"[], "on-message", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
27
+ basicOption: {
28
+ type: any;
29
+ required: true;
30
+ };
31
+ sources: {
32
+ type: any;
33
+ required: true;
34
+ };
35
+ useEvents: {
36
+ type: ArrayConstructor;
37
+ required: true;
38
+ };
39
+ uuid: {
40
+ type: StringConstructor;
41
+ required: true;
42
+ };
43
+ isPreview: {
44
+ type: BooleanConstructor;
45
+ required: true;
46
+ };
47
+ }>> & {
48
+ "onOn-message"?: (...args: any[]) => any;
49
+ }, {}, {}>;
50
+ export default _sfc_main;
@@ -0,0 +1,7 @@
1
+ import o from "./index.vue2.mjs";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.mjs";
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-61a24e38"]]);
5
+ export {
6
+ p as default
7
+ };