You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4e363d8
Browse filesBrowse the repository at this point in the historyBrowse files
chore(lab): Lab's animator hook, over Core's internal touch entry
Internal entries land with their first user, per #8562. Lab's
NavigationStack, PageControl and TabBar animate with Core's animator, solve
UIKit's timing curves with Core's cubic-bézier solver, listen for taps and
pans with Core's gesture hook and pan recognizer, stretch past their ends
with Core's rubber band and read the writing direction as Core does, so
`@astryxdesign/core/internal/touch` re-exports, by name:
- the motion engine, `createMotionEngine`, for its jobs beyond the public
`createAnimator` (architecture:react-component-runtime INV13), with its
types `MotionEngine` and `MotionEngineOptions` (the engine's `Animator`
and `AnimatorOptions`), `AnimateOptions`, `MotionCurve` and `MotionHandle`. The engine's factory is renamed from
`createMotionAnimator` at its source and in every internal caller, so the
engine and the public animator differ by more than one word;
- `cubicBezier` and UIKit's `timing` table;
- `useGestureRecognizer`, `useTouchPresentation` and `isRtlElement`;
- `PanGestureRecognizer`, `rubberBand`, UIKit's `UIKIT_GESTURES` table and
`TOUCH_QUERY`, which more than one of those components reads.
Named re-exports of code already on main, plus that rename: no behavior changes, no docs, no
root re-export, and the `@astryx/no-core-internal-import` lint rule already
limits the entry to Core and Lab. The entry's test checks it re-exports the
same values Core imports by path, and that it carries no public factory's
name.
One Lab module that those components share comes with them:
`internal/useMotionEngine`, a stable motion engine bound to an element
through a callback ref.
0 commit comments