|
1 |
| -# Cientos |
2 |
| - |
3 |
| - |
4 |
| - |
5 |
| -> Cientos (Spanish word for "hundreds", pronounced `/θjentos/` ) is a collection of useful ready-to-go helpers and components that are not part of the [core](https://docs.tresjs.org/) package. The name uses the word in Spanish to multiply by 100, to refer to the potential reach of the package to hold amazing abstractions. |
6 |
| -
|
7 |
| -The `cientos` package uses [`three-stdlib`](https://github.com/pmndrs/three-stdlib) module under the hood instead of the `three/examples/jsm` module. This means that you don't need to extend the catalogue of components using the `extend` method, `cientos` does it for you. |
8 |
| - |
9 |
| -It just works. 💯 |
10 |
| - |
11 |
| -::: info |
12 |
| -This package is not required to use the core library, but it improves DX, especially for complex scenes. |
13 |
| -::: |
14 |
| - |
15 |
| -## Installation |
16 |
| - |
17 |
| -::: code-group |
18 |
| - |
19 |
| -```bash [pnpm] |
20 |
| -pnpm add @tresjs/cientos |
21 |
| -``` |
22 |
| - |
23 |
| -```bash [npm] |
24 |
| -npm install @tresjs/cientos |
25 |
| - |
26 |
| -``` |
27 |
| - |
28 |
| -```bash [yarn] |
29 |
| -yarn add @tresjs/cientos |
30 |
| -``` |
31 |
| - |
32 |
| -::: |
33 |
| - |
34 |
| -## Basic Usage |
35 |
| - |
36 |
| -```ts |
37 |
| -import { OrbitControls } from '@tresjs/cientos' |
38 |
| -``` |
39 |
| - |
40 |
| -Now you can use the `OrbitControls` component in your scene. |
41 |
| - |
42 |
| -```html |
43 |
| -<template> |
44 |
| - <TresCanvas shadows alpha> |
45 |
| - <TresPerspectiveCamera :args="[45, 1, 0.1, 1000]" /> |
46 |
| - <OrbitControls /> |
47 |
| - </TresCanvas> |
48 |
| -</template> |
49 |
| -``` |
50 |
| - |
51 |
| -::: warning |
52 |
| -Notice that you don't need to write the prefix `Tres` such as `<TresOrbitControl />` to use the component |
53 |
| -::: |
| 1 | +# Cientos |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | +> Cientos (Spanish word for "hundreds", pronounced `/θjentos/` ) is a collection of useful ready-to-go helpers and components that are not part of the [core](https://docs.tresjs.org/) package. The name uses the word in Spanish to multiply by 100, to refer to the potential reach of the package to hold amazing abstractions. |
| 6 | +
|
| 7 | +The `cientos` package uses [`three-stdlib`](https://github.com/pmndrs/three-stdlib) module under the hood instead of the `three/examples/jsm` module. This means that you don't need to extend the catalogue of components using the `extend` method, `cientos` does it for you. |
| 8 | + |
| 9 | +It just works. 💯 |
| 10 | + |
| 11 | +::: info |
| 12 | +This package is not required to use the core library, but it improves DX, especially for complex scenes. |
| 13 | +::: |
| 14 | + |
| 15 | +## Installation |
| 16 | + |
| 17 | +::: code-group |
| 18 | + |
| 19 | +```bash [pnpm] |
| 20 | +pnpm add @tresjs/cientos |
| 21 | +``` |
| 22 | + |
| 23 | +```bash [npm] |
| 24 | +npm install @tresjs/cientos |
| 25 | + |
| 26 | +``` |
| 27 | + |
| 28 | +```bash [yarn] |
| 29 | +yarn add @tresjs/cientos |
| 30 | +``` |
| 31 | + |
| 32 | +::: |
| 33 | + |
| 34 | +## Basic Usage |
| 35 | + |
| 36 | +```ts |
| 37 | +import { OrbitControls } from '@tresjs/cientos' |
| 38 | +``` |
| 39 | + |
| 40 | +Now you can use the `OrbitControls` component in your scene. |
| 41 | + |
| 42 | +```html |
| 43 | +<template> |
| 44 | + <TresCanvas shadows alpha> |
| 45 | + <TresPerspectiveCamera :args="[45, 1, 0.1, 1000]" /> |
| 46 | + <OrbitControls /> |
| 47 | + </TresCanvas> |
| 48 | +</template> |
| 49 | +``` |
| 50 | + |
| 51 | +::: warning |
| 52 | +Notice that you don't need to write the prefix `Tres` such as `<TresOrbitControl />` to use the component |
| 53 | +::: |
|
0 commit comments