Get progress relative to a given scope and then clamp it within another range.
The function first scales the value relative to scopeProp using the scoped function, and then clamps the result within clampProp using the clamp function.
value
scopeProp
scoped
clampProp
clamp
The value to be scaled and clamped.
The scope within which the value will be scaled.
The range to clamp the scaled value within.
clampScope(0.38, [0.35, 1]); // => 0.046clampScope(0.38, [0.35, 1], [0.1, 1]); // => 0.1 Copy
clampScope(0.38, [0.35, 1]); // => 0.046clampScope(0.38, [0.35, 1], [0.1, 1]); // => 0.1
Get progress relative to a given scope and then clamp it within another range.
The function first scales the
valuerelative toscopePropusing thescopedfunction, and then clamps the result withinclampPropusing theclampfunction.