@tresjs/core 2.0.0 → 2.1.1
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 +3 -3
- package/dist/components/TresScene.d.ts +2 -2
- package/dist/composables/useTres/index.d.ts +1 -1
- package/dist/core/renderer.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 +38 -34
- 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;
|
|
@@ -21,5 +21,5 @@ export interface TresCanvasProps {
|
|
|
21
21
|
/**
|
|
22
22
|
* Vue component for rendering a Tres component.
|
|
23
23
|
*/
|
|
24
|
-
export declare const TresCanvas: import("vue").DefineComponent<TresCanvasProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<TresCanvasProps>, {}>;
|
|
24
|
+
export declare const TresCanvas: import("vue").DefineComponent<TresCanvasProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<TresCanvasProps>, {}, {}>;
|
|
25
25
|
export default TresCanvas;
|
|
@@ -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;
|
|
@@ -18,5 +18,5 @@ export interface TresSceneProps {
|
|
|
18
18
|
disableRender?: boolean;
|
|
19
19
|
camera?: CameraType;
|
|
20
20
|
}
|
|
21
|
-
export declare const TresScene: import("vue").DefineComponent<TresSceneProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<TresSceneProps>, {}>;
|
|
21
|
+
export declare const TresScene: import("vue").DefineComponent<TresSceneProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<TresSceneProps>, {}, {}>;
|
|
22
22
|
export default TresScene;
|
|
@@ -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.
|
package/dist/core/renderer.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare const createApp: import("vue").CreateAppFunction<import("..").Tre
|
|
|
3
3
|
export declare const createTres: (slots: Slots) => import("vue").App<import("..").TresObject>;
|
|
4
4
|
declare const _default: {
|
|
5
5
|
createTres: (slots: Readonly<{
|
|
6
|
-
[name: string]: import("vue").Slot | undefined;
|
|
6
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
7
7
|
}>) => import("vue").App<import("..").TresObject>;
|
|
8
8
|
extend: (objects: any) => undefined;
|
|
9
9
|
};
|