narraleaf-react 0.43.0 → 0.43.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -58,6 +58,7 @@ export declare function resolveRevealTiming(authored: number | undefined, cps: n
|
|
|
58
58
|
*
|
|
59
59
|
* The fading characters are the last few of the *line*, so a word only holds some of them, and a
|
|
60
60
|
* word the typewriter has long passed holds none. `offset` is where the word starts in the line,
|
|
61
|
-
* counted the way the line counts its own revealed characters
|
|
61
|
+
* counted the way the line counts its own revealed characters; `revealFrom` is the first character
|
|
62
|
+
* of the word that was actually typed rather than landed in a run.
|
|
62
63
|
*/
|
|
63
|
-
export declare function revealTailFor(timing: RevealTiming, offset: number, length: number, revealed: number): number;
|
|
64
|
+
export declare function revealTailFor(timing: RevealTiming, offset: number, length: number, revealed: number, revealFrom?: number): number;
|