@shjjs/visual-ui 2.0.6 → 2.0.7
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/es/commons/plugins/datasource/utils/utils.mjs +5 -5
- package/es/components/Scene/components/Amap2d/index.vue.mjs +2 -2
- package/es/components/Scene/components/Amap2d/index.vue2.mjs +114 -103
- package/es/components/Scene/components/Amap3d/index.vue.mjs +2 -2
- package/es/components/Scene/components/Amap3d/index.vue2.mjs +188 -176
- package/es/components/Scene/components/Map3d/index.vue.mjs +2 -2
- package/es/components/Scene/components/Map3d/index.vue2.mjs +133 -132
- package/es/packages/components/Scene/components/Amap2d/index.vue.d.ts +2 -0
- package/es/packages/components/Scene/components/Amap3d/index.vue.d.ts +1 -0
- package/es/packages/components/Scene/components/Map3d/index.vue.d.ts +1 -1
- package/es/widgets.css +1 -1
- package/package.json +1 -1
- package/umd/index.js +567 -567
- package/umd/widgets.css +1 -1
|
@@ -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
|
|
5
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-03cb3209"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
_ as default
|
|
8
8
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { cloneDeep as v, isEqual as
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as P, computed as F, ref as f, onMounted as Q, onBeforeUnmount as X, watch as S, createElementBlock as u, openBlock as d, createElementVNode as B, normalizeClass as A, createCommentVNode as L, normalizeStyle as h, Fragment as O, renderList as z, toDisplayString as j, unref as Y } from "vue";
|
|
2
|
+
import { cloneDeep as v, isEqual as E } from "lodash";
|
|
3
|
+
import $ from "gsap";
|
|
4
4
|
import { useFps as Z } from "@vueuse/core";
|
|
5
5
|
import { World as _ } from "./utils/map.mjs";
|
|
6
6
|
import { initWatch as ee } from "./watch.mjs";
|
|
@@ -168,14 +168,14 @@ import "../UnityWebgl/index.mjs";
|
|
|
168
168
|
import "../Vr/index.mjs";
|
|
169
169
|
import "../Earth/index.mjs";
|
|
170
170
|
import { SHJDatasourceV2 as oe } from "../../../../commons/plugins/datasource/index.mjs";
|
|
171
|
-
import { SHJParseEvent as
|
|
171
|
+
import { SHJParseEvent as s } from "../../../../commons/plugins/event/index.mjs";
|
|
172
172
|
import { upgradeMap3d as re } from "./version.mjs";
|
|
173
173
|
import { Utils as b } from "../../../../commons/utils/utils.mjs";
|
|
174
|
-
const ae = { class: "value" },
|
|
174
|
+
const ae = { style: { width: "100%", height: "100%" } }, le = { class: "value" }, ie = ["onClick"], ne = {
|
|
175
175
|
key: 3,
|
|
176
176
|
class: "fps"
|
|
177
|
-
},
|
|
178
|
-
...
|
|
177
|
+
}, ce = P({ name: "ShjMap3d" }), Sr = /* @__PURE__ */ P({
|
|
178
|
+
...ce,
|
|
179
179
|
props: {
|
|
180
180
|
option: {},
|
|
181
181
|
sources: {},
|
|
@@ -194,8 +194,8 @@ const ae = { class: "value" }, le = ["onClick"], ie = {
|
|
|
194
194
|
"on-return",
|
|
195
195
|
"on-data-change"
|
|
196
196
|
],
|
|
197
|
-
setup(l, { expose:
|
|
198
|
-
const a = F(() => re(l.option)), p = V, r =
|
|
197
|
+
setup(l, { expose: T, emit: V }) {
|
|
198
|
+
const a = F(() => re(l.option)), p = V, r = f(), x = f(!1), H = f(!1), w = "zerov-map3d-scene", C = f(), i = new te(), g = f(!1), k = (e = !0) => {
|
|
199
199
|
r.value.cleanAllBar(), r.value.cleanAllScatter(), r.value.cleanAllFlyLine(), r.value.createAllRegionalLevel(), l.sources && l.sources.length > 0 && a.value.widgets.forEach((o, t) => {
|
|
200
200
|
oe.parse({
|
|
201
201
|
sources: [l.sources[t]],
|
|
@@ -216,85 +216,83 @@ const ae = { class: "value" }, le = ["onClick"], ie = {
|
|
|
216
216
|
n.data[0].data,
|
|
217
217
|
!0,
|
|
218
218
|
e
|
|
219
|
-
), e && (r.value.createBarTimeLine(), r.value.createScatterTimeLine(), r.value.createFlyLineTimeLine(), r.value.createRegionalLevelTimeLine()), p("on-data-change", n),
|
|
219
|
+
), e && (r.value.createBarTimeLine(), r.value.createScatterTimeLine(), r.value.createFlyLineTimeLine(), r.value.createRegionalLevelTimeLine()), p("on-data-change", n), s.parseEvents(l.useEvents, "on-data-change", n);
|
|
220
220
|
} catch {
|
|
221
|
-
p("on-data-change", null),
|
|
221
|
+
p("on-data-change", null), s.parseEvents(l.useEvents, "on-data-change", null);
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
});
|
|
225
225
|
});
|
|
226
226
|
}, N = () => {
|
|
227
227
|
try {
|
|
228
|
-
document.getElementById(w) &&
|
|
228
|
+
C.value && document.getElementById(w) && C.value.removeChild(document.getElementById(w));
|
|
229
229
|
const e = document.createElement("canvas");
|
|
230
|
-
e.id = w, e.className = "zerov-map-3d", e.style.width = "100%", e.style.height = "100%",
|
|
230
|
+
e.id = w, e.className = "zerov-map-3d", e.style.width = "100%", e.style.height = "100%", C.value.appendChild(e);
|
|
231
231
|
} catch {
|
|
232
232
|
}
|
|
233
|
-
},
|
|
233
|
+
}, y = (e) => (x.value = !1, H.value = !1, r.value && (r.value.destroy(), r.value = null), N(), new _(
|
|
234
234
|
document.getElementById(w),
|
|
235
235
|
{ geoProjectionCenter: [108.55, 36.32] },
|
|
236
236
|
e,
|
|
237
237
|
{
|
|
238
238
|
onAreaMouseover: (t) => {
|
|
239
|
-
p("on-area-mouseover", t),
|
|
239
|
+
p("on-area-mouseover", t), s.parseEvents(l.useEvents, "on-area-mouseover", t);
|
|
240
240
|
},
|
|
241
241
|
onAreaMouseout: (t) => {
|
|
242
|
-
p("on-area-mouseout", t),
|
|
242
|
+
p("on-area-mouseout", t), s.parseEvents(l.useEvents, "on-area-mouseout", t);
|
|
243
243
|
},
|
|
244
244
|
onLoadChild: (t) => {
|
|
245
|
-
if (p("on-area-click", t),
|
|
246
|
-
p("on-drill-down", t),
|
|
245
|
+
if (p("on-area-click", t), s.parseEvents(l.useEvents, "on-area-click", t), t.adcode !== i.present && e.scene.isDrilling && e.scene.defaultMapAdcode !== 1) {
|
|
246
|
+
p("on-drill-down", t), s.parseEvents(l.useEvents, "on-drill-down", t);
|
|
247
247
|
const n = v(e);
|
|
248
|
-
n.scene.defaultMapAdcode = t.adcode, r.value =
|
|
248
|
+
n.scene.defaultMapAdcode = t.adcode, r.value = y(n), i.push(t.adcode), i.past.length <= 0 ? g.value = !1 : g.value = !0;
|
|
249
249
|
}
|
|
250
250
|
},
|
|
251
251
|
onMapSuccess: () => {
|
|
252
|
-
|
|
252
|
+
x.value = !0, p("on-loaded"), s.parseEvents(l.useEvents, "on-loaded", null);
|
|
253
253
|
},
|
|
254
254
|
onMapAnimationSuccess: () => {
|
|
255
|
-
k(),
|
|
255
|
+
k(), H.value = !0, p("on-animated"), s.parseEvents(l.useEvents, "on-animated", null);
|
|
256
256
|
},
|
|
257
257
|
onClickBar: (t) => {
|
|
258
|
-
p("on-bar-click", t),
|
|
258
|
+
p("on-bar-click", t), s.parseEvents(l.useEvents, "on-bar-click", t);
|
|
259
259
|
},
|
|
260
260
|
onClickScatter: (t) => {
|
|
261
|
-
p("on-scatter-click", t),
|
|
261
|
+
p("on-scatter-click", t), s.parseEvents(l.useEvents, "on-scatter-click", t);
|
|
262
262
|
},
|
|
263
263
|
onClickFlyline: (t) => {
|
|
264
|
-
p("on-flyline-click", t),
|
|
264
|
+
p("on-flyline-click", t), s.parseEvents(l.useEvents, "on-flyline-click", t);
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
));
|
|
268
268
|
Q(() => {
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
);
|
|
277
|
-
}, 0), window.addEventListener("resize", () => {
|
|
278
|
-
r.value = f(a.value);
|
|
269
|
+
r.value = y(a.value), i.push(a.value.scene.defaultMapAdcode), ee(
|
|
270
|
+
{ option: a.value, sources: l.sources, useEvents: l.useEvents },
|
|
271
|
+
r,
|
|
272
|
+
y,
|
|
273
|
+
k,
|
|
274
|
+
U
|
|
275
|
+
), window.addEventListener("resize", () => {
|
|
276
|
+
r.value = y(a.value);
|
|
279
277
|
});
|
|
280
278
|
}), X(() => {
|
|
281
279
|
r.value && r.value.destroy();
|
|
282
280
|
});
|
|
283
|
-
const
|
|
281
|
+
const I = () => {
|
|
284
282
|
p("on-return", {
|
|
285
283
|
parentAdcode: i.past[i.past.length - 1],
|
|
286
284
|
adcode: i.present
|
|
287
|
-
}),
|
|
285
|
+
}), s.parseEvents(l.useEvents, "on-return", {
|
|
288
286
|
parentAdcode: i.past[i.past.length - 1],
|
|
289
287
|
adcode: i.present
|
|
290
288
|
}), i.undo();
|
|
291
289
|
const e = v(a.value);
|
|
292
|
-
e.scene.defaultMapAdcode = i.present, r.value =
|
|
290
|
+
e.scene.defaultMapAdcode = i.present, r.value = y(e), i.past.length <= 0 ? g.value = !1 : g.value = !0;
|
|
293
291
|
}, U = () => {
|
|
294
|
-
i.empty(), i.push(a.value.scene.defaultMapAdcode), r.value =
|
|
292
|
+
i.empty(), i.push(a.value.scene.defaultMapAdcode), r.value = y(a.value), i.past.length <= 0 ? g.value = !1 : g.value = !0;
|
|
295
293
|
}, D = (e, o, t) => {
|
|
296
|
-
|
|
297
|
-
|
|
294
|
+
$.timeline().add(
|
|
295
|
+
$.to(r.value.camera.instance.position, {
|
|
298
296
|
duration: 2,
|
|
299
297
|
delay: 0,
|
|
300
298
|
x: e,
|
|
@@ -304,16 +302,16 @@ const ae = { class: "value" }, le = ["onClick"], ie = {
|
|
|
304
302
|
})
|
|
305
303
|
);
|
|
306
304
|
};
|
|
307
|
-
|
|
305
|
+
T({
|
|
308
306
|
refresh: () => k(),
|
|
309
307
|
refreshView: () => k(),
|
|
310
308
|
refreshData: () => k(),
|
|
311
309
|
// 返回上一级
|
|
312
|
-
goBack: () =>
|
|
310
|
+
goBack: () => I(),
|
|
313
311
|
// 更新相机位置
|
|
314
312
|
setCameraPosition: (e, o, t) => D(e, o, t)
|
|
315
313
|
});
|
|
316
|
-
const J = Z(), M =
|
|
314
|
+
const J = Z(), M = f(), q = (e) => {
|
|
317
315
|
if (M.value && e) {
|
|
318
316
|
const o = `url(${e.backgroundImage})`;
|
|
319
317
|
return {
|
|
@@ -326,9 +324,9 @@ const ae = { class: "value" }, le = ["onClick"], ie = {
|
|
|
326
324
|
};
|
|
327
325
|
}
|
|
328
326
|
return {};
|
|
329
|
-
},
|
|
327
|
+
}, m = f(v(a.value.widgets)), c = F(() => {
|
|
330
328
|
try {
|
|
331
|
-
const e =
|
|
329
|
+
const e = m.value.filter(
|
|
332
330
|
(o) => o.type === "regionalLevel"
|
|
333
331
|
);
|
|
334
332
|
return e.length > 0 ? e[0].isHide ? null : e[0] : null;
|
|
@@ -336,22 +334,22 @@ const ae = { class: "value" }, le = ["onClick"], ie = {
|
|
|
336
334
|
return null;
|
|
337
335
|
}
|
|
338
336
|
});
|
|
339
|
-
|
|
337
|
+
S(
|
|
340
338
|
() => v(a.value.widgets),
|
|
341
339
|
(e, o) => {
|
|
342
340
|
try {
|
|
343
|
-
!
|
|
341
|
+
!E(e, o) && r.value && (m.value = v(a.value.widgets));
|
|
344
342
|
} catch {
|
|
345
343
|
}
|
|
346
344
|
},
|
|
347
345
|
{
|
|
348
346
|
deep: !0
|
|
349
347
|
}
|
|
350
|
-
),
|
|
351
|
-
() => v(
|
|
348
|
+
), S(
|
|
349
|
+
() => v(m.value.filter((e) => e.type === "bar")),
|
|
352
350
|
(e, o) => {
|
|
353
351
|
try {
|
|
354
|
-
!
|
|
352
|
+
!E(e, o) && r.value && e.length === o.length && e.forEach((t) => {
|
|
355
353
|
r.value.createBar(t, void 0, !1);
|
|
356
354
|
});
|
|
357
355
|
} catch {
|
|
@@ -360,11 +358,11 @@ const ae = { class: "value" }, le = ["onClick"], ie = {
|
|
|
360
358
|
{
|
|
361
359
|
deep: !0
|
|
362
360
|
}
|
|
363
|
-
),
|
|
364
|
-
() => v(
|
|
361
|
+
), S(
|
|
362
|
+
() => v(m.value.filter((e) => e.type === "scatter")),
|
|
365
363
|
(e, o) => {
|
|
366
364
|
try {
|
|
367
|
-
!
|
|
365
|
+
!E(e, o) && r.value && e.length === o.length && e.forEach((t) => {
|
|
368
366
|
r.value.createScatter(t, void 0, !1);
|
|
369
367
|
});
|
|
370
368
|
} catch {
|
|
@@ -373,11 +371,11 @@ const ae = { class: "value" }, le = ["onClick"], ie = {
|
|
|
373
371
|
{
|
|
374
372
|
deep: !0
|
|
375
373
|
}
|
|
376
|
-
),
|
|
377
|
-
() => v(
|
|
374
|
+
), S(
|
|
375
|
+
() => v(m.value.filter((e) => e.type === "flyline")),
|
|
378
376
|
(e, o) => {
|
|
379
377
|
try {
|
|
380
|
-
!
|
|
378
|
+
!E(e, o) && r.value && e.length === o.length && e.forEach((t) => {
|
|
381
379
|
r.value.createFlyLine(t, void 0, !1);
|
|
382
380
|
});
|
|
383
381
|
} catch {
|
|
@@ -386,11 +384,11 @@ const ae = { class: "value" }, le = ["onClick"], ie = {
|
|
|
386
384
|
{
|
|
387
385
|
deep: !0
|
|
388
386
|
}
|
|
389
|
-
),
|
|
390
|
-
() => v(
|
|
387
|
+
), S(
|
|
388
|
+
() => v(m.value.filter((e) => e.type === "regionalLevel")),
|
|
391
389
|
(e, o) => {
|
|
392
390
|
try {
|
|
393
|
-
!
|
|
391
|
+
!E(e, o) && r.value && e.length === o.length && e.forEach((t) => {
|
|
394
392
|
r.value.createRegionalLevel(t, void 0, !1);
|
|
395
393
|
});
|
|
396
394
|
} catch {
|
|
@@ -407,12 +405,12 @@ const ae = { class: "value" }, le = ["onClick"], ie = {
|
|
|
407
405
|
}
|
|
408
406
|
}, K = () => {
|
|
409
407
|
try {
|
|
410
|
-
const e =
|
|
411
|
-
|
|
408
|
+
const e = m.value.every((o) => !o.isHide);
|
|
409
|
+
m.value.forEach((o) => o.isHide = e);
|
|
412
410
|
} catch {
|
|
413
411
|
}
|
|
414
412
|
}, W = (e) => {
|
|
415
|
-
const o = `url(${e.backgroundImage})`, t = `url(${
|
|
413
|
+
const o = `url(${e.backgroundImage})`, t = `url(${R(e.hover.backgroundImage)})`, n = `url(${R(e.active.backgroundImage)})`;
|
|
416
414
|
return {
|
|
417
415
|
...b.json2cssObject(e),
|
|
418
416
|
...b.json2cssObject(e.hover, "hover"),
|
|
@@ -421,79 +419,82 @@ const ae = { class: "value" }, le = ["onClick"], ie = {
|
|
|
421
419
|
"--hover-background-image": t,
|
|
422
420
|
"--active-background-image": n
|
|
423
421
|
};
|
|
424
|
-
},
|
|
425
|
-
return (e, o) => (d(), u("div",
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
key: 0,
|
|
431
|
-
ref_key: "buttonRef",
|
|
432
|
-
ref: M,
|
|
433
|
-
class: "return-btn",
|
|
434
|
-
style: h(q(a.value.backButton)),
|
|
435
|
-
onClick: A
|
|
436
|
-
}, " 返回上一级 ", 4)) : C("", !0),
|
|
437
|
-
c.value ? (d(), u("div", {
|
|
438
|
-
key: 1,
|
|
439
|
-
class: "regional-level",
|
|
440
|
-
style: h({
|
|
441
|
-
left: c.value.labelStyle.left + "%",
|
|
442
|
-
top: c.value.labelStyle.top + "%",
|
|
443
|
-
flexDirection: c.value.labelStyle.direction,
|
|
444
|
-
gap: c.value.labelStyle.gap + "px",
|
|
445
|
-
fontSize: c.value.labelStyle.fontSize + "px",
|
|
446
|
-
fontFamily: c.value.labelStyle.fontFamily,
|
|
447
|
-
fontStyle: c.value.labelStyle.fontStyle,
|
|
448
|
-
color: c.value.labelStyle.color,
|
|
449
|
-
"--color-width": c.value.labelStyle.colorStyle.width + "px",
|
|
450
|
-
"--color-height": c.value.labelStyle.colorStyle.height + "px",
|
|
451
|
-
"--color-borderRadius": c.value.labelStyle.colorStyle.borderRadius + "px"
|
|
452
|
-
})
|
|
422
|
+
}, R = (e) => !e.startsWith("http") && !e.startsWith("//") ? "../" + e : e;
|
|
423
|
+
return (e, o) => (d(), u("div", ae, [
|
|
424
|
+
B("div", {
|
|
425
|
+
ref_key: "map3dWrapRef",
|
|
426
|
+
ref: C,
|
|
427
|
+
class: A(["map-3d-wrap", { show: x.value }])
|
|
453
428
|
}, [
|
|
454
|
-
|
|
455
|
-
key:
|
|
456
|
-
|
|
429
|
+
H.value && g.value && a.value.backButton.show ? (d(), u("div", {
|
|
430
|
+
key: 0,
|
|
431
|
+
ref_key: "buttonRef",
|
|
432
|
+
ref: M,
|
|
433
|
+
class: "return-btn",
|
|
434
|
+
style: h(q(a.value.backButton)),
|
|
435
|
+
onClick: I
|
|
436
|
+
}, " 返回上一级 ", 4)) : L("", !0),
|
|
437
|
+
c.value ? (d(), u("div", {
|
|
438
|
+
key: 1,
|
|
439
|
+
class: "regional-level",
|
|
440
|
+
style: h({
|
|
441
|
+
left: c.value.labelStyle.left + "%",
|
|
442
|
+
top: c.value.labelStyle.top + "%",
|
|
443
|
+
flexDirection: c.value.labelStyle.direction,
|
|
444
|
+
gap: c.value.labelStyle.gap + "px",
|
|
445
|
+
fontSize: c.value.labelStyle.fontSize + "px",
|
|
446
|
+
fontFamily: c.value.labelStyle.fontFamily,
|
|
447
|
+
fontStyle: c.value.labelStyle.fontStyle,
|
|
448
|
+
color: c.value.labelStyle.color,
|
|
449
|
+
"--color-width": c.value.labelStyle.colorStyle.width + "px",
|
|
450
|
+
"--color-height": c.value.labelStyle.colorStyle.height + "px",
|
|
451
|
+
"--color-borderRadius": c.value.labelStyle.colorStyle.borderRadius + "px"
|
|
452
|
+
})
|
|
457
453
|
}, [
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
},
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
454
|
+
(d(!0), u(O, null, z(c.value.rules, (t, n) => (d(), u("div", {
|
|
455
|
+
key: n,
|
|
456
|
+
class: "item"
|
|
457
|
+
}, [
|
|
458
|
+
B("div", {
|
|
459
|
+
class: "color",
|
|
460
|
+
style: h({ backgroundColor: t.color })
|
|
461
|
+
}, null, 4),
|
|
462
|
+
B("span", le, j(t.label), 1)
|
|
463
|
+
]))), 128))
|
|
464
|
+
], 4)) : L("", !0),
|
|
465
|
+
a.value.widgets.length > 0 && a.value.widgetControlStyle && a.value.widgetControlStyle.show ? (d(), u("div", {
|
|
466
|
+
key: 2,
|
|
467
|
+
class: "widget-control",
|
|
468
|
+
style: h({
|
|
469
|
+
left: a.value.widgetControlStyle.left + "%",
|
|
470
|
+
top: a.value.widgetControlStyle.top + "%",
|
|
471
|
+
flexDirection: a.value.widgetControlStyle.direction,
|
|
472
|
+
gap: a.value.widgetControlStyle.gap + "px",
|
|
473
|
+
"--widget-width": a.value.widgetControlStyle.width + "px",
|
|
474
|
+
"--widget-height": a.value.widgetControlStyle.height + "px"
|
|
475
|
+
})
|
|
476
|
+
}, [
|
|
477
|
+
B("div", {
|
|
478
|
+
class: A(["control-button", {
|
|
479
|
+
active: m.value.every((t) => !t.isHide)
|
|
480
|
+
}]),
|
|
481
|
+
style: h(W(a.value.widgetControlStyle)),
|
|
482
|
+
onClick: K
|
|
483
|
+
}, j(m.value.every((t) => !t.isHide) ? "隐藏" : "显示") + "/全部 ", 7),
|
|
484
|
+
(d(!0), u(O, null, z(m.value, (t) => (d(), u("div", {
|
|
485
|
+
key: t.id,
|
|
486
|
+
class: A(["control-button", {
|
|
487
|
+
active: !t.isHide
|
|
488
|
+
}]),
|
|
489
|
+
style: h(W(a.value.widgetControlStyle)),
|
|
490
|
+
onClick: (n) => G(t)
|
|
491
|
+
}, j(t.name || "-"), 15, ie))), 128))
|
|
492
|
+
], 4)) : L("", !0),
|
|
493
|
+
a.value.debugger ? (d(), u("div", ne, "fps:" + j(Y(J)), 1)) : L("", !0)
|
|
494
|
+
], 2)
|
|
495
|
+
]));
|
|
495
496
|
}
|
|
496
497
|
});
|
|
497
498
|
export {
|
|
498
|
-
|
|
499
|
+
Sr as default
|
|
499
500
|
};
|
|
@@ -14,10 +14,12 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
14
14
|
};
|
|
15
15
|
}>, {
|
|
16
16
|
option: import("vue").ComputedRef<IAmap2dOption>;
|
|
17
|
+
hasKeyAndSec: import("vue").ComputedRef<boolean>;
|
|
17
18
|
emit: (event: "amap2d-scene-success" | "amap2d-scene-zoomstart" | "amap2d-scene-zoomend" | "amap2d-scene-mapclick" | "amap2d-scene-dragstart" | "amap2d-scene-dragging" | "amap2d-scene-dragend", ...args: any[]) => void;
|
|
18
19
|
amap2d: import("vue").ShallowRef<any, any>;
|
|
19
20
|
amapLoca: import("vue").ShallowRef<any, any>;
|
|
20
21
|
loading: import("vue").Ref<boolean, boolean>;
|
|
22
|
+
amap2dContainer: import("vue").Ref<any, any>;
|
|
21
23
|
controlBar: import("vue").Ref<any, any>;
|
|
22
24
|
toolBar: import("vue").Ref<any, any>;
|
|
23
25
|
scale: import("vue").Ref<any, any>;
|
|
@@ -14,6 +14,7 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
14
14
|
};
|
|
15
15
|
}>, {
|
|
16
16
|
option: import("vue").ComputedRef<IAmap3dOption>;
|
|
17
|
+
hasKeyAndSec: import("vue").ComputedRef<boolean>;
|
|
17
18
|
emit: (event: "amap3d-scene-success" | "amap3d-scene-zoomstart" | "amap3d-scene-zoomend" | "amap3d-scene-mapclick" | "amap3d-scene-dragstart" | "amap3d-scene-dragging" | "amap3d-scene-dragend" | "amap3d-scene-pulseLinkLayer", ...args: any[]) => void;
|
|
18
19
|
useAMap3d: () => {
|
|
19
20
|
initAMap3d: (option: any) => void;
|
|
@@ -20,7 +20,7 @@ declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
20
20
|
loading: import("vue").Ref<boolean, boolean>;
|
|
21
21
|
loading2: import("vue").Ref<boolean, boolean>;
|
|
22
22
|
canvasId: string;
|
|
23
|
-
|
|
23
|
+
map3dWrapRef: import("vue").Ref<HTMLDivElement, HTMLDivElement>;
|
|
24
24
|
history: any;
|
|
25
25
|
goBackShow: import("vue").Ref<boolean, boolean>;
|
|
26
26
|
initData: (isAnimation?: boolean) => void;
|