@tresjs/cientos 1.4.0 → 1.6.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/dist/core/Box.vue.d.ts +29 -0
- package/dist/core/Circle.vue.d.ts +29 -0
- package/dist/core/Cone.vue.d.ts +29 -0
- package/dist/core/Dodecahedron.vue.d.ts +29 -0
- package/dist/core/Icosahedron.vue.d.ts +29 -0
- package/dist/core/Octahedron.vue.d.ts +29 -0
- package/dist/core/Plane.vue.d.ts +29 -0
- package/dist/core/Ring.vue.d.ts +29 -0
- package/dist/core/Sphere.vue.d.ts +29 -0
- package/dist/core/Tetrahedron.vue.d.ts +29 -0
- package/dist/core/Torus.vue.d.ts +29 -0
- package/dist/core/TorusKnot.vue.d.ts +29 -0
- package/dist/core/Tube.vue.d.ts +30 -0
- package/dist/core/useAnimations.d.ts +8 -0
- package/dist/core/useGLTF/component.d.ts +1 -1
- package/dist/core/useGLTF/index.d.ts +1 -0
- package/dist/index.d.ts +15 -1
- package/dist/trescientos.js +4527 -4088
- package/dist/trescientos.umd.cjs +8 -8
- package/package.json +6 -6
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
args: {
|
|
3
|
+
type: ArrayConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
default: () => number[];
|
|
6
|
+
};
|
|
7
|
+
color: {
|
|
8
|
+
type: null;
|
|
9
|
+
required: false;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
boxRef: import("vue").ShallowRef<any>;
|
|
14
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
args: {
|
|
16
|
+
type: ArrayConstructor;
|
|
17
|
+
required: false;
|
|
18
|
+
default: () => number[];
|
|
19
|
+
};
|
|
20
|
+
color: {
|
|
21
|
+
type: null;
|
|
22
|
+
required: false;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
}>>, {
|
|
26
|
+
args: unknown[];
|
|
27
|
+
color: any;
|
|
28
|
+
}>;
|
|
29
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
args: {
|
|
3
|
+
type: ArrayConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
default: () => number[];
|
|
6
|
+
};
|
|
7
|
+
color: {
|
|
8
|
+
type: null;
|
|
9
|
+
required: false;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
circleRef: import("vue").ShallowRef<any>;
|
|
14
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
args: {
|
|
16
|
+
type: ArrayConstructor;
|
|
17
|
+
required: false;
|
|
18
|
+
default: () => number[];
|
|
19
|
+
};
|
|
20
|
+
color: {
|
|
21
|
+
type: null;
|
|
22
|
+
required: false;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
}>>, {
|
|
26
|
+
args: unknown[];
|
|
27
|
+
color: any;
|
|
28
|
+
}>;
|
|
29
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
args: {
|
|
3
|
+
type: ArrayConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
default: () => number[];
|
|
6
|
+
};
|
|
7
|
+
color: {
|
|
8
|
+
type: null;
|
|
9
|
+
required: false;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
coneRef: import("vue").ShallowRef<any>;
|
|
14
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
args: {
|
|
16
|
+
type: ArrayConstructor;
|
|
17
|
+
required: false;
|
|
18
|
+
default: () => number[];
|
|
19
|
+
};
|
|
20
|
+
color: {
|
|
21
|
+
type: null;
|
|
22
|
+
required: false;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
}>>, {
|
|
26
|
+
args: unknown[];
|
|
27
|
+
color: any;
|
|
28
|
+
}>;
|
|
29
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
args: {
|
|
3
|
+
type: ArrayConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
default: () => number[];
|
|
6
|
+
};
|
|
7
|
+
color: {
|
|
8
|
+
type: null;
|
|
9
|
+
required: false;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
dodecahedronRef: import("vue").ShallowRef<any>;
|
|
14
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
args: {
|
|
16
|
+
type: ArrayConstructor;
|
|
17
|
+
required: false;
|
|
18
|
+
default: () => number[];
|
|
19
|
+
};
|
|
20
|
+
color: {
|
|
21
|
+
type: null;
|
|
22
|
+
required: false;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
}>>, {
|
|
26
|
+
args: unknown[];
|
|
27
|
+
color: any;
|
|
28
|
+
}>;
|
|
29
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
args: {
|
|
3
|
+
type: ArrayConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
default: () => number[];
|
|
6
|
+
};
|
|
7
|
+
color: {
|
|
8
|
+
type: null;
|
|
9
|
+
required: false;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
icosahedronRef: import("vue").ShallowRef<any>;
|
|
14
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
args: {
|
|
16
|
+
type: ArrayConstructor;
|
|
17
|
+
required: false;
|
|
18
|
+
default: () => number[];
|
|
19
|
+
};
|
|
20
|
+
color: {
|
|
21
|
+
type: null;
|
|
22
|
+
required: false;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
}>>, {
|
|
26
|
+
args: unknown[];
|
|
27
|
+
color: any;
|
|
28
|
+
}>;
|
|
29
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
args: {
|
|
3
|
+
type: ArrayConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
default: () => number[];
|
|
6
|
+
};
|
|
7
|
+
color: {
|
|
8
|
+
type: null;
|
|
9
|
+
required: false;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
octahedronRef: import("vue").ShallowRef<any>;
|
|
14
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
args: {
|
|
16
|
+
type: ArrayConstructor;
|
|
17
|
+
required: false;
|
|
18
|
+
default: () => number[];
|
|
19
|
+
};
|
|
20
|
+
color: {
|
|
21
|
+
type: null;
|
|
22
|
+
required: false;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
}>>, {
|
|
26
|
+
args: unknown[];
|
|
27
|
+
color: any;
|
|
28
|
+
}>;
|
|
29
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
args: {
|
|
3
|
+
type: ArrayConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
default: () => number[];
|
|
6
|
+
};
|
|
7
|
+
color: {
|
|
8
|
+
type: null;
|
|
9
|
+
required: false;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
planeRef: import("vue").ShallowRef<any>;
|
|
14
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
args: {
|
|
16
|
+
type: ArrayConstructor;
|
|
17
|
+
required: false;
|
|
18
|
+
default: () => number[];
|
|
19
|
+
};
|
|
20
|
+
color: {
|
|
21
|
+
type: null;
|
|
22
|
+
required: false;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
}>>, {
|
|
26
|
+
args: unknown[];
|
|
27
|
+
color: any;
|
|
28
|
+
}>;
|
|
29
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
args: {
|
|
3
|
+
type: ArrayConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
default: () => number[];
|
|
6
|
+
};
|
|
7
|
+
color: {
|
|
8
|
+
type: null;
|
|
9
|
+
required: false;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
ringRef: import("vue").ShallowRef<any>;
|
|
14
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
args: {
|
|
16
|
+
type: ArrayConstructor;
|
|
17
|
+
required: false;
|
|
18
|
+
default: () => number[];
|
|
19
|
+
};
|
|
20
|
+
color: {
|
|
21
|
+
type: null;
|
|
22
|
+
required: false;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
}>>, {
|
|
26
|
+
args: unknown[];
|
|
27
|
+
color: any;
|
|
28
|
+
}>;
|
|
29
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
args: {
|
|
3
|
+
type: ArrayConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
default: () => number[];
|
|
6
|
+
};
|
|
7
|
+
color: {
|
|
8
|
+
type: null;
|
|
9
|
+
required: false;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
sphereRef: import("vue").ShallowRef<any>;
|
|
14
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
args: {
|
|
16
|
+
type: ArrayConstructor;
|
|
17
|
+
required: false;
|
|
18
|
+
default: () => number[];
|
|
19
|
+
};
|
|
20
|
+
color: {
|
|
21
|
+
type: null;
|
|
22
|
+
required: false;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
}>>, {
|
|
26
|
+
args: unknown[];
|
|
27
|
+
color: any;
|
|
28
|
+
}>;
|
|
29
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
args: {
|
|
3
|
+
type: ArrayConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
default: () => number[];
|
|
6
|
+
};
|
|
7
|
+
color: {
|
|
8
|
+
type: null;
|
|
9
|
+
required: false;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
tetrahedronRef: import("vue").ShallowRef<any>;
|
|
14
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
args: {
|
|
16
|
+
type: ArrayConstructor;
|
|
17
|
+
required: false;
|
|
18
|
+
default: () => number[];
|
|
19
|
+
};
|
|
20
|
+
color: {
|
|
21
|
+
type: null;
|
|
22
|
+
required: false;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
}>>, {
|
|
26
|
+
args: unknown[];
|
|
27
|
+
color: any;
|
|
28
|
+
}>;
|
|
29
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
args: {
|
|
3
|
+
type: ArrayConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
default: () => number[];
|
|
6
|
+
};
|
|
7
|
+
color: {
|
|
8
|
+
type: null;
|
|
9
|
+
required: false;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
torusRef: import("vue").ShallowRef<any>;
|
|
14
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
args: {
|
|
16
|
+
type: ArrayConstructor;
|
|
17
|
+
required: false;
|
|
18
|
+
default: () => number[];
|
|
19
|
+
};
|
|
20
|
+
color: {
|
|
21
|
+
type: null;
|
|
22
|
+
required: false;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
}>>, {
|
|
26
|
+
args: unknown[];
|
|
27
|
+
color: any;
|
|
28
|
+
}>;
|
|
29
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
args: {
|
|
3
|
+
type: ArrayConstructor;
|
|
4
|
+
required: false;
|
|
5
|
+
default: () => number[];
|
|
6
|
+
};
|
|
7
|
+
color: {
|
|
8
|
+
type: null;
|
|
9
|
+
required: false;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
}, {
|
|
13
|
+
torusKnotRef: import("vue").ShallowRef<any>;
|
|
14
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
args: {
|
|
16
|
+
type: ArrayConstructor;
|
|
17
|
+
required: false;
|
|
18
|
+
default: () => number[];
|
|
19
|
+
};
|
|
20
|
+
color: {
|
|
21
|
+
type: null;
|
|
22
|
+
required: false;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
}>>, {
|
|
26
|
+
args: unknown[];
|
|
27
|
+
color: any;
|
|
28
|
+
}>;
|
|
29
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { QuadraticBezierCurve3 } from 'three';
|
|
2
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
|
+
args: {
|
|
4
|
+
type: ArrayConstructor;
|
|
5
|
+
required: false;
|
|
6
|
+
default: () => (number | boolean | QuadraticBezierCurve3)[];
|
|
7
|
+
};
|
|
8
|
+
color: {
|
|
9
|
+
type: null;
|
|
10
|
+
required: false;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
}, {
|
|
14
|
+
tubeRef: import("vue").ShallowRef<any>;
|
|
15
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
args: {
|
|
17
|
+
type: ArrayConstructor;
|
|
18
|
+
required: false;
|
|
19
|
+
default: () => (number | boolean | QuadraticBezierCurve3)[];
|
|
20
|
+
};
|
|
21
|
+
color: {
|
|
22
|
+
type: null;
|
|
23
|
+
required: false;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
}>>, {
|
|
27
|
+
args: unknown[];
|
|
28
|
+
color: any;
|
|
29
|
+
}>;
|
|
30
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AnimationAction, AnimationClip, AnimationMixer, Object3D, Scene } from 'three';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
export declare function useAnimations<T extends AnimationClip>(animations: T[], modelRef?: Scene | Ref<Object3D | undefined | null>): {
|
|
4
|
+
actions: import("vue").ShallowReactive<{
|
|
5
|
+
[key: string]: AnimationAction;
|
|
6
|
+
}>;
|
|
7
|
+
mixer: AnimationMixer;
|
|
8
|
+
};
|
|
@@ -2,7 +2,7 @@ export declare const GLTFModel: import("vue").DefineComponent<{
|
|
|
2
2
|
path: StringConstructor;
|
|
3
3
|
draco: BooleanConstructor;
|
|
4
4
|
decoderPath: StringConstructor;
|
|
5
|
-
}, () =>
|
|
5
|
+
}, () => void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
6
6
|
path: StringConstructor;
|
|
7
7
|
draco: BooleanConstructor;
|
|
8
8
|
decoderPath: StringConstructor;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
import OrbitControls from './core/OrbitControls.vue';
|
|
2
2
|
import TransformControls from './core/TransformControls.vue';
|
|
3
3
|
import { useTweakPane } from './core/useTweakPane';
|
|
4
|
+
import { useAnimations } from './core/useAnimations';
|
|
4
5
|
import { GLTFModel } from './core/useGLTF/component';
|
|
5
6
|
import { FBXModel } from './core/useFBX/component';
|
|
6
7
|
import Text3D from './core/Text3D.vue';
|
|
8
|
+
import Plane from './core/Plane.vue';
|
|
9
|
+
import Box from './core/Box.vue';
|
|
10
|
+
import Sphere from './core/Sphere.vue';
|
|
11
|
+
import Torus from './core/Torus.vue';
|
|
12
|
+
import TorusKnot from './core/TorusKnot.vue';
|
|
13
|
+
import Circle from './core/Circle.vue';
|
|
14
|
+
import Cone from './core/Cone.vue';
|
|
15
|
+
import Tube from './core/Tube.vue';
|
|
16
|
+
import Ring from './core/Ring.vue';
|
|
17
|
+
import Tetrahedron from './core/Tetrahedron.vue';
|
|
18
|
+
import Icosahedron from './core/Icosahedron.vue';
|
|
19
|
+
import Octahedron from './core/Octahedron.vue';
|
|
20
|
+
import Dodecahedron from './core/Dodecahedron.vue';
|
|
7
21
|
export * from './core/useGLTF';
|
|
8
22
|
export * from './core/useFBX';
|
|
9
23
|
export * from './types';
|
|
10
|
-
export { OrbitControls, TransformControls, useTweakPane, GLTFModel, FBXModel, Text3D };
|
|
24
|
+
export { OrbitControls, TransformControls, useTweakPane, GLTFModel, FBXModel, Text3D, Plane, Box, Sphere, Torus, TorusKnot, Circle, Cone, Tube, Ring, Tetrahedron, Icosahedron, Octahedron, Dodecahedron, useAnimations, };
|