Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(docs): add r3f doc guide #2002

Merged
merged 9 commits into from Nov 7, 2022
Merged

feat(docs): add r3f doc guide #2002

merged 9 commits into from Nov 7, 2022

Conversation

joshuaellis
Copy link
Member

What

  • Adds an r3f guide to react-spring documentation

@joshuaellis joshuaellis added the area: three Relates to the three package label Oct 22, 2022
@changeset-bot

This comment was marked as off-topic.

@joshuaellis
Copy link
Member Author

Be great to get thoughts and opinions from you both.

@codesandbox-ci

This comment was marked as off-topic.

@vercel
Copy link

vercel bot commented Oct 22, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
react-spring-beta ✅ Ready (Inspect) Visit Preview Oct 26, 2022 at 8:40AM (UTC)
react-spring-io ❌ Failed (Inspect) Oct 26, 2022 at 8:40AM (UTC)

docs/app/routes/docs/guides/react-three-fiber.mdx Outdated Show resolved Hide resolved
docs/app/routes/docs/guides/react-three-fiber.mdx Outdated Show resolved Hide resolved
Comment on lines +170 to +171
const x = (e.offsetX / width) * 2 - 1
const y = (e.offsetY / height) * -2 + 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this NDC math is inbuilt into R3F's state model as pointer. I'd have to defer to @drcmda as for surrounding patterns but you could greatly reduce boilerplate with <Canvas onCreated={(state) => state.events.connect(window)} />.

docs/app/routes/docs/guides/react-three-fiber.mdx Outdated Show resolved Hide resolved
docs/app/routes/docs/guides/react-three-fiber.mdx Outdated Show resolved Hide resolved
docs/app/routes/docs/guides/react-three-fiber.mdx Outdated Show resolved Hide resolved
joshuaellis and others added 3 commits October 23, 2022 09:54
Co-authored-by: Kris <kjbaumgartner@gmail.com>
Co-authored-by: Kris <kjbaumgartner@gmail.com>
Co-authored-by: Kris <kjbaumgartner@gmail.com>
@joshuaellis
Copy link
Member Author

I haven't replied to every comment, but overall, thank you both very much for your feedbacks. I won't be re-asking you to review (don't want to pest) but until the PR is merged / comments are resolved, please feel free to comment adhoc.

@joshuaellis joshuaellis changed the title feat: add r3f doc guide feat(docs): add r3f doc guide Nov 7, 2022
@joshuaellis joshuaellis merged commit bf5193c into beta-docs Nov 7, 2022
@joshuaellis joshuaellis deleted the feat/beta-docs/r3f branch November 7, 2022 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants