@shjjs/visual-ui 1.0.29 → 1.0.30

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.
@@ -31,21 +31,21 @@ const y = class y {
31
31
  return a ?? (a = () => {
32
32
  }), t && k(t) && t.length > 0 && t[0] ? new Promise((p, o) => {
33
33
  P.cleanupPreviousWebSockets(this.wsInstances, t.map((r) => r.id), e);
34
- const f = /* @__PURE__ */ new Set(), h = this.wsInstances.get(e) || /* @__PURE__ */ new Set();
34
+ const f = /* @__PURE__ */ new Set(), m = this.wsInstances.get(e) || /* @__PURE__ */ new Set();
35
35
  t.forEach((r) => {
36
36
  var w;
37
37
  if (n) {
38
- const { source: c } = r, d = `${e}-${r.id}`, D = this.datasourceTimer.findIndex((m) => m.id === d);
38
+ const { source: c } = r, u = `${e}-${r.id}`, D = this.datasourceTimer.findIndex((h) => h.id === u);
39
39
  if (D !== -1 && (clearInterval(this.datasourceTimer[D].timer), this.datasourceTimer.splice(D, 1)), c.isAutoUpdate) {
40
- const m = setInterval(() => {
40
+ const h = setInterval(() => {
41
41
  var l;
42
- (l = this.task(r, s, i, e, (u) => {
43
- a(u);
44
- })) == null || l.then((u) => {
45
- p(u);
42
+ (l = this.task(r, s, i, e, (d) => {
43
+ a(d);
44
+ })) == null || l.then((d) => {
45
+ p(d);
46
46
  });
47
47
  }, c.autoUpdateTime * 1e3);
48
- this.datasourceTimer.push({ id: d, timer: m });
48
+ this.datasourceTimer.push({ id: u, timer: h });
49
49
  }
50
50
  }
51
51
  if (r.source.type !== "ws") {
@@ -53,12 +53,12 @@ const y = class y {
53
53
  return;
54
54
  }
55
55
  if (P.hasValidWebSocket(this.wsInstances, e, r.id))
56
- h.forEach((c) => {
56
+ m.forEach((c) => {
57
57
  c.getId() === r.id && f.add(c);
58
58
  });
59
59
  else {
60
- const c = $(r, r.id, i, e, (d) => {
61
- p(d), a({ data: [{ data: d.finalUserData.data }] }), this.taskStorage(t, d.rawData.data);
60
+ const c = $(r, r.id, i, e, (u) => {
61
+ p(u), a({ data: [{ data: u.finalUserData.data }] }), this.taskStorage(t, u.rawData.data);
62
62
  });
63
63
  f.add(c);
64
64
  }
@@ -78,8 +78,8 @@ const y = class y {
78
78
  }) {
79
79
  return t ? new Promise((n, p) => {
80
80
  let o = null;
81
- const { source: f } = t, h = this.getParser(f.type);
82
- h && (o = h(t, t.id, e)), o.then((r) => {
81
+ const { source: f } = t, m = this.getParser(f.type);
82
+ m && (o = m(t, t.id, e)), o.then((r) => {
83
83
  i(e ? r.noMappingData : r.finalKeyData), this.taskStorage(t, r.rawData.data), n(r);
84
84
  });
85
85
  }) : (i([]), Promise.resolve([]));
@@ -126,38 +126,38 @@ const y = class y {
126
126
  return new Promise(function(p) {
127
127
  const o = I({ id: s, data: a });
128
128
  y.filterData(t, a).then((f) => {
129
- const h = I({ id: s, data: f });
129
+ const m = I({ id: s, data: f });
130
130
  if (n)
131
131
  p({
132
132
  id: s,
133
133
  finalKeyData: [],
134
134
  finalUserData: { id: s, data: f },
135
- filteredData: h,
135
+ filteredData: m,
136
136
  rawData: o,
137
137
  noMappingData: f
138
138
  });
139
139
  else {
140
140
  let r = [];
141
- k(f) && (r = f.map((d, D) => {
142
- const m = {};
141
+ k(f) && (r = f.map((u, D) => {
142
+ const h = {};
143
143
  if (i && i && D === 0) {
144
144
  const l = [];
145
- for (const u in d) {
146
- const T = e.find((b) => b.name === u);
147
- T ? l.push({ alias: T.alias, name: u, type: "any", label: u, mapping: T.mapping, status: !0 }) : l.push({ alias: u, name: u, type: "any", label: u, mapping: u, status: !0 });
145
+ for (const d in u) {
146
+ const T = e.find((b) => b.name === d);
147
+ T ? l.push({ alias: T.alias, name: d, type: "any", label: d, mapping: T.mapping, status: !0 }) : l.push({ alias: d, name: d, type: "any", label: d, mapping: d, status: !0 });
148
148
  }
149
149
  e.splice(0, e.length), e.push(...l);
150
150
  }
151
151
  return e.forEach((l) => {
152
- l.alias ? m[l.alias] = d[l.mapping] : m[l.name] = d[l.mapping];
153
- }), m;
152
+ l.alias ? h[l.alias] = u[l.mapping] : h[l.name] = u[l.mapping];
153
+ }), h.userdata = u, h;
154
154
  }));
155
155
  const w = I({ id: s, data: r }), c = I({ id: s, data: y.parseMappedData(r, e, s) });
156
156
  p({
157
157
  id: s,
158
158
  finalKeyData: r.length === 0 ? { id: s, data: f } : c,
159
159
  finalUserData: r.length === 0 ? { id: s, data: f } : w,
160
- filteredData: h,
160
+ filteredData: m,
161
161
  rawData: o,
162
162
  noMappingData: []
163
163
  });
@@ -90,7 +90,7 @@ export declare class DataSourceUtils {
90
90
  static getNestedValue(obj: any, path: string): any;
91
91
  /**
92
92
  * 从路径字符串中提取变量名
93
- * @param path 路径字符串,例如 "test[0].aa" 或 "test.aa[1]"
93
+ * @param path 路径字符串,例如 "测试.test" 或 "333[0].aa"
94
94
  * @returns 提取出的变量名
95
95
  */
96
96
  static extractVariableName(path: string): string;
@@ -174,11 +174,11 @@ class o {
174
174
  }
175
175
  /**
176
176
  * 从路径字符串中提取变量名
177
- * @param path 路径字符串,例如 "test[0].aa" 或 "test.aa[1]"
177
+ * @param path 路径字符串,例如 "测试.test" 或 "333[0].aa"
178
178
  * @returns 提取出的变量名
179
179
  */
180
180
  static extractVariableName(e) {
181
- const n = e.match(/^([a-zA-Z_][a-zA-Z0-9_]*)/);
181
+ const n = e.match(/^([\u4e00-\u9fa5a-zA-Z0-9_][\u4e00-\u9fa5a-zA-Z0-9_]*)/);
182
182
  return n ? n[1] : "";
183
183
  }
184
184
  }
@@ -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-1495d842"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1a9e6290"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,16 +1,16 @@
1
- import { defineComponent as E, watch as u, createElementBlock as X, openBlock as Y, normalizeClass as $, unref as ee, shallowRef as L, ref as g, onMounted as ae, onUnmounted as te, createElementVNode as se, pushScopeId as oe, popScopeId as re } from "vue";
1
+ import { defineComponent as M, watch as u, createElementBlock as X, openBlock as Y, normalizeClass as $, unref as ee, shallowRef as E, ref as g, onMounted as ae, onUnmounted as te, createElementVNode as se, pushScopeId as oe, popScopeId as re } from "vue";
2
2
  import le from "@amap/amap-jsapi-loader";
3
3
  import ne from "axios";
4
4
  import { nanoid as ce } from "nanoid";
5
5
  import { SHJDatasourceV2 as ie } from "../../commons/plugins/datasource/index.mjs";
6
6
  import { SHJParseEvent as y } from "../../commons/plugins/event/index.mjs";
7
- const de = (m) => (oe("data-v-1495d842"), m = m(), re(), m), ue = /* @__PURE__ */ de(() => /* @__PURE__ */ se("div", {
7
+ const de = (p) => (oe("data-v-1a9e6290"), p = p(), re(), p), ue = /* @__PURE__ */ de(() => /* @__PURE__ */ se("div", {
8
8
  id: "zerov-amap-2d",
9
9
  class: "zerov-amap-container"
10
10
  }, null, -1)), ye = [
11
11
  ue
12
- ], pe = E({ name: "zv-scene-amap2d" }), ze = /* @__PURE__ */ E({
13
- ...pe,
12
+ ], me = M({ name: "zv-scene-amap2d" }), ze = /* @__PURE__ */ M({
13
+ ...me,
14
14
  props: {
15
15
  basicOption: {},
16
16
  sources: {},
@@ -26,12 +26,12 @@ const de = (m) => (oe("data-v-1495d842"), m = m(), re(), m), ue = /* @__PURE__ *
26
26
  "amap2d-scene-dragging",
27
27
  "amap2d-scene-dragend"
28
28
  ],
29
- setup(m, { expose: M, emit: I }) {
30
- const o = m, p = I;
29
+ setup(p, { expose: I, emit: A }) {
30
+ const o = p, m = A;
31
31
  y.parseEvents(o.useEvents, "on-page-loaded", null);
32
- const A = () => {
33
- const r = L(), n = L(), w = g(!1), f = g(), v = g(), b = g(), c = g(), C = (a) => {
34
- O(), window._AMapSecurityConfig = {
32
+ const B = () => {
33
+ const r = E(), c = E(), C = g(!1), v = g(), b = g(), h = g(), d = g(), S = (a) => {
34
+ L(), window._AMapSecurityConfig = {
35
35
  securityJsCode: a.basic.securityJsCode
36
36
  }, le.load({
37
37
  key: a.basic.key,
@@ -43,8 +43,8 @@ const de = (m) => (oe("data-v-1495d842"), m = m(), re(), m), ue = /* @__PURE__ *
43
43
  },
44
44
  plugins: ["AMap.ControlBar", "AMap.ToolBar", "AMap.Scale", "AMap.HeatMap", "AMap.GeoJSON", "AMap.ImageLayer", "AMap.TileLayer"]
45
45
  }).then((e) => {
46
- c.value = e;
47
- const s = new c.value.createDefaultLayer({
46
+ d.value = e;
47
+ const s = new d.value.createDefaultLayer({
48
48
  visible: !0,
49
49
  // 是否可见
50
50
  opacity: 1,
@@ -70,82 +70,82 @@ const de = (m) => (oe("data-v-1495d842"), m = m(), re(), m), ue = /* @__PURE__ *
70
70
  mapStyle: a.config.mapStyle,
71
71
  features: a.config.features,
72
72
  layers: [s]
73
- }), n.value = new window.Loca.Container({
73
+ }), c.value = new window.Loca.Container({
74
74
  map: r.value
75
- }), b.value = new c.value.Scale({
75
+ }), h.value = new d.value.Scale({
76
76
  visible: a.config.plugin.scale.visible,
77
77
  position: {
78
78
  left: a.config.plugin.scale.position.left + "px",
79
79
  bottom: a.config.plugin.scale.position.bottom + "px"
80
80
  }
81
- }), r.value.addControl(b.value), f.value = new e.ControlBar({
81
+ }), r.value.addControl(h.value), v.value = new e.ControlBar({
82
82
  visible: a.config.plugin.controlBar.visible,
83
83
  showControlButton: a.config.plugin.controlBar.showControlButton,
84
84
  position: {
85
85
  right: a.config.plugin.controlBar.position.right + "px",
86
86
  top: a.config.plugin.controlBar.position.top + "px"
87
87
  }
88
- }), r.value.addControl(f.value), v.value = new e.ToolBar({
88
+ }), r.value.addControl(v.value), b.value = new e.ToolBar({
89
89
  visible: a.config.plugin.toolBar.visible,
90
90
  position: {
91
91
  left: a.config.plugin.toolBar.position.left + "px",
92
92
  top: a.config.plugin.toolBar.position.top + "px"
93
93
  }
94
- }), r.value.addControl(v.value), S(e), r.value.on("complete", () => {
94
+ }), r.value.addControl(b.value), x(e), r.value.on("complete", () => {
95
95
  setTimeout(() => {
96
- w.value = !0, p("amap2d-scene-success"), y.parseEvents(o.useEvents, "amap2d-scene-success", null);
96
+ C.value = !0, m("amap2d-scene-success"), y.parseEvents(o.useEvents, "amap2d-scene-success", null);
97
97
  }, 666);
98
98
  }), r.value.on("zoomstart", () => {
99
- p("amap2d-scene-zoomstart"), y.parseEvents(o.useEvents, "amap2d-scene-zoomstart", null);
99
+ m("amap2d-scene-zoomstart"), y.parseEvents(o.useEvents, "amap2d-scene-zoomstart", null);
100
100
  }), r.value.on("zoomend", () => {
101
- p("amap2d-scene-zoomend"), y.parseEvents(o.useEvents, "amap2d-scene-zoomend", null);
101
+ m("amap2d-scene-zoomend"), y.parseEvents(o.useEvents, "amap2d-scene-zoomend", null);
102
102
  }), r.value.on("click", (t) => {
103
- p("amap2d-scene-mapclick", t.lnglat), y.parseEvents(o.useEvents, "amap2d-scene-mapclick", t.lnglat);
103
+ m("amap2d-scene-mapclick", t.lnglat), y.parseEvents(o.useEvents, "amap2d-scene-mapclick", t.lnglat);
104
104
  }), r.value.on("dragstart", (t) => {
105
- p("amap2d-scene-dragstart", t.lnglat), y.parseEvents(o.useEvents, "amap2d-scene-dragstart", t.lnglat);
105
+ m("amap2d-scene-dragstart", t.lnglat), y.parseEvents(o.useEvents, "amap2d-scene-dragstart", t.lnglat);
106
106
  }), r.value.on("dragend", (t) => {
107
- p("amap2d-scene-dragend", t.lnglat), y.parseEvents(o.useEvents, "amap2d-scene-dragend", t.lnglat);
107
+ m("amap2d-scene-dragend", t.lnglat), y.parseEvents(o.useEvents, "amap2d-scene-dragend", t.lnglat);
108
108
  });
109
109
  }).catch((e) => {
110
110
  });
111
- }, S = (a) => {
111
+ }, x = (a) => {
112
112
  o.sources && o.sources.length > 0 ? ie.parse({
113
113
  tId: o.uuid,
114
114
  sources: o.sources,
115
115
  callback: (s) => {
116
116
  try {
117
117
  const t = o.basicOption.widgets.find((l) => l._sourceId === s.id);
118
- t && t.type === "heatmap" && F(a, t, s.data[0].data), t && t.type === "dotlayers" && G(window.Loca, t, k(s.data[0].data)), t && t.type === "scatter" && H(window.Loca, t, k(s.data[0].data)), t && t.type === "labelsLayer" && Z(window.Loca, t, k(s.data[0].data));
118
+ t && t.type === "heatmap" && G(a, t, s.data[0].data), t && t.type === "dotlayers" && H(window.Loca, t, k(s.data[0].data)), t && t.type === "scatter" && Z(window.Loca, t, k(s.data[0].data)), t && t.type === "labelsLayer" && j(window.Loca, t, k(s.data[0].data));
119
119
  } catch {
120
120
  }
121
121
  o.basicOption.widgets.filter((t) => t.type === "boundary").forEach((t) => {
122
- x(a, t);
122
+ O(a, t);
123
123
  });
124
124
  }
125
125
  }) : o.basicOption.widgets.filter((s) => s.type === "boundary").forEach((s) => {
126
- x(a, s);
126
+ O(a, s);
127
127
  });
128
128
  const e = r.value.getLayers();
129
129
  for (let s = 0; s < e.length; s++)
130
130
  (e[s].type === "sketchTileLayer" || e[s]._opts.type === "sketchImageLayer") && r.value.removeLayer(e[s]);
131
131
  o.basicOption.widgets.filter((s) => s.type === "sketchTile").forEach((s) => {
132
- const t = P(s);
132
+ const t = N(s);
133
133
  t && r.value.addLayer(t);
134
134
  }), o.basicOption.widgets.filter((s) => s.type === "sketchImage").forEach((s) => {
135
- const t = N(s);
135
+ const t = F(s);
136
136
  r.value.addLayer(t);
137
137
  });
138
- }, J = (a) => {
138
+ }, P = (a) => {
139
139
  const s = a.slice(a.indexOf("(") + 1, a.lastIndexOf(")")).split(",").map((l) => l.trim()), t = {};
140
140
  for (let l = 1; l < s.length; l++) {
141
- const i = s[l].split(" "), d = i[0], K = parseFloat(i[1]) / 100, Q = Math.round(K * 100) / 100;
142
- t[Q] = d;
141
+ const i = s[l].split(" "), n = i[0], z = parseFloat(i[1]) / 100, Q = Math.round(z * 100) / 100;
142
+ t[Q] = n;
143
143
  }
144
144
  return t;
145
- }, P = (a) => {
145
+ }, N = (a) => {
146
146
  try {
147
- return new c.value.TileLayer({
148
- bounds: new c.value.Bounds(
147
+ return new d.value.TileLayer({
148
+ bounds: new d.value.Bounds(
149
149
  a.bounds[0],
150
150
  a.bounds[1]
151
151
  ),
@@ -164,10 +164,10 @@ const de = (m) => (oe("data-v-1495d842"), m = m(), re(), m), ue = /* @__PURE__ *
164
164
  } catch {
165
165
  }
166
166
  return null;
167
- }, N = (a) => {
167
+ }, F = (a) => {
168
168
  try {
169
- return new c.value.ImageLayer({
170
- bounds: new c.value.Bounds(
169
+ return new d.value.ImageLayer({
170
+ bounds: new d.value.Bounds(
171
171
  a.bounds[0],
172
172
  // 左下 手绘图左下相对于地图的经纬度
173
173
  a.bounds[1]
@@ -183,13 +183,13 @@ const de = (m) => (oe("data-v-1495d842"), m = m(), re(), m), ue = /* @__PURE__ *
183
183
  } catch {
184
184
  }
185
185
  return null;
186
- }, F = (a, e, s) => {
186
+ }, G = (a, e, s) => {
187
187
  try {
188
188
  const t = new a.HeatMap(r.value, {
189
189
  radius: e.radius,
190
190
  // 给定半径
191
191
  opacity: e.opacity,
192
- gradient: J(e.gradient)
192
+ gradient: P(e.gradient)
193
193
  });
194
194
  setTimeout(() => {
195
195
  t.setDataSet({
@@ -199,14 +199,14 @@ const de = (m) => (oe("data-v-1495d842"), m = m(), re(), m), ue = /* @__PURE__ *
199
199
  }, 0);
200
200
  } catch {
201
201
  }
202
- }, x = async (a, e) => {
202
+ }, O = async (a, e) => {
203
203
  try {
204
204
  const s = await ne.get(e.geojson);
205
205
  if (s.status === 200) {
206
206
  const t = new a.GeoJSON({
207
207
  geoJSON: s.data,
208
208
  getPolygon: function(l, i) {
209
- const d = new a.Polygon({
209
+ const n = new a.Polygon({
210
210
  path: i,
211
211
  zIndex: e.zIndex,
212
212
  fillColor: e.style.fillColor,
@@ -222,8 +222,8 @@ const de = (m) => (oe("data-v-1495d842"), m = m(), re(), m), ue = /* @__PURE__ *
222
222
  strokeStyle: e.style.strokeStyle
223
223
  // 线条样式
224
224
  });
225
- return d.on("mouseover", () => {
226
- d.setOptions({
225
+ return n.on("mouseover", () => {
226
+ n.setOptions({
227
227
  fillOpacity: e.mouseover.fillOpacity,
228
228
  fillColor: e.mouseover.fillColor,
229
229
  strokeOpacity: e.mouseover.strokeOpacity,
@@ -231,8 +231,8 @@ const de = (m) => (oe("data-v-1495d842"), m = m(), re(), m), ue = /* @__PURE__ *
231
231
  strokeStyle: e.mouseover.strokeStyle,
232
232
  strokeWeight: e.mouseover.strokeWeight
233
233
  });
234
- }), d.on("mouseout", () => {
235
- d.setOptions({
234
+ }), n.on("mouseout", () => {
235
+ n.setOptions({
236
236
  fillColor: e.style.fillColor,
237
237
  // 填充色
238
238
  strokeOpacity: e.style.strokeOpacity,
@@ -246,14 +246,14 @@ const de = (m) => (oe("data-v-1495d842"), m = m(), re(), m), ue = /* @__PURE__ *
246
246
  strokeStyle: e.style.strokeStyle
247
247
  // 线条样式
248
248
  });
249
- }), d;
249
+ }), n;
250
250
  }
251
251
  });
252
252
  r.value.add(t);
253
253
  }
254
254
  } catch {
255
255
  }
256
- }, G = (a, e, s) => {
256
+ }, H = (a, e, s) => {
257
257
  try {
258
258
  const t = new a.GeoJSONSource({
259
259
  data: s
@@ -270,7 +270,7 @@ const de = (m) => (oe("data-v-1495d842"), m = m(), re(), m), ue = /* @__PURE__ *
270
270
  blurWidth: e.style.blurWidth,
271
271
  borderColor: e.style.borderColor
272
272
  };
273
- l.setSource(t), l.setStyle(i), n.value.add(l), l.addAnimate({
273
+ l.setSource(t), l.setStyle(i), c.value.add(l), l.addAnimate({
274
274
  key: e.animate.key,
275
275
  value: e.animate.value,
276
276
  duration: e.animate.duration,
@@ -283,12 +283,12 @@ const de = (m) => (oe("data-v-1495d842"), m = m(), re(), m), ue = /* @__PURE__ *
283
283
  });
284
284
  } catch {
285
285
  }
286
- }, H = (a, e, s) => {
286
+ }, Z = (a, e, s) => {
287
287
  try {
288
288
  const t = new a.GeoJSONSource({
289
289
  data: s
290
290
  }), l = new a.ScatterLayer({
291
- loca: n.value,
291
+ loca: c.value,
292
292
  zIndex: e.zIndex,
293
293
  opacity: e.opacity,
294
294
  visible: e.visible,
@@ -301,10 +301,10 @@ const de = (m) => (oe("data-v-1495d842"), m = m(), re(), m), ue = /* @__PURE__ *
301
301
  texture: e.style.texture,
302
302
  duration: e.style.duration,
303
303
  animate: e.style.animate
304
- }), n.value.animate.start();
304
+ }), c.value.animate.start();
305
305
  } catch {
306
306
  }
307
- }, Z = (a, e, s) => {
307
+ }, j = (a, e, s) => {
308
308
  try {
309
309
  const t = new a.GeoJSONSource({
310
310
  data: s
@@ -317,8 +317,7 @@ const de = (m) => (oe("data-v-1495d842"), m = m(), re(), m), ue = /* @__PURE__ *
317
317
  allowCollision: e.allowCollision,
318
318
  zIndex: e.zIndex
319
319
  });
320
- l.on("click", (i) => {
321
- }), l.setSource(t), l.setStyle({
320
+ l.setSource(t), l.setStyle({
322
321
  icon: {
323
322
  image: e.icon.image,
324
323
  size: e.icon.size,
@@ -328,7 +327,7 @@ const de = (m) => (oe("data-v-1495d842"), m = m(), re(), m), ue = /* @__PURE__ *
328
327
  },
329
328
  text: {
330
329
  // 每项配置都可使用回调函数来动态配置
331
- content: (i, d) => d.properties[e.text.content],
330
+ content: (i, n) => n.properties[e.text.content],
332
331
  zooms: e.text.zooms,
333
332
  offset: e.text.offset,
334
333
  direction: e.text.direction,
@@ -345,7 +344,14 @@ const de = (m) => (oe("data-v-1495d842"), m = m(), re(), m), ue = /* @__PURE__ *
345
344
  fontWeight: e.text.style.fontWeight
346
345
  }
347
346
  }
348
- }), n.value.add(l);
347
+ }), l.on("complete", () => {
348
+ const i = l.getLabelsLayer().getAllOverlays();
349
+ for (const n of i)
350
+ n.on("click", (z) => {
351
+ }), n.on("mouseover", (z) => {
352
+ }), n.on("mouseout", (z) => {
353
+ });
354
+ }), c.value.add(l);
349
355
  } catch {
350
356
  }
351
357
  }, k = (a) => {
@@ -368,67 +374,67 @@ const de = (m) => (oe("data-v-1495d842"), m = m(), re(), m), ue = /* @__PURE__ *
368
374
  };
369
375
  e.features.push(l);
370
376
  }), e;
371
- }, j = (a) => {
377
+ }, R = (a) => {
372
378
  r.value.setFeatures(a.config.features), r.value.setStatus({
373
379
  dragEnable: a.config.dragEnable,
374
380
  zoomEnable: a.config.zoomEnable,
375
381
  rotateEnable: a.config.rotateEnable
376
- }), a.config.plugin.scale.visible ? b.value.show() : b.value.hide(), a.config.plugin.toolBar.visible ? v.value.show() : v.value.hide(), a.config.plugin.controlBar.visible ? f.value.show() : f.value.hide();
377
- }, R = () => {
378
- r.value.clearMap(), n.value.clear(), S(c.value);
379
- }, V = (a) => {
380
- r.value.setMapStyle(a.config.mapStyle);
382
+ }), a.config.plugin.scale.visible ? h.value.show() : h.value.hide(), a.config.plugin.toolBar.visible ? b.value.show() : b.value.hide(), a.config.plugin.controlBar.visible ? v.value.show() : v.value.hide();
383
+ }, V = () => {
384
+ r.value.clearMap(), c.value.clear(), x(d.value);
381
385
  }, U = (a) => {
382
- r.value.setZoom(a.config.zoom, !1, 200);
386
+ r.value.setMapStyle(a.config.mapStyle);
383
387
  }, q = (a) => {
388
+ r.value.setZoom(a.config.zoom, !1, 200);
389
+ }, K = (a) => {
384
390
  r.value.setCenter(a.config.center, !1, 200);
385
- }, O = () => {
386
- r.value && (r.value.clearMap(), r.value.destroy(), r.value = null, n.value && (n.value.clear(), n.value.destroy(), n.value = null));
391
+ }, L = () => {
392
+ r.value && (r.value.clearMap(), r.value.destroy(), r.value = null, c.value && (c.value.clear(), c.value.destroy(), c.value = null));
387
393
  };
388
394
  return ae(() => {
389
395
  setTimeout(() => {
390
- C(o.basicOption);
396
+ S(o.basicOption);
391
397
  }, 0);
392
- }), te(() => O()), {
393
- initAMap2d: C,
394
- updateAMapStyle: V,
395
- updateAMapConfig: j,
396
- updateAMapComponents: R,
397
- updateAMapZoom: U,
398
- updateAMapCenter: q,
398
+ }), te(() => L()), {
399
+ initAMap2d: S,
400
+ updateAMapStyle: U,
401
+ updateAMapConfig: R,
402
+ updateAMapComponents: V,
403
+ updateAMapZoom: q,
404
+ updateAMapCenter: K,
399
405
  amap2d: r,
400
- loading: w,
401
- AMapPrototype: c
406
+ loading: C,
407
+ AMapPrototype: d
402
408
  };
403
409
  }, {
404
- initAMap2d: h,
405
- updateAMapStyle: B,
406
- updateAMapConfig: z,
407
- updateAMapComponents: W,
408
- updateAMapZoom: _,
409
- updateAMapCenter: D,
410
- loading: T
411
- } = A();
410
+ initAMap2d: f,
411
+ updateAMapStyle: W,
412
+ updateAMapConfig: w,
413
+ updateAMapComponents: _,
414
+ updateAMapZoom: D,
415
+ updateAMapCenter: T,
416
+ loading: J
417
+ } = B();
412
418
  return u(() => o.basicOption.config, () => {
413
- z(o.basicOption);
419
+ w(o.basicOption);
414
420
  }, { deep: !0 }), u(() => o.basicOption.config.zoom, () => {
415
- _(o.basicOption);
416
- }, { deep: !0 }), u(() => o.basicOption.config.center, () => {
417
421
  D(o.basicOption);
422
+ }, { deep: !0 }), u(() => o.basicOption.config.center, () => {
423
+ T(o.basicOption);
418
424
  }, { deep: !0 }), u(() => o.basicOption.widgets, () => {
419
- W();
425
+ _();
420
426
  }, { deep: !0 }), u(() => o.basicOption.config.mapStyle, () => {
421
- B(o.basicOption);
427
+ W(o.basicOption);
422
428
  }, { deep: !0 }), u(() => o.basicOption.basic, () => {
423
- h(o.basicOption);
429
+ f(o.basicOption);
424
430
  }, { deep: !0 }), u(() => o.sources, () => {
425
- h(o.basicOption);
426
- }, { deep: !0 }), M({
427
- refresh: () => h(o.basicOption),
428
- refreshView: () => z(o.basicOption),
429
- refreshData: () => z(o.basicOption)
430
- }), (r, n) => (Y(), X("div", {
431
- class: $(["amap-2d-wrap", { show: ee(T) }])
431
+ f(o.basicOption);
432
+ }, { deep: !0 }), I({
433
+ refresh: () => f(o.basicOption),
434
+ refreshView: () => w(o.basicOption),
435
+ refreshData: () => f(o.basicOption)
436
+ }), (r, c) => (Y(), X("div", {
437
+ class: $(["amap-2d-wrap", { show: ee(J) }])
432
438
  }, ye, 2));
433
439
  }
434
440
  });
@@ -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 c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ee406fec"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-49f67c20"]]);
5
5
  export {
6
- c as default
6
+ f as default
7
7
  };