This repository was archived by the owner on Feb 1, 2026. It is now read-only.
docs: add more examples of the precipitation component#234
Merged
JaimeTorrealba merged 3 commits intomainfrom Sep 25, 2023
Merged
docs: add more examples of the precipitation component#234JaimeTorrealba merged 3 commits intomainfrom
JaimeTorrealba merged 3 commits intomainfrom
Conversation
✅ Deploy Preview for cientos-tresjs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
andretchen0
approved these changes
Sep 24, 2023
Contributor
andretchen0
left a comment
There was a problem hiding this comment.
Looks good! I really like having the extra examples!
I made a few suggestions. You can address them if you think they make sense. Otherwise 👍
| </DocsDemo> | ||
|
|
||
|
|
||
| ```vue |
Contributor
There was a problem hiding this comment.
Can we add the line highlighting here and in the other code examples? E.g.,
```vue{6}
I find that really handy.
| You can use `<Precipitation />` component without passing any props, this will achieve a snowy effect, like the before example. | ||
|
|
||
| ```vue | ||
| <template> |
Contributor
There was a problem hiding this comment.
Just a suggestion. Can we put an entire SFC here?
- Before I knew any Vue, I found it really handy to have standalone examples.
- The examples are so short – they really show off the expressiveness of Tres/Cientos.
E.g.,
```vue{3,9}
<script setup lang="ts">
import { TresCanvas } from '@tresjs/core'
import { Precipitation } from '@tresjs/cientos'
</script>
<template>
<TresCanvas clear-color="#333">
<TresPerspectiveCamera :position="[0, 2, 15]" />
<Precipitation />
<TresGridHelper :args="[10, 10]" />
</TresCanvas>
</template>
```
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
No description provided.