File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -294,7 +294,8 @@ Output</h4>
294
294
295
295
To <dfn export>calculate linear easing output progress</dfn>
296
296
for a given [=linear easing function=] |func|,
297
- and an [=input progress value=] |inputProgress|,
297
+ an [=input progress value=] |inputProgress|,
298
+ and an optional [=before flag=] (defaulting to false),
298
299
perform the following.
299
300
It returns an [=output progress value=] .
300
301
@@ -305,8 +306,12 @@ Output</h4>
305
306
of that item.
306
307
307
308
3. If at least one of |points| has an [=input progress value=]
308
- matching |inputProgress|,
309
- return the [=output progress value=] of the last such point.
309
+ matching |inputProgress|:
310
+
311
+ * If the [=before flag=] is true,
312
+ return the [=output progress value=] of the first such point.
313
+ * Otherwise,
314
+ return the [=output progress value=] of the last such point.
310
315
311
316
4. Otherwise, find two [=linear()/control points=] ,
312
317
|A| and |B|,
You can’t perform that action at this time.
0 commit comments