@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 +6 -6
- package/components.d.ts +1 -0
- package/composables.d.ts +1 -0
- package/dist/components/TresCanvas.d.ts +2 -2
- package/dist/components/TresScene.d.ts +1 -1
- package/dist/composables/useTres/index.d.ts +1 -1
- package/dist/tres.js +227 -222
- package/dist/tres.umd.cjs +3 -3
- package/dist/types/index.d.ts +140 -59
- package/package.json +35 -32
- package/types.d.ts +1 -0
- package/utils.d.ts +1 -0
- package/dist/types/tres-components.d.ts +0 -272
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|

|
|
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/
|
|
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
|
|
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) |  |  |  |
|
|
42
|
+
| [Cientos](packages/cientos) |  |
|
|
43
43
|
|
|
44
44
|
## Contribution
|
|
45
45
|
|
package/components.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/components/index.js'
|
package/composables.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dist/composables/index.js'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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?:
|
|
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 '
|
|
3
|
+
import { Camera } from '../useCamera';
|
|
4
4
|
export interface TresState {
|
|
5
5
|
/**
|
|
6
6
|
* The active camera used for rendering the scene.
|