Package-level declarations
Types
anchored draggable 选择目标 anchor 的原因。 Reason why anchored draggable selected a target anchor.
anchored draggable 结束时解析出的目标位置。 Target position resolved when anchored draggable settles.
anchored draggable 的距离和速度阈值策略。 Distance and velocity threshold policy for anchored draggable.
指针移动超过 slop 后锁定的主轴。 Primary axis locked after pointer movement crosses touch slop.
拖拽结束后 renderer 应执行的 swipe/settle 决策。 Swipe or settle decision a renderer should perform after drag end.
swipe 判定时使用的轴向。 Axis used when resolving a swipe decision.
未形成 swipe 时应收敛到的端点。 Endpoint to settle to when the drag does not become a swipe.
Functions
校验 anchor 像素列表必须非空、有限且严格递增。 Validates that anchor pixel offsets are non-empty, finite, and strictly increasing.
根据起点、当前位置和速度解析 anchored draggable 的最终 anchor。 Resolves the final anchor from the start offset, current offset, and velocity.
根据累计移动和方向策略决定是否锁定手势轴。 Resolves whether accumulated movement should lock the gesture axis.
根据拖拽距离、速度和可用 anchor 解析 swipe 决策。 Resolves a swipe decision from drag distance, velocity, and available anchors.