@phila/phila-ui-map-core 1.0.1-beta.6 → 1.0.1-beta.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/dist/{CyclomediaCameraIcon-BZpg16sE.cjs → CyclomediaCameraIcon-DZL1Xs5T.cjs} +1 -1
- package/dist/{CyclomediaCameraIcon-Drhv6G50.js → CyclomediaCameraIcon-DyPwpFc8.js} +1 -1
- package/dist/CyclomediaRecordingsLayer-CguQKvj1.js +4 -0
- package/dist/{CyclomediaRecordingsLayer-D04Q2FBu.cjs → CyclomediaRecordingsLayer-DcC8K46C.cjs} +1 -1
- package/dist/{CyclomediaViewcone-DG6xkQSr.js → CyclomediaViewcone-C2LahiKd.js} +1 -1
- package/dist/{CyclomediaViewcone-DvubIprW.cjs → CyclomediaViewcone-CF0xRuK-.cjs} +1 -1
- package/dist/{PictometryPanel-Y4rO0d4R.js → PictometryPanel-BYMErsa9.js} +11226 -11167
- package/dist/{PictometryPanel-6pvRJItM.cjs → PictometryPanel-NWZ2m-qA.cjs} +135 -135
- package/dist/assets/phila-ui-map-core.css +1 -1
- package/dist/components.d.ts +43 -28
- package/dist/components.js +1 -1
- package/dist/components.mjs +2 -2
- package/dist/composables.d.ts +9 -29
- package/dist/composables.js +1 -1
- package/dist/composables.mjs +1 -1
- package/dist/index.d.ts +43 -28
- package/dist/index.js +1 -1
- package/dist/index.mjs +2 -2
- package/dist/useMapControl-BsuTq6k_.js +24 -0
- package/dist/useMapControl-CQEU6ZEn.cjs +1 -0
- package/package.json +1 -1
- package/dist/CyclomediaRecordingsLayer-OdTandXS.js +0 -4
- package/dist/useMapControl-CLsqbbTQ.js +0 -35
- package/dist/useMapControl-DEFMi86p.cjs +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as o, o as s, f as r, C as t, r as l, s as i, l as c, d as n, n as y, e as m, M as p, m as d, k as u, a as P, i as g, _ as L, j as C, c as M, q as f, b as B, P as S, w as b, u as T, t as x, v as h, h as k, g as v, B as q, D as w, F as A, E as D, z as F, H as G, J as I, I as O, G as R, y as j, x as z, A as E } from "./PictometryPanel-
|
|
2
|
-
import { u as J } from "./useMapControl-
|
|
1
|
+
import { p as o, o as s, f as r, C as t, r as l, s as i, l as c, d as n, n as y, e as m, M as p, m as d, k as u, a as P, i as g, _ as L, j as C, c as M, q as f, b as B, P as S, w as b, u as T, t as x, v as h, h as k, g as v, B as q, D as w, F as A, E as D, z as F, H as G, J as I, I as O, G as R, y as j, x as z, A as E } from "./PictometryPanel-BYMErsa9.js";
|
|
2
|
+
import { u as J } from "./useMapControl-BsuTq6k_.js";
|
|
3
3
|
import { f as U, g as V, q as _ } from "./index-BXLyy2C_.js";
|
|
4
4
|
export {
|
|
5
5
|
o as BasemapDropdown,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { inject as l, watch as c, onBeforeUnmount as m } from "vue";
|
|
2
|
+
function s(t, i) {
|
|
3
|
+
const n = l("map"), r = l("isLoaded"), u = l("controlCorners");
|
|
4
|
+
let e = null, o = null;
|
|
5
|
+
c(
|
|
6
|
+
() => [r?.value, t.teleportTo, t.position],
|
|
7
|
+
() => {
|
|
8
|
+
if (!r?.value || !n?.value) return;
|
|
9
|
+
e && o && (o.remove(), e.onRemove(n.value), e = null, o = null), e = i(), o = e.onAdd(n.value);
|
|
10
|
+
const a = t.teleportTo ?? u?.[t.position ?? "top-right"]?.value;
|
|
11
|
+
a && a.prepend(o);
|
|
12
|
+
},
|
|
13
|
+
{ immediate: !0 }
|
|
14
|
+
), m(() => {
|
|
15
|
+
if (o && o.remove(), e)
|
|
16
|
+
try {
|
|
17
|
+
e.onRemove(n.value);
|
|
18
|
+
} catch {
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
s as u
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("vue");function c(n,u){const l=t.inject("map"),r=t.inject("isLoaded"),a=t.inject("controlCorners");let e=null,o=null;t.watch(()=>[r?.value,n.teleportTo,n.position],()=>{if(!r?.value||!l?.value)return;e&&o&&(o.remove(),e.onRemove(l.value),e=null,o=null),e=u(),o=e.onAdd(l.value);const i=n.teleportTo??a?.[n.position??"top-right"]?.value;i&&i.prepend(o)},{immediate:!0}),t.onBeforeUnmount(()=>{if(o&&o.remove(),e)try{e.onRemove(l.value)}catch{}})}exports.useMapControl=c;
|
package/package.json
CHANGED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { inject as o, watch as n, onBeforeUnmount as d } from "vue";
|
|
2
|
-
function v(a, u) {
|
|
3
|
-
const t = o("map"), f = o("isLoaded");
|
|
4
|
-
let e = null;
|
|
5
|
-
n(
|
|
6
|
-
// Watch both isLoaded and the container ref (if it's a ref)
|
|
7
|
-
() => [f?.value, typeof u != "function" ? u.value : !0],
|
|
8
|
-
([i, l]) => {
|
|
9
|
-
if (!(!i || !t?.value || e)) {
|
|
10
|
-
if (typeof u != "function") {
|
|
11
|
-
if (!l) return;
|
|
12
|
-
e = {
|
|
13
|
-
onAdd() {
|
|
14
|
-
return u.value;
|
|
15
|
-
},
|
|
16
|
-
onRemove() {
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
} else
|
|
20
|
-
e = u();
|
|
21
|
-
t.value.addControl(e, a.position);
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
{ immediate: !0 }
|
|
25
|
-
), d(() => {
|
|
26
|
-
if (t?.value && e)
|
|
27
|
-
try {
|
|
28
|
-
t.value.removeControl(e);
|
|
29
|
-
} catch {
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
export {
|
|
34
|
-
v as u
|
|
35
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("vue");function s(n,u){const t=o.inject("map"),a=o.inject("isLoaded");let e=null;o.watch(()=>[a?.value,typeof u!="function"?u.value:!0],([i,l])=>{if(!(!i||!t?.value||e)){if(typeof u!="function"){if(!l)return;e={onAdd(){return u.value},onRemove(){}}}else e=u();t.value.addControl(e,n.position)}},{immediate:!0}),o.onBeforeUnmount(()=>{if(t?.value&&e)try{t.value.removeControl(e)}catch{}})}exports.useMapControl=s;
|