@tresjs/core 2.0.0-rc.4 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  ![repo-banner](/public/repo-banner.png)
2
2
 
3
3
  <p align="center">
4
- <a href="https://www.npmjs.com/package/@tresjs/core"><img src="https://img.shields.io/npm/v/@tresjs/core/next?color=%2382DBCA" alt="npm package"></a>
4
+ <a href="https://www.npmjs.com/package/@tresjs/core"><img src="https://img.shields.io/npm/v/@tresjs/core/latest?color=%2382DBCA" alt="npm package"></a>
5
5
  <a href="https://discord.gg/UCr96AQmWn"><img src="https://img.shields.io/badge/chat-discord-purple?style=flat&logo=discord" alt="discord chat"></a>
6
6
  </p>
7
7
 
@@ -23,7 +23,7 @@ The goal is to provide the Vue's community an easy way of building 3D scenes wit
23
23
  ## Installation
24
24
 
25
25
  ```bash
26
- pnpm install @tresjs/core@beta three
26
+ pnpm install @tresjs/core three
27
27
  ```
28
28
 
29
29
  ## Docs
@@ -36,10 +36,10 @@ Checkout the [docs](https://tresjs.org)
36
36
 
37
37
  ## Ecosystem
38
38
 
39
- | Package | Version |
40
- | --------------------------- | :----------------------------------------------------------------------------------------------- |
41
- | [Tres](packages/tres) | ![tres version](https://img.shields.io/npm/v/@tresjs/core/beta.svg?label=%20&color=%2382DBCA) |
42
- | [Cientos](packages/cientos) | ![tres version](https://img.shields.io/npm/v/@tresjs/cientos/beta.svg?label=%20&color=%23f19b00) |
39
+ | Package | Version |
40
+ | --------------------------- | :------------------------------------------------------------------------------------------------- |
41
+ | [Tres](packages/tres) | ![tres version](https://img.shields.io/npm/v/@tresjs/core/latest.svg?label=%20&color=%2382DBCA) |
42
+ | [Cientos](packages/cientos) | ![tres version](https://img.shields.io/npm/v/@tresjs/cientos/latest.svg?label=%20&color=%23f19b00) |
43
43
 
44
44
  ## Contribution
45
45
 
@@ -0,0 +1 @@
1
+ export * from './dist/components/index.js'
@@ -0,0 +1 @@
1
+ export * from './dist/composables/index.js'
@@ -1,4 +1,4 @@
1
- import { ShadowMapType, TextureEncoding, ToneMapping } from 'three';
1
+ import { ColorSpace, ShadowMapType, ToneMapping } from 'three';
2
2
  import { CameraType } from '../composables';
3
3
  import { RendererPresetsType } from '../composables/useRenderer/const';
4
4
  export interface TresCanvasProps {
@@ -6,7 +6,7 @@ export interface TresCanvasProps {
6
6
  shadowMapType?: ShadowMapType;
7
7
  physicallyCorrectLights?: boolean;
8
8
  useLegacyLights?: boolean;
9
- outputColorSpace?: TextureEncoding;
9
+ outputColorSpace?: ColorSpace;
10
10
  toneMapping?: ToneMapping;
11
11
  toneMappingExposure?: number;
12
12
  context?: WebGLRenderingContext;
@@ -1,6 +1,6 @@
1
1
  import { ColorSpace, ShadowMapType, ToneMapping } from 'three';
2
2
  import { CameraType } from '../composables';
3
- import { RendererPresetsType } from '../composables/useRenderer/const';
3
+ import { type RendererPresetsType } from '../composables/useRenderer/const';
4
4
  export interface TresSceneProps {
5
5
  shadows?: boolean;
6
6
  shadowMapType?: ShadowMapType;
@@ -1,6 +1,6 @@
1
1
  import { Clock, EventDispatcher, Raycaster, Scene, Vector2, WebGLRenderer } from 'three';
2
2
  import { ComputedRef } from 'vue';
3
- import { Camera } from '../../composables';
3
+ import { Camera } from '../useCamera';
4
4
  export interface TresState {
5
5
  /**
6
6
  * The active camera used for rendering the scene.