Skip to content
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
docs/expand-precipitation-docs
Sep 25, 2023
Merged

docs: add more examples of the precipitation component#234
JaimeTorrealba merged 3 commits intomainfrom
docs/expand-precipitation-docs

Conversation

@JaimeTorrealba
Copy link
Copy Markdown
Member

No description provided.

@netlify
Copy link
Copy Markdown

netlify Bot commented Sep 24, 2023

Deploy Preview for cientos-tresjs ready!

Name Link
🔨 Latest commit b3fe3e9
🔍 Latest deploy log https://app.netlify.com/sites/cientos-tresjs/deploys/6511792f031571000818cf83
😎 Deploy Preview https://deploy-preview-234--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.

Copy link
Copy Markdown
Contributor

@andretchen0 andretchen0 left a comment

Choose a reason for hiding this comment

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

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 👍

Comment thread docs/guide/staging/precipitation.md Outdated
</DocsDemo>


```vue
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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>
```

@JaimeTorrealba JaimeTorrealba merged commit 11e0413 into main Sep 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants