Skip to main content

Module value

Module value 

Source
Expand description

Ported from Arc (MIT) © 2026 Elia Kuratli Subscribable MotionValue<T> with map (useTransform) and velocity (useVelocity).

Structs§

MotionValue
Subscribable reactive value (f32, Point<Pixels>, Hsla, etc.) with derived mapping and velocity tracking.

Functions§

map_range
Piecewise linear mapping matching Motion’s useTransform(value, range_in, range_out, { clamp }).