docs: add the cursor and recolouring recipes and sharpen four pages - #135
Merged
Conversation
The interactions gallery gains "Follow the cursor" (a pointer handler on the instance, the v3 answer to the old cursor mode) and the styling page gains "Recolouring" (fill and stroke to `currentColor` on the stable class), which the Basics gallery reuses; the migration guide points the cursor row at the recipe. The custom-factory example read a copy of `context.lottie` taken at attach time, so on a prerendered page its `root` stayed `null` and it never armed; it now reads the context on every use, the page says why, and the contract's JSDoc carries the same note. The installation page says where `<Lottie>` goes under React Server Components, and the instance page says the reported frame counts from the start of the playable range.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #135 +/- ##
=======================================
Coverage 99.91% 99.91%
=======================================
Files 47 47
Lines 1223 1223
Branches 361 361
=======================================
Hits 1222 1222
Misses 1 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
seek({ percent }), leaving rewinds. The migration guide'smode: "cursor"row now points at it, and "Writing your own" lists cursor among the plain-handler recipes.fillandstroketocurrentColoron the animation's element, since artwork draws with either or both) and one sentence on recolouring the data itself for every renderer; the Basics gallery reuses the example.context.lottietaken at attach time, so on a prerendered page itsrootstayednulland the "play while pressed" behaviour never armed (it worked after a client-side navigation only because the root happened to be there already). It now reads the context on every use, the page says why, and the JSDoc ofLottieInteractionContext.lottiecarries the same note.<Lottie>goes under React Server Components (a"use client"file, which still renders on the server). The instance page: the reported frame counts from the start of the playable range.Verified
assert-renderedclean); Biome clean.