@eyeon/map 2.0.19 → 2.0.26

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 (59) hide show
  1. package/dist/assets/MapViewer.css +1 -1
  2. package/dist/assets/index.css +1 -1
  3. package/dist/chunks/MapViewer.js +449 -446
  4. package/dist/chunks/MapViewer.js.map +1 -1
  5. package/dist/chunks/responsive.js +967 -929
  6. package/dist/chunks/responsive.js.map +1 -1
  7. package/dist/chunks/wheelZoom.js +33 -33
  8. package/dist/chunks/wheelZoom.js.map +1 -1
  9. package/dist/core/assignment.d.ts +6 -2
  10. package/dist/core/assignment.d.ts.map +1 -1
  11. package/dist/core/index.js +185 -183
  12. package/dist/core/layerStyles.d.ts +19 -5
  13. package/dist/core/layerStyles.d.ts.map +1 -1
  14. package/dist/core/types.d.ts +1 -1
  15. package/dist/core/types.d.ts.map +1 -1
  16. package/dist/editor/GridPrefsControl.d.ts +16 -0
  17. package/dist/editor/GridPrefsControl.d.ts.map +1 -0
  18. package/dist/editor/MapEditor.d.ts +17 -1
  19. package/dist/editor/MapEditor.d.ts.map +1 -1
  20. package/dist/editor/canvas/EditorCanvas.d.ts +5 -1
  21. package/dist/editor/canvas/EditorCanvas.d.ts.map +1 -1
  22. package/dist/editor/canvas/editorHover.d.ts +12 -0
  23. package/dist/editor/canvas/editorHover.d.ts.map +1 -1
  24. package/dist/editor/dirty.d.ts +24 -0
  25. package/dist/editor/dirty.d.ts.map +1 -0
  26. package/dist/editor/draftOps.d.ts.map +1 -1
  27. package/dist/editor/geometryEdit.d.ts +2 -0
  28. package/dist/editor/geometryEdit.d.ts.map +1 -1
  29. package/dist/editor/index.css +70 -4
  30. package/dist/editor/index.d.ts +1 -0
  31. package/dist/editor/index.d.ts.map +1 -1
  32. package/dist/editor/index.js +4326 -3923
  33. package/dist/editor/index.js.map +1 -1
  34. package/dist/editor/labels.d.ts.map +1 -1
  35. package/dist/editor/ortho.d.ts +20 -0
  36. package/dist/editor/ortho.d.ts.map +1 -0
  37. package/dist/editor/panels/AssignForm.d.ts.map +1 -1
  38. package/dist/editor/panels/EntranceIconForm.d.ts.map +1 -1
  39. package/dist/editor/panels/LeftRail.d.ts +1 -1
  40. package/dist/editor/panels/LeftRail.d.ts.map +1 -1
  41. package/dist/editor/railAssignments.d.ts +5 -1
  42. package/dist/editor/railAssignments.d.ts.map +1 -1
  43. package/dist/editor/railListCopy.d.ts +1 -1
  44. package/dist/editor/railListCopy.d.ts.map +1 -1
  45. package/dist/editor/routeStubs.d.ts +10 -0
  46. package/dist/editor/routeStubs.d.ts.map +1 -1
  47. package/dist/editor/shapeCopy.d.ts.map +1 -1
  48. package/dist/editor/tools.d.ts +12 -4
  49. package/dist/editor/tools.d.ts.map +1 -1
  50. package/dist/viewer/components/SvgVectorLayer.d.ts.map +1 -1
  51. package/dist/viewer/index.js +2 -2
  52. package/dist/viewer/pointer.d.ts.map +1 -1
  53. package/package.json +4 -4
  54. package/dist/test-maps/shops-at-south-town/BASE - Shops At South Town.ai +42 -26689
  55. package/dist/test-maps/shops-at-south-town/LF - Shops At South Town.ai +0 -4459
  56. package/dist/test-maps/shops-at-south-town/SVG/BASE - Shops At South Town.svg +0 -567
  57. package/dist/test-maps/shops-at-south-town/SVG/LF - Shops At South Town.svg +0 -238
  58. package/dist/test-maps/shops-at-south-town/SVG/escalator.svg +0 -13
  59. package/dist/test-maps/shops-at-south-town/UF - Shops At South Town.ai +2 -4130
@@ -1,10 +1,10 @@
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";
1
+ import { bD as S, b6 as w, b4 as M, a$ as _, b8 as L, bR as $, aR as O, B as F, c8 as N, d as p, bp as E, ar as k, bI as x, bG as T, k as W } from "./responsive.js";
2
2
  function V(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
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);
7
+ const f = $(n.id, r), I = (f == null ? void 0 : f.fill) ?? (O(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,
@@ -16,7 +16,7 @@ function V(e, d, r) {
16
16
  }
17
17
  return N(t, (n) => n.id);
18
18
  }
19
- function P(e, d, r, c = y) {
19
+ function R(e, d, r, c = p) {
20
20
  const t = e.filter((n) => r.includes(n.id));
21
21
  if (t.length < 2) return null;
22
22
  const i = t.reduce((n, f) => f.id < n.id ? f : n), o = [];
@@ -38,7 +38,7 @@ function P(e, d, r, c = y) {
38
38
  rewiredEdgeIds: a
39
39
  };
40
40
  }
41
- function D(e, d = y) {
41
+ function D(e, d = p) {
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,10 +49,10 @@ function D(e, d = y) {
49
49
  }
50
50
  return r;
51
51
  }
52
- function R(e, d, r = y) {
52
+ function P(e, d, r = p) {
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
- const f = P(c, t, n, r);
55
+ const f = R(c, t, n, r);
56
56
  if (f)
57
57
  for (const I of f.removedAnchorIds) i.add(I);
58
58
  }
@@ -64,7 +64,7 @@ function R(e, d, r = y) {
64
64
  }
65
65
  return { anchors: o, edges: a };
66
66
  }
67
- function Y(e, d, r, c = y) {
67
+ function Y(e, d, r, c = p) {
68
68
  let t = null;
69
69
  for (const o of d) {
70
70
  const u = E(e, o);
@@ -83,7 +83,7 @@ function Y(e, d, r, c = y) {
83
83
  }
84
84
  };
85
85
  }
86
- function q(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 q(e, d, r, c) {
101
101
  connectorId: null
102
102
  };
103
103
  }
104
- function X(e, d, r = 20) {
104
+ function q(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;
@@ -111,8 +111,8 @@ function X(e, d, r = 20) {
111
111
  const u = Math.max(1, Math.ceil((i - c) / r)), a = Math.max(1, Math.ceil((o - t) / r)), n = [];
112
112
  for (let s = 0; s < a; s++)
113
113
  for (let h = 0; h < u; h++) {
114
- const p = c + (h + 0.5) * r, g = t + (s + 0.5) * r, A = { x: p, y: g };
115
- x(A, e) && (d.length > 0 && x(A, d) || n.push({ key: `${h},${s}`, x: p, y: g, col: h, row: s }));
114
+ const y = c + (h + 0.5) * r, g = t + (s + 0.5) * r, A = { x: y, y: g };
115
+ x(A, e) && (d.length > 0 && x(A, d) || n.push({ key: `${h},${s}`, x: y, y: g, col: h, row: s }));
116
116
  }
117
117
  const f = new Map(n.map((s) => [s.key, s])), I = n.map((s) => ({
118
118
  tempId: s.key,
@@ -125,8 +125,8 @@ function X(e, d, r = 20) {
125
125
  [s.col + 1, s.row],
126
126
  [s.col, s.row + 1]
127
127
  ];
128
- for (const [p, g] of h) {
129
- const A = `${p},${g}`;
128
+ for (const [y, g] of h) {
129
+ const A = `${y},${g}`;
130
130
  if (!f.has(A)) continue;
131
131
  const v = s.key < A ? `${s.key}|${A}` : `${A}|${s.key}`;
132
132
  m.has(v) || (m.add(v), l.push({ fromTempId: s.key, toTempId: A }));
@@ -134,7 +134,7 @@ function X(e, d, r = 20) {
134
134
  }
135
135
  return { anchors: I, edges: l };
136
136
  }
137
- function Z(e, d, r, c, t = y) {
137
+ function Z(e, d, r, c, t = p) {
138
138
  const i = [], o = [];
139
139
  let u = c;
140
140
  const a = (f, I) => {
@@ -172,7 +172,7 @@ function Z(e, d, r, c, t = y) {
172
172
  });
173
173
  }
174
174
  }
175
- const n = R(i, o, t);
175
+ const n = P(i, o, t);
176
176
  return { anchors: n.anchors, edges: n.edges, nextId: u };
177
177
  }
178
178
  function C(e) {
@@ -181,7 +181,7 @@ function C(e) {
181
181
  function K(e) {
182
182
  return e === "entrance" ? "entrance_link" : "unit_link";
183
183
  }
184
- function B(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;
@@ -190,26 +190,26 @@ function B(e, d, r) {
190
190
  }
191
191
  return null;
192
192
  }
193
- function G(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 = B(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
  }
203
203
  return c;
204
204
  }
205
- function Q(e, d, r, c = y * 3) {
205
+ function J(e, d, r, c = p * 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 = G(o, r, c);
212
+ const u = H(o, r, c);
213
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)
@@ -217,29 +217,29 @@ function Q(e, d, r, c = y * 3) {
217
217
  }
218
218
  return i;
219
219
  }
220
- const H = 0.95, b = 1;
221
- function j(e = b) {
222
- return Math.pow(H, e);
220
+ const j = 0.95, b = 1;
221
+ function B(e = b) {
222
+ return Math.pow(j, e);
223
223
  }
224
- function J(e, d, r) {
224
+ function Q(e, d, r) {
225
225
  if (d === 0) return e;
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;
226
+ const c = B((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
- H as W,
230
+ j as W,
231
231
  b as a,
232
- Q as b,
232
+ J as b,
233
233
  Y as c,
234
- X as d,
235
- R as e,
234
+ q as d,
235
+ P as e,
236
236
  D as f,
237
- j as g,
237
+ B as g,
238
238
  Z as i,
239
- J as n,
239
+ Q as n,
240
240
  V as o,
241
241
  C as r,
242
- q as u,
243
- P as w
242
+ X as u,
243
+ R as w
244
244
  };
245
245
  //# sourceMappingURL=wheelZoom.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"wheelZoom.js","sources":["../../src/core/outdoorDecoration.ts","../../src/core/routing/graph-tools.ts","../../src/core/wheelZoom.ts"],"sourcesContent":["import {\n parseSvgString,\n isInteractiveGroupLabel,\n isRouteFolderLabel,\n isRoutePathLabel,\n isStoreFolderLabel,\n} from './import';\nimport { amenityHouseFill, isAmenityLayerId } from './shapeFill';\nimport {\n resolveLayerStyle,\n sortByOutdoorSvgPaintOrder,\n type StaticLayerTheme,\n} from './layerStyles';\n\nexport interface OutdoorDecorationPath {\n id: string;\n d: string;\n fill?: string;\n stroke?: string;\n strokeWidth?: number;\n opacity?: number;\n}\n\n/**\n * Paths the assign viewer draws from the live outdoor SVG: house-style\n * decoration (green area, parking lanes, icons) and any other\n * non-interactive art. Interactive / store folders stay out — those are\n * `cm_shapes` rows.\n */\nexport function outdoorDecorationFromSvg(\n svgText: string,\n suppressIds?: ReadonlySet<string>,\n theme?: StaticLayerTheme | null,\n): OutdoorDecorationPath[] {\n const parsed = parseSvgString(svgText);\n const out: OutdoorDecorationPath[] = [];\n for (const el of parsed.elements) {\n if (!el.d) continue;\n if (el.interactive) continue;\n if (suppressIds?.has(el.id)) continue;\n if (/^parking[-_]?lines?(?:[-_]|$)/i.test(el.id)) continue;\n if (el.id.toLowerCase().startsWith('route-path')) continue;\n if (isRoutePathLabel(el.id) || isRouteFolderLabel(el.id)) continue;\n if (isInteractiveGroupLabel(el.id) || isStoreFolderLabel(el.id)) continue;\n\n const layer = resolveLayerStyle(el.id, theme);\n const fill =\n layer?.fill ??\n (isAmenityLayerId(el.id) ? amenityHouseFill(theme) : el.style?.fill);\n const stroke = layer?.stroke ?? el.style?.stroke;\n const strokeWidth = layer?.strokeWidth ?? el.style?.strokeWidth;\n out.push({\n id: el.id,\n d: el.d,\n fill: fill && fill !== 'none' ? fill : undefined,\n stroke: stroke && stroke !== 'none' ? stroke : undefined,\n strokeWidth,\n opacity: el.style?.opacity,\n });\n }\n // Green areas last among house fills so they stay above parking lanes.\n return sortByOutdoorSvgPaintOrder(out, (item) => item.id);\n}\n","import type {\n AnchorKind,\n AutoConnectResult,\n CmAnchor,\n CmRouteEdge,\n ShapeGeometry,\n ShapeKind,\n SkeletonSuggestion,\n Vec2,\n WeldResult,\n} from '../types';\nimport { DEFAULT_WELD_TOLERANCE, INTERACTIVE_SHAPE_KINDS } from '../types';\nimport {\n distance,\n nearestPointOnPolyline,\n pathToPolygons,\n pointInPolygons,\n} from '../geometry';\n\nexport interface AnchorLike {\n id: number;\n x: number;\n y: number;\n levelId: number;\n shapeId?: number | null;\n kind?: string;\n}\n\nexport interface EdgeLike {\n id: number;\n fromAnchorId: number;\n toAnchorId: number;\n}\n\n/**\n * Weld anchors within tolerance into the surviving (lowest id) anchor.\n * Rewires edges that referenced removed anchors.\n */\nexport function weldAnchors(\n anchors: AnchorLike[],\n edges: EdgeLike[],\n candidateIds: number[],\n tolerance = DEFAULT_WELD_TOLERANCE,\n): WeldResult | null {\n const candidates = anchors.filter((a) => candidateIds.includes(a.id));\n if (candidates.length < 2) return null;\n\n // Cluster by proximity from the first candidate's position centroid of group\n const surviving = candidates.reduce((min, a) => (a.id < min.id ? a : min));\n const removed: number[] = [];\n\n for (const a of candidates) {\n if (a.id === surviving.id) continue;\n if (distance(a, surviving) <= tolerance) {\n removed.push(a.id);\n }\n }\n\n if (removed.length === 0) return null;\n\n const removedSet = new Set(removed);\n const rewired: number[] = [];\n\n for (const edge of edges) {\n let changed = false;\n if (removedSet.has(edge.fromAnchorId)) {\n edge.fromAnchorId = surviving.id;\n changed = true;\n }\n if (removedSet.has(edge.toAnchorId)) {\n edge.toAnchorId = surviving.id;\n changed = true;\n }\n // Drop self-loops\n if (edge.fromAnchorId === edge.toAnchorId) {\n rewired.push(edge.id);\n continue;\n }\n if (changed) rewired.push(edge.id);\n }\n\n return {\n survivingAnchorId: surviving.id,\n removedAnchorIds: removed,\n rewiredEdgeIds: rewired,\n };\n}\n\n/**\n * Find all pairs of anchors within tolerance that should be welded.\n */\nexport function findWeldCandidates(\n anchors: AnchorLike[],\n tolerance = DEFAULT_WELD_TOLERANCE,\n): number[][] {\n const groups: number[][] = [];\n const used = new Set<number>();\n\n for (let i = 0; i < anchors.length; i++) {\n if (used.has(anchors[i].id)) continue;\n const group = [anchors[i].id];\n for (let j = i + 1; j < anchors.length; j++) {\n if (used.has(anchors[j].id)) continue;\n if (\n anchors[i].levelId === anchors[j].levelId &&\n distance(anchors[i], anchors[j]) <= tolerance\n ) {\n group.push(anchors[j].id);\n used.add(anchors[j].id);\n }\n }\n if (group.length > 1) {\n used.add(anchors[i].id);\n groups.push(group);\n }\n }\n return groups;\n}\n\n/**\n * Merge coincident anchors and drop overlapping undirected edges.\n * Two SVG imports of the same ROUTES layer stack a second copy on top of\n * the first — dragging one junction then leaves the twin behind.\n */\nexport function collapseDuplicateRouteGraph<\n A extends AnchorLike,\n E extends EdgeLike,\n>(\n anchors: A[],\n edges: E[],\n tolerance = DEFAULT_WELD_TOLERANCE,\n): { anchors: A[]; edges: E[] } {\n const nextAnchors = anchors.slice();\n const nextEdges = edges.map((edge) => ({ ...edge }));\n const removed = new Set<number>();\n for (const group of findWeldCandidates(nextAnchors, tolerance)) {\n const result = weldAnchors(nextAnchors, nextEdges, group, tolerance);\n if (!result) continue;\n for (const id of result.removedAnchorIds) removed.add(id);\n }\n const alive = nextAnchors.filter((anchor) => !removed.has(anchor.id));\n const seen = new Set<string>();\n const uniqueEdges: E[] = [];\n for (const edge of nextEdges) {\n if (removed.has(edge.fromAnchorId) || removed.has(edge.toAnchorId)) continue;\n if (edge.fromAnchorId === edge.toAnchorId) continue;\n const lo = Math.min(edge.fromAnchorId, edge.toAnchorId);\n const hi = Math.max(edge.fromAnchorId, edge.toAnchorId);\n const key = `${lo}|${hi}`;\n if (seen.has(key)) continue;\n seen.add(key);\n uniqueEdges.push(edge);\n }\n return { anchors: alive, edges: uniqueEdges };\n}\n\n/**\n * Auto-connect a unit anchor to the nearest walkable segment via perpendicular projection.\n */\nexport function autoConnectUnitAnchor(\n unitAnchor: AnchorLike,\n walkablePolylines: Vec2[][],\n existingJunctions: AnchorLike[],\n weldTolerance = DEFAULT_WELD_TOLERANCE,\n): AutoConnectResult | null {\n let best: { point: Vec2; distance: number } | null = null;\n\n for (const line of walkablePolylines) {\n const hit = nearestPointOnPolyline(unitAnchor, line);\n if (hit && (!best || hit.distance < best.distance)) {\n best = { point: hit.point, distance: hit.distance };\n }\n }\n\n if (!best) return null;\n\n // Reuse existing junction if within weld tolerance\n const existing = existingJunctions.find(\n (j) =>\n j.levelId === unitAnchor.levelId &&\n distance(j, best!.point) <= weldTolerance,\n );\n\n return {\n unitAnchorId: unitAnchor.id,\n junctionAnchor: existing\n ? { x: existing.x, y: existing.y, existingId: existing.id }\n : { x: best.point.x, y: best.point.y },\n edge: {\n fromAnchorId: unitAnchor.id,\n toAnchorId: existing?.id,\n },\n };\n}\n\n/**\n * Place a unit anchor at the centroid of a shape's polygons, if the point lies inside.\n */\nexport function unitAnchorFromShape(\n shapeId: number,\n levelId: number,\n polygons: Vec2[][],\n tempId: number,\n): CmAnchor | null {\n if (polygons.length === 0) return null;\n const flat = polygons.flat();\n if (flat.length === 0) return null;\n\n let sx = 0;\n let sy = 0;\n for (const p of flat) {\n sx += p.x;\n sy += p.y;\n }\n const c = { x: sx / flat.length, y: sy / flat.length };\n\n // Prefer centroid if inside; otherwise use first polygon's average of extremes\n const point = pointInPolygons(c, polygons) ? c : flat[0];\n\n return {\n id: tempId,\n levelId,\n shapeId,\n kind: 'unit',\n x: point.x,\n y: point.y,\n connectorId: null,\n };\n}\n\n/**\n * Build a simple medial-axis-ish skeleton from walkable polygons minus voids.\n * This is a pragmatic approximation: sample a grid inside walkable, reject void cells,\n * connect adjacent free cells into a sparse graph, then prune to a polyline network.\n */\nexport function buildAutoSkeleton(\n walkablePolygons: Vec2[][],\n voidPolygons: Vec2[][],\n cellSize = 20,\n): SkeletonSuggestion {\n if (walkablePolygons.length === 0) {\n return { anchors: [], edges: [] };\n }\n\n let minX = Infinity;\n let minY = Infinity;\n let maxX = -Infinity;\n let maxY = -Infinity;\n for (const poly of walkablePolygons) {\n for (const p of poly) {\n minX = Math.min(minX, p.x);\n minY = Math.min(minY, p.y);\n maxX = Math.max(maxX, p.x);\n maxY = Math.max(maxY, p.y);\n }\n }\n\n const cols = Math.max(1, Math.ceil((maxX - minX) / cellSize));\n const rows = Math.max(1, Math.ceil((maxY - minY) / cellSize));\n const free: Array<{ key: string; x: number; y: number; col: number; row: number }> = [];\n\n for (let row = 0; row < rows; row++) {\n for (let col = 0; col < cols; col++) {\n const x = minX + (col + 0.5) * cellSize;\n const y = minY + (row + 0.5) * cellSize;\n const pt = { x, y };\n if (!pointInPolygons(pt, walkablePolygons)) continue;\n if (voidPolygons.length > 0 && pointInPolygons(pt, voidPolygons)) continue;\n free.push({ key: `${col},${row}`, x, y, col, row });\n }\n }\n\n const byKey = new Map(free.map((c) => [c.key, c]));\n const anchors = free.map((c) => ({\n tempId: c.key,\n x: c.x,\n y: c.y,\n kind: 'junction' as const,\n }));\n\n const edges: Array<{ fromTempId: string; toTempId: string }> = [];\n const seen = new Set<string>();\n\n for (const cell of free) {\n const neighbors = [\n [cell.col + 1, cell.row],\n [cell.col, cell.row + 1],\n ];\n for (const [nc, nr] of neighbors) {\n const nk = `${nc},${nr}`;\n if (!byKey.has(nk)) continue;\n const edgeKey = cell.key < nk ? `${cell.key}|${nk}` : `${nk}|${cell.key}`;\n if (seen.has(edgeKey)) continue;\n seen.add(edgeKey);\n edges.push({ fromTempId: cell.key, toTempId: nk });\n }\n }\n\n return { anchors, edges };\n}\n\n/**\n * Convert ROUTES-group SVG line endpoints into welded anchors + edges.\n * This is the key converter step that repairs coincident-but-disconnected joins.\n *\n * Anchors land in raw SVG user space (Y down), the same space as shape\n * geometry. There is intentionally no viewbox-height flip here — mirroring\n * routes without mirroring shapes would silently desynchronise the two.\n */\nexport function importRoutePaths(\n pathDs: string[],\n levelId: number,\n mapId: number,\n startId: number,\n weldTolerance = DEFAULT_WELD_TOLERANCE,\n): { anchors: CmAnchor[]; edges: CmRouteEdge[]; nextId: number } {\n const anchors: CmAnchor[] = [];\n const edges: CmRouteEdge[] = [];\n let nextId = startId;\n\n const findOrCreate = (x: number, y: number): number => {\n const existing = anchors.find(\n (a) => distance(a, { x, y }) <= weldTolerance,\n );\n if (existing) return existing.id;\n const id = nextId++;\n anchors.push({\n id,\n levelId,\n shapeId: null,\n kind: 'junction',\n x,\n y,\n connectorId: null,\n });\n return id;\n };\n\n for (const d of pathDs) {\n const polys = pathToPolygons(d);\n for (const poly of polys) {\n for (let i = 0; i < poly.length - 1; i++) {\n const a = findOrCreate(poly[i].x, poly[i].y);\n const b = findOrCreate(poly[i + 1].x, poly[i + 1].y);\n if (a === b) continue;\n // Avoid duplicate edges\n const dup = edges.some(\n (e) =>\n (e.fromAnchorId === a && e.toAnchorId === b) ||\n (e.fromAnchorId === b && e.toAnchorId === a),\n );\n if (dup) continue;\n edges.push({\n id: nextId++,\n mapId,\n fromAnchorId: a,\n toAnchorId: b,\n weight: null,\n directed: false,\n accessible: true,\n kind: 'walk',\n });\n }\n }\n }\n\n const collapsed = collapseDuplicateRouteGraph(anchors, edges, weldTolerance);\n return { anchors: collapsed.anchors, edges: collapsed.edges, nextId };\n}\n\nexport function routeAnchorKindForShape(kind: ShapeKind): AnchorKind {\n if (kind === 'entrance') return 'entrance';\n if (kind === 'connector') return 'connector';\n return 'unit';\n}\n\nfunction routeLinkKind(kind: AnchorKind): CmRouteEdge['kind'] {\n return kind === 'entrance' ? 'entrance_link' : 'unit_link';\n}\n\n/** `inside` matches v1's store-mesh hit; `near` is a door-step fallback. */\nfunction pointOnPolygons(\n point: Vec2,\n polygons: Vec2[][],\n tolerance: number,\n): 'inside' | 'near' | null {\n if (pointInPolygons(point, polygons)) return 'inside';\n for (const poly of polygons) {\n if (poly.length < 2) continue;\n const closed = [...poly, poly[0]];\n const hit = nearestPointOnPolyline(point, closed);\n if (hit && hit.distance <= tolerance) return 'near';\n }\n return null;\n}\n\nexport interface AttachableImportShape {\n id: number;\n kind: ShapeKind;\n geometry: Pick<ShapeGeometry, 'polygons'>;\n}\n\nfunction shapeUnderImportedAnchor(\n point: Vec2,\n shapes: AttachableImportShape[],\n insideTolerance: number,\n): AttachableImportShape | null {\n let near: AttachableImportShape | null = null;\n for (const shape of shapes) {\n if (!INTERACTIVE_SHAPE_KINDS.includes(shape.kind)) continue;\n const polys = shape.geometry.polygons ?? [];\n if (polys.length === 0) continue;\n const hit = pointOnPolygons(point, polys, insideTolerance);\n if (hit === 'inside') return shape;\n if (hit === 'near' && near == null) near = shape;\n }\n return near;\n}\n\n/**\n * Check every imported route vertex. If it falls inside (or on) a store /\n * amenity / kiosk / connector, it becomes that shape's orange destination.\n * A shape may own any number of those points so pathfinding can leave from\n * the nearest door. Corridor through-points keep `walk` edges; leaf stubs\n * become `unit_link`.\n */\nexport function attachImportedRouteAnchors(\n anchors: CmAnchor[],\n edges: CmRouteEdge[],\n shapes: AttachableImportShape[],\n insideTolerance = DEFAULT_WELD_TOLERANCE * 3,\n): number {\n const degree = new Map<number, number>();\n for (const edge of edges) {\n degree.set(edge.fromAnchorId, (degree.get(edge.fromAnchorId) ?? 0) + 1);\n degree.set(edge.toAnchorId, (degree.get(edge.toAnchorId) ?? 0) + 1);\n }\n\n let attached = 0;\n for (const anchor of anchors) {\n if (anchor.shapeId != null) continue;\n const shape = shapeUnderImportedAnchor(anchor, shapes, insideTolerance);\n if (!shape) continue;\n anchor.shapeId = shape.id;\n anchor.kind = routeAnchorKindForShape(shape.kind);\n attached += 1;\n if ((degree.get(anchor.id) ?? 0) > 1) continue;\n const linkKind = routeLinkKind(anchor.kind);\n for (const edge of edges) {\n if (edge.fromAnchorId === anchor.id || edge.toAnchorId === anchor.id) {\n edge.kind = linkKind;\n }\n }\n }\n\n return attached;\n}\n","/**\n * Wheel / trackpad zoom curve for every map surface.\n *\n * PORTAL default MapViewer uses drei → three-stdlib OrbitControls, whose\n * `getZoomScale()` is `Math.pow(0.95, zoomSpeed)` **per wheel event** (not\n * scaled by `deltaY`). Edit Map / Wayfinding must use the same step or they\n * feel slower than the assign map.\n *\n * Scroll up zooms in; the caller keeps the pointer over the same map point\n * (`panAfterZoom` on the SVG canvas, `zoomToCursor` on OrbitControls).\n */\n\n/** three-stdlib OrbitControls `Math.pow(0.95, zoomSpeed)` base. */\nexport const WHEEL_ZOOM_BASE = 0.95;\n/** drei / three-stdlib default `zoomSpeed`. */\nexport const WHEEL_ZOOM_SPEED = 1;\n\n/**\n * OrbitControls dolly scale for one wheel event: `0.95 ** zoomSpeed`.\n * Sign of `deltaY` is ignored here; `nextZoomFromWheel` applies in vs out.\n */\nexport function wheelDollyScale(zoomSpeed = WHEEL_ZOOM_SPEED): number {\n return Math.pow(WHEEL_ZOOM_BASE, zoomSpeed);\n}\n\n/**\n * Next SVG / orthographic zoom from a wheel event.\n * `deltaY < 0` zooms in. Pan separately so the cursor stays on the same point.\n */\nexport function nextZoomFromWheel(\n currentZoom: number,\n deltaY: number,\n options?: {\n zoomSpeed?: number;\n min?: number;\n max?: number;\n },\n): number {\n if (deltaY === 0) return currentZoom;\n const scale = wheelDollyScale(options?.zoomSpeed ?? WHEEL_ZOOM_SPEED);\n const next = deltaY < 0 ? currentZoom / scale : currentZoom * scale;\n const min = options?.min ?? Number.NEGATIVE_INFINITY;\n const max = options?.max ?? Number.POSITIVE_INFINITY;\n return Math.min(max, Math.max(min, next));\n}\n"],"names":["outdoorDecorationFromSvg","svgText","suppressIds","theme","parsed","parseSvgString","out","el","isRoutePathLabel","isRouteFolderLabel","isInteractiveGroupLabel","isStoreFolderLabel","layer","resolveLayerStyle","fill","isAmenityLayerId","amenityHouseFill","_a","stroke","_b","strokeWidth","_c","_d","sortByOutdoorSvgPaintOrder","item","weldAnchors","anchors","edges","candidateIds","tolerance","DEFAULT_WELD_TOLERANCE","candidates","a","surviving","min","removed","distance","removedSet","rewired","edge","changed","findWeldCandidates","groups","used","i","group","j","collapseDuplicateRouteGraph","nextAnchors","nextEdges","result","id","alive","anchor","seen","uniqueEdges","lo","hi","key","autoConnectUnitAnchor","unitAnchor","walkablePolylines","existingJunctions","weldTolerance","best","line","hit","nearestPointOnPolyline","existing","unitAnchorFromShape","shapeId","levelId","polygons","tempId","flat","sx","sy","p","c","point","pointInPolygons","buildAutoSkeleton","walkablePolygons","voidPolygons","cellSize","minX","minY","maxX","maxY","poly","cols","rows","free","row","col","x","y","pt","byKey","cell","neighbors","nc","nr","nk","edgeKey","importRoutePaths","pathDs","mapId","startId","nextId","findOrCreate","d","polys","pathToPolygons","b","e","collapsed","routeAnchorKindForShape","kind","routeLinkKind","pointOnPolygons","closed","shapeUnderImportedAnchor","shapes","insideTolerance","near","shape","INTERACTIVE_SHAPE_KINDS","attachImportedRouteAnchors","degree","attached","linkKind","WHEEL_ZOOM_BASE","WHEEL_ZOOM_SPEED","wheelDollyScale","zoomSpeed","nextZoomFromWheel","currentZoom","deltaY","options","scale","next","max"],"mappings":";AA6BO,SAASA,EACdC,GACAC,GACAC,GACyB;;AACzB,QAAMC,IAASC,EAAeJ,CAAO,GAC/BK,IAA+B,CAAA;AACrC,aAAWC,KAAMH,EAAO,UAAU;AAOhC,QANI,CAACG,EAAG,KACJA,EAAG,eACHL,KAAA,QAAAA,EAAa,IAAIK,EAAG,OACpB,iCAAiC,KAAKA,EAAG,EAAE,KAC3CA,EAAG,GAAG,YAAA,EAAc,WAAW,YAAY,KAC3CC,EAAiBD,EAAG,EAAE,KAAKE,EAAmBF,EAAG,EAAE,KACnDG,EAAwBH,EAAG,EAAE,KAAKI,EAAmBJ,EAAG,EAAE,EAAG;AAEjE,UAAMK,IAAQC,EAAkBN,EAAG,IAAIJ,CAAK,GACtCW,KACJF,KAAA,gBAAAA,EAAO,UACNG,EAAiBR,EAAG,EAAE,IAAIS,EAAiBb,CAAK,KAAIc,IAAAV,EAAG,UAAH,gBAAAU,EAAU,OAC3DC,KAASN,KAAA,gBAAAA,EAAO,aAAUO,IAAAZ,EAAG,UAAH,gBAAAY,EAAU,SACpCC,KAAcR,KAAA,gBAAAA,EAAO,kBAAeS,IAAAd,EAAG,UAAH,gBAAAc,EAAU;AACpD,IAAAf,EAAI,KAAK;AAAA,MACP,IAAIC,EAAG;AAAA,MACP,GAAGA,EAAG;AAAA,MACN,MAAMO,KAAQA,MAAS,SAASA,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AQsE,GAAQC,CAAe;AAKtE,QAJI,CAACE,MACLzE,EAAO,UAAUyE,EAAM,IACvBzE,EAAO,OAAOgE,EAAwBS,EAAM,IAAI,GAChDI,KAAY,IACPD,EAAO,IAAI5E,EAAO,EAAE,KAAK,KAAK,GAAG;AACtC,UAAM8E,IAAWZ,EAAclE,EAAO,IAAI;AAC1C,eAAWd,KAAQZ;AACjB,OAAIY,EAAK,iBAAiBc,EAAO,MAAMd,EAAK,eAAec,EAAO,QAChEd,EAAK,OAAO4F;AAAA,EAGlB;AAEA,SAAOD;AACT;AC3bO,MAAME,IAAkB,MAElBC,IAAmB;AAMzB,SAASC,EAAgBC,IAAYF,GAA0B;AACpE,SAAO,KAAK,IAAID,GAAiBG,CAAS;AAC5C;AAMO,SAASC,EACdC,GACAC,GACAC,GAKQ;AACR,MAAID,MAAW,EAAG,QAAOD;AACzB,QAAMG,IAAQN,GAAgBK,KAAA,gBAAAA,EAAS,cAAaN,CAAgB,GAC9DQ,IAAOH,IAAS,IAAID,IAAcG,IAAQH,IAAcG,GACxD1G,KAAMyG,KAAA,gBAAAA,EAAS,QAAO,OAAO,mBAC7BG,KAAMH,KAAA,gBAAAA,EAAS,QAAO,OAAO;AACnC,SAAO,KAAK,IAAIG,GAAK,KAAK,IAAI5G,GAAK2G,CAAI,CAAC;AAC1C;"}
1
+ {"version":3,"file":"wheelZoom.js","sources":["../../src/core/outdoorDecoration.ts","../../src/core/routing/graph-tools.ts","../../src/core/wheelZoom.ts"],"sourcesContent":["import {\n parseSvgString,\n isInteractiveGroupLabel,\n isRouteFolderLabel,\n isRoutePathLabel,\n isStoreFolderLabel,\n} from './import';\nimport { amenityHouseFill, isAmenityLayerId } from './shapeFill';\nimport {\n resolveLayerStyle,\n sortByOutdoorSvgPaintOrder,\n type StaticLayerTheme,\n} from './layerStyles';\n\nexport interface OutdoorDecorationPath {\n id: string;\n d: string;\n fill?: string;\n stroke?: string;\n strokeWidth?: number;\n opacity?: number;\n}\n\n/**\n * Paths the assign viewer draws from the live outdoor SVG: house-style\n * decoration (green area, parking lanes, icons) and any other\n * non-interactive art. Interactive / store folders stay out — those are\n * `cm_shapes` rows.\n */\nexport function outdoorDecorationFromSvg(\n svgText: string,\n suppressIds?: ReadonlySet<string>,\n theme?: StaticLayerTheme | null,\n): OutdoorDecorationPath[] {\n const parsed = parseSvgString(svgText);\n const out: OutdoorDecorationPath[] = [];\n for (const el of parsed.elements) {\n if (!el.d) continue;\n if (el.interactive) continue;\n if (suppressIds?.has(el.id)) continue;\n if (/^parking[-_]?lines?(?:[-_]|$)/i.test(el.id)) continue;\n if (el.id.toLowerCase().startsWith('route-path')) continue;\n if (isRoutePathLabel(el.id) || isRouteFolderLabel(el.id)) continue;\n if (isInteractiveGroupLabel(el.id) || isStoreFolderLabel(el.id)) continue;\n\n const layer = resolveLayerStyle(el.id, theme);\n const fill =\n layer?.fill ??\n (isAmenityLayerId(el.id) ? amenityHouseFill(theme) : el.style?.fill);\n const stroke = layer?.stroke ?? el.style?.stroke;\n const strokeWidth = layer?.strokeWidth ?? el.style?.strokeWidth;\n out.push({\n id: el.id,\n d: el.d,\n fill: fill && fill !== 'none' ? fill : undefined,\n stroke: stroke && stroke !== 'none' ? stroke : undefined,\n strokeWidth,\n opacity: el.style?.opacity,\n });\n }\n // Parking lanes move under green areas. Later special shapes stay on top.\n return sortByOutdoorSvgPaintOrder(out, (item) => item.id);\n}\n","import type {\n AnchorKind,\n AutoConnectResult,\n CmAnchor,\n CmRouteEdge,\n ShapeGeometry,\n ShapeKind,\n SkeletonSuggestion,\n Vec2,\n WeldResult,\n} from '../types';\nimport { DEFAULT_WELD_TOLERANCE, INTERACTIVE_SHAPE_KINDS } from '../types';\nimport {\n distance,\n nearestPointOnPolyline,\n pathToPolygons,\n pointInPolygons,\n} from '../geometry';\n\nexport interface AnchorLike {\n id: number;\n x: number;\n y: number;\n levelId: number;\n shapeId?: number | null;\n kind?: string;\n}\n\nexport interface EdgeLike {\n id: number;\n fromAnchorId: number;\n toAnchorId: number;\n}\n\n/**\n * Weld anchors within tolerance into the surviving (lowest id) anchor.\n * Rewires edges that referenced removed anchors.\n */\nexport function weldAnchors(\n anchors: AnchorLike[],\n edges: EdgeLike[],\n candidateIds: number[],\n tolerance = DEFAULT_WELD_TOLERANCE,\n): WeldResult | null {\n const candidates = anchors.filter((a) => candidateIds.includes(a.id));\n if (candidates.length < 2) return null;\n\n // Cluster by proximity from the first candidate's position centroid of group\n const surviving = candidates.reduce((min, a) => (a.id < min.id ? a : min));\n const removed: number[] = [];\n\n for (const a of candidates) {\n if (a.id === surviving.id) continue;\n if (distance(a, surviving) <= tolerance) {\n removed.push(a.id);\n }\n }\n\n if (removed.length === 0) return null;\n\n const removedSet = new Set(removed);\n const rewired: number[] = [];\n\n for (const edge of edges) {\n let changed = false;\n if (removedSet.has(edge.fromAnchorId)) {\n edge.fromAnchorId = surviving.id;\n changed = true;\n }\n if (removedSet.has(edge.toAnchorId)) {\n edge.toAnchorId = surviving.id;\n changed = true;\n }\n // Drop self-loops\n if (edge.fromAnchorId === edge.toAnchorId) {\n rewired.push(edge.id);\n continue;\n }\n if (changed) rewired.push(edge.id);\n }\n\n return {\n survivingAnchorId: surviving.id,\n removedAnchorIds: removed,\n rewiredEdgeIds: rewired,\n };\n}\n\n/**\n * Find all pairs of anchors within tolerance that should be welded.\n */\nexport function findWeldCandidates(\n anchors: AnchorLike[],\n tolerance = DEFAULT_WELD_TOLERANCE,\n): number[][] {\n const groups: number[][] = [];\n const used = new Set<number>();\n\n for (let i = 0; i < anchors.length; i++) {\n if (used.has(anchors[i].id)) continue;\n const group = [anchors[i].id];\n for (let j = i + 1; j < anchors.length; j++) {\n if (used.has(anchors[j].id)) continue;\n if (\n anchors[i].levelId === anchors[j].levelId &&\n distance(anchors[i], anchors[j]) <= tolerance\n ) {\n group.push(anchors[j].id);\n used.add(anchors[j].id);\n }\n }\n if (group.length > 1) {\n used.add(anchors[i].id);\n groups.push(group);\n }\n }\n return groups;\n}\n\n/**\n * Merge coincident anchors and drop overlapping undirected edges.\n * Two SVG imports of the same ROUTES layer stack a second copy on top of\n * the first — dragging one junction then leaves the twin behind.\n */\nexport function collapseDuplicateRouteGraph<\n A extends AnchorLike,\n E extends EdgeLike,\n>(\n anchors: A[],\n edges: E[],\n tolerance = DEFAULT_WELD_TOLERANCE,\n): { anchors: A[]; edges: E[] } {\n const nextAnchors = anchors.slice();\n const nextEdges = edges.map((edge) => ({ ...edge }));\n const removed = new Set<number>();\n for (const group of findWeldCandidates(nextAnchors, tolerance)) {\n const result = weldAnchors(nextAnchors, nextEdges, group, tolerance);\n if (!result) continue;\n for (const id of result.removedAnchorIds) removed.add(id);\n }\n const alive = nextAnchors.filter((anchor) => !removed.has(anchor.id));\n const seen = new Set<string>();\n const uniqueEdges: E[] = [];\n for (const edge of nextEdges) {\n if (removed.has(edge.fromAnchorId) || removed.has(edge.toAnchorId)) continue;\n if (edge.fromAnchorId === edge.toAnchorId) continue;\n const lo = Math.min(edge.fromAnchorId, edge.toAnchorId);\n const hi = Math.max(edge.fromAnchorId, edge.toAnchorId);\n const key = `${lo}|${hi}`;\n if (seen.has(key)) continue;\n seen.add(key);\n uniqueEdges.push(edge);\n }\n return { anchors: alive, edges: uniqueEdges };\n}\n\n/**\n * Auto-connect a unit anchor to the nearest walkable segment via perpendicular projection.\n */\nexport function autoConnectUnitAnchor(\n unitAnchor: AnchorLike,\n walkablePolylines: Vec2[][],\n existingJunctions: AnchorLike[],\n weldTolerance = DEFAULT_WELD_TOLERANCE,\n): AutoConnectResult | null {\n let best: { point: Vec2; distance: number } | null = null;\n\n for (const line of walkablePolylines) {\n const hit = nearestPointOnPolyline(unitAnchor, line);\n if (hit && (!best || hit.distance < best.distance)) {\n best = { point: hit.point, distance: hit.distance };\n }\n }\n\n if (!best) return null;\n\n // Reuse existing junction if within weld tolerance\n const existing = existingJunctions.find(\n (j) =>\n j.levelId === unitAnchor.levelId &&\n distance(j, best!.point) <= weldTolerance,\n );\n\n return {\n unitAnchorId: unitAnchor.id,\n junctionAnchor: existing\n ? { x: existing.x, y: existing.y, existingId: existing.id }\n : { x: best.point.x, y: best.point.y },\n edge: {\n fromAnchorId: unitAnchor.id,\n toAnchorId: existing?.id,\n },\n };\n}\n\n/**\n * Place a unit anchor at the centroid of a shape's polygons, if the point lies inside.\n */\nexport function unitAnchorFromShape(\n shapeId: number,\n levelId: number,\n polygons: Vec2[][],\n tempId: number,\n): CmAnchor | null {\n if (polygons.length === 0) return null;\n const flat = polygons.flat();\n if (flat.length === 0) return null;\n\n let sx = 0;\n let sy = 0;\n for (const p of flat) {\n sx += p.x;\n sy += p.y;\n }\n const c = { x: sx / flat.length, y: sy / flat.length };\n\n // Prefer centroid if inside; otherwise use first polygon's average of extremes\n const point = pointInPolygons(c, polygons) ? c : flat[0];\n\n return {\n id: tempId,\n levelId,\n shapeId,\n kind: 'unit',\n x: point.x,\n y: point.y,\n connectorId: null,\n };\n}\n\n/**\n * Build a simple medial-axis-ish skeleton from walkable polygons minus voids.\n * This is a pragmatic approximation: sample a grid inside walkable, reject void cells,\n * connect adjacent free cells into a sparse graph, then prune to a polyline network.\n */\nexport function buildAutoSkeleton(\n walkablePolygons: Vec2[][],\n voidPolygons: Vec2[][],\n cellSize = 20,\n): SkeletonSuggestion {\n if (walkablePolygons.length === 0) {\n return { anchors: [], edges: [] };\n }\n\n let minX = Infinity;\n let minY = Infinity;\n let maxX = -Infinity;\n let maxY = -Infinity;\n for (const poly of walkablePolygons) {\n for (const p of poly) {\n minX = Math.min(minX, p.x);\n minY = Math.min(minY, p.y);\n maxX = Math.max(maxX, p.x);\n maxY = Math.max(maxY, p.y);\n }\n }\n\n const cols = Math.max(1, Math.ceil((maxX - minX) / cellSize));\n const rows = Math.max(1, Math.ceil((maxY - minY) / cellSize));\n const free: Array<{ key: string; x: number; y: number; col: number; row: number }> = [];\n\n for (let row = 0; row < rows; row++) {\n for (let col = 0; col < cols; col++) {\n const x = minX + (col + 0.5) * cellSize;\n const y = minY + (row + 0.5) * cellSize;\n const pt = { x, y };\n if (!pointInPolygons(pt, walkablePolygons)) continue;\n if (voidPolygons.length > 0 && pointInPolygons(pt, voidPolygons)) continue;\n free.push({ key: `${col},${row}`, x, y, col, row });\n }\n }\n\n const byKey = new Map(free.map((c) => [c.key, c]));\n const anchors = free.map((c) => ({\n tempId: c.key,\n x: c.x,\n y: c.y,\n kind: 'junction' as const,\n }));\n\n const edges: Array<{ fromTempId: string; toTempId: string }> = [];\n const seen = new Set<string>();\n\n for (const cell of free) {\n const neighbors = [\n [cell.col + 1, cell.row],\n [cell.col, cell.row + 1],\n ];\n for (const [nc, nr] of neighbors) {\n const nk = `${nc},${nr}`;\n if (!byKey.has(nk)) continue;\n const edgeKey = cell.key < nk ? `${cell.key}|${nk}` : `${nk}|${cell.key}`;\n if (seen.has(edgeKey)) continue;\n seen.add(edgeKey);\n edges.push({ fromTempId: cell.key, toTempId: nk });\n }\n }\n\n return { anchors, edges };\n}\n\n/**\n * Convert ROUTES-group SVG line endpoints into welded anchors + edges.\n * This is the key converter step that repairs coincident-but-disconnected joins.\n *\n * Anchors land in raw SVG user space (Y down), the same space as shape\n * geometry. There is intentionally no viewbox-height flip here — mirroring\n * routes without mirroring shapes would silently desynchronise the two.\n */\nexport function importRoutePaths(\n pathDs: string[],\n levelId: number,\n mapId: number,\n startId: number,\n weldTolerance = DEFAULT_WELD_TOLERANCE,\n): { anchors: CmAnchor[]; edges: CmRouteEdge[]; nextId: number } {\n const anchors: CmAnchor[] = [];\n const edges: CmRouteEdge[] = [];\n let nextId = startId;\n\n const findOrCreate = (x: number, y: number): number => {\n const existing = anchors.find(\n (a) => distance(a, { x, y }) <= weldTolerance,\n );\n if (existing) return existing.id;\n const id = nextId++;\n anchors.push({\n id,\n levelId,\n shapeId: null,\n kind: 'junction',\n x,\n y,\n connectorId: null,\n });\n return id;\n };\n\n for (const d of pathDs) {\n const polys = pathToPolygons(d);\n for (const poly of polys) {\n for (let i = 0; i < poly.length - 1; i++) {\n const a = findOrCreate(poly[i].x, poly[i].y);\n const b = findOrCreate(poly[i + 1].x, poly[i + 1].y);\n if (a === b) continue;\n // Avoid duplicate edges\n const dup = edges.some(\n (e) =>\n (e.fromAnchorId === a && e.toAnchorId === b) ||\n (e.fromAnchorId === b && e.toAnchorId === a),\n );\n if (dup) continue;\n edges.push({\n id: nextId++,\n mapId,\n fromAnchorId: a,\n toAnchorId: b,\n weight: null,\n directed: false,\n accessible: true,\n kind: 'walk',\n });\n }\n }\n }\n\n const collapsed = collapseDuplicateRouteGraph(anchors, edges, weldTolerance);\n return { anchors: collapsed.anchors, edges: collapsed.edges, nextId };\n}\n\nexport function routeAnchorKindForShape(kind: ShapeKind): AnchorKind {\n if (kind === 'entrance') return 'entrance';\n if (kind === 'connector') return 'connector';\n return 'unit';\n}\n\nfunction routeLinkKind(kind: AnchorKind): CmRouteEdge['kind'] {\n return kind === 'entrance' ? 'entrance_link' : 'unit_link';\n}\n\n/** `inside` matches v1's store-mesh hit; `near` is a door-step fallback. */\nfunction pointOnPolygons(\n point: Vec2,\n polygons: Vec2[][],\n tolerance: number,\n): 'inside' | 'near' | null {\n if (pointInPolygons(point, polygons)) return 'inside';\n for (const poly of polygons) {\n if (poly.length < 2) continue;\n const closed = [...poly, poly[0]];\n const hit = nearestPointOnPolyline(point, closed);\n if (hit && hit.distance <= tolerance) return 'near';\n }\n return null;\n}\n\nexport interface AttachableImportShape {\n id: number;\n kind: ShapeKind;\n geometry: Pick<ShapeGeometry, 'polygons'>;\n}\n\nfunction shapeUnderImportedAnchor(\n point: Vec2,\n shapes: AttachableImportShape[],\n insideTolerance: number,\n): AttachableImportShape | null {\n let near: AttachableImportShape | null = null;\n for (const shape of shapes) {\n if (!INTERACTIVE_SHAPE_KINDS.includes(shape.kind)) continue;\n const polys = shape.geometry.polygons ?? [];\n if (polys.length === 0) continue;\n const hit = pointOnPolygons(point, polys, insideTolerance);\n if (hit === 'inside') return shape;\n if (hit === 'near' && near == null) near = shape;\n }\n return near;\n}\n\n/**\n * Check every imported route vertex. If it falls inside (or on) a store /\n * amenity / kiosk / connector, it becomes that shape's orange destination.\n * A shape may own any number of those points so pathfinding can leave from\n * the nearest door. Corridor through-points keep `walk` edges; leaf stubs\n * become `unit_link`.\n */\nexport function attachImportedRouteAnchors(\n anchors: CmAnchor[],\n edges: CmRouteEdge[],\n shapes: AttachableImportShape[],\n insideTolerance = DEFAULT_WELD_TOLERANCE * 3,\n): number {\n const degree = new Map<number, number>();\n for (const edge of edges) {\n degree.set(edge.fromAnchorId, (degree.get(edge.fromAnchorId) ?? 0) + 1);\n degree.set(edge.toAnchorId, (degree.get(edge.toAnchorId) ?? 0) + 1);\n }\n\n let attached = 0;\n for (const anchor of anchors) {\n if (anchor.shapeId != null) continue;\n const shape = shapeUnderImportedAnchor(anchor, shapes, insideTolerance);\n if (!shape) continue;\n anchor.shapeId = shape.id;\n anchor.kind = routeAnchorKindForShape(shape.kind);\n attached += 1;\n if ((degree.get(anchor.id) ?? 0) > 1) continue;\n const linkKind = routeLinkKind(anchor.kind);\n for (const edge of edges) {\n if (edge.fromAnchorId === anchor.id || edge.toAnchorId === anchor.id) {\n edge.kind = linkKind;\n }\n }\n }\n\n return attached;\n}\n","/**\n * Wheel / trackpad zoom curve for every map surface.\n *\n * PORTAL default MapViewer uses drei → three-stdlib OrbitControls, whose\n * `getZoomScale()` is `Math.pow(0.95, zoomSpeed)` **per wheel event** (not\n * scaled by `deltaY`). Edit Map / Wayfinding must use the same step or they\n * feel slower than the assign map.\n *\n * Scroll up zooms in; the caller keeps the pointer over the same map point\n * (`panAfterZoom` on the SVG canvas, `zoomToCursor` on OrbitControls).\n */\n\n/** three-stdlib OrbitControls `Math.pow(0.95, zoomSpeed)` base. */\nexport const WHEEL_ZOOM_BASE = 0.95;\n/** drei / three-stdlib default `zoomSpeed`. */\nexport const WHEEL_ZOOM_SPEED = 1;\n\n/**\n * OrbitControls dolly scale for one wheel event: `0.95 ** zoomSpeed`.\n * Sign of `deltaY` is ignored here; `nextZoomFromWheel` applies in vs out.\n */\nexport function wheelDollyScale(zoomSpeed = WHEEL_ZOOM_SPEED): number {\n return Math.pow(WHEEL_ZOOM_BASE, zoomSpeed);\n}\n\n/**\n * Next SVG / orthographic zoom from a wheel event.\n * `deltaY < 0` zooms in. Pan separately so the cursor stays on the same point.\n */\nexport function nextZoomFromWheel(\n currentZoom: number,\n deltaY: number,\n options?: {\n zoomSpeed?: number;\n min?: number;\n max?: number;\n },\n): number {\n if (deltaY === 0) return currentZoom;\n const scale = wheelDollyScale(options?.zoomSpeed ?? WHEEL_ZOOM_SPEED);\n const next = deltaY < 0 ? currentZoom / scale : currentZoom * scale;\n const min = options?.min ?? Number.NEGATIVE_INFINITY;\n const max = options?.max ?? Number.POSITIVE_INFINITY;\n return Math.min(max, Math.max(min, next));\n}\n"],"names":["outdoorDecorationFromSvg","svgText","suppressIds","theme","parsed","parseSvgString","out","el","isRoutePathLabel","isRouteFolderLabel","isInteractiveGroupLabel","isStoreFolderLabel","layer","resolveLayerStyle","fill","isAmenityLayerId","amenityHouseFill","_a","stroke","_b","strokeWidth","_c","_d","sortByOutdoorSvgPaintOrder","item","weldAnchors","anchors","edges","candidateIds","tolerance","DEFAULT_WELD_TOLERANCE","candidates","a","surviving","min","removed","distance","removedSet","rewired","edge","changed","findWeldCandidates","groups","used","i","group","j","collapseDuplicateRouteGraph","nextAnchors","nextEdges","result","id","alive","anchor","seen","uniqueEdges","lo","hi","key","autoConnectUnitAnchor","unitAnchor","walkablePolylines","existingJunctions","weldTolerance","best","line","hit","nearestPointOnPolyline","existing","unitAnchorFromShape","shapeId","levelId","polygons","tempId","flat","sx","sy","p","c","point","pointInPolygons","buildAutoSkeleton","walkablePolygons","voidPolygons","cellSize","minX","minY","maxX","maxY","poly","cols","rows","free","row","col","x","y","pt","byKey","cell","neighbors","nc","nr","nk","edgeKey","importRoutePaths","pathDs","mapId","startId","nextId","findOrCreate","d","polys","pathToPolygons","b","e","collapsed","routeAnchorKindForShape","kind","routeLinkKind","pointOnPolygons","closed","shapeUnderImportedAnchor","shapes","insideTolerance","near","shape","INTERACTIVE_SHAPE_KINDS","attachImportedRouteAnchors","degree","attached","linkKind","WHEEL_ZOOM_BASE","WHEEL_ZOOM_SPEED","wheelDollyScale","zoomSpeed","nextZoomFromWheel","currentZoom","deltaY","options","scale","next","max"],"mappings":";AA6BO,SAASA,EACdC,GACAC,GACAC,GACyB;;AACzB,QAAMC,IAASC,EAAeJ,CAAO,GAC/BK,IAA+B,CAAA;AACrC,aAAWC,KAAMH,EAAO,UAAU;AAOhC,QANI,CAACG,EAAG,KACJA,EAAG,eACHL,KAAA,QAAAA,EAAa,IAAIK,EAAG,OACpB,iCAAiC,KAAKA,EAAG,EAAE,KAC3CA,EAAG,GAAG,YAAA,EAAc,WAAW,YAAY,KAC3CC,EAAiBD,EAAG,EAAE,KAAKE,EAAmBF,EAAG,EAAE,KACnDG,EAAwBH,EAAG,EAAE,KAAKI,EAAmBJ,EAAG,EAAE,EAAG;AAEjE,UAAMK,IAAQC,EAAkBN,EAAG,IAAIJ,CAAK,GACtCW,KACJF,KAAA,gBAAAA,EAAO,UACNG,EAAiBR,EAAG,EAAE,IAAIS,EAAiBb,CAAK,KAAIc,IAAAV,EAAG,UAAH,gBAAAU,EAAU,OAC3DC,KAASN,KAAA,gBAAAA,EAAO,aAAUO,IAAAZ,EAAG,UAAH,gBAAAY,EAAU,SACpCC,KAAcR,KAAA,gBAAAA,EAAO,kBAAeS,IAAAd,EAAG,UAAH,gBAAAc,EAAU;AACpD,IAAAf,EAAI,KAAK;AAAA,MACP,IAAIC,EAAG;AAAA,MACP,GAAGA,EAAG;AAAA,MACN,MAAMO,KAAQA,MAAS,SAASA,IAAO;AAAA,MACvC,QAAQI,KAAUA,MAAW,SAASA,IAAS;AAAA,MAC/C,aAAAE;AAAA,MACA,UAASE,IAAAf,EAAG,UAAH,gBAAAe,EAAU;AAAA,IAAA,CACpB;AAAA,EACH;AAEA,SAAOC,EAA2BjB,GAAK,C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AAM8E,IAAWZ,EAAclE,EAAO,IAAI;AAC1C,eAAWd,KAAQZ;AACjB,OAAIY,EAAK,iBAAiBc,EAAO,MAAMd,EAAK,eAAec,EAAO,QAChEd,EAAK,OAAO4F;AAAA,EAGlB;AAEA,SAAOD;AACT;AC3bO,MAAME,IAAkB,MAElBC,IAAmB;AAMzB,SAASC,EAAgBC,IAAYF,GAA0B;AACpE,SAAO,KAAK,IAAID,GAAiBG,CAAS;AAC5C;AAMO,SAASC,EACdC,GACAC,GACAC,GAKQ;AACR,MAAID,MAAW,EAAG,QAAOD;AACzB,QAAMG,IAAQN,GAAgBK,KAAA,gBAAAA,EAAS,cAAaN,CAAgB,GAC9DQ,IAAOH,IAAS,IAAID,IAAcG,IAAQH,IAAcG,GACxD1G,KAAMyG,KAAA,gBAAAA,EAAS,QAAO,OAAO,mBAC7BG,KAAMH,KAAA,gBAAAA,EAAS,QAAO,OAAO;AACnC,SAAO,KAAK,IAAIG,GAAK,KAAK,IAAI5G,GAAK2G,CAAI,CAAC;AAC1C;"}
@@ -2,7 +2,7 @@ import { AssignmentLayerType, AssignmentTargetType, CmShape, CmShapeAssignment,
2
2
  export declare const DEFAULT_ASSIGNMENT_SIZE = 12;
3
3
  /** Escalator / elevator icons use the same Size default as store names. */
4
4
  export declare const CONNECTOR_ICON_SIZE = 12;
5
- /** Retail logos read the same Size as retail names, then draw this many times larger. */
5
+ /** Retail logos and custom images read the same Size as text, then draw this many times larger. */
6
6
  export declare const RETAIL_LOGO_RENDER_SCALE = 4;
7
7
  export declare const ASSIGNMENT_LAYER_TYPES: AssignmentLayerType[];
8
8
  /**
@@ -19,6 +19,8 @@ export declare function commitAssignNumberDraft(raw: string): {
19
19
  };
20
20
  export declare function isAssignmentLayerType(value: unknown): value is AssignmentLayerType;
21
21
  export declare function defaultLayerTypeForKind(kind: ShapeKind): AssignmentLayerType;
22
+ /** External image pasted onto a Custom shape. Relative and S3 keys are not accepted. */
23
+ export declare function isHttpImageUrl(value: string | null | undefined): boolean;
22
24
  export declare function defaultTargetTypeForKind(kind: ShapeKind): AssignmentTargetType;
23
25
  export declare function emptyShapeAssignment(shapeId: number, kind: ShapeKind): CmShapeAssignment;
24
26
  /** Normalize a draft / API assignment row (camelCase or snake_case). */
@@ -53,6 +55,8 @@ export declare function resolvedAssignmentIconColor(assignment: {
53
55
  export declare function parseKioskIdInput(raw: string): number | null;
54
56
  type AssignmentTargetFields = Pick<CmShapeAssignment, 'targetType' | 'retailerId' | 'amenityId' | 'kioskId'> & {
55
57
  customLabel?: string | null;
58
+ layerType?: AssignmentLayerType | null;
59
+ customImageKey?: string | null;
56
60
  };
57
61
  /** Staff-facing amenity name: catalog title, then the v1 type code. */
58
62
  export declare function amenityAssignedName(assignment: {
@@ -79,7 +83,7 @@ export declare function assignmentSpecialIconId(assignment?: CmShapeAssignment |
79
83
  id: number;
80
84
  code: string;
81
85
  }> | null): 'kiosk' | string | undefined;
82
- /** Stored Size is shared; retail logos render larger than names. */
86
+ /** Stored Size is shared; retail logos and custom images render larger than text. */
83
87
  export declare function assignmentOverlayRenderSize(size: number, assignment?: {
84
88
  layerType?: AssignmentLayerType;
85
89
  } | null): number;
@@ -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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