Releases: alexmacarthur/typeit
Fix character insertion bug.
Fixes issue here:
Improve .flush() Flexibility
The .flush()
method was upgrade to allow it to be rapidly used in succession, and have text queued up to smoothly animate as time goes on.
Fix Cursor Options Bug
Fixes an issue preventing users from using a boolean while setting cursor options.
Small Optimizations, Rebuild After Dependency Updates
Optimize loop. (#384) * Optimize loop. * Update test.yml
Update Dependencies, Fix Types
- Updates development dependencies in all packages.
- Fixes reference to generated types in typeit-react package (v2.6.1).
Allow Cursor Animation to be Customized
Now built on the Web Animations API, you can now customize TypeIt's default cursor animation by passing your own options. For an example, see here:
Use requestAnimationFrame() for Typing
Wraps each DOM manipulation orchestrated by TypeIt in requestAnimationFrame()
, in order to guarantee that animations aren't affected by missed frames due to the browser's repaint cycle and the event loop being out of sync. Animations that require text to be typed all at once are bundled together in the same requestAnimationFrame()
call, so that the typed characters appear (and disappear) on the screen instantaneously.
Fix Awkward Deletion Pausing
A bug was introduced when recent changes to how the queue is handled were made. This bug was causing some awkward pausing to occur when the .delete()
method was used, as well as when an instance was configured to loop. This release fixes those issues.
.flush() Introduction + Bug Fixes
This release encompasses several things:
Feature Addition
- Introduces the
.flush()
method for easily typing one-off, ephemeral animations.
Bug Fixes
- issue with the cursor not blinking while frozen
- issue with HTML comments not being ignored
- issue with non-breaking strings not replacing each other correctly (set via the
breakLines
option) - fix a couple of miscellaneous cursor movement issues
Fix Types
Types were not being correctly output in the builds.