@tresjs/cientos 2.0.0-rc.1 → 2.0.0-rc.3
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 +2 -2
- package/dist/core/abstractions/index.d.ts +10 -0
- package/dist/core/controls/index.d.ts +5 -0
- package/dist/core/loaders/index.d.ts +5 -0
- package/dist/core/loaders/useFBX/component.vue.d.ts +25 -0
- package/dist/core/loaders/useGLTF/component.vue.d.ts +70 -0
- package/dist/core/materials/index.d.ts +2 -0
- package/dist/core/misc/index.d.ts +2 -0
- package/dist/core/shapes/index.d.ts +14 -0
- package/dist/index.d.ts +6 -33
- package/dist/trescientos.js +3079 -3057
- package/dist/trescientos.umd.cjs +9 -9
- package/package.json +2 -2
- package/dist/core/useFBX/component.d.ts +0 -11
- package/dist/core/useGLTF/component.d.ts +0 -33
- package/dist/core/{Levioso.vue.d.ts → abstractions/Levioso.vue.d.ts} +0 -0
- package/dist/core/{Smoke.vue.d.ts → abstractions/Smoke.vue.d.ts} +0 -0
- package/dist/core/{Stars.vue.d.ts → abstractions/Stars.vue.d.ts} +1 -1
- /package/dist/core/{Text3D.vue.d.ts → abstractions/Text3D.vue.d.ts} +0 -0
- /package/dist/core/{useAnimations.d.ts → abstractions/useAnimations.d.ts} +0 -0
- /package/dist/core/{useEnvironment → abstractions/useEnvironment}/component.d.ts +0 -0
- /package/dist/core/{useEnvironment → abstractions/useEnvironment}/const.d.ts +0 -0
- /package/dist/core/{useEnvironment → abstractions/useEnvironment}/index.d.ts +0 -0
- /package/dist/core/{usePamCameraMouse → abstractions/usePamCameraMouse}/component.d.ts +0 -0
- /package/dist/core/{usePamCameraMouse → abstractions/usePamCameraMouse}/index.d.ts +0 -0
- /package/dist/core/{useFBX → loaders/useFBX}/index.d.ts +0 -0
- /package/dist/core/{useGLTF → loaders/useGLTF}/index.d.ts +0 -0
- /package/dist/core/{meshWobbleMaterial → materials/meshWobbleMaterial}/index.vue.d.ts +0 -0
- /package/dist/core/{meshWobbleMaterial → materials/meshWobbleMaterial}/material.d.ts +0 -0
- /package/dist/core/{useTweakPane → misc/useTweakPane}/index.d.ts +0 -0
- /package/dist/core/{Box.vue.d.ts → shapes/Box.vue.d.ts} +0 -0
- /package/dist/core/{Circle.vue.d.ts → shapes/Circle.vue.d.ts} +0 -0
- /package/dist/core/{Cone.vue.d.ts → shapes/Cone.vue.d.ts} +0 -0
- /package/dist/core/{Dodecahedron.vue.d.ts → shapes/Dodecahedron.vue.d.ts} +0 -0
- /package/dist/core/{Icosahedron.vue.d.ts → shapes/Icosahedron.vue.d.ts} +0 -0
- /package/dist/core/{Octahedron.vue.d.ts → shapes/Octahedron.vue.d.ts} +0 -0
- /package/dist/core/{Plane.vue.d.ts → shapes/Plane.vue.d.ts} +0 -0
- /package/dist/core/{Ring.vue.d.ts → shapes/Ring.vue.d.ts} +0 -0
- /package/dist/core/{Sphere.vue.d.ts → shapes/Sphere.vue.d.ts} +0 -0
- /package/dist/core/{Tetrahedron.vue.d.ts → shapes/Tetrahedron.vue.d.ts} +0 -0
- /package/dist/core/{Torus.vue.d.ts → shapes/Torus.vue.d.ts} +0 -0
- /package/dist/core/{TorusKnot.vue.d.ts → shapes/TorusKnot.vue.d.ts} +0 -0
- /package/dist/core/{Tube.vue.d.ts → shapes/Tube.vue.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
3
|
<p align="center">
|
|
4
|
-
<a href="https://www.npmjs.com/package/@tresjs/cientos"><img src="https://img.shields.io/npm/v/@tresjs/cientos/
|
|
5
|
-
<a href="https://discord.gg/
|
|
4
|
+
<a href="https://www.npmjs.com/package/@tresjs/cientos"><img src="https://img.shields.io/npm/v/@tresjs/cientos/next?color=%2382DBCA" alt="npm package"></a>
|
|
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
|
<br/>
|
|
8
8
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Text3D from './Text3D.vue';
|
|
2
|
+
import { useAnimations } from './useAnimations';
|
|
3
|
+
import { Environment } from './useEnvironment/component';
|
|
4
|
+
import { PamCameraMouse } from './usePamCameraMouse/component';
|
|
5
|
+
import Stars from './Stars.vue';
|
|
6
|
+
import Smoke from './Smoke.vue';
|
|
7
|
+
import Levioso from './Levioso.vue';
|
|
8
|
+
export * from './usePamCameraMouse';
|
|
9
|
+
export * from './useEnvironment';
|
|
10
|
+
export { Text3D, useAnimations, Environment, PamCameraMouse, Stars, Smoke, Levioso };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import OrbitControls from './OrbitControls.vue';
|
|
2
|
+
import TransformControls from './TransformControls.vue';
|
|
3
|
+
import PointerLockControls from './PointerLockControls.vue';
|
|
4
|
+
import MapControls from './MapControls.vue';
|
|
5
|
+
export { OrbitControls, TransformControls, PointerLockControls, MapControls };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { PropType as __PropType } from 'vue';
|
|
2
|
+
export interface FBXModelProps {
|
|
3
|
+
/**
|
|
4
|
+
* Path to the FBX file.
|
|
5
|
+
*
|
|
6
|
+
* @type {string}
|
|
7
|
+
* @memberof FBXModelProps
|
|
8
|
+
* @required
|
|
9
|
+
*/
|
|
10
|
+
path: string;
|
|
11
|
+
}
|
|
12
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
13
|
+
path: {
|
|
14
|
+
type: __PropType<string>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
}, {
|
|
18
|
+
value: import("vue").Ref<any>;
|
|
19
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
path: {
|
|
21
|
+
type: __PropType<string>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
}>>, {}>;
|
|
25
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { PropType as __PropType } from 'vue';
|
|
2
|
+
export interface GLTFModelProps {
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* The path to the GLTF file.
|
|
6
|
+
*
|
|
7
|
+
* @type {string}
|
|
8
|
+
* @required
|
|
9
|
+
* @memberof GLTFModelProps
|
|
10
|
+
*
|
|
11
|
+
**/
|
|
12
|
+
path: string;
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* Whether to use Draco compression.
|
|
16
|
+
*
|
|
17
|
+
* @type {boolean}
|
|
18
|
+
* @default false
|
|
19
|
+
* @memberof GLTFModelProps
|
|
20
|
+
*
|
|
21
|
+
**/
|
|
22
|
+
draco?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* The path to the Draco decoder.
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @default 'https://www.gstatic.com/draco/versioned/decoders/1.4.1/'
|
|
29
|
+
* @memberof GLTFModelProps
|
|
30
|
+
*
|
|
31
|
+
**/
|
|
32
|
+
decoderPath?: string;
|
|
33
|
+
}
|
|
34
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
35
|
+
path: {
|
|
36
|
+
type: __PropType<string>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
draco: {
|
|
40
|
+
type: __PropType<boolean | undefined>;
|
|
41
|
+
required: false;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
decoderPath: {
|
|
45
|
+
type: __PropType<string | undefined>;
|
|
46
|
+
required: false;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
}, {
|
|
50
|
+
value: import("vue").Ref<any>;
|
|
51
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
52
|
+
path: {
|
|
53
|
+
type: __PropType<string>;
|
|
54
|
+
required: true;
|
|
55
|
+
};
|
|
56
|
+
draco: {
|
|
57
|
+
type: __PropType<boolean | undefined>;
|
|
58
|
+
required: false;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
decoderPath: {
|
|
62
|
+
type: __PropType<string | undefined>;
|
|
63
|
+
required: false;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
}>>, {
|
|
67
|
+
draco: boolean | undefined;
|
|
68
|
+
decoderPath: string | undefined;
|
|
69
|
+
}>;
|
|
70
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import Box from './Box.vue';
|
|
2
|
+
import Circle from './Circle.vue';
|
|
3
|
+
import Cone from './Cone.vue';
|
|
4
|
+
import Dodecahedron from './Dodecahedron.vue';
|
|
5
|
+
import Icosahedron from './Icosahedron.vue';
|
|
6
|
+
import Octahedron from './Octahedron.vue';
|
|
7
|
+
import Plane from './Plane.vue';
|
|
8
|
+
import Ring from './Ring.vue';
|
|
9
|
+
import Sphere from './Sphere.vue';
|
|
10
|
+
import Tetrahedron from './Tetrahedron.vue';
|
|
11
|
+
import Torus from './Torus.vue';
|
|
12
|
+
import TorusKnot from './TorusKnot.vue';
|
|
13
|
+
import Tube from './Tube.vue';
|
|
14
|
+
export { Box, Circle, Cone, Dodecahedron, Icosahedron, Octahedron, Plane, Ring, Sphere, Tetrahedron, Torus, TorusKnot, Tube, };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,33 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import { useAnimations } from './core/useAnimations';
|
|
8
|
-
import { GLTFModel } from './core/useGLTF/component';
|
|
9
|
-
import { FBXModel } from './core/useFBX/component';
|
|
10
|
-
import Stars from './core/Stars.vue';
|
|
11
|
-
import Text3D from './core/Text3D.vue';
|
|
12
|
-
import Plane from './core/Plane.vue';
|
|
13
|
-
import Box from './core/Box.vue';
|
|
14
|
-
import Sphere from './core/Sphere.vue';
|
|
15
|
-
import Torus from './core/Torus.vue';
|
|
16
|
-
import TorusKnot from './core/TorusKnot.vue';
|
|
17
|
-
import Circle from './core/Circle.vue';
|
|
18
|
-
import Cone from './core/Cone.vue';
|
|
19
|
-
import Tube from './core/Tube.vue';
|
|
20
|
-
import Ring from './core/Ring.vue';
|
|
21
|
-
import Tetrahedron from './core/Tetrahedron.vue';
|
|
22
|
-
import Icosahedron from './core/Icosahedron.vue';
|
|
23
|
-
import Octahedron from './core/Octahedron.vue';
|
|
24
|
-
import Dodecahedron from './core/Dodecahedron.vue';
|
|
25
|
-
import { Environment } from './core/useEnvironment/component';
|
|
26
|
-
import Smoke from './core/Smoke.vue';
|
|
27
|
-
import Levioso from './core/Levioso.vue';
|
|
28
|
-
import MeshWobbleMaterial from './core/meshWobbleMaterial/index.vue';
|
|
29
|
-
export * from './core/useGLTF';
|
|
30
|
-
export * from './core/useFBX';
|
|
31
|
-
export * from './core/useEnvironment';
|
|
32
|
-
export * from './core/usePamCameraMouse';
|
|
33
|
-
export { OrbitControls, PointerLockControls, TransformControls, MapControls, useTweakPane, GLTFModel, FBXModel, Stars, Text3D, Smoke, Plane, Box, Sphere, Torus, TorusKnot, Circle, Cone, Tube, Ring, Tetrahedron, Icosahedron, Octahedron, Dodecahedron, useAnimations, Environment, PamCameraMouse, Levioso, MeshWobbleMaterial, };
|
|
1
|
+
export * from './core/abstractions';
|
|
2
|
+
export * from './core/loaders';
|
|
3
|
+
export * from './core/controls';
|
|
4
|
+
export * from './core/materials';
|
|
5
|
+
export * from './core/shapes';
|
|
6
|
+
export * from './core/misc';
|