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(Image): add component, playground, docs #529

Merged
merged 8 commits into from
Dec 4, 2024
Merged

feat(Image): add component, playground, docs #529

merged 8 commits into from
Dec 4, 2024

Conversation

andretchen0
Copy link
Contributor

Port of Drei's <Image /> component.

Adds:

  • component
  • playground
  • docs

Copy link

netlify bot commented Nov 22, 2024

Deploy Preview for cientos-tresjs ready!

Name Link
🔨 Latest commit ff19aa0
🔍 Latest deploy log https://app.netlify.com/sites/cientos-tresjs/deploys/67500d0cee83e700089d9259
😎 Deploy Preview https://deploy-preview-529--cientos-tresjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@andretchen0 andretchen0 added feature New feature or request p3-significant High-priority enhancement (priority) labels Nov 23, 2024
Copy link

pkg-pr-new bot commented Nov 24, 2024

Open in Stackblitz

npm i https://pkg.pr.new/@tresjs/cientos@529

commit: f2af7ec

</script>

<template>
<TresMesh ref="imageRef" :scale="Array.isArray(props.scale) ? [...props.scale, 1] : props.scale">
Copy link
Member

Choose a reason for hiding this comment

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

Non-blocking: maybe this ternary should be a computed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure thing. Changed to a computed and used watchEffect instead of watch above.

@alvarosabu alvarosabu merged commit ad916a2 into main Dec 4, 2024
6 of 7 checks passed
@andretchen0 andretchen0 deleted the feat/image branch December 6, 2024 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request p3-significant High-priority enhancement (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants