@eyeon/map 2.0.17 → 2.0.20

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 (47) hide show
  1. package/dist/assets/MapViewer.css +1 -1
  2. package/dist/assets/index.css +1 -1
  3. package/dist/chunks/MapViewer.js +2269 -2121
  4. package/dist/chunks/MapViewer.js.map +1 -1
  5. package/dist/chunks/responsive.js +984 -928
  6. package/dist/chunks/responsive.js.map +1 -1
  7. package/dist/chunks/wheelZoom.js +39 -39
  8. package/dist/core/assignment.d.ts +3 -3
  9. package/dist/core/assignment.d.ts.map +1 -1
  10. package/dist/core/color.d.ts +7 -0
  11. package/dist/core/color.d.ts.map +1 -1
  12. package/dist/core/index.js +226 -219
  13. package/dist/core/layerStyles.d.ts +1 -2
  14. package/dist/core/layerStyles.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/websiteModal.d.ts +15 -0
  18. package/dist/core/websiteModal.d.ts.map +1 -1
  19. package/dist/editor/canvas/EditorCanvas.d.ts.map +1 -1
  20. package/dist/editor/canvas/editorHover.d.ts +4 -0
  21. package/dist/editor/canvas/editorHover.d.ts.map +1 -1
  22. package/dist/editor/index.css +120 -68
  23. package/dist/editor/index.js +3938 -3956
  24. package/dist/editor/index.js.map +1 -1
  25. package/dist/editor/panels/AssignForm.d.ts +2 -3
  26. package/dist/editor/panels/AssignForm.d.ts.map +1 -1
  27. package/dist/editor/panels/ConnectorAssign.d.ts.map +1 -1
  28. package/dist/editor/panels/Inspector.d.ts +1 -1
  29. package/dist/editor/panels/Inspector.d.ts.map +1 -1
  30. package/dist/editor/panels/LeftRail.d.ts.map +1 -1
  31. package/dist/specialIcons.d.ts +22 -1
  32. package/dist/specialIcons.d.ts.map +1 -1
  33. package/dist/test-maps/shops-at-south-town/SVG/escalator.svg +13 -0
  34. package/dist/viewer/components/LevelMeshes.d.ts +3 -1
  35. package/dist/viewer/components/LevelMeshes.d.ts.map +1 -1
  36. package/dist/viewer/components/MapScene.d.ts.map +1 -1
  37. package/dist/viewer/components/RouteLine.d.ts +27 -1
  38. package/dist/viewer/components/RouteLine.d.ts.map +1 -1
  39. package/dist/viewer/index.css +87 -43
  40. package/dist/viewer/index.js +1 -1
  41. package/dist/viewer/pointer.d.ts +2 -2
  42. package/dist/viewer/pointer.d.ts.map +1 -1
  43. package/dist/viewer/routeFloorChanges.d.ts +0 -2
  44. package/dist/viewer/routeFloorChanges.d.ts.map +1 -1
  45. package/dist/viewer/ui/WebsiteInfoModal.d.ts +3 -2
  46. package/dist/viewer/ui/WebsiteInfoModal.d.ts.map +1 -1
  47. package/package.json +4 -4
@@ -1,10 +1,10 @@
1
- import { bx as b, b1 as w, a$ as M, aW as L, b3 as _, bL as $, aN as N, z as O, c1 as W, d as y, bk as E, an as k, bC as x, bA as F, j as T } from "./responsive.js";
2
- function Y(e, d, r) {
1
+ import { bB as S, b4 as w, b2 as M, aZ as _, b6 as L, bP as O, aQ as $, B as F, c6 as N, d as y, bn as E, aq as k, bG as x, bE as T, k as W } from "./responsive.js";
2
+ function V(e, d, r) {
3
3
  var i, o, u, a;
4
- const c = b(e), t = [];
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.id, r), I = (f == null ? void 0 : f.fill) ?? (N(n.id) ? O(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 = O(n.id, r), I = (f == null ? void 0 : f.fill) ?? ($(n.id) ? F(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 Y(e, d, r) {
14
14
  opacity: (a = n.style) == null ? void 0 : a.opacity
15
15
  });
16
16
  }
17
- return W(t, (n) => n.id);
17
+ return N(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));
@@ -38,7 +38,7 @@ function P(e, d, r, c = y) {
38
38
  rewiredEdgeIds: a
39
39
  };
40
40
  }
41
- function C(e, d = y) {
41
+ function D(e, d = y) {
42
42
  const r = [], c = /* @__PURE__ */ new Set();
43
43
  for (let t = 0; t < e.length; t++) {
44
44
  if (c.has(e[t].id)) continue;
@@ -49,9 +49,9 @@ function C(e, d = y) {
49
49
  }
50
50
  return r;
51
51
  }
52
- function D(e, d, r = y) {
52
+ function R(e, d, r = y) {
53
53
  const c = e.slice(), t = d.map((n) => ({ ...n })), i = /* @__PURE__ */ new Set();
54
- for (const n of C(c, r)) {
54
+ for (const n of D(c, r)) {
55
55
  const f = P(c, t, n, r);
56
56
  if (f)
57
57
  for (const I of f.removedAnchorIds) i.add(I);
@@ -64,7 +64,7 @@ function D(e, d, r = y) {
64
64
  }
65
65
  return { anchors: o, edges: a };
66
66
  }
67
- function B(e, d, r, c = y) {
67
+ function Y(e, d, r, c = y) {
68
68
  let t = null;
69
69
  for (const o of d) {
70
70
  const u = E(e, o);
@@ -83,7 +83,7 @@ function B(e, d, r, c = y) {
83
83
  }
84
84
  };
85
85
  }
86
- function X(e, d, r, c) {
86
+ function q(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 X(e, d, r, c) {
101
101
  connectorId: null
102
102
  };
103
103
  }
104
- function q(e, d, r = 20) {
104
+ function X(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;
@@ -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,16 +172,16 @@ function Z(e, d, r, c, t = y) {
172
172
  });
173
173
  }
174
174
  }
175
- const n = D(i, o, t);
175
+ const n = R(i, o, t);
176
176
  return { anchors: n.anchors, edges: n.edges, nextId: u };
177
177
  }
178
- function R(e) {
178
+ function C(e) {
179
179
  return e === "entrance" ? "entrance" : e === "connector" ? "connector" : "unit";
180
180
  }
181
181
  function K(e) {
182
182
  return e === "entrance" ? "entrance_link" : "unit_link";
183
183
  }
184
- function j(e, d, r) {
184
+ function B(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;
@@ -190,56 +190,56 @@ function j(e, d, r) {
190
190
  }
191
191
  return null;
192
192
  }
193
- function H(e, d, r) {
193
+ function G(e, d, r) {
194
194
  let c = null;
195
195
  for (const t of d) {
196
- if (!T.includes(t.kind)) continue;
196
+ if (!W.includes(t.kind)) continue;
197
197
  const i = t.geometry.polygons ?? [];
198
198
  if (i.length === 0) continue;
199
- const o = j(e, i, r);
199
+ const o = B(e, i, r);
200
200
  if (o === "inside") return t;
201
201
  o === "near" && c == null && (c = t);
202
202
  }
203
203
  return c;
204
204
  }
205
- function J(e, d, r, c = y * 3) {
205
+ function Q(e, d, r, c = y * 3) {
206
206
  const t = /* @__PURE__ */ new Map();
207
207
  for (const o of d)
208
208
  t.set(o.fromAnchorId, (t.get(o.fromAnchorId) ?? 0) + 1), t.set(o.toAnchorId, (t.get(o.toAnchorId) ?? 0) + 1);
209
209
  let i = 0;
210
210
  for (const o of e) {
211
211
  if (o.shapeId != null) continue;
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;
212
+ const u = G(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
214
  const a = K(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 G = 0.95, S = 1;
221
- function U(e = S) {
222
- return Math.pow(G, e);
220
+ const H = 0.95, b = 1;
221
+ function j(e = b) {
222
+ return Math.pow(H, e);
223
223
  }
224
- function Q(e, d, r) {
224
+ function J(e, d, r) {
225
225
  if (d === 0) return e;
226
- const c = U((r == null ? void 0 : r.zoomSpeed) ?? S), 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) ?? b), 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
- G as W,
231
- S as a,
232
- J as b,
233
- B as c,
234
- q as d,
235
- D as e,
236
- C as f,
237
- U as g,
230
+ H as W,
231
+ b as a,
232
+ Q as b,
233
+ Y as c,
234
+ X as d,
235
+ R as e,
236
+ D as f,
237
+ j as g,
238
238
  Z as i,
239
- Q as n,
240
- Y as o,
241
- R as r,
242
- X as u,
239
+ J as n,
240
+ V as o,
241
+ C as r,
242
+ q as u,
243
243
  P as w
244
244
  };
245
245
  //# sourceMappingURL=wheelZoom.js.map
@@ -37,13 +37,13 @@ export declare function resolvedAssignmentTextColor(assignment: {
37
37
  textColor?: string | null;
38
38
  } | null | undefined, textColor: string): string;
39
39
  export type AssignmentIconTheme = Pick<ThemeDefaults, 'AMENITY_ICON_COLOR' | 'KIOSK_ICON_COLOR' | 'CONNECTOR_ICON_COLOR' | 'STORE_TEXT_COLOR'>;
40
- /** Settings house color for an amenity / kiosk / connection icon, or store text otherwise. */
40
+ /** House color for an amenity / kiosk / connection icon, or store text otherwise. */
41
41
  export declare function assignmentIconThemeFallback(assignment: {
42
42
  layerType?: AssignmentLayerType;
43
43
  } | null | undefined, theme: AssignmentIconTheme, shapeKind?: ShapeKind): string;
44
44
  /**
45
- * Per-item Icon Color / label color, or the Settings amenity / kiosk /
46
- * connection / store-text default when none is set.
45
+ * Per-item Icon Color / label color, or the amenity / kiosk / connection /
46
+ * store-text house default when none is set.
47
47
  */
48
48
  export declare function resolvedAssignmentIconColor(assignment: {
49
49
  textColor?: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"assignment.d.ts","sourceRoot":"","sources":["../../src/core/assignment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACpB,OAAO,EACP,iBAAiB,EAEjB,iBAAiB,EACjB,SAAS,EACT,UAAU,EACV,UAAU,EACV,aAAa,EAEd,MAAM,SAAS,CAAC;AAIjB,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,2EAA2E;AAC3E,eAAO,MAAM,mBAAmB,KAA0B,CAAC;AAC3D,yFAAyF;AACzF,eAAO,MAAM,wBAAwB,IAAI,CAAC;AAE1C,eAAO,MAAM,sBAAsB,EAAE,mBAAmB,EASvD,CAAC;AAWF;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG;IAClD,MAAM,EAAE,M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B,QAAQ,CAAC,EAAE,iBAAiB,GAAG,IAAI,GAClC;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,UAAU,CAAA;CAAE,CAwB1C"}
@@ -2,4 +2,11 @@
2
2
  export declare const TRANSPARENT_COLOR = "transparent";
3
3
  /** True when the field is an explicit transparent choice (not an unset inherit). */
4
4
  export declare function isTransparentColor(value: string | null | undefined): boolean;
5
+ export declare function parseHexRgb(value: string): [number, number, number] | null;
6
+ export declare function rgbToHex(r: number, g: number, b: number): string;
7
+ /**
8
+ * Hover and active share this — a darker shade of the shape's own fill.
9
+ * Saturated primaries (#FF0000) scale toward black; near-black lifts slightly.
10
+ */
11
+ export declare function darkenShapeFill(fill: string, fallback?: string): string;
5
12
  //# sourceMappingURL=color.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../src/core/color.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,eAAO,MAAM,iBAAiB,gBAAgB,CAAC;AAE/C,oFAAoF;AACpF,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAG5E"}
1
+ {"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../src/core/color.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,eAAO,MAAM,iBAAiB,gBAAgB,CAAC;AAY/C,oFAAoF;AACpF,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAG5E;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAgB1E;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAMhE;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,QAAQ,SAAuB,GAC9B,MAAM,CAKR"}