@eyeon/map 2.0.13 → 2.0.15

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 (64) hide show
  1. package/dist/assets/MapViewer.css +1 -1
  2. package/dist/assets/index.css +1 -1
  3. package/dist/chunks/MapViewer.js +2586 -2074
  4. package/dist/chunks/MapViewer.js.map +1 -1
  5. package/dist/chunks/stacking.js +1073 -768
  6. package/dist/chunks/stacking.js.map +1 -1
  7. package/dist/chunks/wheelZoom.js +35 -35
  8. package/dist/core/currentLocation.d.ts +15 -0
  9. package/dist/core/currentLocation.d.ts.map +1 -0
  10. package/dist/core/hostChrome.d.ts +9 -1
  11. package/dist/core/hostChrome.d.ts.map +1 -1
  12. package/dist/core/index.d.ts +4 -0
  13. package/dist/core/index.d.ts.map +1 -1
  14. package/dist/core/index.js +190 -159
  15. package/dist/core/publicShapes.d.ts +18 -0
  16. package/dist/core/publicShapes.d.ts.map +1 -0
  17. package/dist/core/publish/index.d.ts.map +1 -1
  18. package/dist/core/responsive.d.ts +51 -0
  19. package/dist/core/responsive.d.ts.map +1 -0
  20. package/dist/core/types.d.ts +18 -3
  21. package/dist/core/types.d.ts.map +1 -1
  22. package/dist/core/websiteModal.d.ts +53 -0
  23. package/dist/core/websiteModal.d.ts.map +1 -0
  24. package/dist/editor/MapEditor.d.ts +10 -2
  25. package/dist/editor/MapEditor.d.ts.map +1 -1
  26. package/dist/editor/draftOps.d.ts +2 -1
  27. package/dist/editor/draftOps.d.ts.map +1 -1
  28. package/dist/editor/editorSectionReturn.d.ts +4 -2
  29. package/dist/editor/editorSectionReturn.d.ts.map +1 -1
  30. package/dist/editor/index.css +257 -0
  31. package/dist/editor/index.d.ts +1 -1
  32. package/dist/editor/index.d.ts.map +1 -1
  33. package/dist/editor/index.js +3532 -3444
  34. package/dist/editor/index.js.map +1 -1
  35. package/dist/editor/panels/LeftRail.d.ts +4 -2
  36. package/dist/editor/panels/LeftRail.d.ts.map +1 -1
  37. package/dist/editor/panels/PreviewOverlay.d.ts +8 -3
  38. package/dist/editor/panels/PreviewOverlay.d.ts.map +1 -1
  39. package/dist/editor/previewDocument.d.ts +2 -1
  40. package/dist/editor/previewDocument.d.ts.map +1 -1
  41. package/dist/specialIcons.d.ts +2 -2
  42. package/dist/viewer/MapViewer.d.ts +10 -1
  43. package/dist/viewer/MapViewer.d.ts.map +1 -1
  44. package/dist/viewer/camera.d.ts +19 -1
  45. package/dist/viewer/camera.d.ts.map +1 -1
  46. package/dist/viewer/components/CameraRig.d.ts +12 -1
  47. package/dist/viewer/components/CameraRig.d.ts.map +1 -1
  48. package/dist/viewer/components/LevelMeshes.d.ts +6 -2
  49. package/dist/viewer/components/LevelMeshes.d.ts.map +1 -1
  50. package/dist/viewer/components/MapScene.d.ts +16 -3
  51. package/dist/viewer/components/MapScene.d.ts.map +1 -1
  52. package/dist/viewer/components/RouteLine.d.ts +25 -4
  53. package/dist/viewer/components/RouteLine.d.ts.map +1 -1
  54. package/dist/viewer/fetchWebsiteRetailers.d.ts +3 -0
  55. package/dist/viewer/fetchWebsiteRetailers.d.ts.map +1 -0
  56. package/dist/viewer/index.css +227 -0
  57. package/dist/viewer/index.d.ts +1 -1
  58. package/dist/viewer/index.d.ts.map +1 -1
  59. package/dist/viewer/index.js +6 -6
  60. package/dist/viewer/orbitWheelZoom.d.ts +12 -0
  61. package/dist/viewer/orbitWheelZoom.d.ts.map +1 -0
  62. package/dist/viewer/ui/WebsiteInfoModal.d.ts +10 -0
  63. package/dist/viewer/ui/WebsiteInfoModal.d.ts.map +1 -0
  64. package/package.json +2 -2
@@ -1,9 +1,9 @@
1
- import { aU as M, ax as _, aw as b, ar as L, az as $, b5 as N, d as x, g as T, aK as S, a6 as y, aZ as k, aX as W } from "./stacking.js";
1
+ import { bb as M, aM as b, aL as _, aG as L, aO as $, bp as N, d as x, i as O, a$ as S, ad as y, bg as k, be as T } from "./stacking.js";
2
2
  function H(e, u, r) {
3
3
  var o, i, a, l;
4
4
  const s = M(e), t = [];
5
5
  for (const n of s.elements) {
6
- if (!n.d || n.interactive || u != null && u.has(n.id) || /^parking[-_]?lines?(?:[-_]|$)/i.test(n.id) || n.id.toLowerCase().startsWith("route-path") || _(n.id) || b(n.id) || L(n.id) || $(n.id)) continue;
6
+ if (!n.d || n.interactive || u != null && u.has(n.id) || /^parking[-_]?lines?(?:[-_]|$)/i.test(n.id) || n.id.toLowerCase().startsWith("route-path") || b(n.id) || _(n.id) || L(n.id) || $(n.id)) continue;
7
7
  const d = N(n.id, r), m = (d == null ? void 0 : d.fill) ?? ((o = n.style) == null ? void 0 : o.fill), I = (d == null ? void 0 : d.stroke) ?? ((i = n.style) == null ? void 0 : i.stroke), h = (d == null ? void 0 : d.strokeWidth) ?? ((a = n.style) == null ? void 0 : a.strokeWidth);
8
8
  t.push({
9
9
  id: n.id,
@@ -16,7 +16,7 @@ function H(e, u, r) {
16
16
  }
17
17
  return t;
18
18
  }
19
- function F(e, u, r, s = x) {
19
+ function W(e, u, r, s = x) {
20
20
  const t = e.filter((n) => r.includes(n.id));
21
21
  if (t.length < 2) return null;
22
22
  const o = t.reduce((n, d) => d.id < n.id ? d : n), i = [];
@@ -38,7 +38,7 @@ function F(e, u, r, s = x) {
38
38
  rewiredEdgeIds: l
39
39
  };
40
40
  }
41
- function O(e, u = x) {
41
+ function F(e, u = x) {
42
42
  const r = [], s = /* @__PURE__ */ new Set();
43
43
  for (let t = 0; t < e.length; t++) {
44
44
  if (s.has(e[t].id)) continue;
@@ -51,8 +51,8 @@ function O(e, u = x) {
51
51
  }
52
52
  function D(e, u, r = x) {
53
53
  const s = e.slice(), t = u.map((n) => ({ ...n })), o = /* @__PURE__ */ new Set();
54
- for (const n of O(s, r)) {
55
- const d = F(s, t, n, r);
54
+ for (const n of F(s, r)) {
55
+ const d = W(s, t, n, r);
56
56
  if (d)
57
57
  for (const m of d.removedAnchorIds) o.add(m);
58
58
  }
@@ -64,7 +64,7 @@ function D(e, u, r = x) {
64
64
  }
65
65
  return { anchors: i, edges: l };
66
66
  }
67
- function U(e, u, r, s = x) {
67
+ function V(e, u, r, s = x) {
68
68
  let t = null;
69
69
  for (const i of u) {
70
70
  const a = S(e, i);
@@ -83,7 +83,7 @@ function U(e, u, r, s = x) {
83
83
  }
84
84
  };
85
85
  }
86
- function V(e, u, r, s) {
86
+ function Y(e, u, r, s) {
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 V(e, u, r, s) {
101
101
  connectorId: null
102
102
  };
103
103
  }
104
- function X(e, u, r = 20) {
104
+ function U(e, u, r = 20) {
105
105
  if (e.length === 0)
106
106
  return { anchors: [], edges: [] };
107
107
  let s = 1 / 0, t = 1 / 0, o = -1 / 0, i = -1 / 0;
@@ -134,7 +134,7 @@ function X(e, u, r = 20) {
134
134
  }
135
135
  return { anchors: m, edges: I };
136
136
  }
137
- function Y(e, u, r, s, t = x) {
137
+ function X(e, u, r, s, t = x) {
138
138
  const o = [], i = [];
139
139
  let a = s;
140
140
  const l = (d, m) => {
@@ -154,7 +154,7 @@ function Y(e, u, r, s, t = x) {
154
154
  }), h;
155
155
  };
156
156
  for (const d of e) {
157
- const m = W(d);
157
+ const m = T(d);
158
158
  for (const I of m)
159
159
  for (let h = 0; h < I.length - 1; h++) {
160
160
  const f = l(I[h].x, I[h].y), c = l(I[h + 1].x, I[h + 1].y);
@@ -175,13 +175,13 @@ function Y(e, u, r, s, t = x) {
175
175
  const n = D(o, i, t);
176
176
  return { anchors: n.anchors, edges: n.edges, nextId: a };
177
177
  }
178
- function K(e) {
178
+ function P(e) {
179
179
  return e === "entrance" ? "entrance" : e === "connector" ? "connector" : "unit";
180
180
  }
181
- function P(e) {
181
+ function R(e) {
182
182
  return e === "entrance" ? "entrance_link" : "unit_link";
183
183
  }
184
- function R(e, u, r) {
184
+ function C(e, u, r) {
185
185
  if (k(e, u)) return "inside";
186
186
  for (const s of u) {
187
187
  if (s.length < 2) continue;
@@ -195,19 +195,19 @@ function E(e, u, r) {
195
195
  const s = e.filter((o) => (u.get(o.id) ?? 0) <= 1);
196
196
  return [...s.length > 0 ? s : e].sort((o, i) => y(o, r) - y(i, r))[0] ?? null;
197
197
  }
198
- function Z(e, u, r, s = x * 3) {
198
+ function q(e, u, r, s = x * 3) {
199
199
  const t = /* @__PURE__ */ new Map();
200
200
  for (const l of u)
201
201
  t.set(l.fromAnchorId, (t.get(l.fromAnchorId) ?? 0) + 1), t.set(l.toAnchorId, (t.get(l.toAnchorId) ?? 0) + 1);
202
202
  const o = e.filter((l) => l.shapeId == null), i = /* @__PURE__ */ new Set();
203
203
  let a = 0;
204
204
  for (const l of r) {
205
- if (!T.includes(l.kind)) continue;
205
+ if (!O.includes(l.kind)) continue;
206
206
  const n = l.geometry.polygons ?? [];
207
207
  if (n.length === 0) continue;
208
208
  const d = o.filter((c) => !i.has(c.id)).map((c) => ({
209
209
  anchor: c,
210
- hit: R(c, n, s)
210
+ hit: C(c, n, s)
211
211
  })).filter(
212
212
  (c) => c.hit != null
213
213
  );
@@ -224,36 +224,36 @@ function Z(e, u, r, s = x * 3) {
224
224
  t,
225
225
  I
226
226
  );
227
- if (!h || (h.shapeId = l.id, h.kind = K(l.kind), i.add(h.id), a += 1, (t.get(h.id) ?? 0) > 1)) continue;
228
- const f = P(h.kind);
227
+ if (!h || (h.shapeId = l.id, h.kind = P(l.kind), i.add(h.id), a += 1, (t.get(h.id) ?? 0) > 1)) continue;
228
+ const f = R(h.kind);
229
229
  for (const c of u)
230
230
  (c.fromAnchorId === h.id || c.toAnchorId === h.id) && (c.kind = f);
231
231
  }
232
232
  return a;
233
233
  }
234
- const C = 0.95, w = 1;
235
- function j(e = w) {
236
- return Math.pow(C, e);
234
+ const K = 0.95, w = 1;
235
+ function G(e = w) {
236
+ return Math.pow(K, e);
237
237
  }
238
- function q(e, u, r) {
238
+ function B(e, u, r) {
239
239
  if (u === 0) return e;
240
- const s = j((r == null ? void 0 : r.zoomSpeed) ?? w), t = u < 0 ? e / s : e * s, o = (r == null ? void 0 : r.min) ?? Number.NEGATIVE_INFINITY, i = (r == null ? void 0 : r.max) ?? Number.POSITIVE_INFINITY;
240
+ const s = G((r == null ? void 0 : r.zoomSpeed) ?? w), t = u < 0 ? e / s : e * s, o = (r == null ? void 0 : r.min) ?? Number.NEGATIVE_INFINITY, i = (r == null ? void 0 : r.max) ?? Number.POSITIVE_INFINITY;
241
241
  return Math.min(i, Math.max(o, t));
242
242
  }
243
243
  export {
244
- C as W,
244
+ K as W,
245
245
  w as a,
246
- Z as b,
247
- U as c,
248
- X as d,
246
+ q as b,
247
+ V as c,
248
+ U as d,
249
249
  D as e,
250
- O as f,
251
- j as g,
252
- Y as i,
253
- q as n,
250
+ F as f,
251
+ G as g,
252
+ X as i,
253
+ B as n,
254
254
  H as o,
255
- K as r,
256
- V as u,
257
- F as w
255
+ P as r,
256
+ Y as u,
257
+ W as w
258
258
  };
259
259
  //# sourceMappingURL=wheelZoom.js.map
@@ -0,0 +1,15 @@
1
+ import { CmShape, CmShapeAssignment, MapViewerHost, PublishedDocument } from './types';
2
+ type KioskShape = Pick<CmShape, 'id' | 'kind' | 'orphanedAt'> & {
3
+ assignment?: Pick<CmShapeAssignment, 'kioskId'> | null;
4
+ };
5
+ export interface ViewerKioskOrigin {
6
+ levelId: number;
7
+ shapeId: number;
8
+ anchorId: number | null;
9
+ }
10
+ /** DISPLAY_APP marks the kiosk through which the visitor is using the map. */
11
+ export declare function isViewerKioskOriginShape(host: MapViewerHost, kioskId: number | null | undefined, shape: KioskShape): boolean;
12
+ /** Resolve the kiosk floor, shape, and route anchor from the published map. */
13
+ export declare function findViewerKioskOrigin(document: Pick<PublishedDocument, 'levels'>, host: MapViewerHost, kioskId: number | null | undefined): ViewerKioskOrigin | null;
14
+ export {};
15
+ //# sourceMappingURL=currentLocation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"currentLocation.d.ts","sourceRoot":"","sources":["../../src/core/currentLocation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,iBAAiB,EACjB,aAAa,EACb,iBAAiB,EAClB,MAAM,SAAS,CAAC;AAEjB,KAAK,UAAU,GAAG,IAAI,CAAC,OAAO,EAAE,IAAI,GAAG,MAAM,GAAG,YAAY,CAAC,GAAG;IAC9D,UAAU,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC;CACxD,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,8EAA8E;AAC9E,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,aAAa,EACnB,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAClC,KAAK,EAAE,UAAU,GAChB,OAAO,CAQT;AAED,+EAA+E;AAC/E,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,IAAI,CAAC,iBAAiB,EAAE,QAAQ,CAAC,EAC3C,IAAI,EAAE,aAAa,EACnB,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GACjC,iBAAiB,GAAG,IAAI,CAe1B"}
@@ -3,7 +3,8 @@ import { MapHost, MapViewerHost } from './types';
3
3
  export declare function mapSurface(host: MapHost): 'editor' | 'viewer';
4
4
  /**
5
5
  * Viewer chrome. Public website (`WEBSITE` / v1 WP_SITE) is floors + zoom/
6
- * reset only — no search or amenity strip. Kiosk origin is DISPLAY_APP only.
6
+ * reset plus the store/amenity Map IT modal — no search or amenity strip.
7
+ * Kiosk origin is DISPLAY_APP only.
7
8
  */
8
9
  export interface ViewerChrome {
9
10
  search: boolean;
@@ -12,7 +13,14 @@ export interface ViewerChrome {
12
13
  zoomReset: boolean;
13
14
  kioskOrigin: boolean;
14
15
  fetchDraft: boolean;
16
+ /** v1 WEBSITE RetailerInfoModal — click a store/amenity, then Map IT. */
17
+ storeModal: boolean;
15
18
  }
16
19
  export declare function viewerChrome(host: MapViewerHost): ViewerChrome;
20
+ /**
21
+ * Embedded website maps must let the page handle mouse-wheel / trackpad
22
+ * scrolling. Touch pinch zoom remains enabled separately in OrbitControls.
23
+ */
24
+ export declare function viewerAllowsWheelZoom(host: MapViewerHost): boolean;
17
25
  export declare function isMapViewerHost(host: MapHost): host is MapViewerHost;
18
26
  //# sourceMappingURL=hostChrome.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hostChrome.d.ts","sourceRoot":"","sources":["../../src/core/hostChrome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEtD,+EAA+E;AAC/E,wBAAgB,UAAU,CAAC,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAE7D;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;CACrB;AAuBD,wBAAgB,YAAY,CAAC,IAAI,EAAE,aAAa,GAAG,YAAY,CAE9D;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,aAAa,CAEpE"}
1
+ {"version":3,"file":"hostChrome.d.ts","sourceRoot":"","sources":["../../src/core/hostChrome.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEtD,+EAA+E;AAC/E,wBAAgB,UAAU,CAAC,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAE7D;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,yEAAyE;IACzE,UAAU,EAAE,OAAO,CAAC;CACrB;AAwBD,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"}
@@ -4,6 +4,9 @@ export * from './color';
4
4
  export * from './labelAlign';
5
5
  export * from './assignment';
6
6
  export * from './hostChrome';
7
+ export * from './currentLocation';
8
+ export * from './websiteModal';
9
+ export * from './publicShapes';
7
10
  export * from './layerStyles';
8
11
  export * from './mediaUrl';
9
12
  export * from './outdoorDecoration';
@@ -13,6 +16,7 @@ export * from './import';
13
16
  export * from './routing/graph-tools';
14
17
  export * from './routing/pathfinding';
15
18
  export * from './publish';
19
+ export * from './responsive';
16
20
  export * from './stacking';
17
21
  export * from './voids';
18
22
  export * from './wheelZoom';
@@ -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,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
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,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
@@ -1,165 +1,196 @@
1
- import { A as e, C as o, D as r, a as i, b as n, c as t, d as l, E as S, F as p, I as m, e as d, f as E, g as A, L, M as g, h as b, O as c, i as u, j as I, R as _, S as T, k as y, l as h, m as O, T as N, W as v, n as R, o as P, p as D, q as F, r as C, s as f, t as x, u as B, v as G, w as M, x as w, y as K, z as H, B as V, G as Y, H as k, J as U, K as z, N as W, P as Z, Q as j, U as q, V as X, X as Q, Y as J, Z as $, _ as aa, $ as sa, a0 as ea, a1 as oa, a2 as ra, a3 as ia, a4 as na, a5 as ta, a6 as la, a7 as Sa, a8 as pa, a9 as ma, aa as da, ab as Ea, ac as Aa, ad as La, ae as ga, af as ba, ag as ca, ah as ua, ai as Ia, aj as _a, ak as Ta, al as ya, am as ha, an as Oa, ao as Na, ap as va, aq as Ra, ar as Pa, as as Da, at as Fa, au as Ca, av as fa, aw as xa, ax as Ba, ay as Ga, az as Ma, aA as wa, aB as Ka, aC as Ha, aD as Va, aE as Ya, aF as ka, aG as Ua, aH as za, aI as Wa, aJ as Za, aK as ja, aL as qa, aM as Xa, aN as Qa, aO as Ja, aP as $a, aQ as as, aR as ss, aS as es, aT as os, aU as rs, aV as is, aW as ns, aX as ts, aY as ls, aZ as Ss, a_ as ps, a$ as ms, b0 as ds, b1 as Es, b2 as As, b3 as Ls, b4 as gs, b5 as bs, b6 as cs, b7 as us, b8 as Is, b9 as _s, ba as Ts, bb as ys, bc as hs, bd as Os, be as Ns, bf as vs, bg as Rs, bh as Ps, bi as Ds, bj as Fs, bk as Cs, bl as fs, bm as xs, bn as Bs, bo as Gs, bp as Ms, bq as ws, br as Ks } from "../chunks/stacking.js";
2
- import { W as Vs, a as Ys, b as ks, c as Us, d as zs, e as Ws, f as Zs, i as js, n as qs, o as Xs, r as Qs, u as Js, w as $s, g as ae } from "../chunks/wheelZoom.js";
1
+ import { A as e, C as o, D as i, a as r, b as t, c as n, d as l, E as S, e as p, f as b, F as E, I as d, g as m, h as A, i as I, L as _, M as L, j as T, O, k as c, l as g, R as u, m as v, n as h, o as y, p as R, S as N, q as P, r as D, s as C, T as F, W as f, t as w, u as M, v as V, w as B, x, y as H, z as K, B as G, G as k, H as Y, J as U, K as W, N as z, P as Z, Q as j, U as q, V as Q, X, Y as J, Z as $, _ as aa, $ as sa, a0 as ea, a1 as oa, a2 as ia, a3 as ra, a4 as ta, a5 as na, a6 as la, a7 as Sa, a8 as pa, a9 as ba, aa as Ea, ab as da, ac as ma, ad as Aa, ae as Ia, af as _a, ag as La, ah as Ta, ai as Oa, aj as ca, ak as ga, al as ua, am as va, an as ha, ao as ya, ap as Ra, aq as Na, ar as Pa, as as Da, at as Ca, au as Fa, av as fa, aw as wa, ax as Ma, ay as Va, az as Ba, aA as xa, aB as Ha, aC as Ka, aD as Ga, aE as ka, aF as Ya, aG as Ua, aH as Wa, aI as za, aJ as Za, aK as ja, aL as qa, aM as Qa, aN as Xa, aO as Ja, aP as $a, aQ as as, aR as ss, aS as es, aT as os, aU as is, aV as rs, aW as ts, aX as ns, aY as ls, aZ as Ss, a_ as ps, a$ as bs, b0 as Es, b1 as ds, b2 as ms, b3 as As, b4 as Is, b5 as _s, b6 as Ls, b7 as Ts, b8 as Os, b9 as cs, ba as gs, bb as us, bc as vs, bd as hs, be as ys, bf as Rs, bg as Ns, bh as Ps, bi as Ds, bj as Cs, bk as Fs, bl as fs, bm as ws, bn as Ms, bo as Vs, bp as Bs, bq as xs, br as Hs, bs as Ks, bt as Gs, bu as ks, bv as Ys, bw as Us, bx as Ws, by as zs, bz as Zs, bA as js, bB as qs, bC as Qs, bD as Xs, bE as Js, bF as $s, bG as ae, bH as se, bI as ee, bJ as oe, bK as ie, bL as re, bM as te, bN as ne, bO as le, bP as Se, bQ as pe, bR as be, bS as Ee, bT as de, bU as me, bV as Ae, bW as Ie } from "../chunks/stacking.js";
2
+ import { W as Le, a as Te, b as Oe, c as ce, d as ge, e as ue, f as ve, i as he, n as ye, o as Re, r as Ne, u as Pe, w as De, g as Ce } from "../chunks/wheelZoom.js";
3
3
  export {
4
4
  e as ASSIGNMENT_LAYER_TYPES,
5
5
  o as CONNECTOR_ICON_SIZE,
6
- r as DEFAULT_ASSIGNMENT_SIZE,
7
- i as DEFAULT_ENTRANCE_SIZE,
8
- n as DEFAULT_LABEL_ALIGN,
9
- t as DEFAULT_THEME,
6
+ i as DEFAULT_ASSIGNMENT_SIZE,
7
+ r as DEFAULT_ENTRANCE_SIZE,
8
+ t as DEFAULT_LABEL_ALIGN,
9
+ n as DEFAULT_THEME,
10
10
  l as DEFAULT_WELD_TOLERANCE,
11
- S as ENTRANCE_ICON_ID,
12
- p as FLOOR_CHANGE_PENALTY,
13
- m as IDENTITY_MATRIX,
14
- d as IMPORT_DRIFT_THRESHOLD,
15
- E as IMPORT_PERSISTED_KINDS,
16
- A as INTERACTIVE_SHAPE_KINDS,
17
- L as LABEL_ALIGNS,
18
- g as MAP_NO_FLOORS_MESSAGE,
19
- b as MIN_ENTRANCE_SIZE,
20
- c as OPENING_VOID_FILL,
21
- u as OPENING_VOID_MARK,
22
- I as OPENING_VOID_STROKE,
23
- _ as RETAIL_LOGO_RENDER_SCALE,
24
- T as SLAB_SHAPE_KINDS,
25
- y as STATIC_LAYER_KEYS,
26
- h as STATIC_LAYER_STYLES,
27
- O as STATIC_LAYER_THEME_KEYS,
28
- N as TRANSPARENT_COLOR,
29
- v as WALKING_PATH_COLOR,
30
- Vs as WHEEL_ZOOM_BASE,
31
- Ys as WHEEL_ZOOM_SPEED,
32
- R as amenityAssignedName,
33
- P as angleFromWall,
34
- D as applyBulkAssignPatch,
35
- F as applyLevelTransform,
36
- C as applyMatrix,
37
- f as approximateArc,
38
- x as approximateCubic,
39
- B as approximateQuadratic,
40
- G as assignNumberFromDraft,
41
- M as assignmentDisplayText,
42
- w as assignmentHasTarget,
43
- K as assignmentOverlayImageUrl,
44
- H as assignmentOverlayRenderSize,
45
- V as assignmentOverlayVisible,
46
- Y as assignmentSpecialIconId,
47
- k as assignmentVisualPatch,
48
- ks as attachImportedRouteAnchors,
49
- Us as autoConnectUnitAnchor,
50
- U as bboxOf,
51
- z as bboxUnion,
52
- W as boundsFromStackedLevels,
53
- zs as buildAutoSkeleton,
54
- Z as buildGeometryFromPaths,
55
- j as bulkAssignFormState,
56
- q as centroid,
57
- X as clampEntranceSize,
58
- Q as clampStoreRadius,
59
- J as classifyId,
60
- Ws as collapseDuplicateRouteGraph,
61
- $ as commitAssignNumberDraft,
62
- aa as compareBuildingFloors,
63
- sa as compileDocument,
64
- ea as compileGraph,
65
- oa as connectorIconLayout,
66
- ra as defaultLayerTypeForKind,
67
- ia as defaultTargetTypeForKind,
68
- na as defaultViewerLevelId,
69
- ta as diffImport,
70
- la as distance,
71
- Sa as emptyShapeAssignment,
72
- pa as expandBounds,
73
- ma as filletPolygon,
74
- da as findNearestAmenityPath,
75
- Ea as findPath,
76
- Zs as findWeldCandidates,
77
- Aa as flipY,
78
- La as floorSwitcherDisplayLevels,
79
- ga as floorSwitcherLevels,
80
- ba as geometryBBox,
81
- ca as geometryCentroid,
82
- ua as hasBuildingFloors,
83
- Ia as holeRingForOuter,
84
- _a as holesOverlappingOuter,
85
- js as importRoutePaths,
86
- Ta as importSvg,
87
- ya as inlineSvgStyles,
88
- ha as isActiveVoidShape,
89
- Oa as isAssignmentLayerType,
90
- Na as isEntranceIcon,
91
- va as isGeometrySpaceStale,
92
- Ra as isIdentityMatrix,
93
- Pa as isInteractiveGroupLabel,
94
- Da as isLayerContainerLabel,
95
- Fa as isMapViewerHost,
96
- Ca as isNonInteractiveGroupLabel,
97
- fa as isOutdoorLevel,
98
- xa as isRouteFolderLabel,
99
- Ba as isRoutePathLabel,
100
- Ga as isSlabShapeKind,
101
- Ma as isStoreFolderLabel,
102
- wa as isTransparentColor,
103
- Ka as isVoidKind,
104
- Ha as kioskAssignedName,
105
- Va as labelAlignX,
106
- Ya as labelSvgTextAnchor,
107
- ka as levelHasVoids,
108
- Ua as mapSurface,
109
- za as mergePresentationStyle,
110
- Wa as mergeTheme,
111
- Za as multiplyMatrix,
112
- ja as nearestPointOnPolyline,
113
- qa as nextLowerBuildingFloor,
114
- qs as nextZoomFromWheel,
115
- Xa as normalizeGeometrySpace,
116
- Qa as normalizeLabelAlign,
117
- Ja as normalizeLayerLabel,
118
- $a as normalizeLayerName,
119
- as as normalizePublishedDocument,
120
- Xs as outdoorDecorationFromSvg,
121
- ss as outdoorSvgSuppressIds,
122
- es as parseKioskIdInput,
123
- os as parseShapeAssignment,
124
- rs as parseSvgString,
125
- is as parseTransform,
126
- ns as parseViewBox,
127
- ts as pathToPolygons,
128
- ls as pointInPolygon,
129
- Ss as pointInPolygons,
130
- ps as polygonBBox,
131
- ms as polygonSignedArea,
132
- ds as polygonsOverlap,
133
- Es as projectOntoSegment,
134
- As as publishedShapeLabel,
135
- Ls as readPresentationStyle,
136
- gs as resolveFetchUrl,
137
- bs as resolveLayerStyle,
138
- cs as resolveStaticLayerKey,
139
- us as resolvedAssignmentBgColor,
140
- Is as resolvedAssignmentTextColor,
141
- _s as retailerOptionLabel,
142
- Ts as revealedBuildingFloors,
143
- ys as reversedRing,
144
- Qs as routeAnchorKindForShape,
145
- hs as sceneBoundsFromBBox,
146
- Os as shouldProxyMediaUrl,
147
- Ns as shouldShowFloorSwitcher,
148
- vs as snapAngle,
149
- Rs as staticLayerHouseColor,
150
- Ps as staticLayerThemeDefaults,
151
- Ds as svgIdsOwnedByShapes,
152
- Fs as tokenizePathData,
153
- Cs as transformPathD,
154
- fs as unionViewBox,
155
- xs as uniqueClosedRing,
156
- Js as unitAnchorFromShape,
157
- Bs as viewBoxToBounds,
158
- Gs as viewerChrome,
159
- Ms as viewerLevelIdAfterShapeSelect,
160
- ws as viewerLevelStack,
161
- Ks as voidPolygonsOnLevel,
162
- $s as weldAnchors,
163
- ae as wheelDollyScale
11
+ S as EMPTY_RESPONSIVE_CAMERA,
12
+ p as EMPTY_RESPONSIVE_CONTROLS,
13
+ b as ENTRANCE_ICON_ID,
14
+ E as FLOOR_CHANGE_PENALTY,
15
+ d as IDENTITY_MATRIX,
16
+ m as IMPORT_DRIFT_THRESHOLD,
17
+ A as IMPORT_PERSISTED_KINDS,
18
+ I as INTERACTIVE_SHAPE_KINDS,
19
+ _ as LABEL_ALIGNS,
20
+ L as MAP_NO_FLOORS_MESSAGE,
21
+ T as MIN_ENTRANCE_SIZE,
22
+ O as OPENING_VOID_FILL,
23
+ c as OPENING_VOID_MARK,
24
+ g as OPENING_VOID_STROKE,
25
+ u as RESPONSIVE_DESKTOP_MIN_WIDTH,
26
+ v as RESPONSIVE_DEVICES,
27
+ h as RESPONSIVE_DEVICE_TABS,
28
+ y as RESPONSIVE_TABLET_MIN_WIDTH,
29
+ R as RETAIL_LOGO_RENDER_SCALE,
30
+ N as SLAB_SHAPE_KINDS,
31
+ P as STATIC_LAYER_KEYS,
32
+ D as STATIC_LAYER_STYLES,
33
+ C as STATIC_LAYER_THEME_KEYS,
34
+ F as TRANSPARENT_COLOR,
35
+ f as WALKING_PATH_COLOR,
36
+ Le as WHEEL_ZOOM_BASE,
37
+ Te as WHEEL_ZOOM_SPEED,
38
+ w as amenityAssignedName,
39
+ M as angleFromWall,
40
+ V as applyBulkAssignPatch,
41
+ B as applyLevelTransform,
42
+ x as applyMatrix,
43
+ H as approximateArc,
44
+ K as approximateCubic,
45
+ G as approximateQuadratic,
46
+ k as assignNumberFromDraft,
47
+ Y as assignmentDisplayText,
48
+ U as assignmentHasTarget,
49
+ W as assignmentOverlayImageUrl,
50
+ z as assignmentOverlayRenderSize,
51
+ Z as assignmentOverlayVisible,
52
+ j as assignmentSpecialIconId,
53
+ q as assignmentVisualPatch,
54
+ Oe as attachImportedRouteAnchors,
55
+ ce as autoConnectUnitAnchor,
56
+ Q as bboxOf,
57
+ X as bboxUnion,
58
+ J as boundsFromStackedLevels,
59
+ ge as buildAutoSkeleton,
60
+ $ as buildGeometryFromPaths,
61
+ aa as bulkAssignFormState,
62
+ sa as centroid,
63
+ ea as clampEntranceSize,
64
+ oa as clampStoreRadius,
65
+ ia as classifyId,
66
+ ue as collapseDuplicateRouteGraph,
67
+ ra as commitAssignNumberDraft,
68
+ ta as compareBuildingFloors,
69
+ na as compileDocument,
70
+ la as compileGraph,
71
+ Sa as connectorIconLayout,
72
+ pa as defaultLayerTypeForKind,
73
+ ba as defaultTargetTypeForKind,
74
+ Ea as defaultViewerLevelId,
75
+ da as deviceFromHost,
76
+ ma as diffImport,
77
+ Aa as distance,
78
+ Ia as emptyResponsiveOverrideInput,
79
+ _a as emptyShapeAssignment,
80
+ La as expandBounds,
81
+ Ta as filletPolygon,
82
+ Oa as findNearestAmenityPath,
83
+ ca as findPath,
84
+ ga as findPublishedShape,
85
+ ua as findResponsiveOverride,
86
+ va as findViewerKioskOrigin,
87
+ ve as findWeldCandidates,
88
+ ha as flipY,
89
+ ya as floorSwitcherDisplayLevels,
90
+ Ra as floorSwitcherLevels,
91
+ Na as formatRetailerPhone,
92
+ Pa as geometryBBox,
93
+ Da as geometryCentroid,
94
+ Ca as hasBuildingFloors,
95
+ Fa as holeRingForOuter,
96
+ fa as holesOverlappingOuter,
97
+ he as importRoutePaths,
98
+ wa as importSvg,
99
+ Ma as inlineSvgStyles,
100
+ Va as isActiveVoidShape,
101
+ Ba as isAssignmentLayerType,
102
+ xa as isDeviceType,
103
+ Ha as isEmptyOverride,
104
+ Ka as isEmptyVec3,
105
+ Ga as isEntranceIcon,
106
+ ka as isGeometrySpaceStale,
107
+ Ya as isIdentityMatrix,
108
+ Ua as isInteractiveGroupLabel,
109
+ Wa as isLayerContainerLabel,
110
+ za as isMapViewerHost,
111
+ Za as isNonInteractiveGroupLabel,
112
+ ja as isOutdoorLevel,
113
+ qa as isRouteFolderLabel,
114
+ Qa as isRoutePathLabel,
115
+ Xa as isSlabShapeKind,
116
+ Ja as isStoreFolderLabel,
117
+ $a as isTransparentColor,
118
+ as as isViewerKioskOriginShape,
119
+ ss as isVoidKind,
120
+ es as kioskAssignedName,
121
+ os as labelAlignX,
122
+ is as labelSvgTextAnchor,
123
+ rs as levelHasVoids,
124
+ ts as mapSurface,
125
+ ns as mergePresentationStyle,
126
+ ls as mergeResponsiveOverrides,
127
+ Ss as mergeTheme,
128
+ ps as multiplyMatrix,
129
+ bs as nearestPointOnPolyline,
130
+ Es as nextLowerBuildingFloor,
131
+ ye as nextZoomFromWheel,
132
+ ds as normalizeGeometrySpace,
133
+ ms as normalizeLabelAlign,
134
+ As as normalizeLayerLabel,
135
+ Is as normalizeLayerName,
136
+ _s as normalizePublishedDocument,
137
+ Ls as normalizeRetailerCatalogItem,
138
+ Re as outdoorDecorationFromSvg,
139
+ Ts as outdoorSvgSuppressIds,
140
+ Os as overrideToCameraPose,
141
+ cs as parseKioskIdInput,
142
+ gs as parseShapeAssignment,
143
+ us as parseSvgString,
144
+ vs as parseTransform,
145
+ hs as parseViewBox,
146
+ ys as pathToPolygons,
147
+ Rs as pointInPolygon,
148
+ Ns as pointInPolygons,
149
+ Ps as polygonBBox,
150
+ Ds as polygonSignedArea,
151
+ Cs as polygonsOverlap,
152
+ Fs as poseToResponsiveFields,
153
+ fs as projectOntoSegment,
154
+ ws as publishedShapeLabel,
155
+ Ms as readPresentationStyle,
156
+ Vs as resolveFetchUrl,
157
+ Bs as resolveLayerStyle,
158
+ xs as resolveStaticLayerKey,
159
+ Hs as resolvedAssignmentBgColor,
160
+ Ks as resolvedAssignmentTextColor,
161
+ Gs as responsiveSlotKey,
162
+ ks as retailerOptionLabel,
163
+ Ys as revealedBuildingFloors,
164
+ Us as reversedRing,
165
+ Ne as routeAnchorKindForShape,
166
+ Ws as sceneBoundsFromBBox,
167
+ zs as shouldProxyMediaUrl,
168
+ Zs as shouldShowFloorSwitcher,
169
+ js as snapAngle,
170
+ qs as staticLayerHouseColor,
171
+ Qs as staticLayerThemeDefaults,
172
+ Xs as svgIdsOwnedByShapes,
173
+ Js as tokenizePathData,
174
+ $s as transformPathD,
175
+ ae as unionViewBox,
176
+ se as uniqueClosedRing,
177
+ Pe as unitAnchorFromShape,
178
+ ee as upsertResponsiveOverride,
179
+ oe as viewBoxToBounds,
180
+ ie as viewerAllowsWheelZoom,
181
+ re as viewerChrome,
182
+ te as viewerHidesUnassignedServiceShapes,
183
+ ne as viewerLevelIdAfterShapeSelect,
184
+ le as viewerLevelStack,
185
+ Se as viewerServiceShapeVisible,
186
+ pe as viewerShapeVisibleOnHost,
187
+ be as voidPolygonsOnLevel,
188
+ Ee as websiteClickOpensModal,
189
+ de as websiteDestination,
190
+ me as websiteFromRetailerOptions,
191
+ Ae as websiteMapItAnchors,
192
+ Ie as websiteRetailersOnMap,
193
+ De as weldAnchors,
194
+ Ce as wheelDollyScale
164
195
  };
165
196
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,18 @@
1
+ import { assignmentHasTarget } from './assignment';
2
+ import { MapViewerHost } from './types';
3
+ export type PublicServiceShape = {
4
+ id: number;
5
+ kind: string;
6
+ key?: string;
7
+ sourceSvgId?: string | null;
8
+ assignment?: Parameters<typeof assignmentHasTarget>[0];
9
+ };
10
+ /**
11
+ * Website and kiosk should not draw empty amenity / kiosk / elevator /
12
+ * escalator polygons. PORTAL assign still shows them so staff can link them.
13
+ */
14
+ export declare function viewerHidesUnassignedServiceShapes(host: MapViewerHost): boolean;
15
+ /** False for an unassigned amenity, kiosk, elevator, or escalator. */
16
+ export declare function viewerServiceShapeVisible(shape: PublicServiceShape, assignedConnectorIds: ReadonlySet<number>): boolean;
17
+ export declare function viewerShapeVisibleOnHost(shape: PublicServiceShape, host: MapViewerHost, assignedConnectorIds: ReadonlySet<number>): boolean;
18
+ //# sourceMappingURL=publicShapes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"publicShapes.d.ts","sourceRoot":"","sources":["../../src/core/publicShapes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,CAAC,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC;CACxD,CAAC;AAEF;;;GAGG;AACH,wBAAgB,kCAAkC,CAChD,IAAI,EAAE,aAAa,GAClB,OAAO,CAET;AAcD,sEAAsE;AACtE,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,kBAAkB,EACzB,oBAAoB,EAAE,WAAW,CAAC,MAAM,CAAC,GACxC,OAAO,CAQT;AAED,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,kBAAkB,EACzB,IAAI,EAAE,aAAa,EACnB,oBAAoB,EAAE,WAAW,CAAC,MAAM,CAAC,GACxC,OAAO,CAGT"}