@floless/app 0.133.2 → 0.134.1

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.
@@ -7,7 +7,7 @@ description: >-
7
7
  two-phase Drawing Filter process: first prepare and save the deterministic Filter, then read only the
8
8
  selected evidence into model-global members, registered plan views, observations, and revision history.
9
9
  metadata:
10
- version: 0.22.1
10
+ version: 0.23.1
11
11
  ---
12
12
 
13
13
  # Steel Takeoff — read drawings into `steel.model/v2`
@@ -24,7 +24,8 @@ Do not read members before the user saves the Drawing Filter.
24
24
  every page, and mints the Filter geometry and element identities. If sheet identity is ambiguous,
25
25
  inspect only the pages named by `sheet-identification-required` and retry with explicit bindings.
26
26
  Never build, rename, or replace server-owned Filter geometry yourself.
27
- 2. Stop and ask the user to review the Filter in Steel Filter and click **Save**.
27
+ 2. Stop and ask the user to review the Filter in **Drawing Filter** and press **Save filter** in the
28
+ top-right corner.
28
29
  3. Only after Save, fetch the request and its saved Filter again, pin its ETag, and read members from
29
30
  elements that the saved selection keeps.
30
31
 
@@ -52,7 +53,8 @@ A later instruction adds or changes work; it does not erase the primary requirem
52
53
 
53
54
  The ledger must close all of these inventories:
54
55
 
55
- - every attached source and every manifest page was rehashed and visually reviewed over its whole bounds;
56
+ - every attached source and every manifest page was rehashed and visually reviewed over its whole bounds,
57
+ and each page's review carries that page's server-computed `candidateShardHash`;
56
58
  - building massing and coordinate frames were stated before members were interpreted;
57
59
  - every Filter layer was classified;
58
60
  - every manifest line is either supported by an active observation or has a reviewed `lineDisposition`;
@@ -64,12 +66,97 @@ The ledger must close all of these inventories:
64
66
  - the final selected candidate is schema-valid, uses the exact saved Filter, stays within work limits,
65
67
  resolves member profiles/elevations honestly, and contains no unaccounted source evidence.
66
68
 
67
- Encode that ledger as the closed `steel-read/v1` attestation fields: `massing`, `layers`,
69
+ Encode that ledger as the closed `steel-read/v2` attestation fields: `massing`, `layers`,
68
70
  `lineDispositions`, `pageReviews`, `references`, `candidateDispositions`, and `jointReviews`. POST it with
69
71
  the candidate to `/revision-read/audit`. Treat every blocked check and sample id as mandatory remaining
70
72
  work, then repeat until `status: "read-complete"`. Never edit or fabricate a receipt: the server creates
71
73
  it from the exact manifest, saved Filter, candidate, proof, project incarnation, base, and generation.
72
74
 
75
+ ### What `steel-read/v2` requires
76
+
77
+ The manifest GET returns two derived fields you cannot compute yourself. Copy them exactly; do not
78
+ guess, recompute, or omit them.
79
+
80
+ - **`pageShards`** — one `{ pageId, candidateShardHash, candidateCount }` per manifest page. Give every
81
+ page **exactly one** review: `{ pageId, kind: "whole", candidateShardHash, note }`. There is no
82
+ second review per page, no `bbox`, and no `elementIds` — the server binds the page's own bounds and
83
+ its whole candidate set into the shard, so echoing candidate ids proves nothing and the fields are
84
+ gone. A missing page, a duplicate `pageId`, a foreign `pageId`, or a hash from another page or an
85
+ older manifest blocks `visual-coverage`.
86
+ - **`layerLineCounts`** — each `layers[]` row carries `lineCounts: { model, evidence }`, the number of
87
+ ledger lines that layer holds on model pages and on evidence-only pages. The server recomputes both
88
+ and `layer-census` blocks on any mismatch. A layer with non-zero counts on **both** roles means one
89
+ layer name is doing two jobs across sheets — attest it `mixed`, which requires an explicit
90
+ disposition for every one of its lines.
91
+
92
+ A `steel-read/v1` attestation is refused outright with no migration: re-run the read.
93
+
94
+ The whole closed shape, with every optional field shown (the two 64-hex placeholders below stand for
95
+ the real `candidateShardHash` from `pageShards` and the real joint `dependencyHash`):
96
+
97
+ ```json
98
+ {
99
+ "version": 2,
100
+ "massing": { "buildingCount": 1, "summary": "One two-storey steel-framed building." },
101
+ "layers": [
102
+ { "layer": "S-BEAM", "disposition": "member", "note": "Primary framing linework.", "lineCounts": { "model": 128, "evidence": 0 } }
103
+ ],
104
+ "lineDispositions": [
105
+ { "elementId": "<line id A>", "disposition": "annotation", "reason": "Dimension leader." },
106
+ { "elementId": "<line id B>", "disposition": "duplicate", "reason": "Same member drawn twice.", "duplicateOf": "<line id A>" }
107
+ ],
108
+ "pageReviews": [
109
+ { "pageId": "<manifest page id>", "kind": "whole", "candidateShardHash": "0000000000000000000000000000000000000000000000000000000000000000", "note": "Reviewed the whole sheet against its candidate shard." }
110
+ ],
111
+ "references": [
112
+ { "elementId": "<marker id A>", "status": "resolved", "targetPageId": "<manifest page id>" },
113
+ { "elementId": "<marker id B>", "status": "missing", "reason": "Sheet S-503 is not in the set." }
114
+ ],
115
+ "candidateDispositions": [
116
+ { "elementId": "<marker id C>", "disposition": "modeled", "reason": "Built as a shear tab.", "jointId": "j-1" },
117
+ { "elementId": "<marker id D>", "disposition": "unresolved", "reason": "Detail shown without a host location." }
118
+ ],
119
+ "jointReviews": [
120
+ { "jointId": "j-1", "dependencyHash": "1111111111111111111111111111111111111111111111111111111111111111", "note": "Checked members, recipe and parameters." }
121
+ ]
122
+ }
123
+ ```
124
+
125
+ ### When a line needs no `lineDisposition`
126
+
127
+ Lines on a layer that is switched **off** in the saved Drawing Filter **and** covered by the human's
128
+ recorded layer approval need no per-line row, provided you attest that layer `annotation`, `existing`
129
+ or `other`. That is the only shorthand, and it is deliberately narrow:
130
+
131
+ - `member` and `mixed` are never dismissed wholesale — every line needs its own row;
132
+ - a layer left **on** is selected, so each of its lines still needs an observation or a disposition;
133
+ - a thickness or colour exclusion **inside** an enabled layer is not a layer decision — those lines
134
+ still need explicit rows;
135
+ - if the saved Filter checkpoint fails, or the human never approved the layer list, no shorthand
136
+ applies at all and every unselected line needs a row. The `source-ledger` block detail says so
137
+ when that is what is holding the read up.
138
+
139
+ ### An observation only ever accounts for a line you can MODEL from
140
+
141
+ A line is accounted for by an observation **only** when it sits on a bound model sheet. For every
142
+ other line — anything on an evidence-only page (a detail sheet, a schedule, a notes sheet), and any
143
+ manifest candidate the saved Filter does not carry — an observation does **not** discharge the
144
+ obligation: `source-ledger` reports it as `excluded-but-modeled` and **blocks**. Only a
145
+ `lineDisposition` (or the layer shorthand above) accounts for those.
146
+
147
+ That is deliberate, not a limitation to work around. Detail and schedule linework is schematic,
148
+ unregistered and not to scale; letting an observation over it stand in for member geometry is exactly
149
+ the confusion the split exists to prevent. So:
150
+
151
+ - **model-sheet line, layer on** → an observation **or** a disposition;
152
+ - **evidence-page line** (any layer state) → a **disposition**, or the layer shorthand. Never an
153
+ observation. If you find yourself wanting to observe one, the member belongs to a model sheet and
154
+ you should be observing it there.
155
+
156
+ Every use of the shorthand makes `source-ledger` a **warning** naming the dismissed layers and their
157
+ counts. That is expected, not a defect — but check the named layers really are non-steel before
158
+ publishing.
159
+
73
160
  ## Find the active request
74
161
 
75
162
  Use the local request API described by `floless-app-queue`. Read the request's `project`, `appId`,
@@ -155,7 +242,7 @@ Show the verified overlap to the user before submitting the full read.
155
242
 
156
243
  **Narrow headless revision exception.** When floless.app's server-owned headless preamble explicitly
157
244
  says this is a phase-one-only `revision-read`, exposes only the immutable leased PDF sources plus the
158
- request-scoped contract/prepass calls, and requires the exact Steel Filter Save question, do not
245
+ request-scoped contract/prepass calls, and requires the exact Drawing Filter save question, do not
159
246
  create an earlier plan-confirmation checkpoint. Match framing pages only to the plan sheet names
160
247
  already present in that project's current contract; if the match is absent or ambiguous, stop with
161
248
  `needs-you` instead of inventing a plan name. This exception never applies to an initial read, an
@@ -356,7 +443,7 @@ same literal contract and attestation to `revision-read` with:
356
443
  - the queued `requestId` and base ledger head;
357
444
  - the pinned contract and Filter ETags required by the route;
358
445
  - the complete native candidate;
359
- - the complete closed `steel-read/v1` attestation;
446
+ - the complete closed `steel-read/v2` attestation;
360
447
  - source snapshots for every queued drawing;
361
448
  - a concise read summary and unresolved notes.
362
449
 
package/dist/web/app.css CHANGED
@@ -437,6 +437,71 @@
437
437
  }
438
438
  @keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
439
439
 
440
+ /* ── AI answers: bulk toolbar + per-card collapse/remove ─────────────────── */
441
+ /* Sticky bulk row, rendered as the first child of #ai-answers (only when ≥1 answer exists — it is
442
+ hidden by simply not existing over an empty feed, never a disabled control). --surface matches the
443
+ pane so cards scroll cleanly beneath it; the negative margins cancel .messages' 14px side padding
444
+ so the row spans full width. */
445
+ .answers-toolbar {
446
+ position: sticky; top: 0; z-index: 2;
447
+ display: flex; align-items: center; gap: 8px;
448
+ margin: 0 -14px 2px; padding: 7px 14px;
449
+ background: var(--surface);
450
+ border-bottom: 1px solid var(--border);
451
+ }
452
+ .answers-toolbar-spacer { flex: 1 1 auto; }
453
+ .answers-count {
454
+ font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
455
+ color: var(--text-dim); font-variant-numeric: tabular-nums;
456
+ }
457
+ .answers-bulk {
458
+ appearance: none; border: 1px solid var(--border-strong); background: transparent;
459
+ color: var(--text-muted); cursor: pointer; padding: 4px 9px; border-radius: 4px;
460
+ font-size: 11.5px; line-height: 1;
461
+ }
462
+ .answers-bulk:hover { color: var(--text); background: var(--surface-3); }
463
+ .answers-bulk:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
464
+ /* Reversible-destructive idiom (see #requests-clear): neutral at rest, --err only on hover. */
465
+ .answers-clear:hover { color: var(--err); border-color: var(--err); background: color-mix(in srgb, var(--err) 10%, transparent); }
466
+
467
+ /* The card header carries the chevron on the left and the × on the right; who-name takes the slack
468
+ between them so the timestamp + × sit flush-right. Center-aligned (the base .who is baseline, which
469
+ reads crooked next to 26px-tall buttons).
470
+ padding-right clears the narrative panel's absolutely-positioned, vertically-centred collapse
471
+ toggle (`.panel-label .panel-toggle`, ~28px wide at the panel's right edge, z-index 12): it floats
472
+ OVER the feed, so whichever card lands at the panel's vertical midpoint would otherwise have its ×
473
+ stolen by the toggle's hit area. Both toggle and card are right-anchored, so a fixed inset clears
474
+ it at every panel width. Only the header's right controls need it — the body stays full width. */
475
+ .msg.instructor-answer .who.answer-who { align-items: center; gap: 6px; padding-right: 24px; }
476
+ .msg.instructor-answer .answer-who .who-name { margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
477
+ .answer-collapse-toggle, .answer-del {
478
+ display: inline-flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0;
479
+ appearance: none; border: 1px solid transparent; background: transparent;
480
+ color: var(--text-dim); cursor: pointer; width: 20px; height: 20px; border-radius: 4px;
481
+ font-size: 12px; line-height: 1;
482
+ }
483
+ .answer-collapse-toggle { transition: transform 0.15s ease; }
484
+ /* Chevron points right when collapsed, rotates down when open. Rotate the glyph, not a swap, so the
485
+ motion reads as a disclosure. */
486
+ .msg.instructor-answer:not(.answer-collapsed) .answer-collapse-toggle { transform: rotate(90deg); }
487
+ .answer-collapse-toggle:hover { color: var(--text); background: var(--surface-3); }
488
+ .answer-del:hover { color: var(--err); border-color: var(--err); }
489
+ .answer-collapse-toggle:focus-visible, .answer-del:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
490
+ @media (prefers-reduced-motion: reduce) { .answer-collapse-toggle { transition: none; } }
491
+ /* Collapsed: the prose body (and, with it, the new-answer badge inside it) is hidden via a class —
492
+ not a bare `hidden` attribute, which app.css has no global rule for and would fail to honour. */
493
+ .msg.instructor-answer.answer-collapsed .body { display: none; }
494
+
495
+ /* Undo toast: a real focusable action inside the shared #toast-container surface. */
496
+ .toast-undo { display: flex; align-items: center; gap: 12px; }
497
+ .toast-action {
498
+ appearance: none; border: 1px solid var(--border-strong); background: transparent;
499
+ color: var(--accent); cursor: pointer; padding: 3px 10px; border-radius: 4px;
500
+ font-size: 12px; line-height: 1; flex-shrink: 0;
501
+ }
502
+ .toast-action:hover { color: var(--accent-bright); background: var(--surface-3); }
503
+ .toast-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
504
+
440
505
  /* ========== COLLAPSED STUBS ========== */
441
506
  .collapsed-stub {
442
507
  display: none;
@@ -1935,6 +2000,9 @@
1935
2000
  .req-scope .req-scope-n { color: var(--text-muted); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
1936
2001
  .req-scope button.active .req-scope-n { color: var(--accent-dim); }
1937
2002
  .req-search { margin-bottom: 10px; flex: 0 0 auto; }
2003
+ .req-guidance { margin: -2px 0 10px; padding: 9px 10px; border-left: 2px solid var(--accent);
2004
+ background: var(--accent-soft); color: var(--text); font-size: 11.5px; line-height: 1.5; }
2005
+ .req-guidance[hidden] { display: none; }
1938
2006
  /* Flexes against .modal.requests' 86vh cap rather than declaring its own 52vh — see the note
1939
2007
  there. min-height:0 is what lets a flex child actually shrink and scroll. */
1940
2008
  /* scroll-behavior lives here, not in revealRequestRow's scrollIntoView call: an omitted `behavior`
@@ -1987,6 +2055,21 @@
1987
2055
  .req-instruction::-webkit-scrollbar { width: 7px; }
1988
2056
  .req-instruction::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; }
1989
2057
  .req-instruction::-webkit-scrollbar-track { background: transparent; }
2058
+ .req-summary { max-height: none; font-size: 13px; line-height: 1.5; }
2059
+ .req-technical { margin-top: 6px; font-size: 10.5px; }
2060
+ .req-technical > summary { color: var(--text-dim); cursor: pointer; user-select: none; list-style: none; }
2061
+ .req-technical > summary::-webkit-details-marker { display: none; }
2062
+ .req-technical > summary::before { content: '▸'; margin-right: 6px; color: var(--text-dim); }
2063
+ .req-technical[open] > summary::before { content: '▾'; }
2064
+ .req-technical > summary:hover { color: var(--text-muted); }
2065
+ .req-technical > summary:focus-visible { color: var(--text); outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
2066
+ .req-technical-body { max-height: 150px; overflow: auto; margin-top: 5px; padding: 7px 8px;
2067
+ border: 1px solid var(--border); border-radius: 4px; background: var(--surface);
2068
+ color: var(--text-muted); white-space: pre-wrap; word-break: break-word; line-height: 1.45;
2069
+ scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
2070
+ .req-technical-body::-webkit-scrollbar { width: 7px; }
2071
+ .req-technical-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; }
2072
+ .req-technical-body::-webkit-scrollbar-track { background: transparent; }
1990
2073
  /* The search hit, highlighted where it sits — in the instruction AND in the name, since a query
1991
2074
  often matches the project rather than the wording. With several near-identical queued tweaks,
1992
2075
  "which one matched?" is otherwise guesswork. Tinted text, not a block highlight: a filled
@@ -2861,11 +2944,12 @@
2861
2944
 
2862
2945
  /* ── The `?` command sheet ──────────────────────────────────────────────────
2863
2946
  Built on .modal-backdrop/.modal rather than a new overlay: same backdrop,
2864
- blur, fade and z-index band, so it stacks and reads like every other dialog
2865
- here. Only the size and the list are new — this one is a browsable inventory,
2947
+ blur and fade, with an explicit upper tier because Requests is the one dialog
2948
+ whose exact runtime controls this sheet can browse. Only the size and the list are new — this one is a browsable inventory,
2866
2949
  not a 480px confirmation. And .modal-backdrop is display:flex when shown, so
2867
2950
  it needs the same explicit [hidden] rule the Instructor band does. */
2868
2951
  #command-sheet[hidden] { display: none; }
2952
+ #command-sheet { z-index: 110; }
2869
2953
  .cmd-sheet-backdrop.show { display: flex; }
2870
2954
  .cmd-sheet {
2871
2955
  width: 620px;
@@ -3544,6 +3628,7 @@ body {
3544
3628
 
3545
3629
  /* Footer "requests" pill — lights up when intents are waiting for the AI. */
3546
3630
  .stat-requests { cursor: pointer; border-radius: 4px; }
3631
+ .stat-requests:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
3547
3632
  .stat-requests.has-pending .stat-val { color: var(--warn); font-weight: 600; }
3548
3633
  .stat-requests.has-pending { text-shadow: 0 0 8px color-mix(in srgb, var(--warn) 40%, transparent); }
3549
3634
  /* A landed request needs to be noticeable for long enough to teach the footer
@@ -4883,6 +4968,13 @@ body.mode-workspaces #menu .menu-item[data-action="bake"] { display:none; }
4883
4968
  .ws-status { font-size:10px; color:var(--text-dim); font-style:italic; }
4884
4969
  .tabs.ws-step-tabs { background:transparent; padding:0 6px; }
4885
4970
  .tabs.ws-step-tabs button { flex:0 0 auto; padding:11px 16px; }
4971
+ .tabs.ws-step-tabs button.ws-step-locked { color:var(--text-dim); cursor:not-allowed; opacity:.62; }
4972
+ .tabs.ws-step-tabs button.ws-step-locked::before { content:'·'; color:var(--border-strong); margin-right:5px; }
4973
+ .tabs.ws-step-tabs button.ws-step-locked:hover { color:var(--text-muted); border-bottom-color:transparent; }
4974
+ .ws-stage-guidance { flex:none; margin:0 14px 8px; padding:8px 11px; border:1px solid var(--border);
4975
+ border-left:3px solid var(--accent-dim); border-radius:6px; background:var(--surface-2);
4976
+ color:var(--text-muted); font-size:11.5px; line-height:1.45; }
4977
+ .ws-stage-guidance[hidden] { display:none; }
4886
4978
  .ws-frame { flex:1; min-height:0; width:100%; border:none; background:var(--bg); }
4887
4979
 
4888
4980
  /* ── Workspaces ▸ Exports step (shell-rendered pane; export cards over the project's OWN
@@ -5217,16 +5309,15 @@ table.hist tr.current td { background:var(--accent-soft); }
5217
5309
  .ws-revision-card[hidden] { display:none !important; }
5218
5310
  .ws-revision-card b { color:var(--text); font-weight:600; }
5219
5311
  .ws-revision-card .wrc-text { flex:1; min-width:0; }
5220
- .ws-revision-card .wrc-spin { flex:none; width:14px; height:14px; border:2px solid var(--border-strong);
5221
- border-top-color:var(--accent); border-radius:50%; animation:spin .8s linear infinite; }
5312
+ .ws-revision-card .wrc-dot { flex:none; width:8px; height:8px; border-radius:50%; background:var(--text-dim); }
5222
5313
  .ws-revision-card.state-failed { border-left:3px solid var(--err); }
5223
5314
  .ws-revision-card.state-failed .wrc-err-ico { color:var(--err); flex:none; }
5224
5315
  .ws-revision-card.state-failed .wrc-err-detail { color:var(--text-dim); }
5225
- .ws-revision-card.state-staged, .ws-revision-card.state-filter-ready { border-left:3px solid var(--accent); }
5226
- .ws-revision-card.state-staged .wrc-dot, .ws-revision-card.state-filter-ready .wrc-dot {
5227
- flex:none; width:8px; height:8px; border-radius:50%; background:var(--accent); }
5316
+ .ws-revision-card.state-unavailable { border-left:3px solid var(--warn); }
5317
+ .ws-revision-card.state-unavailable .wrc-warn-ico { color:var(--warn); flex:none; }
5318
+ .ws-revision-card.state-staged, .ws-revision-card.state-filter-ready, .ws-revision-card.state-filter-saved { border-left:3px solid var(--accent); }
5319
+ .ws-revision-card.state-staged .wrc-dot, .ws-revision-card.state-filter-ready .wrc-dot, .ws-revision-card.state-filter-saved .wrc-dot { background:var(--accent); }
5228
5320
  .ws-revision-card .wrc-actions { display:flex; gap:6px; flex:none; }
5229
- @media (prefers-reduced-motion: reduce) { .ws-revision-card .wrc-spin { animation:none; } }
5230
5321
  .hist .gate-badge.ai-read { background:var(--accent-soft); border-color:var(--accent-dim); color:var(--accent-bright); }
5231
5322
 
5232
5323
  /* History rollback and Knowledge remove confirmation share this themed anchored popover. */
package/dist/web/app.js CHANGED
@@ -1476,6 +1476,38 @@ function showToast(msg, type) {
1476
1476
  return dismiss;
1477
1477
  }
1478
1478
 
1479
+ // A toast carrying a real, focusable Undo action. Distinct from showToast because that surface has no
1480
+ // action slot. The undo window is the caller's to own (it holds the commit timer) and it should pass
1481
+ // that same duration as `ms` so the visible toast can't outlive the window it advertises — the `6000`
1482
+ // default is a floor, not the source of truth. Reuses #toast-container (already role=status aria-live=polite).
1483
+ function showUndoToast(msg, onUndo, ms = 6000) {
1484
+ const c = document.getElementById('toast-container');
1485
+ if (!c) return () => {};
1486
+ const t = document.createElement('div');
1487
+ t.className = 'toast info toast-undo';
1488
+ const span = document.createElement('span');
1489
+ span.className = 'toast-msg';
1490
+ span.textContent = msg; // textContent — never innerHTML
1491
+ const action = document.createElement('button');
1492
+ action.type = 'button';
1493
+ action.className = 'toast-action';
1494
+ action.textContent = 'Undo';
1495
+ let done = false;
1496
+ const dismiss = () => {
1497
+ if (done) return;
1498
+ done = true;
1499
+ t.style.transition = 'opacity 0.3s, transform 0.3s';
1500
+ t.style.opacity = '0';
1501
+ t.style.transform = 'translateY(8px)';
1502
+ setTimeout(() => t.remove(), 300);
1503
+ };
1504
+ action.onclick = () => { dismiss(); if (typeof onUndo === 'function') onUndo(); };
1505
+ t.append(span, action);
1506
+ c.appendChild(t);
1507
+ if (ms > 0) setTimeout(dismiss, ms);
1508
+ return dismiss;
1509
+ }
1510
+
1479
1511
  /* ============= ZOOM + PAN ============= */
1480
1512
 
1481
1513
  const ZOOM_LEVELS = [0.5, 0.6, 0.75, 0.85, 1.0, 1.15, 1.3, 1.5, 1.75, 2.0];