You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/es/guide/getting-started.md
+20-19
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# Installation
1
+
# Instalación
2
2
3
-
Learn how to install TresJS
3
+
Aprende cómo instalar TresJS
4
4
5
5
::: code-group
6
6
@@ -18,11 +18,11 @@ yarn add three @tresjs/core
18
18
19
19
:::
20
20
21
-
> Better use with Vue 3.x and composition API
21
+
> Mejor usar con Vue 3.x y Composition API
22
22
23
23
## Typescript
24
24
25
-
TresJS is written in Typescript and it's fully typed. If you are using Typescript, you will get the full benefit of the typings. Just make sure you install the types for three.
25
+
TresJS está escrito en Typescript y está completamente tipado. Si estás utilizando Typescript, obtendrás todos los beneficios de los tipos. Solo asegúrate de instalar los tipos para three.
26
26
27
27
::: code-group
28
28
@@ -40,28 +40,28 @@ pnpm add @types/three -D
40
40
41
41
:::
42
42
43
-
## Getting started
43
+
## Empezando
44
44
45
-
You can install TresJS as any other Vue plugin
45
+
Puedes instalar TresJS como cualquier otro complemento de Vue
46
46
47
47
```ts
48
48
import { createApp } from'vue'
49
-
importAppfrom'./App.vue'
50
-
51
49
importTresfrom'@tresjs/core'
50
+
importAppfrom'./App.vue'
52
51
53
52
exportconst app =createApp(App)
54
53
55
54
app.use(Tres)
56
55
app.mount('#app')
57
56
```
58
57
59
-
Or you can use it directly in your component
58
+
O puedes usarlo directamente en tu componente
60
59
61
60
```vue
62
61
<script setup lang="ts">
63
62
import { TresCanvas } from '@tresjs/core'
64
63
</script>
64
+
65
65
<template>
66
66
<TresCanvas>
67
67
<!-- Your scene here -->
@@ -70,23 +70,24 @@ import { TresCanvas } from '@tresjs/core'
70
70
```
71
71
72
72
::: tip
73
-
This is recommended for performance and bundle size reasons, tree-shaking will work better and you will only import the components that you use.
73
+
Esto es recomendado por razones de rendimiento y tamaño del paquete, el tree-shaking funcionará mejor y solo importarás los componentes que uses.
74
74
:::
75
75
76
76
## Vite
77
77
78
-
Since v2 is a custom renderer, we need to let the `vue-compiler`of your app know that the components of Tres are ok to be included to avoid the `[Vue warn]: Failed to resolve component` warning.
78
+
Dado que la versión 2 es un renderizador personalizado, necesitamos informar al `vue-compiler`de tu aplicación que los componentes de Tres están permitidos para ser incluidos y evitar la advertencia `[Vue warn]: Failed to resolve component`.
79
79
80
-
You just need to add this to your `vite.config.ts`inside of the vue plugin:
80
+
Solo necesitas agregar esto a tu archivo `vite.config.ts`dentro del plugin de Vue:
TresJS is written in Typescript and it's fully typed. If you are using Typescript, you will get the full benefit of the typings. Just make sure you install the types for three.
27
+
TresJS está escrito en Typescript y está completamente tipado. Si estás utilizando Typescript, obtendrás todos los beneficios de los tipos. Solo asegúrate de instalar los tipos para three.
28
28
29
29
::: code-group
30
30
@@ -44,7 +44,7 @@ pnpm add @types/three -D
44
44
45
45
## Vite
46
46
47
-
If you are using Vite, you have add the following to your`vite.config.ts`:
47
+
Si estás utilizando Vite, debes agregar lo siguiente a tu`vite.config.ts`:
This is required to make the template compiler work with the custom renderer and not throw warnings on the console. For more info check [here](/guide/troubleshooting.html).
62
+
Esto es necesario para que el compilador de plantillas funcione con el renderizador personalizado y no lance advertencias en la consola. Para obtener más información, consulta [aquí](/guide/troubleshooting.html).
63
63
64
-
## Try it online
64
+
## Pruébalo en línea
65
65
66
66
### Sandbox
67
67
68
-
You can try TresJS online using the official[sandbox](https://play.tresjs.org/). Check it out:
68
+
Puedes probar TresJS en línea utilizando el[sandbox](https://play.tresjs.org/) oficial. ¡Échale un vistazo:
We have a brand new[StackBlitz](https://stackblitz.com/)starter to try TresJS online. Check it out:
74
+
Tenemos un nuevo inicio de[StackBlitz](https://stackblitz.com/)para probar TresJS en línea. ¡Échale un vistazo:
75
75
76
76

77
77
78
78
<StackBlitzEmbedprojectId="tresjs-basic" />
79
79
80
80
## Playground
81
81
82
-
We also have a playground where you can try TresJS online. Check it out [here](https://playground.tresjs.org/).
82
+
También tenemos un playground donde puedes probar TresJS en línea. Échale un vistazo [aquí](https://playground.tresjs.org/).
83
83
84
84

85
85
86
-
## Motivation
86
+
## Motivación
87
87
88
-
[ThreeJS](https://threejs.org/)is a wonderful library to create awesome **WebGL**3D websites. Is also a constantly updated library that makes hard for wrapper maintainers like [TroisJS](https://troisjs.github.io/)to keep up with all the enhancements.
88
+
[ThreeJS](https://threejs.org/)es una maravillosa biblioteca para crear increíbles sitios web 3D con WebGL. También es una biblioteca constantemente actualizada que dificulta a los mantenedores de envoltorios como [TroisJS](https://troisjs.github.io/)mantenerse al día con todas las mejoras.
89
89
90
-
React ecosystem has an impresive **custom render**solution called [React-three-fiber](https://docs.pmnd.rs/react-three-fiber)that allows you build your scenes declaratively with re-usable, self-contained components that react to state.
90
+
El ecosistema de React tiene una solución impresionante de **renderizado personalizado**llamada [React-three-fiber](https://docs.pmnd.rs/react-three-fiber)que te permite construir tus escenas de forma declarativa con componentes reutilizables y autocontenidos que reaccionan al estado.
91
91
92
-
In my search for something similar in the VueJS ecosystem, I found this amazing library called [Lunchbox](https://github.com/breakfast-studio/lunchboxjs)which works with the same concept that R3F, it provides a [custom Vue3 Renderer](https://vuejs.org/api/custom-renderer.html). I'm also contributing to improve this library so it gets as mature and feature-rich as R3F.
92
+
En mi búsqueda de algo similar en el ecosistema de VueJS, encontré esta increíble biblioteca llamada [Lunchbox](https://github.com/breakfast-studio/lunchboxjs)que funciona con el mismo concepto que R3F, proporciona un [renderizador personalizado de Vue3](https://vuejs.org/api/custom-renderer.html). También estoy contribuyendo para mejorar esta biblioteca y que sea tan madura y rica en características como R3F.
93
93
94
-
The only problem is, mixing compilers renderers in Vue 3 is something the Vue community is still working on - see [here](https://github.com/vuejs/vue-loader/pull/1645) for more information.
94
+
El único problema es que mezclar compiladores y renderizadores en Vue 3 es algo en lo que la comunidad de Vue todavía está trabajando. Puedes ver más información [aquí](https://github.com/vuejs/vue-loader/pull/1645).
0 commit comments