@tresjs/cientos 3.2.1 → 3.3.0-next.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/abstractions/Text3D.vue.d.ts +21 -21
- package/dist/core/abstractions/index.d.ts +2 -7
- package/dist/core/abstractions/useAnimations.d.ts +3 -2
- package/dist/core/controls/CameraControls.vue.d.ts +133 -116
- package/dist/core/controls/KeyboardControls.vue.d.ts +12 -12
- package/dist/core/controls/MapControls.vue.d.ts +1 -1
- package/dist/core/controls/OrbitControls.vue.d.ts +5 -4
- package/dist/core/controls/PointerLockControls.vue.d.ts +1 -1
- package/dist/core/controls/TransformControls.vue.d.ts +10 -10
- package/dist/core/loaders/SVG/component.vue.d.ts +68 -0
- package/dist/core/loaders/index.d.ts +4 -3
- package/dist/core/loaders/useFBX/index.d.ts +1 -1
- package/dist/core/loaders/useGLTF/index.d.ts +1 -1
- package/dist/core/loaders/useProgress.d.ts +1 -1
- package/dist/core/materials/meshGlassMaterial/material.d.ts +2 -1
- package/dist/core/materials/meshWobbleMaterial/material.d.ts +2 -1
- package/dist/core/misc/Stats.d.ts +1 -0
- package/dist/core/misc/index.d.ts +2 -1
- package/dist/core/shapes/Box.vue.d.ts +7 -7
- package/dist/core/shapes/Circle.vue.d.ts +7 -7
- package/dist/core/shapes/Cone.vue.d.ts +7 -7
- package/dist/core/shapes/Dodecahedron.vue.d.ts +7 -7
- package/dist/core/shapes/Icosahedron.vue.d.ts +7 -7
- package/dist/core/shapes/Octahedron.vue.d.ts +7 -7
- package/dist/core/shapes/Plane.vue.d.ts +7 -7
- package/dist/core/shapes/Ring.vue.d.ts +7 -7
- package/dist/core/shapes/Sphere.vue.d.ts +7 -7
- package/dist/core/shapes/Tetrahedron.vue.d.ts +7 -7
- package/dist/core/shapes/Torus.vue.d.ts +7 -7
- package/dist/core/shapes/TorusKnot.vue.d.ts +7 -7
- package/dist/core/shapes/Tube.vue.d.ts +8 -7
- package/dist/core/staging/Backdrop.vue.d.ts +2 -2
- package/dist/core/{abstractions → staging}/Precipitation.vue.d.ts +33 -33
- package/dist/core/{abstractions → staging}/Smoke.vue.d.ts +21 -21
- package/dist/core/staging/index.d.ts +6 -1
- package/dist/core/{abstractions → staging}/useEnvironment/component.d.ts +1 -1
- package/dist/core/{abstractions → staging}/useEnvironment/const.d.ts +3 -3
- package/dist/core/{abstractions → staging}/useEnvironment/index.d.ts +2 -2
- package/dist/trescientos.js +3873 -2867
- package/dist/trescientos.umd.cjs +14 -14
- package/package.json +20 -20
- package/dist/core/{abstractions → staging}/Stars.vue.d.ts +23 -23
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface Glyph {
|
|
2
2
|
_cachedOutline: string[];
|
|
3
3
|
ha: number;
|
|
4
4
|
o: string;
|
|
5
|
-
}
|
|
6
|
-
export
|
|
5
|
+
}
|
|
6
|
+
export interface FontData {
|
|
7
7
|
boundingBox: {
|
|
8
8
|
yMax: number;
|
|
9
9
|
yMin: number;
|
|
@@ -14,7 +14,7 @@ export type FontData = {
|
|
|
14
14
|
};
|
|
15
15
|
resolution: number;
|
|
16
16
|
underlineThickness: number;
|
|
17
|
-
}
|
|
17
|
+
}
|
|
18
18
|
export interface Text3DProps {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
@@ -119,14 +119,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
119
119
|
type: import("vue").PropType<number>;
|
|
120
120
|
default: number;
|
|
121
121
|
};
|
|
122
|
-
center: {
|
|
123
|
-
type: import("vue").PropType<boolean>;
|
|
124
|
-
default: boolean;
|
|
125
|
-
};
|
|
126
|
-
size: {
|
|
127
|
-
type: import("vue").PropType<number>;
|
|
128
|
-
default: number;
|
|
129
|
-
};
|
|
130
122
|
font: {
|
|
131
123
|
type: import("vue").PropType<string | FontData>;
|
|
132
124
|
required: true;
|
|
@@ -134,6 +126,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
134
126
|
text: {
|
|
135
127
|
type: import("vue").PropType<string>;
|
|
136
128
|
};
|
|
129
|
+
size: {
|
|
130
|
+
type: import("vue").PropType<number>;
|
|
131
|
+
default: number;
|
|
132
|
+
};
|
|
137
133
|
curveSegments: {
|
|
138
134
|
type: import("vue").PropType<number>;
|
|
139
135
|
default: number;
|
|
@@ -158,6 +154,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
158
154
|
type: import("vue").PropType<number>;
|
|
159
155
|
default: number;
|
|
160
156
|
};
|
|
157
|
+
center: {
|
|
158
|
+
type: import("vue").PropType<boolean>;
|
|
159
|
+
default: boolean;
|
|
160
|
+
};
|
|
161
161
|
needUpdates: {
|
|
162
162
|
type: import("vue").PropType<boolean>;
|
|
163
163
|
default: boolean;
|
|
@@ -169,14 +169,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
169
169
|
type: import("vue").PropType<number>;
|
|
170
170
|
default: number;
|
|
171
171
|
};
|
|
172
|
-
center: {
|
|
173
|
-
type: import("vue").PropType<boolean>;
|
|
174
|
-
default: boolean;
|
|
175
|
-
};
|
|
176
|
-
size: {
|
|
177
|
-
type: import("vue").PropType<number>;
|
|
178
|
-
default: number;
|
|
179
|
-
};
|
|
180
172
|
font: {
|
|
181
173
|
type: import("vue").PropType<string | FontData>;
|
|
182
174
|
required: true;
|
|
@@ -184,6 +176,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
184
176
|
text: {
|
|
185
177
|
type: import("vue").PropType<string>;
|
|
186
178
|
};
|
|
179
|
+
size: {
|
|
180
|
+
type: import("vue").PropType<number>;
|
|
181
|
+
default: number;
|
|
182
|
+
};
|
|
187
183
|
curveSegments: {
|
|
188
184
|
type: import("vue").PropType<number>;
|
|
189
185
|
default: number;
|
|
@@ -208,13 +204,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
208
204
|
type: import("vue").PropType<number>;
|
|
209
205
|
default: number;
|
|
210
206
|
};
|
|
207
|
+
center: {
|
|
208
|
+
type: import("vue").PropType<boolean>;
|
|
209
|
+
default: boolean;
|
|
210
|
+
};
|
|
211
211
|
needUpdates: {
|
|
212
212
|
type: import("vue").PropType<boolean>;
|
|
213
213
|
default: boolean;
|
|
214
214
|
};
|
|
215
215
|
}>>, {
|
|
216
216
|
height: number;
|
|
217
|
-
center: boolean;
|
|
218
217
|
size: number;
|
|
219
218
|
curveSegments: number;
|
|
220
219
|
bevelEnabled: boolean;
|
|
@@ -222,6 +221,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
222
221
|
bevelSize: number;
|
|
223
222
|
bevelOffset: number;
|
|
224
223
|
bevelSegments: number;
|
|
224
|
+
center: boolean;
|
|
225
225
|
needUpdates: boolean;
|
|
226
226
|
}, {}>, {
|
|
227
227
|
default?(_: {}): any;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import Text3D from './Text3D.vue';
|
|
2
2
|
import { useAnimations } from './useAnimations';
|
|
3
|
-
import { Environment } from './useEnvironment/component';
|
|
4
|
-
import Stars from './Stars.vue';
|
|
5
|
-
import Precipitation from './Precipitation.vue';
|
|
6
|
-
import Smoke from './Smoke.vue';
|
|
7
3
|
import Levioso from './Levioso.vue';
|
|
8
|
-
import ContactShadows from './ContactShadows.vue';
|
|
9
4
|
import MouseParallax from './MouseParallax.vue';
|
|
10
|
-
export * from '
|
|
11
|
-
export { Text3D, useAnimations,
|
|
5
|
+
export * from '../staging/useEnvironment';
|
|
6
|
+
export { Text3D, useAnimations, MouseParallax, Levioso, };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { AnimationAction, AnimationClip,
|
|
2
|
-
import {
|
|
1
|
+
import type { AnimationAction, AnimationClip, Object3D, Scene } from 'three';
|
|
2
|
+
import { AnimationMixer } from 'three';
|
|
3
|
+
import type { Ref } from 'vue';
|
|
3
4
|
/**
|
|
4
5
|
* Creates an AnimationMixer and returns it.
|
|
5
6
|
*
|