@n-uf/motion 26.11.54 → 26.11.55

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/dist/drag.d.ts CHANGED
@@ -419,11 +419,13 @@ type PreviewFrame<T extends DragTarget = DragTarget> = Pick<DragFrame<T>, "shown
419
419
  declare function previewPlan<T extends DragTarget>(frame: PreviewFrame<T>, preview: DragPreview | PreviewMode, slotted?: boolean): PreviewPlan;
420
420
 
421
421
  /**
422
- * The landing model: where a docking drag's item lands, as state rather than a per-frame guess. A host gives it the
423
- * drag's regions (from `@n-uf/docking`'s `lanes()`: plain data, the shapes below) and each pointer sample; it
424
- * says the region the pointer is in, the lane and spot held, where the item lands, whether the room is open, and the
425
- * place guides. Every change comes from where the pointer is and how it moved (margins, a path length, a step size):
426
- * the model has no waits of its own.
422
+ * The landing model: where a docking drag's item lands, as a held place rather than a per-frame guess. A host gives it the
423
+ * drag's geometry (`@n-uf/docking`'s `dockDrag(...)` fits `LandingGeometry` as it is: the regions for hit-testing and
424
+ * `landingOf(held)`) and each pointer sample; it says the region the pointer is in, the lane and spot held, the held place a
425
+ * release lands (`frame.held`), where the item lands, whether the room is open, and which lanes' place guides show with
426
+ * the held place each stands for. It picks held places and does no layout: every rect of a held place comes from the geometry. Every
427
+ * change comes from where the pointer is and how it moved (margins, a path length, a step size): the model has no waits
428
+ * of its own.
427
429
  *
428
430
  * - **The stage's edge** is the easiest place to dock: a pointer past the stage by up to `edge` px counts as on its
429
431
  * edge, so it lies deep inside a lane drawn against that edge; beyond, it is nowhere.
@@ -464,41 +466,42 @@ declare function previewPlan<T extends DragTarget>(frame: PreviewFrame<T>, previ
464
466
  * lane the pointer came through (a plain lane's band over the home lane's corner included), and its spot is the
465
467
  * item's own (`home.spot`; a sliding one still lets the landing follow the hand and snap): away and back to where the
466
468
  * item was lifted is home on every layout, so no nudge to a neighboring spot is reachable within `lift` of the press.
467
- * The zone is a held state like a held lane: the drag starts in it, leaves it past `lift` and re-enters only within
469
+ * The zone is held like a held lane: the drag starts in it, leaves it past `lift` and re-enters only within
468
470
  * `lift - spot`, so a wobble at its edge never flips a cut near the press.
471
+ * - **A float's lift zone.** A lift is a float's when it has no `home` option and no lane has a spot marked `home` (a
472
+ * docked item's own place; docking always marks it), so a docked item lifted without `home` stays docked. A float has a zone of
473
+ * its own, the same `margins.lift` around the press: within it no lane takes the pointer, and the frame is judged as if
474
+ * the regions had no lanes (the float is at the hand, so a nudge moves it; blocked and refused places are judged as on
475
+ * any frame, so a float lying over one is refused there). No lane's path counts inside it. The zone is left once, at
476
+ * the first point farther than `lift` from the press, and never re-entered: the lanes act as usual from then on, a
477
+ * held lane included, so a slide back through the press point changes nothing. A float lying inside a lane's band
478
+ * (an empty bar's) stays a float for the first `lift` px, and the lane takes it by its gates after.
469
479
  * - **Along a lane** the spot changes once the pointer is `spot` px past the boundary; where the change moves another
470
480
  * item (the two spots' `others` keys differ), on a step of at most `stepSpeed`, or once the held landing trails the
471
- * pointer by more than `trail`: the item chases only as far as it must. A change that moves only the held item
472
- * follows the hand at any speed. With `regionsFor`, a reflowing change is kept only if, in the new spot's own regions
473
- * (its room open), the pointer still lies in that spot's stretch: the room shifting the boundary never bounces it.
474
- * - **A sliding spot** (`slide`: a free stretch as one spot) lands where the hand is: its landing moved along the lane to
475
- * the pointer less the grab (`grab`), clamped to its range, and snapped to its ends, the item's own place or a dock
476
- * inside within `snapDistance`. Nothing reflows inside it, so there are no steps there; a step comes only where the
477
- * order changes (passing a neighbor), as between any two spots. A release reads where it starts (`at`) once.
481
+ * pointer by more than `trail` (`landingOf` the spot held): the item chases only as far as it must. A change that
482
+ * moves only the held item follows the hand at any speed. With `spotsOf`, a reflowing change is kept only if, with the
483
+ * new spot held (its room open), the pointer still lies in that spot's stretch: the room shifting the boundary never
484
+ * bounces it.
485
+ * - **A sliding spot** (a free stretch as one spot) lands where the hand is: the model names the spot and the pointer,
486
+ * and the geometry says where (`landingOf`). Nothing reflows inside it, so there are no steps there; a step comes only
487
+ * where the order changes (passing a neighbor), as between any two spots.
478
488
  * - **Outside every lane:** a refused place, refused; open space (`"open"`: the content less what blocks it, the page),
479
489
  * the float at its landing; outside the stage (past `edge`), nowhere; else (docked content that takes nothing and
480
490
  * refuses nothing) refused.
481
491
  * - **Shift** turns a lane or open space into open space (the float), and hides the guides.
482
- * - **Guides** are the lane's `marks` (lines between items, a box per free stretch, in the layout as drawn), else its
483
- * spots' landings. `"near"` shows a lane only where the pointer can enter it: the held lane's (also over its own
492
+ * - **Guides** name lanes and the held place each lane's guide stands for (`frame.guides`); the geometry draws them (a lane's
493
+ * marks in that held place's layout). `"near"` shows a lane only where the pointer can enter it: the held lane's (also over its own
484
494
  * refused stretch); else the pending lane's (the pointer inside it, its gate not passed: a release floats or goes
485
495
  * home); else, with the pointer in open space, the approached lane's (the nearest within `reach`, by default the
486
496
  * entry margin `exit`, acquired within `max(reach - spot, reach / 2)` and kept to `reach`, so it never blinks at the
487
497
  * edge: a release floats). Over a refused place outside every lane no guide shows, however near the lane behind it
488
498
  * lies; a host that wants the early guide sets `approach.reach` (in open space only: over a refused place none shows
489
- * at any reach). That lane (the one the Near rule picks) shows its `entry` marks where it has them (docking's
490
- * prediction of an empty lane's marks once entered), so its guide before entry is its mark after it. Its guide leaves
491
- * out the held toolbar at the landing it takes there (held) or would take (the spot the pointer picks, a sliding
492
- * spot's start from the grab), never at its floating rect, so a host passes no held rect in `guideRects`' `clear`; a
493
- * part that cut leaves no longer than `MIN_BOX_LENGTH` (the padding before a clamped landing) is not drawn. `"all"`
494
- * shows every lane's; the lane the Near rule picks shows its `entry` and owns the corners it shares: each lane it
495
- * names in `corners` is cut by what the owner draws (its guide, less the landing), by the interval subtraction of
496
- * `guideRects`, but only where that mark covers the lane's marks across their whole thickness; otherwise the named
497
- * lane keeps the corner and the owner's mark gives the overlap up. Every mark is compared as it is drawn: inside its
498
- * lane's `rect`, a line at its drawn thickness (2 px). Under `"near"` too the Near lane's `entry` is clipped to its
499
- * `rect`. With no Near lane, the corner goes to the lane with `entry` nearest the pointer within `reach`, for the
500
- * corner only (it isn't made Near, pending or enterable). Beyond reach of every such lane, every lane's `marks`,
501
- * where the bar keeps a shared corner. No two lanes' guides overlap on any frame.
499
+ * at any reach). That lane (the one the Near rule picks), held, stands for the frame's held place; pending or approached,
500
+ * for the held place the pointer would land in there (the spot it picks along it), so its guide before entry is its mark
501
+ * after it. `"all"` shows every lane's, every other lane standing for the frame's held place (the screen); with no Near
502
+ * lane, the lane nearest the pointer within `reach` stands for its would-land held place, for the corner only (not made
503
+ * Near, pending or enterable), switching exactly at `reach`. Where that lane's guide meets another's, the geometry
504
+ * gives it that lane.
502
505
  * - Steps are speeds (px/ms) between points that differ, so the gates read the same at any input rate. A repeated
503
506
  * point keeps the last step; it is still only once the pointer has stayed put for `rest` ms.
504
507
  * - **The pointer** is taken onto the stage by the model itself (past it by up to `edge`, onto its edge).
@@ -506,53 +509,21 @@ declare function previewPlan<T extends DragTarget>(frame: PreviewFrame<T>, previ
506
509
  * **The host's part:** call `update` whenever you like: per pointer sample, per animation frame, or both. Call it at
507
510
  * least once more after the pointer stops (every frame does), so it can become still, and again with the same point
508
511
  * when a key changes. `release(point, time)` takes the release point as one more sample when it differs from the last.
509
- * Give `setRegions` the `regionsFor` that answers for the new state.
512
+ * When the state under the drag changes (a resize, a store change), hand the new geometry whole to `setGeometry`.
510
513
  */
511
- /** A place a drop in a lane lands: its stretch of the lane and its landing rect. Ids are stable across solves. */
514
+ /** A place a drop in a lane lands: its stretch of the lane and its listed landing rect. Ids are stable across solves. */
512
515
  interface LandingSpot {
513
516
  readonly id: string;
514
517
  readonly along: readonly [number, number];
518
+ /** Its landing as listed (a sliding spot's at rest): what `home` compares with. Where it lands now is `landingOf`. */
515
519
  readonly landing: Rect;
516
520
  /**
517
521
  * Where its drop draws every other item, as a key: a change between two spots with the same key moves only the held
518
522
  * item. Absent: every change to or from it counts as moving others.
519
523
  */
520
524
  readonly others?: string;
521
- /**
522
- * A sliding spot (a free stretch exposed as one spot): over it the landing follows the pointer, `landing` moved along
523
- * the lane to the pointer less the grab, clamped to `[from, to]` and snapped to a point of `snaps` within
524
- * `snapDistance`, else on whole pixels (`step`). Absent: the landing is `landing`.
525
- */
526
- readonly slide?: LandingSlide;
527
- }
528
- /** A sliding spot's range: where its landing's start may lie along the lane, and the points it snaps to. */
529
- interface LandingSlide {
530
- /** The landing's start at the stretch's start (flush against the neighbor before it), px along the lane. */
531
- readonly from: number;
532
- /** The landing's start at the stretch's end (flush against the neighbor after it), px along the lane. */
533
- readonly to: number;
534
- /** The starts it snaps to: its two ends, the item's own place where it lies here, any discrete dock inside. */
535
- readonly snaps: readonly number[];
536
- /** How near a snap point the landing's start snaps to it, px (default `SNAP_DISTANCE`). */
537
- readonly snapDistance?: number;
538
- /**
539
- * The grain of a start that snaps to nothing, px: a multiple of `step`, clamped to `[from, to]` (default 1, whole
540
- * pixels; 0: wherever the pointer puts it). Give the step the spot's commit uses, so the frame, the release's `at`
541
- * and the commit agree.
542
- */
543
- readonly step?: number;
544
- }
545
- /** How near a sliding spot's snap point its landing snaps to it, px. */
546
- declare const SNAP_DISTANCE = 8;
547
- /**
548
- * A place guide's mark, in the layout as drawn: a line between two items that touch, a box over free room the item
549
- * lands in, a hatch over the part of a neighbor that gives way where the room is shorter than the item.
550
- */
551
- interface LandingMark {
552
- /** Stable while its neighbors stay; absent, the guide is keyed by its lane and place in the list. */
553
- readonly id?: string;
554
- readonly kind: "line" | "box" | "hatch";
555
- readonly rect: Rect;
525
+ /** The held item's own place at the lift (a docked item's; docking marks it): a lift with no spot marked home is a float's. */
526
+ readonly home?: boolean;
556
527
  }
557
528
  interface LandingLane {
558
529
  readonly id: string;
@@ -562,22 +533,6 @@ interface LandingLane {
562
533
  readonly refused: readonly {
563
534
  readonly along: readonly [number, number];
564
535
  }[];
565
- /** Its guides' marks; absent, its spots' landings are the guides. */
566
- readonly marks?: readonly LandingMark[];
567
- /**
568
- * Its marks while it is the lane the pointer picks (held, pending or approached), where they differ from `marks`: a
569
- * prediction of its marks once entered that owns a corner `marks` gives up (docking's `lanes()` gives it for an empty
570
- * lane). Shown in place of `marks` then, clipped to this lane's `rect` (a mark is drawn inside its lane), and under
571
- * `"all"` every lane in `corners` is cut where it overlaps what is drawn of it, if that covers the lane's marks across
572
- * their whole thickness; else that lane keeps the corner.
573
- */
574
- readonly entry?: readonly LandingMark[];
575
- /**
576
- * The lanes whose marks `entry` overlaps: while this lane is the one the pointer picks (or the nearest within reach)
577
- * each is cut where its marks overlap this lane's drawn mark, only where that mark covers them across their whole
578
- * thickness; otherwise the named lane keeps the corner.
579
- */
580
- readonly corners?: readonly string[];
581
536
  /**
582
537
  * Its rect is its own (a rail drop strip at the window's side): inside it, once its gate passes, it takes the pointer
583
538
  * from any lane it overlaps, a held one too. Absent: where lanes overlap, the deeper one wins.
@@ -591,12 +546,17 @@ interface LandingRegions {
591
546
  readonly content: Rect;
592
547
  readonly blocked: readonly Rect[];
593
548
  readonly stage: Rect;
594
- /** The held item's size. */
595
- readonly item: {
549
+ /** The held item's size: the model doesn't read it (the geometry lands the item); docking's regions carry it. */
550
+ readonly item?: {
596
551
  readonly width: number;
597
552
  readonly height: number;
598
553
  };
599
554
  }
555
+ /** One lane a frame shows place guides for, with the held place its guide stands for (`LandingFrame.guides`). */
556
+ interface LandingGuideRef {
557
+ readonly lane: string;
558
+ readonly held: LandingHeld | null;
559
+ }
600
560
  interface LandingMargins {
601
561
  /** Past a held lane's rect before it lets go, px. */
602
562
  readonly exit: number;
@@ -667,12 +627,39 @@ declare const LANDING_TOUCH_MARGINS: LandingMargins;
667
627
  */
668
628
  declare const LANDING_GATES: LandingGates;
669
629
  declare const LANDING_APPROACH: LandingApproach;
670
- interface LandingOptions {
630
+ /**
631
+ * A held place of the drag: where a release now lands. A spot of a lane with the pointer (a sliding spot lands where the hand
632
+ * holds it: the geometry says where), or the float at the pointer. A frame with none is at rest (it lands nowhere).
633
+ */
634
+ type LandingHeld = {
635
+ readonly kind: "spot";
636
+ readonly lane: string;
637
+ readonly spot: string;
638
+ readonly point: Point;
639
+ } | {
640
+ readonly kind: "float";
641
+ readonly point: Point;
642
+ };
643
+ /**
644
+ * The drag's geometry, from the host's docking layer (`@n-uf/docking`'s `dockDrag(...)` fits it as it is): the regions
645
+ * for hit-testing, as seen, and the one rect the model reads of a held place.
646
+ */
647
+ interface LandingGeometry {
648
+ /** Hit-testing: the lanes (hit rects, spots' stretches, refused stretches), refused places, content, blocked, stage. */
671
649
  readonly regions: LandingRegions;
672
- /** The regions with `spot` held (its room open): the fixed-point check and the stretches while held. Cached per id. */
673
- readonly regionsFor?: (spot: string) => LandingRegions | null;
674
- /** The float's landing for a pointer over the document, or null where the item doesn't float. */
675
- readonly floatLanding?: (point: Point) => Rect | null;
650
+ /**
651
+ * Where the item lands in a held place (its rect in that held place's layout), or null where it lands nowhere (a float
652
+ * where the item doesn't float). The frame's landing, and the trail gate's: the model does no geometry of its own.
653
+ */
654
+ readonly landingOf: (held: LandingHeld) => Rect | null;
655
+ /**
656
+ * A spot's lane with its stretches cut in that spot's own layout (a panel column by halves of what it draws), or null:
657
+ * the stretches along a held lane, and the fixed-point check. Absent: the stretches as seen. Asked once per spot until
658
+ * the geometry changes.
659
+ */
660
+ readonly spotsOf?: (spot: string) => readonly LandingSpot[] | null;
661
+ }
662
+ interface LandingOptions extends LandingGeometry {
676
663
  /** The item's own place at the lift: its lane and spot (the drag starts there, the room open). */
677
664
  readonly home?: {
678
665
  readonly lane: string;
@@ -680,39 +667,30 @@ interface LandingOptions {
680
667
  };
681
668
  /** Where the item was lifted (the press), in the regions' space; default the first point `update` gets. */
682
669
  readonly lift?: Point;
683
- /**
684
- * Where the pointer holds the item, from its top left corner as it is now, px (the press's, as `lanes()` takes it).
685
- * Over a sliding spot the landing's start is the pointer less this, along the item's own length (its longer side; a
686
- * landing of another length at the same share of it); across it, and in a lane across its length, the middle.
687
- * Default: the middle of `regions.item`.
688
- */
689
- readonly grab?: Point;
690
670
  readonly margins?: Partial<LandingMargins>;
691
671
  readonly gates?: Partial<LandingGates>;
692
672
  readonly approach?: Partial<LandingApproach>;
693
673
  readonly placeGuides?: PlaceGuides;
694
674
  }
695
675
 
696
- /** A guide: a mark of a lane, where to draw it now (a spot's landing is a box). */
697
- interface LandingGuide {
698
- /** Stable while its neighbors stay: the mark's id, else `<lane>/<spot id>` for a spot's landing. Key a drawing by it. */
699
- readonly id: string;
700
- readonly lane: string;
701
- /** A line, a box, or a hatch over a neighbor that gives way (draw it over that item, in the guides' color). */
702
- readonly kind: "line" | "box" | "hatch";
703
- readonly rect: Rect;
704
- }
705
676
  interface LandingFrame {
706
677
  readonly region: LandingRegion;
707
678
  /** The lane held (also over its refused stretch), or null. */
708
679
  readonly lane: string | null;
709
680
  /** The spot held, or null. */
710
681
  readonly spot: string | null;
711
- /** Where a release now lands: the spot's landing, or the float's; null where it lands nowhere (the item goes home). */
682
+ /** The held place a release now lands (the screen's: what the host draws), or null at rest. */
683
+ readonly held: LandingHeld | null;
684
+ /** Where a release now lands: `landingOf(held)`; null where it lands nowhere (the item goes home). */
712
685
  readonly landing: Rect | null;
713
686
  /** The room is open: a spot is held in a lane, no Shift. */
714
687
  readonly room: boolean;
715
- readonly guides: readonly LandingGuide[];
688
+ /**
689
+ * The lanes whose place guides show, each with the held place its guide stands for: the frame's `held` (the screen), or,
690
+ * for the Near lane before entry (pending or approached), the held place the pointer would land there (the spot it picks
691
+ * along it). The host's geometry draws them (`@n-uf/docking`'s `guides(frame)`).
692
+ */
693
+ readonly guides: readonly LandingGuideRef[];
716
694
  /** Shift held: the region is open space wherever it was a lane or open space. */
717
695
  readonly shift: boolean;
718
696
  /**
@@ -723,19 +701,18 @@ interface LandingFrame {
723
701
  readonly pending?: string;
724
702
  }
725
703
  /**
726
- * What a release lands: a spot (`home` when it is the item's own place), the float at `rect`, or nothing. On a sliding
727
- * spot, `at` is where the landing starts along the lane, as the frame shows it (read once, at the release: a snap
728
- * point, else on the spot's `step`), and `home` holds only where that is the item's own place.
704
+ * What a release lands: the last frame's held place (a spot with the pointer, `home` when it lands at the item's own place;
705
+ * the float at the pointer), or nothing. The host commits that held place's layout (`@n-uf/docking`'s `after(release)`).
729
706
  */
730
707
  type LandingRelease = {
731
708
  readonly kind: "spot";
732
709
  readonly lane: string;
733
710
  readonly spot: string;
711
+ readonly point: Point;
734
712
  readonly home: boolean;
735
- readonly at?: number;
736
713
  } | {
737
714
  readonly kind: "float";
738
- readonly rect: Rect;
715
+ readonly point: Point;
739
716
  } | null;
740
717
  interface LandingModel {
741
718
  update(point: Point, time: number, keys?: DragKeys): LandingFrame;
@@ -745,10 +722,10 @@ interface LandingModel {
745
722
  */
746
723
  release(point: Point, time: number, keys?: DragKeys): LandingRelease;
747
724
  /**
748
- * The regions changed (a resize, a store change, a scroll): spots map by id; a lost one goes to its lane's nearest.
749
- * Pass the `regionsFor` that answers for the new state; without one, the old one stays (it must then read live state).
725
+ * The geometry changed (a resize, a store change, a scroll): the new state's regions and readers, whole. Spots map by
726
+ * id; a lost one goes to its lane's nearest.
750
727
  */
751
- setRegions(regions: LandingRegions, regionsFor?: (spot: string) => LandingRegions | null): void;
728
+ setGeometry(geometry: LandingGeometry): void;
752
729
  /** The view moved under the pointer: the gates start again, the lane is let go. */
753
730
  hide(): void;
754
731
  readonly frame: LandingFrame;
@@ -792,7 +769,7 @@ declare function createGripPress(options?: {
792
769
  readonly double?: Partial<DoubleClick>;
793
770
  }): GripPress;
794
771
 
795
- /** A guide to place: any record with a `kind` and a `rect` (a landing model's `LandingGuide`, a lane's marks). */
772
+ /** A guide to place: any record with a `kind` and a `rect` (a lane's marks, as a host's geometry draws a frame's guides). */
796
773
  interface PlacedGuide {
797
774
  readonly kind: "line" | "box" | "hatch";
798
775
  readonly rect: Rect;
@@ -891,4 +868,4 @@ declare const MIN_BOX_LENGTH = 8;
891
868
  */
892
869
  declare function guideRects<G extends PlacedGuide>(guides: readonly G[], options: GuideRectsOptions): G[];
893
870
 
894
- export { type ClearRect, DRAG_DEFAULTS, DRAG_PREVIEW_DEFAULT, type DragFrame, type DragIntent, type DragIntentOptions, type DragIntentState, type DragKeys, type DragModifiers, type DragPreview, type DragTarget, type DragTuning, type GripPress, type GripRelease, type GuideRectsOptions, LANDING_APPROACH, LANDING_GATES, LANDING_MARGINS, LANDING_TOUCH_MARGINS, type LandingApproach, type LandingFrame, type LandingGates, type LandingGuide, type LandingLane, type LandingMargins, type LandingMark, type LandingModel, type LandingOptions, type LandingRegion, type LandingRegions, type LandingRelease, type LandingSlide, type LandingSpot, type LiftDecision, MIN_BOX_LENGTH, ModifierKey, Modifiers, PLACE_GUIDES_DEFAULT, type PlaceGuides, type PlacedGuide, Point, type PreviewFrame, type PreviewMode, type PreviewPlan, REFUSAL_RANK, Rect, SNAP_DISTANCE, createDragIntent, createGripPress, createLandingModel, guideRects, inRect, liftDecision, pickRank, previewPlan, targetAt };
871
+ export { type ClearRect, DRAG_DEFAULTS, DRAG_PREVIEW_DEFAULT, type DragFrame, type DragIntent, type DragIntentOptions, type DragIntentState, type DragKeys, type DragModifiers, type DragPreview, type DragTarget, type DragTuning, type GripPress, type GripRelease, type GuideRectsOptions, LANDING_APPROACH, LANDING_GATES, LANDING_MARGINS, LANDING_TOUCH_MARGINS, type LandingApproach, type LandingFrame, type LandingGates, type LandingGeometry, type LandingGuideRef, type LandingHeld, type LandingLane, type LandingMargins, type LandingModel, type LandingOptions, type LandingRegion, type LandingRegions, type LandingRelease, type LandingSpot, type LiftDecision, MIN_BOX_LENGTH, ModifierKey, Modifiers, PLACE_GUIDES_DEFAULT, type PlaceGuides, type PlacedGuide, Point, type PreviewFrame, type PreviewMode, type PreviewPlan, REFUSAL_RANK, Rect, createDragIntent, createGripPress, createLandingModel, guideRects, inRect, liftDecision, pickRank, previewPlan, targetAt };
package/dist/drag.js CHANGED
@@ -8,7 +8,6 @@ import {
8
8
  MIN_BOX_LENGTH,
9
9
  PLACE_GUIDES_DEFAULT,
10
10
  REFUSAL_RANK,
11
- SNAP_DISTANCE,
12
11
  createDragIntent,
13
12
  createGripPress,
14
13
  createLandingModel,
@@ -18,7 +17,7 @@ import {
18
17
  pickRank,
19
18
  previewPlan,
20
19
  targetAt
21
- } from "./chunk-IT2FMZOM.js";
20
+ } from "./chunk-W7YP7VB2.js";
22
21
  import {
23
22
  isHeld
24
23
  } from "./chunk-RWDYRT3H.js";
@@ -32,7 +31,6 @@ export {
32
31
  MIN_BOX_LENGTH,
33
32
  PLACE_GUIDES_DEFAULT,
34
33
  REFUSAL_RANK,
35
- SNAP_DISTANCE,
36
34
  createDragIntent,
37
35
  createGripPress,
38
36
  createLandingModel,
package/dist/index.d.ts CHANGED
@@ -8,6 +8,6 @@ export { AnimatorValue, Easing, MotionOptions, MotionValue, SPRING_DEFAULTS, Set
8
8
  export { P as PopIn, R as RevealFrame, p as popIn, r as reveal } from './reveal-Dg5fqoWS.js';
9
9
  export { CancelReason, DWELL_DEFAULTS, DWELL_IDLE, Deadline, DwellConfig, DwellInput, DwellMachineOptions, DwellState, GesturePointer, InputGesture, InputGestureType, Machine, MachineOptions, NO_MODIFIERS, PAGED_SWIPE_DEFAULTS, PAGED_SWIPE_EMPTY_CONTEXT, PAGED_SWIPE_IDLE, PagedSwipeConfig, PagedSwipeContext, PagedSwipeInput, PagedSwipeOptions, PagedSwipeState, Platform, PointerKind, RECOGNIZER_DEFAULTS, RawInputEvent, RawPointerEvent, RawPointerType, RawSafariGestureEvent, RawWheelEvent, Recognizer, RecognizerOptions, RecognizerTimers, SwipeSide, TOUCH_PRESS_DEFAULTS, TOUCH_PRESS_IDLE, TouchPressConfig, TouchPressInput, TouchPressOptions, TouchPressState, WHEEL_DEFAULTS, WHEEL_PAN_DEFAULTS, WheelIntent, WheelOptions, WheelPanOptions, classifyWheel, createDwellMachine, createMachine, createPagedSwipe, createRecognizer, createTouchPress, dampWheelPan, defaultDragModifier, dwellDeadline, dwellReducer, modHeld, pagedSwipeDeadline, pagedSwipeReducer, platformButton, resolveDragModifier, swipeProgress, toModifiers, touchPressDeadline, touchPressReducer, wheelDelta } from './gestures.js';
10
10
  export { D as DOUBLE_CLICK, a as DoubleClick, M as ModifierKey, b as Modifiers, i as isHeld } from './double-click-DBfbiP2U.js';
11
- export { ClearRect, DRAG_DEFAULTS, DRAG_PREVIEW_DEFAULT, DragFrame, DragIntent, DragIntentOptions, DragIntentState, DragKeys, DragModifiers, DragPreview, DragTarget, DragTuning, GripPress, GripRelease, GuideRectsOptions, LANDING_APPROACH, LANDING_GATES, LANDING_MARGINS, LANDING_TOUCH_MARGINS, LandingApproach, LandingFrame, LandingGates, LandingGuide, LandingLane, LandingMargins, LandingMark, LandingModel, LandingOptions, LandingRegion, LandingRegions, LandingRelease, LandingSlide, LandingSpot, LiftDecision, MIN_BOX_LENGTH, PLACE_GUIDES_DEFAULT, PlaceGuides, PlacedGuide, PreviewFrame, PreviewMode, PreviewPlan, REFUSAL_RANK, SNAP_DISTANCE, createDragIntent, createGripPress, createLandingModel, guideRects, inRect, liftDecision, pickRank, previewPlan, targetAt } from './drag.js';
11
+ export { ClearRect, DRAG_DEFAULTS, DRAG_PREVIEW_DEFAULT, DragFrame, DragIntent, DragIntentOptions, DragIntentState, DragKeys, DragModifiers, DragPreview, DragTarget, DragTuning, GripPress, GripRelease, GuideRectsOptions, LANDING_APPROACH, LANDING_GATES, LANDING_MARGINS, LANDING_TOUCH_MARGINS, LandingApproach, LandingFrame, LandingGates, LandingGeometry, LandingGuideRef, LandingHeld, LandingLane, LandingMargins, LandingModel, LandingOptions, LandingRegion, LandingRegions, LandingRelease, LandingSpot, LiftDecision, MIN_BOX_LENGTH, PLACE_GUIDES_DEFAULT, PlaceGuides, PlacedGuide, PreviewFrame, PreviewMode, PreviewPlan, REFUSAL_RANK, createDragIntent, createGripPress, createLandingModel, guideRects, inRect, liftDecision, pickRank, previewPlan, targetAt } from './drag.js';
12
12
  export { D as DrawEntry, a as DrawFrame, b as Drawable, L as LayoutItem, c as LayoutMotion, d as LayoutMotionOptions, e as LayoutTask, f as createLayoutMotion } from './motion-sElR1A_c.js';
13
13
  export { AnchoredMorph, BoxSize, HeldDrag, MORPH_TEMPO, anchoredMorph, holdItem } from './layout.js';
package/dist/index.js CHANGED
@@ -75,7 +75,6 @@ import {
75
75
  MIN_BOX_LENGTH,
76
76
  PLACE_GUIDES_DEFAULT,
77
77
  REFUSAL_RANK,
78
- SNAP_DISTANCE,
79
78
  createDragIntent,
80
79
  createGripPress,
81
80
  createLandingModel,
@@ -85,7 +84,7 @@ import {
85
84
  pickRank,
86
85
  previewPlan,
87
86
  targetAt
88
- } from "./chunk-IT2FMZOM.js";
87
+ } from "./chunk-W7YP7VB2.js";
89
88
  import {
90
89
  DOUBLE_CLICK,
91
90
  isHeld
@@ -126,7 +125,6 @@ export {
126
125
  REFUSAL_RANK,
127
126
  SETTLE_DEFAULTS,
128
127
  SETTLE_TEMPO,
129
- SNAP_DISTANCE,
130
128
  SPRING_DEFAULTS,
131
129
  TOUCH_PRESS_DEFAULTS,
132
130
  TOUCH_PRESS_IDLE,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@n-uf/motion",
3
- "version": "26.11.54",
3
+ "version": "26.11.55",
4
4
  "description": "How things move: one frame loop with an injected clock, springs, tweens and the settle curve, a DOM-free gesture recognizer, the drag intent and the landing model, and layout motion. No DOM, no framework.",
5
5
  "keywords": [
6
6
  "animation",