@tresjs/cientos 3.9.0 → 4.0.0-next.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/dist/composables/useOnDemandInvalidation.d.ts +3 -0
- package/dist/core/abstractions/AnimatedSprite/Atlas.d.ts +38 -0
- package/dist/core/abstractions/AnimatedSprite/AtlasAnimationDefinitionParser.d.ts +10 -0
- package/dist/core/abstractions/AnimatedSprite/StringOps.d.ts +2 -0
- package/dist/core/abstractions/AnimatedSprite/component.vue.d.ts +130 -0
- package/dist/core/abstractions/Lensflare/component.vue.d.ts +4 -4
- package/dist/core/abstractions/Levioso.vue.d.ts +15 -13
- package/dist/core/abstractions/MouseParallax.vue.d.ts +6 -6
- package/dist/core/abstractions/Reflector.vue.d.ts +9 -7
- package/dist/core/abstractions/Text3D.vue.d.ts +7 -5
- package/dist/core/abstractions/index.d.ts +2 -1
- package/dist/core/abstractions/useFBO/component.vue.d.ts +2 -2
- package/dist/core/abstractions/useFBO/index.d.ts +2 -2
- package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +6 -4
- package/dist/core/abstractions/useSurfaceSampler/index.d.ts +161 -133
- package/dist/core/controls/CameraControls.vue.d.ts +1593 -1473
- package/dist/core/controls/KeyboardControls.vue.d.ts +39 -85
- package/dist/core/controls/MapControls.vue.d.ts +9495 -2
- package/dist/core/controls/OrbitControls.vue.d.ts +1366 -1262
- package/dist/core/controls/PointerLockControls.vue.d.ts +1 -1
- package/dist/core/controls/ScrollControls.vue.d.ts +19 -15
- package/dist/core/controls/TransformControls.vue.d.ts +6 -2
- package/dist/core/index.d.ts +0 -1
- package/dist/core/loaders/SVG/component.vue.d.ts +2 -2
- package/dist/core/loaders/useFBX/component.vue.d.ts +5 -5
- package/dist/core/loaders/useGLTF/component.vue.d.ts +9 -9
- package/dist/core/loaders/useGLTF/index.d.ts +41 -0
- package/dist/core/materials/customShaderMaterial/index.vue.d.ts +4 -2
- package/dist/core/materials/holographicMaterial/index.vue.d.ts +22 -22
- package/dist/core/materials/meshGlassMaterial/index.vue.d.ts +1 -1
- package/dist/core/materials/{blurPass.d.ts → meshReflectionMaterial/BlurPass.d.ts} +6 -5
- package/dist/core/materials/meshReflectionMaterial/index.vue.d.ts +170 -40
- package/dist/core/materials/meshReflectionMaterial/material.d.ts +31 -34
- package/dist/core/materials/meshWobbleMaterial/index.vue.d.ts +7 -5
- package/dist/core/misc/html/HTML.vue.d.ts +8 -4
- package/dist/core/misc/index.d.ts +1 -2
- package/dist/core/shapes/Box.vue.d.ts +9 -7
- package/dist/core/shapes/CatmullRomCurve3.vue.d.ts +3 -1
- package/dist/core/shapes/Circle.vue.d.ts +9 -7
- package/dist/core/shapes/Cone.vue.d.ts +9 -7
- package/dist/core/shapes/Cylinder.vue.d.ts +60 -0
- package/dist/core/shapes/Dodecahedron.vue.d.ts +9 -7
- package/dist/core/shapes/Icosahedron.vue.d.ts +9 -7
- package/dist/core/shapes/Line2.vue.d.ts +4 -2
- package/dist/core/shapes/Octahedron.vue.d.ts +9 -7
- package/dist/core/shapes/Plane.vue.d.ts +9 -7
- package/dist/core/shapes/Ring.vue.d.ts +9 -7
- package/dist/core/shapes/RoundedBox.vue.d.ts +9 -7
- package/dist/core/shapes/Sphere.vue.d.ts +9 -7
- package/dist/core/shapes/Superformula.vue.d.ts +8 -6
- package/dist/core/shapes/Tetrahedron.vue.d.ts +9 -7
- package/dist/core/shapes/Torus.vue.d.ts +9 -7
- package/dist/core/shapes/TorusKnot.vue.d.ts +9 -7
- package/dist/core/shapes/Tube.vue.d.ts +10 -8
- package/dist/core/shapes/index.d.ts +2 -1
- package/dist/core/staging/Backdrop.vue.d.ts +9 -5
- package/dist/core/staging/ContactShadows.vue.d.ts +173 -0
- package/dist/core/staging/Fit.vue.d.ts +9 -6
- package/dist/core/staging/Ocean.vue.d.ts +11 -9
- package/dist/core/staging/Precipitation.vue.d.ts +6 -4
- package/dist/core/staging/Sky.vue.d.ts +2 -2
- package/dist/core/staging/Smoke.vue.d.ts +3 -3
- package/dist/core/staging/Sparkles/ShaderDataBuilder.d.ts +3 -3
- package/dist/core/staging/Sparkles/component.vue.d.ts +10 -8
- package/dist/core/staging/Stars.vue.d.ts +4 -4
- package/dist/core/staging/useEnvironment/component.vue.d.ts +8 -6
- package/dist/core/staging/useEnvironment/lightformer/index.vue.d.ts +11 -11
- package/dist/trescientos.js +6517 -6177
- package/dist/trescientos.umd.cjs +455 -440
- package/package.json +20 -24
- package/dist/core/directives/index.d.ts +0 -6
- package/dist/core/directives/vAlwaysLookAt.d.ts +0 -5
- package/dist/core/directives/vDistanceTo.d.ts +0 -4
- package/dist/core/directives/vLightHelper.d.ts +0 -7
- package/dist/core/directives/vLog.d.ts +0 -3
- package/dist/core/misc/useTweakPane/index.d.ts +0 -11
- /package/dist/core/materials/{convolutionMaterial.d.ts → meshReflectionMaterial/ConvolutionMaterial.d.ts} +0 -0
|
@@ -1,110 +1,69 @@
|
|
|
1
|
+
import { Camera } from 'three';
|
|
2
|
+
|
|
1
3
|
export interface KeyboardControlsProps {
|
|
2
4
|
/**
|
|
3
|
-
*
|
|
4
|
-
* @type {string[]}
|
|
5
|
-
* @default '[w, W]'
|
|
6
|
-
* @memberof KeyboardControlsProps
|
|
5
|
+
* Whether to make this the default controls.
|
|
7
6
|
*
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Keys to go back.
|
|
12
|
-
* @type {string[]}
|
|
13
|
-
* @default '[s, S]'
|
|
7
|
+
* @default true
|
|
8
|
+
* @type {boolean}
|
|
14
9
|
* @memberof KeyboardControlsProps
|
|
15
|
-
*
|
|
10
|
+
* @see https://threejs.org/docs/index.html?q=pointe#examples/en/controls/PointerLockControls
|
|
16
11
|
*/
|
|
17
|
-
|
|
12
|
+
makeDefault?: boolean;
|
|
18
13
|
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string[]}
|
|
21
|
-
* @default '[a, A]'
|
|
22
|
-
* @memberof KeyboardControlsProps
|
|
14
|
+
* The camera to control.
|
|
23
15
|
*
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Keys to go right.
|
|
28
|
-
* @type {string[]}
|
|
29
|
-
* @default '[d, D]'
|
|
16
|
+
* @default false
|
|
17
|
+
* @type {boolean}
|
|
30
18
|
* @memberof KeyboardControlsProps
|
|
31
|
-
*
|
|
19
|
+
* @see https://threejs.org/docs/index.html?q=pointe#examples/en/controls/PointerLockControls
|
|
32
20
|
*/
|
|
33
|
-
|
|
21
|
+
camera?: Camera;
|
|
34
22
|
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string[]}
|
|
37
|
-
* @default 'space'
|
|
38
|
-
* @memberof KeyboardControlsProps
|
|
23
|
+
* The dom element to listen to.
|
|
39
24
|
*
|
|
40
|
-
|
|
41
|
-
jump?: string[] | string;
|
|
42
|
-
/**
|
|
43
|
-
* Default gravity number for jump.
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @default 9.8
|
|
25
|
+
* @type {HTMLElement}
|
|
46
26
|
* @memberof KeyboardControlsProps
|
|
47
|
-
*
|
|
27
|
+
* @see https://threejs.org/docs/index.html?q=pointe#examples/en/controls/PointerLockControls
|
|
48
28
|
*/
|
|
49
|
-
|
|
29
|
+
domElement?: HTMLElement;
|
|
50
30
|
/**
|
|
51
|
-
*
|
|
31
|
+
* Indicates the movement speed.
|
|
52
32
|
* @type {number}
|
|
53
|
-
* @default 0.
|
|
33
|
+
* @default 0.2
|
|
54
34
|
* @memberof KeyboardControlsProps
|
|
55
35
|
*
|
|
56
36
|
*/
|
|
57
37
|
moveSpeed?: number;
|
|
58
38
|
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {boolean}
|
|
61
|
-
* @default false
|
|
62
|
-
* @memberof KeyboardControlsProps
|
|
39
|
+
* The trigger id.
|
|
63
40
|
*
|
|
64
|
-
|
|
65
|
-
headBobbing?: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* Indicates if the forward movement is in the Z axis or Y axis.
|
|
68
|
-
* @type {boolean}
|
|
69
|
-
* @default false
|
|
41
|
+
* @type {string}
|
|
70
42
|
* @memberof KeyboardControlsProps
|
|
71
|
-
*
|
|
43
|
+
* @see https://threejs.org/docs/index.html?q=pointe#examples/en/controls/PointerLockControls
|
|
72
44
|
*/
|
|
73
|
-
|
|
45
|
+
selector?: string;
|
|
74
46
|
}
|
|
75
|
-
declare const _default:
|
|
76
|
-
forward: () => string[];
|
|
77
|
-
back: () => string[];
|
|
78
|
-
left: () => string[];
|
|
79
|
-
right: () => string[];
|
|
80
|
-
jump: () => string[];
|
|
81
|
-
gravity: number;
|
|
47
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<KeyboardControlsProps>, {
|
|
82
48
|
moveSpeed: number;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
49
|
+
makeDefault: boolean;
|
|
50
|
+
}>, {
|
|
51
|
+
instance: import('vue').Ref<(import('three').EventDispatcher<{}> & {
|
|
52
|
+
enabled: boolean;
|
|
53
|
+
}) | null>;
|
|
54
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
55
|
+
change: (...args: any[]) => void;
|
|
56
|
+
isLock: (...args: any[]) => void;
|
|
57
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<KeyboardControlsProps>, {
|
|
92
58
|
moveSpeed: number;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
back: string | string[];
|
|
100
|
-
jump: string | string[];
|
|
101
|
-
gravity: number;
|
|
59
|
+
makeDefault: boolean;
|
|
60
|
+
}>>> & {
|
|
61
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
62
|
+
onIsLock?: ((...args: any[]) => any) | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
makeDefault: boolean;
|
|
102
65
|
moveSpeed: number;
|
|
103
|
-
|
|
104
|
-
is2D: boolean;
|
|
105
|
-
}, {}>, {
|
|
106
|
-
default?(_: {}): any;
|
|
107
|
-
}>;
|
|
66
|
+
}, {}>;
|
|
108
67
|
export default _default;
|
|
109
68
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
110
69
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -123,8 +82,3 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
123
82
|
type __VLS_Prettify<T> = {
|
|
124
83
|
[K in keyof T]: T[K];
|
|
125
84
|
} & {};
|
|
126
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
127
|
-
new (): {
|
|
128
|
-
$slots: S;
|
|
129
|
-
};
|
|
130
|
-
};
|