Skip to content
Source
Sign inSign up
TanStack/charts

docs: clarify motion observation and styling contracts #221

Mergedtannerlinsleymerged 1 commit intomain fromtaren/motion-contract-docsmerged by tannerlinsley

tannerlinsleycommented

What changed

Clarifies the existing motion contracts requested in #212:

  • Spring rest thresholds, defaults, and units, including the difference between the standalone sampler and the renderer's safety limit.
  • Presentation-point notifications indicate scene geometry, not completion of every animation layer.
  • Motion data attributes and undocumented SVG classes remain private under the existing compatibility policy. They are not promoted to public hooks.
  • Authored class options and custom mark nodes remain the supported styling paths where available.

Thanks @toomingos for identifying the missing distinctions. This does not add a completion callback or new class options.

Verification

  • pnpm validate passes all 19 tasks, including 2,221 main-suite tests, bundle policy, packed packages, docs and preview checks.
  • Only canonical documentation and its generated package copies change. Runtime code and bundle budgets are unchanged.
  • No new CI jobs, dependencies, or package version bump.

Addresses #212.

Summary by CodeRabbit

  • Documentation
    • Clarified spring settling thresholds, default values, units, and how they affect completion.
    • Explained when presentation points are published and why subscriptions do not indicate completion of every animation layer.
    • Documented spring sampler completion behavior, cancellation, and limitations of renderer styling hooks.
    1. ⚠️ No Changeset found

      Latest commit: 43b100c20a7abc4863220f51730d52c9db23d8dd

      Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

      This PR includes no changesets

      When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

      Click here to learn what changesets are, and how to add one.

      Click here if you're a maintainer who wants to add a changeset to this PR

    2. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →

      No actionable comments were generated in the recent review. 🎉

      ℹ️ Recent review info
      ⚙️ Run configuration
      • Configuration used: defaults
      • Review profile: CHILL
      • Plan: Advanced
      • Run ID: 827f2c76-b6a3-4dc6-a9c8-34e5b6a51621
      📥 Commits

      Reviewing files that changed from the base of the PR and between 706930917aa0fb467bb3238372d8c3d4be13162b and 43b100c20a7abc4863220f51730d52c9db23d8dd.

      📒 Files selected for processing: 4
      • docs/reference/motion.md
      • docs/reference/rendering-and-export.md
      • packages/charts-core/docs/reference/motion.md
      • packages/charts-core/docs/reference/rendering-and-export.md

      Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review.

      📝 Walkthrough

      The motion and rendering references now clarify spring settling thresholds and sampler completion, presentation-point subscription behavior, and limits on animation completion signals and renderer styling hooks.

      Changes: Motion reference documentation

      Layer / File(s)Summary
      Spring settling and sampling
      docs/reference/motion.md, packages/charts-core/docs/reference/motion.md
      The references describe spring settling thresholds, sampler defaults and completion conditions, and clarify that the standalone sampler has no clock or 10-second cutoff.
      Presentation-point observation and renderer hooks
      docs/reference/motion.md, packages/charts-core/docs/reference/motion.md, docs/reference/rendering-and-export.md, packages/charts-core/docs/reference/rendering-and-export.md
      The references describe when presentation-point observers publish points and what they do not signal. They also identify renderer state attributes and undocumented SVG selectors as unsupported styling hooks.

      Priority: ⬇️ Low

      Estimated code review effort: 1 (Trivial) | ~5 minutes

      Change: Other

      Merge Risk: ⚪ Minimal · up to 43b10

      The documentation changes clarify existing motion behavior, and the checked descriptions and package copies are consistent. No concrete merge-blocking risk was identified.

      Pre-merge checks: Passed 5
      Passed Passed checks: 5 passed
      Check nameStatusExplanation
      Description CheckPassedCheck skipped - CodeRabbit’s high-level summary is enabled.
      Title checkPassedThe title accurately and concisely summarizes the documentation changes for motion observation and styling contracts.
      Docstring CoveragePassedNo functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
      Linked Issues checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck skipped because no linked issues were found for this pull request.
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Commit to this branch
      • Create a new PR
      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

      Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

      ❤️ Share
      Comment `@coderabbitai help` to get the list of available commands.
    3. View your CI Pipeline Execution ↗ for commit 43b100c20a7abc4863220f51730d52c9db23d8dd

      CommandStatusDurationResult
      nx run-many --targets=format-check,docs-check,d...✅ Succeeded1sView ↗

      ☁️ Nx Cloud last updated this comment at 2026-10-13 22:39:59 UTC

    4. tannerlinsley merged thisf29d649

    5. tannerlinsley closed this

Sign in to join this conversation.