@n-uf/placement 26.11.44 → 26.11.46

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,6 +7,7 @@ import {
7
7
  floatAt,
8
8
  fold,
9
9
  homeFor,
10
+ lanes,
10
11
  open,
11
12
  placeTargetId,
12
13
  raise,
@@ -19,7 +20,7 @@ import {
19
20
  storeScene,
20
21
  targets,
21
22
  use
22
- } from "./chunk-32BGJAJA.js";
23
+ } from "./chunk-A4DQQX7W.js";
23
24
  import "./chunk-AE3BWTAE.js";
24
25
  import {
25
26
  centre,
@@ -104,14 +105,14 @@ function benchPanel(id, used, more = {}) {
104
105
  function benchGroup(id, used, more = {}) {
105
106
  const row2 = 244;
106
107
  const ranked = (f2, rank) => ({ ...f2, rank });
107
- const bar2 = id === "tools" ? [ranked(form("row", row2, row2, 28), 0), ranked(form("icons", iconsMain("row"), iconsMain("row"), 28), 0), ranked(form("fold", FOLD, FOLD, 28), 1)] : id === "zoom" ? [form("row", row2, row2, 28), form("stacked", row2, row2, 30), form("fold", FOLD, FOLD, 28), ranked(form("menu", 0, 0, 0), 2)] : [form("row", row2, row2, 28), form("fold", FOLD, FOLD, 28), ranked(form("menu", 0, 0, 0), 2)];
108
+ const bar3 = id === "tools" ? [ranked(form("row", row2, row2, 28), 0), ranked(form("icons", iconsMain("row"), iconsMain("row"), 28), 0), ranked(form("fold", FOLD, FOLD, 28), 1)] : id === "zoom" ? [form("row", row2, row2, 28), form("stacked", row2, row2, 30), form("fold", FOLD, FOLD, 28), ranked(form("menu", 0, 0, 0), 2)] : [form("row", row2, row2, 28), form("fold", FOLD, FOLD, 28), ranked(form("menu", 0, 0, 0), 2)];
108
109
  return {
109
110
  id,
110
111
  kind: "group",
111
112
  used,
112
113
  forms: {
113
114
  column: [form("row", 30, 30, 240), form("stacked", 84, 84, 84), form("icons", iconsMain("column"), iconsMain("column"), 28), form("menu", 0, 0, 0)],
114
- row: bar2
115
+ row: bar3
115
116
  },
116
117
  floatSize: { width: row2, height: 34 },
117
118
  ...more
@@ -1111,7 +1112,7 @@ var DEFAULT_COLUMNS = { left: [["pages", "annotations"]], right: [["findings"]]
1111
1112
  var DEFAULT_USED2 = { pages: 1, annotations: 2, findings: 3 };
1112
1113
  function winScene(spec, o = {}) {
1113
1114
  const card = { kind: "open", main: { min: 120, natural: 300, grows: true }, cross: { natural: spec.card.min, min: spec.card.min } };
1114
- const bar2 = { kind: "header", main: { min: spec.barMain, natural: spec.barMain }, cross: { natural: spec.card.min, min: 60 } };
1115
+ const bar3 = { kind: "header", main: { min: spec.barMain, natural: spec.barMain }, cross: { natural: spec.card.min, min: 60 } };
1115
1116
  const rail = { kind: "rail", main: { min: 32, natural: 32 }, cross: { natural: spec.rail } };
1116
1117
  const template = { accepts: ["panel"], cross: { min: spec.card.min, max: spec.card.max, rail: spec.rail }, gap: spec.gap };
1117
1118
  const cols = o.columns ?? DEFAULT_COLUMNS;
@@ -1119,7 +1120,7 @@ function winScene(spec, o = {}) {
1119
1120
  const edges = [];
1120
1121
  const items = {};
1121
1122
  const add = (id) => {
1122
- items[id] = { id, kind: "panel", used: used[id] ?? 0, forms: { column: [card, bar2, rail] }, ...o.from?.[id] ? { from: o.from[id] } : {} };
1123
+ items[id] = { id, kind: "panel", used: used[id] ?? 0, forms: { column: [card, bar3, rail] }, ...o.from?.[id] ? { from: o.from[id] } : {} };
1123
1124
  };
1124
1125
  for (const side of ["left", "right"]) {
1125
1126
  (cols[side] ?? []).forEach((members, ring) => {
@@ -1574,7 +1575,7 @@ var shape = (columns, rails, atLeast) => ({
1574
1575
  rails: { left: rails.left ?? [], right: rails.right ?? [] },
1575
1576
  ...atLeast !== void 0 ? { contentAtLeast: { width: atLeast } } : {}
1576
1577
  });
1577
- function at(id, title2, group2, spec, o, width, columns, rails, atLeast, walk) {
1578
+ function at(id, title2, group3, spec, o, width, columns, rails, atLeast, walk) {
1578
1579
  const gestures = [];
1579
1580
  if (walk) for (let w = 1400 - walk; w > width; w -= walk) gestures.push(g.resizeWindow(w, 800));
1580
1581
  if (walk) gestures.push(g.resizeWindow(width, 800));
@@ -1582,7 +1583,7 @@ function at(id, title2, group2, spec, o, width, columns, rails, atLeast, walk) {
1582
1583
  id,
1583
1584
  title: title2,
1584
1585
  expect: `At a stage ${width} px wide: ${[...(columns.left ?? []).map((c) => `left column ${c.join("+")}`), ...(columns.right ?? []).map((c) => `right column ${c.join("+")}`), ...rails.left?.length ? [`left rail ${rails.left.join("+")}`] : [], ...rails.right?.length ? [`right rail ${rails.right.join("+")}`] : []].join(", ") || "nothing open"}${walk ? " (reached by shrinking a step at a time)" : ""}.`,
1585
- group: group2,
1586
+ group: group3,
1586
1587
  scene: winScene(spec, { ...o, width: walk ? 1400 : width }),
1587
1588
  ...walk ? {} : { settings: { stage: { w: width, h: 800 } } },
1588
1589
  gestures,
@@ -2343,6 +2344,336 @@ async function runCasesAsync(rows, makeHost, options = {}) {
2343
2344
  return out;
2344
2345
  }
2345
2346
 
2347
+ // src/scene/cases/landing.ts
2348
+ var LANES_SINCE = "26.11.45";
2349
+ var GRAB_SINCE = "26.11.46";
2350
+ var LAST_WITHOUT_LANES = "26.11.44";
2351
+ var LANES_DEADLINE = "2026-12-31";
2352
+ var versionBefore = (a, b) => {
2353
+ const pa = a.split(".").map(Number);
2354
+ const pb = b.split(".").map(Number);
2355
+ for (let i = 0; i < 3; i++) if ((pa[i] ?? 0) !== (pb[i] ?? 0)) return (pa[i] ?? 0) < (pb[i] ?? 0);
2356
+ return false;
2357
+ };
2358
+ var gapTo = (r, p) => Math.hypot(Math.max(r.x - p.x, 0, p.x - (r.x + r.width)), Math.max(r.y - p.y, 0, p.y - (r.y + r.height)));
2359
+ var touches = (a, b) => a.x <= b.x + b.width && b.x <= a.x + a.width && a.y <= b.y + b.height && b.y <= a.y + a.height;
2360
+ var worstTrail = (frames) => Math.max(0, ...frames.filter((f2) => f2.moving && f2.region === "lane" && f2.landing).map((f2) => gapTo(f2.landing, f2.point)));
2361
+ function landingIssues(row2, frames, layout) {
2362
+ const out = [];
2363
+ const m = row2.moving;
2364
+ if (frames.length === 0) return ["no frames"];
2365
+ if (m)
2366
+ for (const f2 of frames.filter((x) => x.moving)) {
2367
+ const at2 = `at ${Math.round(f2.point.x)},${Math.round(f2.point.y)}`;
2368
+ if (m.lane !== void 0 && (f2.region !== "lane" || f2.lane !== m.lane)) out.push(`${at2}: ${f2.region}${f2.lane ? ` in ${f2.lane}` : ""}, not the lane ${m.lane}`);
2369
+ if (m.notLanes && f2.lane && m.notLanes.includes(f2.lane)) out.push(`${at2}: held ${f2.lane}`);
2370
+ if (m.notRegions && m.notRegions.includes(f2.region)) out.push(`${at2}: ${f2.region}`);
2371
+ for (const g2 of m.noGuideIn ? f2.guides ?? [] : []) if (m.noGuideIn.some((r) => touches(g2.rect, r))) out.push(`${at2}: the guide ${g2.id} where nothing lands`);
2372
+ if (m.trail !== void 0 && f2.region === "lane" && f2.landing && gapTo(f2.landing, f2.point) > m.trail + 0.5) out.push(`${at2}: the landing ${Math.round(gapTo(f2.landing, f2.point))} px from the pointer (at most ${m.trail})`);
2373
+ if (out.length >= 4) break;
2374
+ }
2375
+ const last = frames.at(-1);
2376
+ if (row2.end) {
2377
+ if (last.region !== row2.end.region) out.push(`the last frame is ${last.region}, not ${row2.end.region}`);
2378
+ if (row2.end.lane !== void 0 && last.lane !== row2.end.lane) out.push(`the last frame holds ${last.lane ?? "no lane"}, not ${row2.end.lane ?? "no lane"}`);
2379
+ if (row2.end.spot !== void 0 && last.spot !== row2.end.spot) out.push(`the last frame's spot is ${last.spot ?? "none"}, not ${row2.end.spot}`);
2380
+ }
2381
+ if (row2.layout) out.push(...layoutIssues(row2.layout, layout));
2382
+ return out;
2383
+ }
2384
+ async function runLandingCases(rows, host) {
2385
+ const out = [];
2386
+ for (const row2 of rows) {
2387
+ if (host.version && versionBefore(host.version, row2.requires.lanes.since)) {
2388
+ out.push({ id: row2.id, ok: true, failures: [], skipped: `needs ${row2.requires.lanes.since}, the host runs ${host.version}` });
2389
+ continue;
2390
+ }
2391
+ try {
2392
+ const { frames, layout } = await host.play(row2);
2393
+ const issues = landingIssues(row2, frames, layout);
2394
+ const over = row2.moving?.trailOverSlow;
2395
+ if (over) {
2396
+ const slow = await host.play({ ...row2, speed: over.slow });
2397
+ const fast = worstTrail(frames);
2398
+ const bound = worstTrail(slow.frames) + over.by;
2399
+ if (fast > bound + 0.5) issues.push(`the landing trails the pointer by ${Math.round(fast)} px, more than a slow hand's ${Math.round(bound - over.by)} px plus ${over.by}`);
2400
+ }
2401
+ const failures = issues.map((l) => `${row2.id}: ${l}`);
2402
+ out.push({ id: row2.id, ok: failures.length === 0, failures, skipped: null });
2403
+ } catch (e) {
2404
+ out.push({ id: row2.id, ok: false, failures: [`${row2.id}: ${e instanceof Error ? e.message : String(e)}`], skipped: null });
2405
+ }
2406
+ }
2407
+ return out;
2408
+ }
2409
+ function lanesRatchet(r) {
2410
+ const out = [];
2411
+ if (!/^\d{4}-\d{2}-\d{2}$/.test(r.today)) return [`today is "${r.today}", not a YYYY-MM-DD date`];
2412
+ if (r.skipped > r.baseline) out.push(`${r.skipped} landing rows skipped, more than the ${r.baseline} recorded: the count may only fall`);
2413
+ const due = r.today >= LANES_DEADLINE || !!r.breaking;
2414
+ if (due && r.skipped > 0) out.push(`${r.skipped} landing rows skipped${r.breaking ? " at the breaking release" : ` on ${r.today}`}: from ${LANES_DEADLINE} or the breaking release every row runs`);
2415
+ return out;
2416
+ }
2417
+ var SAMPLE = 8;
2418
+ function createLandingHost(o) {
2419
+ return {
2420
+ ...o.version ? { version: o.version } : {},
2421
+ play(row2) {
2422
+ const s = row2.scene;
2423
+ const previous = solve(s);
2424
+ const own = previous.items[row2.item];
2425
+ if (!own) throw new Error(`no item ${row2.item}`);
2426
+ const press = row2.path[0];
2427
+ const grab = { x: press.x - own.rect.x, y: press.y - own.rect.y };
2428
+ const regions = lanes(s, row2.item, { previous, grab });
2429
+ const regionsFor = (spot2) => lanes(s, row2.item, { previous, grab, spot: spot2 });
2430
+ const home = regions.lanes.flatMap((l) => l.spots.filter((x) => x.home).map((x) => ({ lane: l.id, spot: x.id })))[0];
2431
+ const model = o.landing({ regions, regionsFor, floatLanding: (p) => regions.float?.after(p, grab).layout.items[row2.item]?.rect ?? null, ...home ? { home } : {}, placeGuides: "near" });
2432
+ const frames = [];
2433
+ const play = (p, t2, moving) => {
2434
+ const f2 = model.update(p, t2);
2435
+ frames.push({ t: t2, point: p, moving, region: f2.region, lane: f2.lane, spot: f2.spot, landing: f2.landing, room: f2.room, ...f2.guides ? { guides: f2.guides } : {} });
2436
+ };
2437
+ let t = 0;
2438
+ let at2 = press;
2439
+ for (let i = 1; i < row2.path.length; i++) {
2440
+ const a = row2.path[i - 1];
2441
+ const b = row2.path[i];
2442
+ const n = Math.max(1, Math.ceil(Math.hypot(b.x - a.x, b.y - a.y) / row2.speed / SAMPLE));
2443
+ for (let k = 1; k <= n; k++) play(at2 = { x: a.x + (b.x - a.x) * k / n, y: a.y + (b.y - a.y) * k / n }, t += SAMPLE, true);
2444
+ }
2445
+ for (let r = SAMPLE; r <= (row2.rest ?? 0); r += SAMPLE) play(at2, t += SAMPLE, false);
2446
+ const out = model.release();
2447
+ const spot = out?.kind === "spot" ? [...regions.lanes, ...regionsFor(out.spot).lanes].flatMap((l) => l.spots).find((x) => x.id === out.spot) : void 0;
2448
+ const target = out?.kind === "float" ? regions.float : spot && !spot.home ? spot.target : null;
2449
+ const next = target ? target.after(at2, grab).scene : s;
2450
+ return { frames, layout: solve(next, { previous }) };
2451
+ }
2452
+ };
2453
+ }
2454
+ var group2 = (id, used) => ({
2455
+ id,
2456
+ kind: "group",
2457
+ used,
2458
+ forms: { row: [form("row", 180, 200, 28), form("icons", 84, 84, 28), form("menu", 0, 0, 0)], column: [form("icons", 84, 84, 28), form("menu", 0, 0, 0)] }
2459
+ });
2460
+ var bar2 = (id, side, ring, items) => ({ id, side, ring, accepts: ["group"], items, cross: { min: 36, max: 36, rail: 36 }, gap: 4, pad: { start: 8, end: 8 } });
2461
+ function landingWindow(top = ["a"], bottom = []) {
2462
+ const ids = ["tools", "zoom", ...top, ...bottom];
2463
+ return {
2464
+ stage: rect(0, 0, 1080, 640),
2465
+ edges: [bar2("top", "top", 0, top), bar2("bottom", "bottom", 0, bottom), { id: "rail-left", side: "left", ring: 0, accepts: ["group"], items: ["tools", "zoom"], cross: { min: 30, max: 30, rail: 30 }, compact: true }],
2466
+ items: Object.fromEntries(ids.map((id, i) => [id, group2(id, i + 1)])),
2467
+ floats: [],
2468
+ floatKinds: ["group"]
2469
+ };
2470
+ }
2471
+ var LANES = { lanes: { since: LANES_SINCE } };
2472
+ var GRAB = { lanes: { since: GRAB_SINCE } };
2473
+ var LANDING_CASES = [
2474
+ {
2475
+ id: "landing-rail-repro",
2476
+ title: "An item pulled up its rail stays in the rail",
2477
+ expect: "Zoom's grip pulled straight up its rail, 6 px every 40 ms, to 4 px above the rail's top: every frame holds the rail, and the release docks Zoom above Tools.",
2478
+ scene: landingWindow(),
2479
+ item: "zoom",
2480
+ path: [
2481
+ { x: 15, y: 160 },
2482
+ { x: 15, y: 32 }
2483
+ ],
2484
+ speed: 0.15,
2485
+ rest: 40,
2486
+ moving: { lane: "rail-left" },
2487
+ end: { region: "lane", lane: "rail-left" },
2488
+ layout: { order: { "rail-left": ["zoom", "tools"] } },
2489
+ requires: LANES
2490
+ },
2491
+ {
2492
+ id: "landing-edge-fling",
2493
+ title: "A pointer flung past the window's edge and held there docks against it",
2494
+ expect: "A toolbar flung from the document at 3 px/ms to 10 px past the window's left edge and held there for 40 ms docks in the rail drawn against that edge.",
2495
+ scene: landingWindow(),
2496
+ item: "a",
2497
+ path: [
2498
+ { x: 60, y: 18 },
2499
+ { x: 500, y: 300 },
2500
+ { x: -10, y: 400 }
2501
+ ],
2502
+ speed: 3,
2503
+ rest: 40,
2504
+ end: { region: "lane", lane: "rail-left" },
2505
+ layout: { items: { a: { edge: "rail-left" } } },
2506
+ requires: LANES
2507
+ },
2508
+ {
2509
+ id: "landing-past-edge",
2510
+ title: "More than 48 px past the window is nowhere",
2511
+ expect: "A toolbar taken 80 px past the window's left edge and held there lands nowhere: the release puts it back.",
2512
+ scene: landingWindow(),
2513
+ item: "a",
2514
+ path: [
2515
+ { x: 60, y: 18 },
2516
+ { x: 500, y: 300 },
2517
+ { x: -80, y: 400 }
2518
+ ],
2519
+ speed: 1,
2520
+ rest: 80,
2521
+ end: { region: "nowhere", lane: null },
2522
+ layout: { items: { a: { edge: "top" } } },
2523
+ requires: LANES
2524
+ },
2525
+ {
2526
+ id: "landing-lift-over-a-band",
2527
+ title: "A lift over an empty bar's band doesn't enter the bar",
2528
+ expect: "A floating toolbar lying over the empty top bar's band, lifted there and moved away into the document at 1.5 px/ms: the lift itself is no still pointer, so the top bar never holds it.",
2529
+ scene: { ...landingWindow([]), items: { ...landingWindow([]).items, a: group2("a", 9) }, floats: [{ id: "a", rect: rect(480, 6, 200, 28) }] },
2530
+ item: "a",
2531
+ path: [
2532
+ { x: 500, y: 20 },
2533
+ { x: 504, y: 22 },
2534
+ { x: 600, y: 320 }
2535
+ ],
2536
+ speed: 1.5,
2537
+ moving: { notLanes: ["top"] },
2538
+ end: { region: "open", lane: null },
2539
+ requires: LANES
2540
+ },
2541
+ {
2542
+ id: "landing-blocked",
2543
+ title: "Over a blocked spot a release cancels",
2544
+ expect: "A toolbar taken from its bar to the middle of a blocked spot in the document (`Scene.blocked`) and held there: no float lands there, and the release puts it back in its bar.",
2545
+ scene: { ...landingWindow(), blocked: [rect(400, 250, 160, 120)] },
2546
+ item: "a",
2547
+ path: [
2548
+ { x: 60, y: 18 },
2549
+ { x: 480, y: 310 }
2550
+ ],
2551
+ speed: 0.6,
2552
+ rest: 80,
2553
+ end: { region: "refused", lane: null },
2554
+ layout: { items: { a: { edge: "top" } } },
2555
+ requires: LANES
2556
+ },
2557
+ {
2558
+ id: "landing-guides-where-it-lands",
2559
+ title: "No guide beside chrome nothing lands next to",
2560
+ expect: "Zoom held in a top bar that starts with a fixed lead and ends with fixed controls (nothing lands before the one or after the other): no guide lies in the 8 px before the lead or after the controls.",
2561
+ scene: (() => {
2562
+ const s = landingWindow(["lead", "a", "ctl"]);
2563
+ const fixed = (id, end) => ({ id, kind: "chrome", used: 0, fixed: true, ...end ? { align: "end" } : {}, forms: { row: [form("row", 120, 120, 28)] } });
2564
+ return { ...s, items: { ...s.items, lead: fixed("lead", false), ctl: fixed("ctl", true) } };
2565
+ })(),
2566
+ item: "zoom",
2567
+ path: [
2568
+ { x: 15, y: 160 },
2569
+ { x: 15, y: 18 },
2570
+ { x: 600, y: 18 }
2571
+ ],
2572
+ speed: 0.3,
2573
+ rest: 80,
2574
+ moving: { noGuideIn: [rect(0, 2, 7, 32), rect(1073, 2, 7, 32)] },
2575
+ end: { region: "lane", lane: "top" },
2576
+ requires: LANES
2577
+ },
2578
+ {
2579
+ id: "landing-fast-pass",
2580
+ title: "A fast pass over a bar opens no room in it",
2581
+ expect: "A toolbar moved from the document down across the empty bottom bar and 40 px past the window at 1.5 px/ms: the bottom bar never holds the pointer while it moves.",
2582
+ scene: landingWindow(),
2583
+ item: "a",
2584
+ path: [
2585
+ { x: 60, y: 18 },
2586
+ { x: 500, y: 300 },
2587
+ { x: 520, y: 680 }
2588
+ ],
2589
+ speed: 1.5,
2590
+ moving: { notLanes: ["bottom"] },
2591
+ requires: LANES
2592
+ },
2593
+ {
2594
+ id: "landing-lane-to-lane",
2595
+ title: "Rail to bar at the corner never passes through the float",
2596
+ expect: "Zoom moved up its rail into the top bar and along it at 0.6 px/ms, resting there 80 ms: no frame floats it, and it ends in the top bar.",
2597
+ scene: landingWindow(),
2598
+ item: "zoom",
2599
+ path: [
2600
+ { x: 15, y: 160 },
2601
+ { x: 15, y: 18 },
2602
+ { x: 400, y: 18 }
2603
+ ],
2604
+ speed: 0.6,
2605
+ rest: 80,
2606
+ moving: { notRegions: ["open"] },
2607
+ end: { region: "lane", lane: "top" },
2608
+ layout: { items: { zoom: { edge: "top" } } },
2609
+ requires: LANES
2610
+ },
2611
+ {
2612
+ id: "landing-fast-along-bar",
2613
+ title: "A fast hand along a bar's free stretch keeps the item at the hand",
2614
+ expect: "A toolbar moved along its bar's free stretch at 1.2 px/ms: whenever the bar holds it, the landing lies within 40 px (the spot pitch) of the pointer.",
2615
+ scene: landingWindow(),
2616
+ item: "a",
2617
+ path: [
2618
+ { x: 110, y: 18 },
2619
+ { x: 970, y: 18 }
2620
+ ],
2621
+ speed: 1.2,
2622
+ moving: { lane: "top", trail: 40 },
2623
+ requires: LANES
2624
+ },
2625
+ {
2626
+ id: "landing-back-home-bar",
2627
+ title: "A toolbar taken away by its end and brought back lands home",
2628
+ expect: "A toolbar pressed 12 px from its right end in its bar (the free stretch's spots lie that way), moved into the document and back to the press point at 0.6 px/ms, resting there 80 ms: it ends on its own place, not on a free-stretch spot beside it.",
2629
+ scene: landingWindow(),
2630
+ item: "a",
2631
+ path: [
2632
+ { x: 196, y: 18 },
2633
+ { x: 500, y: 300 },
2634
+ { x: 196, y: 18 }
2635
+ ],
2636
+ speed: 0.6,
2637
+ rest: 80,
2638
+ end: { region: "lane", lane: "top" },
2639
+ layout: { items: { a: { edge: "top", rect: { x: 8 } } } },
2640
+ requires: GRAB
2641
+ },
2642
+ {
2643
+ id: "landing-back-home-rail",
2644
+ title: "A rail toolbar taken away by its bottom and brought back lands home",
2645
+ expect: "Zoom pressed 6 px above its bottom in its rail (the free stretch's spots lie below it), moved into the document and back to the press point at 0.6 px/ms, resting there 80 ms: it ends where it was, below Tools.",
2646
+ scene: landingWindow(),
2647
+ item: "zoom",
2648
+ path: [
2649
+ { x: 15, y: 198 },
2650
+ { x: 500, y: 300 },
2651
+ { x: 15, y: 198 }
2652
+ ],
2653
+ speed: 0.6,
2654
+ rest: 80,
2655
+ end: { region: "lane", lane: "rail-left" },
2656
+ layout: { order: { "rail-left": ["tools", "zoom"] }, items: { zoom: { rect: { y: 120 } } } },
2657
+ requires: GRAB
2658
+ },
2659
+ {
2660
+ id: "landing-across-items",
2661
+ title: "A fast hand across docked items trails no further than it must",
2662
+ expect: "Zoom moved up its rail and along a bar of three toolbars at 1.2 px/ms, both ways: no frame floats it, and its landing is never further from the pointer than when the same path is played at 0.05 px/ms, plus 40 px.",
2663
+ scene: landingWindow(["a", "b", "c"]),
2664
+ item: "zoom",
2665
+ path: [
2666
+ { x: 15, y: 160 },
2667
+ { x: 15, y: 18 },
2668
+ { x: 1040, y: 18 },
2669
+ { x: 40, y: 18 }
2670
+ ],
2671
+ speed: 1.2,
2672
+ moving: { notRegions: ["open"], trailOverSlow: { slow: 0.05, by: 40 } },
2673
+ requires: LANES
2674
+ }
2675
+ ];
2676
+
2346
2677
  // src/scene/cases/index.ts
2347
2678
  var CASES = withDocks([...DOCKING_ROWS, ...BAR_ROWS, ...RULE_ROWS, ...GESTURE_ROWS, ...WINDOW_ROWS]);
2348
2679
  var CASE_GROUPS = [
@@ -2363,15 +2694,23 @@ export {
2363
2694
  CASES,
2364
2695
  CASE_GROUPS,
2365
2696
  END_REACH,
2697
+ GRAB_SINCE,
2698
+ LANDING_CASES,
2699
+ LANES_DEADLINE,
2700
+ LANES_SINCE,
2701
+ LAST_WITHOUT_LANES,
2366
2702
  LIFT_THRESHOLD,
2367
2703
  WINDOW_A,
2368
2704
  WINDOW_B,
2369
2705
  WINDOW_BARE,
2370
2706
  caseById,
2707
+ createLandingHost,
2371
2708
  createSceneHost,
2372
2709
  defaultItemSelector,
2373
2710
  g,
2374
2711
  idRenames,
2712
+ landingIssues,
2713
+ lanesRatchet,
2375
2714
  layoutIssues,
2376
2715
  mapGesture,
2377
2716
  mapLayout,
@@ -2385,6 +2724,7 @@ export {
2385
2724
  runCaseAsync,
2386
2725
  runCases,
2387
2726
  runCasesAsync,
2727
+ runLandingCases,
2388
2728
  winScene,
2389
2729
  withRefusals
2390
2730
  };