@eyeon/map 2.0.39 → 2.0.43

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 (50) hide show
  1. package/dist/assets/MapViewer.css +1 -1
  2. package/dist/assets/index.css +1 -1
  3. package/dist/chunks/MapViewer.js +3317 -2824
  4. package/dist/chunks/MapViewer.js.map +1 -1
  5. package/dist/chunks/responsive.js +1903 -1685
  6. package/dist/chunks/responsive.js.map +1 -1
  7. package/dist/chunks/wheelZoom.js +37 -37
  8. package/dist/core/hostChrome.d.ts +7 -4
  9. package/dist/core/hostChrome.d.ts.map +1 -1
  10. package/dist/core/index.d.ts +1 -0
  11. package/dist/core/index.d.ts.map +1 -1
  12. package/dist/core/index.js +254 -239
  13. package/dist/core/routing/pathfinding.d.ts +7 -1
  14. package/dist/core/routing/pathfinding.d.ts.map +1 -1
  15. package/dist/core/types.d.ts +7 -0
  16. package/dist/core/types.d.ts.map +1 -1
  17. package/dist/core/verticalTransport.d.ts +37 -0
  18. package/dist/core/verticalTransport.d.ts.map +1 -0
  19. package/dist/core/websiteModal.d.ts +95 -7
  20. package/dist/core/websiteModal.d.ts.map +1 -1
  21. package/dist/editor/MapEditor.d.ts.map +1 -1
  22. package/dist/editor/connectorAssignments.d.ts +42 -5
  23. package/dist/editor/connectorAssignments.d.ts.map +1 -1
  24. package/dist/editor/index.css +703 -150
  25. package/dist/editor/index.js +4544 -4239
  26. package/dist/editor/index.js.map +1 -1
  27. package/dist/editor/labels.d.ts +21 -5
  28. package/dist/editor/labels.d.ts.map +1 -1
  29. package/dist/editor/panels/ConnectorAssign.d.ts +3 -1
  30. package/dist/editor/panels/ConnectorAssign.d.ts.map +1 -1
  31. package/dist/editor/panels/FloorsPanel.d.ts.map +1 -1
  32. package/dist/editor/panels/Inspector.d.ts +8 -3
  33. package/dist/editor/panels/Inspector.d.ts.map +1 -1
  34. package/dist/editor/panels/LeftRail.d.ts.map +1 -1
  35. package/dist/viewer/MapViewer.d.ts +7 -0
  36. package/dist/viewer/MapViewer.d.ts.map +1 -1
  37. package/dist/viewer/camera.d.ts +21 -0
  38. package/dist/viewer/camera.d.ts.map +1 -1
  39. package/dist/viewer/components/CameraRig.d.ts +6 -1
  40. package/dist/viewer/components/CameraRig.d.ts.map +1 -1
  41. package/dist/viewer/components/MapScene.d.ts +3 -1
  42. package/dist/viewer/components/MapScene.d.ts.map +1 -1
  43. package/dist/viewer/index.css +599 -150
  44. package/dist/viewer/index.js +1 -1
  45. package/dist/viewer/ui/MapControls.d.ts.map +1 -1
  46. package/dist/viewer/ui/WebsiteSidebar.d.ts +50 -0
  47. package/dist/viewer/ui/WebsiteSidebar.d.ts.map +1 -0
  48. package/package.json +1 -1
  49. package/dist/viewer/ui/WebsiteInfoModal.d.ts +0 -11
  50. package/dist/viewer/ui/WebsiteInfoModal.d.ts.map +0 -1
@@ -1,10 +1,10 @@
1
- import { bI as S, b9 as w, b7 as M, b2 as L, bb as _, bX as N, aT as O, B as T, cl as $, d as y, bt as v, at as k, bN as x, bL as F, k as W } from "./responsive.js";
2
- function V(e, d, r) {
1
+ import { bK as S, bb as w, b9 as M, b4 as _, bd as L, bZ as N, aV as O, G as $, cn as F, d as y, bv as b, av as k, bP as x, bN as T, k as W } from "./responsive.js";
2
+ function Y(e, d, r) {
3
3
  var i, o, u, a;
4
4
  const c = S(e), t = [];
5
5
  for (const n of c.elements) {
6
- if (!n.d || n.interactive || d != null && d.has(n.id) || /^parking[-_]?lines?(?:[-_]|$)/i.test(n.id) || n.id.toLowerCase().startsWith("route-path") || w(n.id) || M(n.id) || L(n.id) || _(n.id)) continue;
7
- const f = N(n.id, r), I = (f == null ? void 0 : f.fill) ?? (O(n.id) ? T(r) : (i = n.style) == null ? void 0 : i.fill), l = (f == null ? void 0 : f.stroke) ?? ((o = n.style) == null ? void 0 : o.stroke), m = (f == null ? void 0 : f.strokeWidth) ?? ((u = n.style) == null ? void 0 : u.strokeWidth);
6
+ if (!n.d || n.interactive || d != null && d.has(n.id) || /^parking[-_]?lines?(?:[-_]|$)/i.test(n.id) || n.id.toLowerCase().startsWith("route-path") || w(n.id) || M(n.id) || _(n.id) || L(n.id)) continue;
7
+ const f = N(n.id, r), I = (f == null ? void 0 : f.fill) ?? (O(n.id) ? $(r) : (i = n.style) == null ? void 0 : i.fill), l = (f == null ? void 0 : f.stroke) ?? ((o = n.style) == null ? void 0 : o.stroke), m = (f == null ? void 0 : f.strokeWidth) ?? ((u = n.style) == null ? void 0 : u.strokeWidth);
8
8
  t.push({
9
9
  id: n.id,
10
10
  d: n.d,
@@ -14,7 +14,7 @@ function V(e, d, r) {
14
14
  opacity: (a = n.style) == null ? void 0 : a.opacity
15
15
  });
16
16
  }
17
- return $(t, (n) => n.id);
17
+ return F(t, (n) => n.id);
18
18
  }
19
19
  function P(e, d, r, c = y) {
20
20
  const t = e.filter((n) => r.includes(n.id));
@@ -49,7 +49,7 @@ function D(e, d = y) {
49
49
  }
50
50
  return r;
51
51
  }
52
- function R(e, d, r = y) {
52
+ function K(e, d, r = y) {
53
53
  const c = e.slice(), t = d.map((n) => ({ ...n })), i = /* @__PURE__ */ new Set();
54
54
  for (const n of D(c, r)) {
55
55
  const f = P(c, t, n, r);
@@ -64,10 +64,10 @@ function R(e, d, r = y) {
64
64
  }
65
65
  return { anchors: o, edges: a };
66
66
  }
67
- function X(e, d, r, c = y) {
67
+ function B(e, d, r, c = y) {
68
68
  let t = null;
69
69
  for (const o of d) {
70
- const u = v(e, o);
70
+ const u = b(e, o);
71
71
  u && (!t || u.distance < t.distance) && (t = { point: u.point, distance: u.distance });
72
72
  }
73
73
  if (!t) return null;
@@ -83,7 +83,7 @@ function X(e, d, r, c = y) {
83
83
  }
84
84
  };
85
85
  }
86
- function Y(e, d, r, c) {
86
+ function X(e, d, r, c) {
87
87
  if (r.length === 0) return null;
88
88
  const t = r.flat();
89
89
  if (t.length === 0) return null;
@@ -101,7 +101,7 @@ function Y(e, d, r, c) {
101
101
  connectorId: null
102
102
  };
103
103
  }
104
- function q(e, d, r = 20) {
104
+ function Z(e, d, r = 20) {
105
105
  if (e.length === 0)
106
106
  return { anchors: [], edges: [] };
107
107
  let c = 1 / 0, t = 1 / 0, i = -1 / 0, o = -1 / 0;
@@ -128,13 +128,13 @@ function q(e, d, r = 20) {
128
128
  for (const [p, g] of h) {
129
129
  const A = `${p},${g}`;
130
130
  if (!f.has(A)) continue;
131
- const b = s.key < A ? `${s.key}|${A}` : `${A}|${s.key}`;
132
- m.has(b) || (m.add(b), l.push({ fromTempId: s.key, toTempId: A }));
131
+ const v = s.key < A ? `${s.key}|${A}` : `${A}|${s.key}`;
132
+ m.has(v) || (m.add(v), l.push({ fromTempId: s.key, toTempId: A }));
133
133
  }
134
134
  }
135
135
  return { anchors: I, edges: l };
136
136
  }
137
- function Z(e, d, r, c, t = y) {
137
+ function q(e, d, r, c, t = y) {
138
138
  const i = [], o = [];
139
139
  let u = c;
140
140
  const a = (f, I) => {
@@ -154,7 +154,7 @@ function Z(e, d, r, c, t = y) {
154
154
  }), m;
155
155
  };
156
156
  for (const f of e) {
157
- const I = F(f);
157
+ const I = T(f);
158
158
  for (const l of I)
159
159
  for (let m = 0; m < l.length - 1; m++) {
160
160
  const s = a(l[m].x, l[m].y), h = a(l[m + 1].x, l[m + 1].y);
@@ -172,31 +172,31 @@ function Z(e, d, r, c, t = y) {
172
172
  });
173
173
  }
174
174
  }
175
- const n = R(i, o, t);
175
+ const n = K(i, o, t);
176
176
  return { anchors: n.anchors, edges: n.edges, nextId: u };
177
177
  }
178
- function C(e) {
178
+ function R(e) {
179
179
  return e === "entrance" ? "entrance" : e === "connector" ? "connector" : "unit";
180
180
  }
181
- function K(e) {
181
+ function C(e) {
182
182
  return e === "entrance" ? "entrance_link" : "unit_link";
183
183
  }
184
- function H(e, d, r) {
184
+ function G(e, d, r) {
185
185
  if (x(e, d)) return "inside";
186
186
  for (const c of d) {
187
187
  if (c.length < 2) continue;
188
- const t = [...c, c[0]], i = v(e, t);
188
+ const t = [...c, c[0]], i = b(e, t);
189
189
  if (i && i.distance <= r) return "near";
190
190
  }
191
191
  return null;
192
192
  }
193
- function j(e, d, r) {
193
+ function H(e, d, r) {
194
194
  let c = null;
195
195
  for (const t of d) {
196
196
  if (!W.includes(t.kind)) continue;
197
197
  const i = t.geometry.polygons ?? [];
198
198
  if (i.length === 0) continue;
199
- const o = H(e, i, r);
199
+ const o = G(e, i, r);
200
200
  if (o === "inside") return t;
201
201
  o === "near" && c == null && (c = t);
202
202
  }
@@ -209,37 +209,37 @@ function J(e, d, r, c = y * 3) {
209
209
  let i = 0;
210
210
  for (const o of e) {
211
211
  if (o.shapeId != null) continue;
212
- const u = j(o, r, c);
213
- if (!u || (o.shapeId = u.id, o.kind = C(u.kind), i += 1, (t.get(o.id) ?? 0) > 1)) continue;
214
- const a = K(o.kind);
212
+ const u = H(o, r, c);
213
+ if (!u || (o.shapeId = u.id, o.kind = R(u.kind), i += 1, (t.get(o.id) ?? 0) > 1)) continue;
214
+ const a = C(o.kind);
215
215
  for (const n of d)
216
216
  (n.fromAnchorId === o.id || n.toAnchorId === o.id) && (n.kind = a);
217
217
  }
218
218
  return i;
219
219
  }
220
- const B = 0.95, E = 1;
221
- function G(e = E) {
222
- return Math.pow(B, e);
220
+ const V = 0.95, E = 1;
221
+ function j(e = E) {
222
+ return Math.pow(V, e);
223
223
  }
224
224
  function Q(e, d, r) {
225
225
  if (d === 0) return e;
226
- const c = G((r == null ? void 0 : r.zoomSpeed) ?? E), t = d < 0 ? e / c : e * c, i = (r == null ? void 0 : r.min) ?? Number.NEGATIVE_INFINITY, o = (r == null ? void 0 : r.max) ?? Number.POSITIVE_INFINITY;
226
+ const c = j((r == null ? void 0 : r.zoomSpeed) ?? E), t = d < 0 ? e / c : e * c, i = (r == null ? void 0 : r.min) ?? Number.NEGATIVE_INFINITY, o = (r == null ? void 0 : r.max) ?? Number.POSITIVE_INFINITY;
227
227
  return Math.min(o, Math.max(i, t));
228
228
  }
229
229
  export {
230
- B as W,
230
+ V as W,
231
231
  E as a,
232
232
  J as b,
233
- X as c,
234
- q as d,
235
- R as e,
233
+ B as c,
234
+ Z as d,
235
+ K as e,
236
236
  D as f,
237
- G as g,
238
- Z as i,
237
+ j as g,
238
+ q as i,
239
239
  Q as n,
240
- V as o,
241
- C as r,
242
- Y as u,
240
+ Y as o,
241
+ R as r,
242
+ X as u,
243
243
  P as w
244
244
  };
245
245
  //# sourceMappingURL=wheelZoom.js.map
@@ -2,9 +2,10 @@ import { MapHost, MapViewerHost } from './types';
2
2
  /** Which library surface a host should mount. `PORTAL` is the staff editor. */
3
3
  export declare function mapSurface(host: MapHost): 'editor' | 'viewer';
4
4
  /**
5
- * Viewer chrome. Public website (`WEBSITE` / v1 WP_SITE) is floors + zoom/
6
- * reset plus the store/amenity Map IT modal and hover name pop-outs — no
7
- * search or amenity strip. DISPLAY_APP adds kiosk origin and hover names.
5
+ * Viewer chrome. Public website (`WEBSITE`) is floors + zoom/reset, hover
6
+ * names, and the left search / amenity / Map IT sidebar. DISPLAY_APP adds
7
+ * kiosk origin and hover names. `search` / `amenities` are the older
8
+ * directory strip (`RuntimeChrome`), which the website sidebar replaces.
8
9
  */
9
10
  export interface ViewerChrome {
10
11
  search: boolean;
@@ -13,8 +14,10 @@ export interface ViewerChrome {
13
14
  zoomReset: boolean;
14
15
  kioskOrigin: boolean;
15
16
  fetchDraft: boolean;
16
- /** v1 WEBSITE RetailerInfoModal — click a store/amenity, then Map IT. */
17
+ /** v1 WEBSITE RetailerInfoModal. The website sidebar replaces this. */
17
18
  storeModal: boolean;
19
+ /** Left search, amenity grid, destination card, and route endpoints. */
20
+ sidebar: boolean;
18
21
  /** Store / amenity name pop-out on pointer hover (v1 storeName tooltip). */
19
22
  hoverTooltip: boolean;
20
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"hostChrome.d.ts","sourceRoot":"","sources":["../../src/core/hostChrome.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,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M,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,uEAAuE;IACvE,UAAU,EAAE,OAAO,CAAC;IACpB,wEAAwE;IACxE,OAAO,EAAE,OAAO,CAAC;IACjB,4EAA4E;IAC5E,YAAY,EAAE,OAAO,CAAC;CACvB;AA2BD,wBAAgB,YAAY,CAAC,IAAI,EAAE,aAAa,GAAG,YAAY,CAE9D;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAElE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,aAAa,CAEpE;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAEzE;AAED,0EAA0E;AAC1E,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,aAAa,EACnB,MAAM,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,GAC9B,OAAO,CAIT"}
@@ -8,6 +8,7 @@ export * from './hostChrome';
8
8
  export * from './hoverTooltip';
9
9
  export * from './currentLocation';
10
10
  export * from './viewerReset';
11
+ export * from './verticalTransport';
11
12
  export * from './websiteModal';
12
13
  export * from './publicShapes';
13
14
  export * from './layerStyles';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,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