@n-uf/placement 26.11.50 → 26.11.51
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.
- package/CHANGELOG.md +36 -0
- package/dist/{chunk-NM4ADJC2.js → chunk-UPZXNTIR.js} +113 -49
- package/dist/{chunk-NM4ADJC2.js.map → chunk-UPZXNTIR.js.map} +1 -1
- package/dist/{lanes-CkFz9E5l.d.ts → lanes-Dl39s0r7.d.ts} +5 -0
- package/dist/scene-cases.d.ts +7 -2
- package/dist/scene-cases.js +36 -1
- package/dist/scene-cases.js.map +1 -1
- package/dist/scene.d.ts +2 -2
- package/dist/scene.js +1 -1
- package/package.json +2 -2
|
@@ -1150,6 +1150,11 @@ interface LaneMark {
|
|
|
1150
1150
|
readonly id: string;
|
|
1151
1151
|
readonly kind: "line" | "box" | "hatch";
|
|
1152
1152
|
readonly rect: Rect;
|
|
1153
|
+
/**
|
|
1154
|
+
* A box's striped end (`hatch`, `HATCH_END`): the neighbor at that end that gives way when the item lands in the room
|
|
1155
|
+
* (it moves away, leaves the lane, or steps down to a shorter form). Data for a host and tests; nothing to show.
|
|
1156
|
+
*/
|
|
1157
|
+
readonly givesWay?: string;
|
|
1153
1158
|
}
|
|
1154
1159
|
interface Lane {
|
|
1155
1160
|
/** The edge's id, or a virtual lane's: `column:<side>:<the column it lies outside, or $>`, `rail:<side>`. */
|
package/dist/scene-cases.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { P as Point, R as Rect } from './geometry-Bf37LbCT.js';
|
|
2
2
|
import { S as StackFormKind } from './model-X7eUaKlA.js';
|
|
3
|
-
import { S as Scene, a as ScenePlace, b as SceneLayout, c as StoredScene, Z as Zone, d as Side, e as SceneNoteCode, f as SceneTarget, g as SceneRefusal, R as Regions, L as LaneOptions } from './lanes-
|
|
3
|
+
import { S as Scene, a as ScenePlace, b as SceneLayout, c as StoredScene, Z as Zone, d as Side, e as SceneNoteCode, f as SceneTarget, g as SceneRefusal, R as Regions, L as LaneOptions } from './lanes-Dl39s0r7.js';
|
|
4
4
|
import './target-BBOCeez2.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -619,6 +619,11 @@ declare const GRIP_SINCE = "26.11.48";
|
|
|
619
619
|
* neighbor giving way): the rows passing a neighbor that keeps room need it.
|
|
620
620
|
*/
|
|
621
621
|
declare const ROOM_SINCE = "26.11.50";
|
|
622
|
+
/**
|
|
623
|
+
* The first library version whose stretch is the room a drop makes (a neighbor that steps down to a shorter form to
|
|
624
|
+
* make room counts): the rows sliding over such a stretch need it.
|
|
625
|
+
*/
|
|
626
|
+
declare const STEP_SINCE = "26.11.51";
|
|
622
627
|
/** The last published version without `lanes()`. */
|
|
623
628
|
declare const LAST_WITHOUT_LANES = "26.11.44";
|
|
624
629
|
/** From this date every landing row runs on every host (or at the breaking release, if that comes first). */
|
|
@@ -808,4 +813,4 @@ declare const CASE_GROUPS: readonly {
|
|
|
808
813
|
/** The row with this id, or undefined. */
|
|
809
814
|
declare const caseById: (id: string) => CaseRow | undefined;
|
|
810
815
|
|
|
811
|
-
export { type AimArea, type AsyncCaseHost, CASES, CASE_GROUPS, type CaseGroup, type CaseHost, type CaseRequires, type CaseResult, type CaseRow, type CaseSettings, type Checkpoint, type DomCheck, type DomRoot, END_REACH, type EdgeExpect, GRAB_SINCE, GRIP_SINCE, type Gesture, type GestureType, type IdMap, type ItemExpect, LANDING_CASES, LANES_DEADLINE, LANES_SINCE, LAST_WITHOUT_LANES, LIFT_THRESHOLD, type LandingCase, type LandingCaseFrame, type LandingCaseGuide, type LandingCaseHost, type LandingCaseResult, type LandingModelLike, type LandingPlay, type LandingRegionName, type LandingRule, type LayoutExpect, type PickCandidate, type PickRule, ROOM_SINCE, type Rename, type SceneHost, type SceneHostOptions, type StoredExpect, WINDOW_A, WINDOW_B, WINDOW_BARE, type WinOptions, type WinSpec, caseById, createLandingHost, createSceneHost, defaultItemSelector, g, idRenames, landingIssues, lanesRatchet, layoutIssues, mapGesture, mapLayout, mapPlace, mapScene, mapStored, pickTarget, resizeStep, resolvePlace, runCase, runCaseAsync, runCases, runCasesAsync, runLandingCases, winScene, withRefusals };
|
|
816
|
+
export { type AimArea, type AsyncCaseHost, CASES, CASE_GROUPS, type CaseGroup, type CaseHost, type CaseRequires, type CaseResult, type CaseRow, type CaseSettings, type Checkpoint, type DomCheck, type DomRoot, END_REACH, type EdgeExpect, GRAB_SINCE, GRIP_SINCE, type Gesture, type GestureType, type IdMap, type ItemExpect, LANDING_CASES, LANES_DEADLINE, LANES_SINCE, LAST_WITHOUT_LANES, LIFT_THRESHOLD, type LandingCase, type LandingCaseFrame, type LandingCaseGuide, type LandingCaseHost, type LandingCaseResult, type LandingModelLike, type LandingPlay, type LandingRegionName, type LandingRule, type LayoutExpect, type PickCandidate, type PickRule, ROOM_SINCE, type Rename, STEP_SINCE, type SceneHost, type SceneHostOptions, type StoredExpect, WINDOW_A, WINDOW_B, WINDOW_BARE, type WinOptions, type WinSpec, caseById, createLandingHost, createSceneHost, defaultItemSelector, g, idRenames, landingIssues, lanesRatchet, layoutIssues, mapGesture, mapLayout, mapPlace, mapScene, mapStored, pickTarget, resizeStep, resolvePlace, runCase, runCaseAsync, runCases, runCasesAsync, runLandingCases, winScene, withRefusals };
|
package/dist/scene-cases.js
CHANGED
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
storeScene,
|
|
21
21
|
targets,
|
|
22
22
|
use
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-UPZXNTIR.js";
|
|
24
24
|
import "./chunk-AE3BWTAE.js";
|
|
25
25
|
import {
|
|
26
26
|
centre,
|
|
@@ -2349,6 +2349,7 @@ var LANES_SINCE = "26.11.45";
|
|
|
2349
2349
|
var GRAB_SINCE = "26.11.46";
|
|
2350
2350
|
var GRIP_SINCE = "26.11.48";
|
|
2351
2351
|
var ROOM_SINCE = "26.11.50";
|
|
2352
|
+
var STEP_SINCE = "26.11.51";
|
|
2352
2353
|
var LAST_WITHOUT_LANES = "26.11.44";
|
|
2353
2354
|
var LANES_DEADLINE = "2026-12-31";
|
|
2354
2355
|
var versionBefore = (a, b) => {
|
|
@@ -2751,6 +2752,39 @@ var LANDING_CASES = [
|
|
|
2751
2752
|
requires: { lanes: { since: ROOM_SINCE } }
|
|
2752
2753
|
})
|
|
2753
2754
|
),
|
|
2755
|
+
{
|
|
2756
|
+
id: "landing-step-down-room",
|
|
2757
|
+
title: "A toolbar slid over room that a neighbor steps down to make stays at the hand",
|
|
2758
|
+
expect: "An 870 px bottom bar: Panels (362 px, 60 in its short form) at its start, Status (382 px) at its end, 109 px between them: 93 px of room for an item less the 8 px gap each side, shorter than Tools (130 px). Tools brought from the document onto the bar and slid right along it at 0.3 px/ms: a drop between them steps Panels down, and the room that makes (266 px past Tools' length) is one sliding stretch, so whenever the bar holds it the landing lies within 48 px of the pointer, 56 on the frame before a hop.",
|
|
2759
|
+
scene: (() => {
|
|
2760
|
+
const row2 = (kind, w) => form(kind, w, w, 31);
|
|
2761
|
+
const g2 = (id, used, forms, more = {}) => ({ id, kind: "group", used, forms, ...more });
|
|
2762
|
+
const icons = form("icons", 84, 84, 28);
|
|
2763
|
+
const menu = form("menu", 0, 0, 0);
|
|
2764
|
+
return {
|
|
2765
|
+
stage: rect(0, 0, 870, 660),
|
|
2766
|
+
edges: [{ id: "bottom", side: "bottom", ring: 0, accepts: ["group"], items: ["panels", "status"], cross: { min: 31, max: 31, rail: 31 }, gap: 8, pad: { start: 8, end: 8 }, menu: { main: 24 } }],
|
|
2767
|
+
items: {
|
|
2768
|
+
panels: g2("panels", 1, { row: [row2("row", 362.3), row2("icons", 60), menu], column: [icons, menu] }),
|
|
2769
|
+
status: g2("status", 100, { row: [row2("row", 382.4)], column: [icons] }, { align: "end" }),
|
|
2770
|
+
tools: g2("tools", 2, { row: [row2("row", 130), row2("icons", 60), menu], column: [form("icons", 107, 107, 36), menu] })
|
|
2771
|
+
},
|
|
2772
|
+
floats: [{ id: "tools", rect: rect(529, 53, 36, 107) }],
|
|
2773
|
+
floatKinds: ["group"]
|
|
2774
|
+
};
|
|
2775
|
+
})(),
|
|
2776
|
+
item: "tools",
|
|
2777
|
+
path: [
|
|
2778
|
+
{ x: 547, y: 106 },
|
|
2779
|
+
{ x: 100, y: 645 },
|
|
2780
|
+
{ x: 465, y: 645 }
|
|
2781
|
+
],
|
|
2782
|
+
speed: 0.3,
|
|
2783
|
+
rest: 40,
|
|
2784
|
+
moving: { trail: 48, trailBeforeHop: 56 },
|
|
2785
|
+
end: { region: "lane", lane: "bottom" },
|
|
2786
|
+
requires: { lanes: { since: STEP_SINCE } }
|
|
2787
|
+
},
|
|
2754
2788
|
{
|
|
2755
2789
|
id: "landing-across-items",
|
|
2756
2790
|
title: "A fast hand across docked items trails no further than it must",
|
|
@@ -2797,6 +2831,7 @@ export {
|
|
|
2797
2831
|
LAST_WITHOUT_LANES,
|
|
2798
2832
|
LIFT_THRESHOLD,
|
|
2799
2833
|
ROOM_SINCE,
|
|
2834
|
+
STEP_SINCE,
|
|
2800
2835
|
WINDOW_A,
|
|
2801
2836
|
WINDOW_B,
|
|
2802
2837
|
WINDOW_BARE,
|