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

docs: fixe type errors #681

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/cookbook/text-3d.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ import { Text3D } from '@tresjs/cientos'
We can pass the options as props

```html
<Text3D :font="fontPath" :text="my 3d text" :size="0.8" />
<Text3D :font="fontPath" text="my 3d text" :size="0.8" />
```

in case the options are not provided, the default values will be:
Expand All @@ -229,5 +229,5 @@ bevelSegments: 4,
By default text in ThreeJS starts at the mesh initial position, so it's [0,0,0] and the text will start there but we can center it by just passing the flag "center"

```vue
<Text3D :font="fontPath" :text="my 3d text" center />
<Text3D :font="fontPath" text="my 3d text" center />
```
4 changes: 2 additions & 2 deletions docs/de/cookbook/text-3d.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ Es funktioniert einfach. 💯 (wenn kein Text angegeben wird, wird der Text Tres
Wir können die Optionen als Props übergeben

```html
<Text3D :font="fontPath" :text="my 3d text" :size="0.8" />
<Text3D :font="fontPath" text="my 3d text" :size="0.8" />
```

falls die Optionen nicht bereitgestellt werden, sind die Standardwerte:
Expand All @@ -203,5 +203,5 @@ const fontOptions = {
Der Text in Three.js beginnt standardmäßig an der Ausgangsposition des Meshs, also bei [0,0,0]. Um den Text zu zentrieren, können wir einfach das Flag "center" übergeben.

```vue
<Text3D :font="fontPath" :text="my 3d text" center />
<Text3D :font="fontPath" text="my 3d text" center />
```
4 changes: 2 additions & 2 deletions docs/es/cookbook/text-3d.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ Simplemente funciona. 💯 (si no se proporciona un texto, el texto será TresJS
Podemos pasar las opciones como props

```html
<Text3D :font="fontPath" :text="my 3d text" :size="0.8" />
<Text3D :font="fontPath" text="my 3d text" :size="0.8" />
```

en caso de que no se proporcionen las opciones, los valores predeterminados son:
Expand All @@ -202,5 +202,5 @@ en caso de que no se proporcionen las opciones, los valores predeterminados son:
De forma predeterminada, el texto en ThreeJS comienza en la posición inicial de la malla, por lo que si es [0,0,0], el texto comenzará allí, pero podemos centrarlo simplemente pasando la bandera "center".

```vue
<Text3D :font="fontPath" :text="my 3d text" center />
<Text3D :font="fontPath" text="my 3d text" center />
```
4 changes: 2 additions & 2 deletions docs/fr/cookbook/text-3d.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ Cela fonctionne tout simplement. 💯 (si aucun texte n'est fourni, le texte ser
Nous pouvons passer les options comme une propriété:

```html
<Text3D :font="fontPath" :text="my 3d text" :size="0.8" />
<Text3D :font="fontPath" text="my 3d text" :size="0.8" />
```

Dans le cas où les options ne sont pas fournies, les valeurs par défaut sont :
Expand All @@ -200,5 +200,5 @@ bevelSegments: 4,
Par défaut, le texte dans ThreeJS commence à la position de départ du maillage, donc s'il vaut [0,0,0], le texte commencera là, mais nous pouvons le centrer en passant simplement la props "center".

```vue
<Text3D :font="fontPath" :text="my 3d text" center />
<Text3D :font="fontPath" text="my 3d text" center />
```
4 changes: 2 additions & 2 deletions docs/nl/cookbook/text-3d.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ It just works. 💯 (Als er geen tekst is meegegeven dan zal de text TresJS zijn
We kunnen de opties doorgeven als props

```html
<Text3D :font="fontPath" :text="my 3d text" :size="0.8" />
<Text3D :font="fontPath" text="my 3d text" :size="0.8" />
```

als de opties niet zijn opgegeven, zijn de standaardwaarden:
Expand All @@ -200,5 +200,5 @@ bevelSegments: 4,
Standaard begint tekst in ThreeJS op de beginpositie van de mesh, dus het is [0,0,0] en de tekst begint daar, maar we kunnen deze centreren door gewoon de flag "center" door te geven

```vue
<Text3D :font="fontPath" :text="my 3d text" center />
<Text3D :font="fontPath" text="my 3d text" center />
```
4 changes: 2 additions & 2 deletions docs/zh/cookbook/text-3d.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ const matcapTexture = await useTexture(['https://raw.githubusercontent.com/Tresj
我们可以将选项作为 props 传递

```html
<Text3D :font="fontPath" :text="my 3d text" :size="0.8" />
<Text3D :font="fontPath" text="my 3d text" :size="0.8" />
```

如果未提供选项,则默认值为:
Expand All @@ -200,5 +200,5 @@ bevelSegments: 4,
默认情况下,ThreeJS 中的文本从网格初始位置开始,因此为 [0,0,0],文本将从那里开始,但我们只需传递标志“center”即可将其居中

```vue
<Text3D :font="fontPath" :text="my 3d text" center />
<Text3D :font="fontPath" text="my 3d text" center />
```