@tresjs/cientos 4.0.3 → 4.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/dist/core/abstractions/AnimatedSprite/component.vue.d.ts +18 -5
- package/dist/core/abstractions/Billboard.vue.d.ts +61 -0
- package/dist/core/abstractions/CubeCamera/component.vue.d.ts +39 -0
- package/dist/core/abstractions/CubeCamera/useCubeCamera.d.ts +23 -0
- package/dist/core/abstractions/Edges.vue.d.ts +36 -0
- package/dist/core/abstractions/GradientTexture.vue.d.ts +47 -0
- package/dist/core/abstractions/Image/ImageMaterial.vue.d.ts +4 -0
- package/dist/core/abstractions/Image/ImageMaterialImpl.d.ts +8 -0
- package/dist/core/abstractions/Image/component.vue.d.ts +81 -0
- package/dist/core/abstractions/Lensflare/component.vue.d.ts +2 -2
- package/dist/core/abstractions/Levioso.vue.d.ts +17 -3
- package/dist/core/abstractions/Mask/component.vue.d.ts +40 -0
- package/dist/core/abstractions/Mask/useMask.d.ts +9 -0
- package/dist/core/abstractions/Outline/OutlineMaterialImpl.d.ts +4 -0
- package/dist/core/abstractions/Outline/component.vue.d.ts +34 -0
- package/dist/core/abstractions/PositionalAudio.vue.d.ts +1 -1
- package/dist/core/abstractions/Reflector.vue.d.ts +10 -3
- package/dist/core/abstractions/ScreenSizer.vue.d.ts +35 -0
- package/dist/core/abstractions/ScreenSpace.vue.d.ts +32 -0
- package/dist/core/abstractions/Text3D.vue.d.ts +17 -3
- package/dist/core/abstractions/index.d.ts +11 -1
- package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +16 -2
- package/dist/core/abstractions/useSurfaceSampler/index.d.ts +756 -602
- package/dist/core/controls/CameraControls.vue.d.ts +304 -0
- package/dist/core/controls/MapControls.vue.d.ts +258 -0
- package/dist/core/controls/OrbitControls.vue.d.ts +262 -0
- package/dist/core/controls/PointerLockControls.vue.d.ts +1 -2
- package/dist/core/controls/ScrollControls.vue.d.ts +18 -4
- package/dist/core/controls/TransformControls.vue.d.ts +1 -1
- package/dist/core/loaders/SVG/component.vue.d.ts +1 -1
- package/dist/core/loaders/useFBX/index.d.ts +3 -3
- package/dist/core/loaders/useGLTF/index.d.ts +7 -8
- package/dist/core/materials/customShaderMaterial/index.vue.d.ts +1 -1
- package/dist/core/materials/holographicMaterial/index.vue.d.ts +1 -1
- package/dist/core/materials/index.d.ts +2 -1
- package/dist/core/materials/meshDiscardMaterial/index.vue.d.ts +4 -0
- package/dist/core/materials/meshDiscardMaterial/material.d.ts +4 -0
- package/dist/core/materials/meshGlassMaterial/index.vue.d.ts +1 -1
- package/dist/core/materials/meshGlassMaterial/material.d.ts +1 -3
- package/dist/core/materials/meshReflectionMaterial/index.vue.d.ts +1 -1
- package/dist/core/materials/meshWobbleMaterial/index.vue.d.ts +1 -1
- package/dist/core/misc/html/HTML.vue.d.ts +24 -2
- package/dist/core/shapes/Box.vue.d.ts +17 -3
- package/dist/core/shapes/CatmullRomCurve3.vue.d.ts +1 -1
- package/dist/core/shapes/Circle.vue.d.ts +17 -3
- package/dist/core/shapes/Cone.vue.d.ts +17 -3
- package/dist/core/shapes/Cylinder.vue.d.ts +17 -3
- package/dist/core/shapes/Dodecahedron.vue.d.ts +17 -3
- package/dist/core/shapes/Icosahedron.vue.d.ts +17 -3
- package/dist/core/shapes/Line2.vue.d.ts +1 -1
- package/dist/core/shapes/Octahedron.vue.d.ts +17 -3
- package/dist/core/shapes/Plane.vue.d.ts +17 -3
- package/dist/core/shapes/Ring.vue.d.ts +17 -3
- package/dist/core/shapes/RoundedBox.vue.d.ts +17 -3
- package/dist/core/shapes/Sphere.vue.d.ts +17 -3
- package/dist/core/shapes/Superformula.vue.d.ts +18 -3
- package/dist/core/shapes/Tetrahedron.vue.d.ts +17 -3
- package/dist/core/shapes/Torus.vue.d.ts +17 -3
- package/dist/core/shapes/TorusKnot.vue.d.ts +17 -3
- package/dist/core/shapes/Tube.vue.d.ts +17 -3
- package/dist/core/staging/Align.vue.d.ts +87 -0
- package/dist/core/staging/Backdrop.vue.d.ts +26 -3
- package/dist/core/staging/ContactShadows.vue.d.ts +1 -1
- package/dist/core/staging/Fit.vue.d.ts +35 -5
- package/dist/core/staging/Grid.vue.d.ts +52 -0
- package/dist/core/staging/Ocean.vue.d.ts +10 -3
- package/dist/core/staging/Precipitation.vue.d.ts +17 -16
- package/dist/core/staging/Sky.vue.d.ts +1 -1
- package/dist/core/staging/Smoke.vue.d.ts +1 -1
- package/dist/core/staging/SoftShadows.vue.d.ts +14 -0
- package/dist/core/staging/Sparkles/ShaderData.d.ts +1 -1
- package/dist/core/staging/Stars.vue.d.ts +1 -1
- package/dist/core/staging/index.d.ts +4 -1
- package/dist/core/staging/useEnvironment/{envSence.d.ts → EnvironmentScene.d.ts} +3 -3
- package/dist/core/staging/useEnvironment/component.vue.d.ts +12 -5
- package/dist/core/staging/useEnvironment/index.d.ts +14 -0
- package/dist/core/staging/useEnvironment/lightformer/index.vue.d.ts +6 -4
- package/dist/trescientos.js +15618 -15159
- package/dist/trescientos.umd.cjs +819 -517
- package/dist/utils/calculateScaleFactor.d.ts +7 -0
- package/dist/utils/shaderMaterial.d.ts +6 -0
- package/package.json +22 -22
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import { OrbitControls } from 'three-stdlib';
|
|
2
|
+
import { TresVector3 } from '@tresjs/core';
|
|
3
|
+
import { Camera } from 'three';
|
|
4
|
+
export interface OrbitControlsProps {
|
|
5
|
+
/**
|
|
6
|
+
* Whether to make this the default controls.
|
|
7
|
+
*
|
|
8
|
+
* @default false
|
|
9
|
+
* @type {boolean}
|
|
10
|
+
* @memberof OrbitControlsProps
|
|
11
|
+
*/
|
|
12
|
+
makeDefault?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* The camera to control.
|
|
15
|
+
*
|
|
16
|
+
* @type {Camera}
|
|
17
|
+
* @memberof OrbitControlsProps
|
|
18
|
+
* @see https://threejs.org/docs/#examples/en/controls/OrbitControls.camera
|
|
19
|
+
*/
|
|
20
|
+
camera?: Camera;
|
|
21
|
+
/**
|
|
22
|
+
* The dom element to listen to.
|
|
23
|
+
*
|
|
24
|
+
* @type {HTMLElement}
|
|
25
|
+
* @memberof OrbitControlsProps
|
|
26
|
+
* @see https://threejs.org/docs/#examples/en/controls/OrbitControls.domElement
|
|
27
|
+
*/
|
|
28
|
+
domElement?: HTMLElement;
|
|
29
|
+
/**
|
|
30
|
+
* The target to orbit around.
|
|
31
|
+
*
|
|
32
|
+
* @type {TresVector3}
|
|
33
|
+
* @memberof OrbitControlsProps
|
|
34
|
+
* @see https://threejs.org/docs/#examples/en/controls/OrbitControls.target
|
|
35
|
+
*/
|
|
36
|
+
target?: TresVector3;
|
|
37
|
+
/**
|
|
38
|
+
* Whether to enable damping (inertia)
|
|
39
|
+
*
|
|
40
|
+
* @default false
|
|
41
|
+
* @type {boolean}
|
|
42
|
+
* @memberof OrbitControlsProps
|
|
43
|
+
* @see https://threejs.org/docs/#examples/en/controls/OrbitControls.enableDamping
|
|
44
|
+
*/
|
|
45
|
+
enableDamping?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* The damping inertia used if `.enableDamping` is set to true
|
|
48
|
+
*
|
|
49
|
+
* @default 0.05
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof OrbitControlsProps
|
|
52
|
+
* @see https://threejs.org/docs/#examples/en/controls/OrbitControls.dampingFactor
|
|
53
|
+
*/
|
|
54
|
+
dampingFactor?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Set to true to automatically rotate around the target.
|
|
57
|
+
*
|
|
58
|
+
* @default false
|
|
59
|
+
* @type {boolean}
|
|
60
|
+
* @memberof OrbitControlsProps
|
|
61
|
+
* @see https://threejs.org/docs/#examples/en/controls/OrbitControls.autoRotate
|
|
62
|
+
*/
|
|
63
|
+
autoRotate?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* How fast to rotate around the target if `.autoRotate` is true.
|
|
66
|
+
*
|
|
67
|
+
* @default 2
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof OrbitControlsProps
|
|
70
|
+
* @see https://threejs.org/docs/#examples/en/controls/OrbitControls.autoRotateSpeed
|
|
71
|
+
*/
|
|
72
|
+
autoRotateSpeed?: number;
|
|
73
|
+
/**
|
|
74
|
+
* Whether to enable panning.
|
|
75
|
+
*
|
|
76
|
+
* @default true
|
|
77
|
+
* @type {boolean}
|
|
78
|
+
* @memberof OrbitControlsProps
|
|
79
|
+
* @see https://threejs.org/docs/#examples/en/controls/OrbitControls.enablePan
|
|
80
|
+
*/
|
|
81
|
+
enablePan?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* How fast to pan the camera when the keyboard is used. Default is 7.0 pixels per keypress.
|
|
84
|
+
*
|
|
85
|
+
* @default 7.0
|
|
86
|
+
* @type {number}
|
|
87
|
+
* @memberof OrbitControlsProps
|
|
88
|
+
* @see https://threejs.org/docs/#examples/en/controls/OrbitControls.keyPanSpeed
|
|
89
|
+
*/
|
|
90
|
+
keyPanSpeed?: number;
|
|
91
|
+
/**
|
|
92
|
+
* This object contains references to the keycodes for controlling camera panning.
|
|
93
|
+
* Default is the 4 arrow keys.
|
|
94
|
+
*
|
|
95
|
+
* @default `{ LEFT: 'ArrowLeft', UP: 'ArrowUp', RIGHT: 'ArrowRight', BOTTOM: 'ArrowDown' }`
|
|
96
|
+
* @type Record<string, string>
|
|
97
|
+
* @memberof OrbitControlsProps
|
|
98
|
+
* @see https://threejs.org/docs/#examples/en/controls/OrbitControls.keys
|
|
99
|
+
*/
|
|
100
|
+
keys?: Record<string, string>;
|
|
101
|
+
/**
|
|
102
|
+
* How far you can orbit horizontally, upper limit.
|
|
103
|
+
* If set, the interval [ min, max ] must be a sub-interval of [ - 2 PI, 2 PI ],
|
|
104
|
+
* with ( max - min < 2 PI ). Default is Infinity.
|
|
105
|
+
*
|
|
106
|
+
* @default Infinity
|
|
107
|
+
* @type {number}
|
|
108
|
+
* @memberof OrbitControlsProps
|
|
109
|
+
* @see https://threejs.org/docs/index.html?q=orbi#examples/en/controls/OrbitControls.maxAzimuthAngle
|
|
110
|
+
*/
|
|
111
|
+
maxAzimuthAngle?: number;
|
|
112
|
+
/**
|
|
113
|
+
* How far you can orbit horizontally, lower limit.
|
|
114
|
+
* If set, the interval [ min, max ] must be a sub-interval of [ - 2 PI, 2 PI ],
|
|
115
|
+
* with ( max - min < 2 PI ).
|
|
116
|
+
* Default is - Infinity.
|
|
117
|
+
*
|
|
118
|
+
* @default -Infinity
|
|
119
|
+
* @type {number}
|
|
120
|
+
* @memberof OrbitControlsProps
|
|
121
|
+
* @see https://threejs.org/docs/index.html?q=orbi#examples/en/controls/OrbitControls.minAzimuthAngle
|
|
122
|
+
*/
|
|
123
|
+
minAzimuthAngle?: number;
|
|
124
|
+
/**
|
|
125
|
+
* How far you can orbit vertically, upper limit.
|
|
126
|
+
* Range is 0 to Math.PI radians, and default is Math.PI.
|
|
127
|
+
*
|
|
128
|
+
* @default Math.PI
|
|
129
|
+
* @type {number}
|
|
130
|
+
* @memberof OrbitControlsProps
|
|
131
|
+
* @see https://threejs.org/docs/index.html?q=orbi#examples/en/controls/OrbitControls.maxPolarAngle
|
|
132
|
+
*/
|
|
133
|
+
maxPolarAngle?: number;
|
|
134
|
+
/**
|
|
135
|
+
* How far you can orbit vertically, lower limit.
|
|
136
|
+
* Range is 0 to Math.PI radians, and default is 0.
|
|
137
|
+
*
|
|
138
|
+
* @default 0
|
|
139
|
+
* @type {number}
|
|
140
|
+
* @memberof OrbitControlsProps
|
|
141
|
+
* @see https://threejs.org/docs/index.html?q=orbi#examples/en/controls/OrbitControls.minPolarAngle
|
|
142
|
+
*/
|
|
143
|
+
minPolarAngle?: number;
|
|
144
|
+
/**
|
|
145
|
+
* The minimum distance of the camera to the target.
|
|
146
|
+
* Default is 0.
|
|
147
|
+
*
|
|
148
|
+
* @default 0
|
|
149
|
+
* @type {number}
|
|
150
|
+
* @memberof OrbitControlsProps
|
|
151
|
+
* @see https://threejs.org/docs/index.html?q=orbi#examples/en/controls/OrbitControls.minDistance
|
|
152
|
+
*/
|
|
153
|
+
minDistance?: number;
|
|
154
|
+
/**
|
|
155
|
+
* The maximum distance of the camera to the target.
|
|
156
|
+
* Default is Infinity.
|
|
157
|
+
*
|
|
158
|
+
* @default Infinity
|
|
159
|
+
* @type {number}
|
|
160
|
+
* @memberof OrbitControlsProps
|
|
161
|
+
* @see https://threejs.org/docs/index.html?q=orbi#examples/en/controls/OrbitControls.maxDistance
|
|
162
|
+
*/
|
|
163
|
+
maxDistance?: number;
|
|
164
|
+
/**
|
|
165
|
+
* The minimum field of view angle, in radians.
|
|
166
|
+
* Default is 0.
|
|
167
|
+
*
|
|
168
|
+
* @default 0
|
|
169
|
+
* @type {number}
|
|
170
|
+
* @memberof OrbitControlsProps
|
|
171
|
+
* @see https://threejs.org/docs/index.html?q=orbi#examples/en/controls/OrbitControls.minZoom
|
|
172
|
+
*/
|
|
173
|
+
minZoom?: number;
|
|
174
|
+
/**
|
|
175
|
+
* The maximum field of view angle, in radians.
|
|
176
|
+
* ( OrthographicCamera only ).
|
|
177
|
+
* Default is Infinity.
|
|
178
|
+
*
|
|
179
|
+
* @default Infinity
|
|
180
|
+
* @type {number}
|
|
181
|
+
* @memberof OrbitControlsProps
|
|
182
|
+
* @see https://threejs.org/docs/index.html?q=orbi#examples/en/controls/OrbitControls.maxZoom
|
|
183
|
+
*/
|
|
184
|
+
maxZoom?: number;
|
|
185
|
+
touches?: {
|
|
186
|
+
ONE?: number | undefined;
|
|
187
|
+
TWO?: number | undefined;
|
|
188
|
+
};
|
|
189
|
+
/**
|
|
190
|
+
* Whether to enable zooming.
|
|
191
|
+
*
|
|
192
|
+
* @default true
|
|
193
|
+
* @type {boolean}
|
|
194
|
+
* @memberof OrbitControlsProps
|
|
195
|
+
* @see https://threejs.org/docs/#examples/en/controls/OrbitControls.enableZoom
|
|
196
|
+
*/
|
|
197
|
+
enableZoom?: boolean;
|
|
198
|
+
/**
|
|
199
|
+
* How fast to zoom in and out. Default is 1.
|
|
200
|
+
*
|
|
201
|
+
* @default 1
|
|
202
|
+
* @type {number}
|
|
203
|
+
* @memberof OrbitControlsProps
|
|
204
|
+
* @see https://threejs.org/docs/#examples/en/controls/OrbitControls.zoomSpeed
|
|
205
|
+
*/
|
|
206
|
+
zoomSpeed?: number;
|
|
207
|
+
/**
|
|
208
|
+
* Whether to enable rotating.
|
|
209
|
+
*
|
|
210
|
+
* @default true
|
|
211
|
+
* @type {boolean}
|
|
212
|
+
* @memberof OrbitControlsProps
|
|
213
|
+
* @see https://threejs.org/docs/#examples/en/controls/OrbitControls.enableRotate
|
|
214
|
+
*/
|
|
215
|
+
enableRotate?: boolean;
|
|
216
|
+
/**
|
|
217
|
+
* How fast to rotate around the target. Default is 1.
|
|
218
|
+
*
|
|
219
|
+
* @default 1
|
|
220
|
+
* @type {number}
|
|
221
|
+
* @memberof OrbitControlsProps
|
|
222
|
+
* @see https://threejs.org/docs/#examples/en/controls/OrbitControls.rotateSpeed
|
|
223
|
+
*/
|
|
224
|
+
rotateSpeed?: number;
|
|
225
|
+
}
|
|
226
|
+
declare const _default: import('vue').DefineComponent<OrbitControlsProps, {
|
|
227
|
+
instance: import('vue').ShallowRef<OrbitControls | null, OrbitControls | null>;
|
|
228
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
229
|
+
end: (...args: any[]) => void;
|
|
230
|
+
start: (...args: any[]) => void;
|
|
231
|
+
change: (...args: any[]) => void;
|
|
232
|
+
}, string, import('vue').PublicProps, Readonly<OrbitControlsProps> & Readonly<{
|
|
233
|
+
onEnd?: ((...args: any[]) => any) | undefined;
|
|
234
|
+
onStart?: ((...args: any[]) => any) | undefined;
|
|
235
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
236
|
+
}>, {
|
|
237
|
+
maxDistance: number;
|
|
238
|
+
target: TresVector3;
|
|
239
|
+
touches: {
|
|
240
|
+
ONE?: number | undefined;
|
|
241
|
+
TWO?: number | undefined;
|
|
242
|
+
};
|
|
243
|
+
makeDefault: boolean;
|
|
244
|
+
minPolarAngle: number;
|
|
245
|
+
maxPolarAngle: number;
|
|
246
|
+
minAzimuthAngle: number;
|
|
247
|
+
maxAzimuthAngle: number;
|
|
248
|
+
minDistance: number;
|
|
249
|
+
minZoom: number;
|
|
250
|
+
maxZoom: number;
|
|
251
|
+
enableDamping: boolean;
|
|
252
|
+
dampingFactor: number;
|
|
253
|
+
autoRotate: boolean;
|
|
254
|
+
autoRotateSpeed: number;
|
|
255
|
+
enablePan: boolean;
|
|
256
|
+
keyPanSpeed: number;
|
|
257
|
+
enableZoom: boolean;
|
|
258
|
+
zoomSpeed: number;
|
|
259
|
+
enableRotate: boolean;
|
|
260
|
+
rotateSpeed: number;
|
|
261
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
262
|
+
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { TresControl } from '@tresjs/core';
|
|
2
1
|
import { Camera } from 'three';
|
|
3
2
|
export interface PointerLockControlsProps {
|
|
4
3
|
/**
|
|
@@ -37,7 +36,7 @@ export interface PointerLockControlsProps {
|
|
|
37
36
|
selector?: string;
|
|
38
37
|
}
|
|
39
38
|
declare const _default: import('vue').DefineComponent<PointerLockControlsProps, {
|
|
40
|
-
instance: import('vue').Ref<TresControl | null, TresControl | null>;
|
|
39
|
+
instance: import('vue').Ref<import('@tresjs/core').TresControl | null, import('@tresjs/core').TresControl | null>;
|
|
41
40
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
42
41
|
change: (...args: any[]) => void;
|
|
43
42
|
isLock: (...args: any[]) => void;
|
|
@@ -19,7 +19,7 @@ export interface ScrollControlsProps {
|
|
|
19
19
|
* The smooth factor of the scrolling.
|
|
20
20
|
*
|
|
21
21
|
* @type {number}
|
|
22
|
-
* @default 0.
|
|
22
|
+
* @default 0.1
|
|
23
23
|
* @memberof ScrollControlsProps
|
|
24
24
|
*/
|
|
25
25
|
smoothScroll?: number;
|
|
@@ -41,8 +41,22 @@ export interface ScrollControlsProps {
|
|
|
41
41
|
htmlScroll?: boolean;
|
|
42
42
|
}
|
|
43
43
|
declare function __VLS_template(): {
|
|
44
|
-
|
|
44
|
+
slots: {
|
|
45
|
+
default?(_: {}): any;
|
|
46
|
+
};
|
|
47
|
+
refs: {
|
|
48
|
+
wrapperRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Group<import('three').Object3DEventMap>, typeof import('three').Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
49
|
+
P: {};
|
|
50
|
+
B: {};
|
|
51
|
+
D: {};
|
|
52
|
+
C: {};
|
|
53
|
+
M: {};
|
|
54
|
+
Defaults: {};
|
|
55
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Group<import('three').Object3DEventMap>, typeof import('three').Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
56
|
+
};
|
|
57
|
+
attrs: Partial<{}>;
|
|
45
58
|
};
|
|
59
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
46
60
|
declare const __VLS_component: import('vue').DefineComponent<{
|
|
47
61
|
pages?: number;
|
|
48
62
|
distance?: number;
|
|
@@ -50,7 +64,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
50
64
|
horizontal?: boolean;
|
|
51
65
|
htmlScroll?: boolean;
|
|
52
66
|
}, {
|
|
53
|
-
instance: import('vue').ShallowRef<any>;
|
|
67
|
+
instance: import('vue').ShallowRef<any, any>;
|
|
54
68
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
55
69
|
"update:modelValue": (...args: any[]) => void;
|
|
56
70
|
}, string, import('vue').PublicProps, Readonly<{
|
|
@@ -68,7 +82,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
68
82
|
horizontal: boolean;
|
|
69
83
|
htmlScroll: boolean;
|
|
70
84
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
71
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
85
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
72
86
|
export default _default;
|
|
73
87
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
74
88
|
new (): {
|
|
@@ -16,7 +16,7 @@ export interface TransformControlsProps {
|
|
|
16
16
|
showZ?: boolean;
|
|
17
17
|
}
|
|
18
18
|
declare const _default: import('vue').DefineComponent<TransformControlsProps, {
|
|
19
|
-
instance: import('vue').ShallowRef<TransformControls<Camera> | null>;
|
|
19
|
+
instance: import('vue').ShallowRef<TransformControls<Camera> | null, TransformControls<Camera> | null>;
|
|
20
20
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
21
|
change: (...args: any[]) => void;
|
|
22
22
|
dragging: (...args: any[]) => void;
|
|
@@ -91,7 +91,7 @@ interface SVGProps {
|
|
|
91
91
|
depth?: 'renderOrder' | 'flat' | 'offsetZ' | number;
|
|
92
92
|
}
|
|
93
93
|
declare const _default: import('vue').DefineComponent<SVGProps, {
|
|
94
|
-
instance: import('vue').ShallowRef<any>;
|
|
94
|
+
instance: import('vue').ShallowRef<any, any>;
|
|
95
95
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SVGProps> & Readonly<{}>, {
|
|
96
96
|
depth: "renderOrder" | "flat" | "offsetZ" | number;
|
|
97
97
|
skipStrokes: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Group } from 'three';
|
|
2
2
|
/**
|
|
3
3
|
* Loads an FBX file and returns a THREE.Object3D.
|
|
4
4
|
*
|
|
5
5
|
* @export
|
|
6
6
|
* @param {(string | string[])} path
|
|
7
|
-
* @return {*} {Promise<
|
|
7
|
+
* @return {*} {Promise<Group>}
|
|
8
8
|
*/
|
|
9
|
-
export declare function useFBX
|
|
9
|
+
export declare function useFBX<T extends string | string[]>(path: T): Promise<T extends string[] ? Group[] : Group>;
|
|
@@ -23,18 +23,17 @@ export interface GLTFResult {
|
|
|
23
23
|
materials: Record<string, Material>;
|
|
24
24
|
scene: Scene;
|
|
25
25
|
}
|
|
26
|
-
export interface
|
|
26
|
+
export interface TresGLTFLoaderType extends TresLoader<GLTF> {
|
|
27
27
|
setDRACOLoader?: (dracoLoader: DRACOLoader) => void;
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
30
|
* Loads a GLTF file and returns a THREE.Object3D.
|
|
31
31
|
*
|
|
32
32
|
* @export
|
|
33
|
-
* @
|
|
34
|
-
* @param {
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* @
|
|
38
|
-
* @return {*} {Promise<GLTFResult>}
|
|
33
|
+
* @template T
|
|
34
|
+
* @param {T} path - Path or array of paths to the GLTF file(s)
|
|
35
|
+
* @param {GLTFLoaderOptions} [options] - Options for the loader
|
|
36
|
+
* @param {(loader: TresGLTFLoaderType) => void} [extendLoader] - Function to extend the loader
|
|
37
|
+
* @returns {Promise<T extends string[] ? GLTFResult[] : GLTFResult>} Promise that resolves with the loaded model(s)
|
|
39
38
|
*/
|
|
40
|
-
export declare function useGLTF<T extends string | string[]>(path: T, options?: GLTFLoaderOptions, extendLoader?: (loader:
|
|
39
|
+
export declare function useGLTF<T extends string | string[]>(path: T, options?: GLTFLoaderOptions, extendLoader?: (loader: TresGLTFLoaderType) => void): Promise<T extends string[] ? GLTFResult[] : GLTFResult>;
|
|
@@ -9,6 +9,6 @@ interface CustomShaderMaterialProps {
|
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
declare const _default: import('vue').DefineComponent<CustomShaderMaterialProps, {
|
|
12
|
-
instance: import('vue').ShallowRef<null>;
|
|
12
|
+
instance: import('vue').ShallowRef<null, null>;
|
|
13
13
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CustomShaderMaterialProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
export default _default;
|
|
@@ -14,7 +14,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
14
14
|
hologramColor?: TresColor;
|
|
15
15
|
side?: Side;
|
|
16
16
|
}, {
|
|
17
|
-
root: import('vue').ShallowRef<any>;
|
|
17
|
+
root: import('vue').ShallowRef<any, any>;
|
|
18
18
|
constructor: typeof HolographicMaterial;
|
|
19
19
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
20
20
|
fresnelAmount?: number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { default as CustomShaderMaterial } from './customShaderMaterial/index.vue';
|
|
2
2
|
import { default as HolographicMaterial } from './holographicMaterial/index.vue';
|
|
3
|
+
import { default as MeshDiscardMaterial } from './meshDiscardMaterial/index.vue';
|
|
3
4
|
import { default as MeshGlassMaterial } from './meshGlassMaterial/index.vue';
|
|
4
5
|
import { default as MeshReflectionMaterial } from './meshReflectionMaterial/index.vue';
|
|
5
6
|
import { default as MeshWobbleMaterial } from './meshWobbleMaterial/index.vue';
|
|
6
|
-
export { CustomShaderMaterial, HolographicMaterial, MeshGlassMaterial, MeshReflectionMaterial, MeshWobbleMaterial };
|
|
7
|
+
export { CustomShaderMaterial, HolographicMaterial, MeshDiscardMaterial, MeshGlassMaterial, MeshReflectionMaterial, MeshWobbleMaterial };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
+
instance: import('vue').ShallowRef<any, any>;
|
|
3
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
4
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
-
instance: import('vue').ShallowRef<any>;
|
|
2
|
+
instance: import('vue').ShallowRef<any, any>;
|
|
3
3
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
4
4
|
export default _default;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { MeshStandardMaterial,
|
|
2
|
-
import { Color } from 'three/src/math/Color.js';
|
|
3
|
-
import { Vector2 } from 'three/src/math/Vector2.js';
|
|
1
|
+
import { MeshStandardMaterialParameters, Color, MeshStandardMaterial, Vector2 } from 'three';
|
|
4
2
|
declare class MeshGlassMaterial extends MeshStandardMaterial {
|
|
5
3
|
isMeshPhysicalMaterial: boolean;
|
|
6
4
|
clearcoatMap: null;
|
|
@@ -68,7 +68,7 @@ export interface MeshReflectionMaterialProps {
|
|
|
68
68
|
fog?: boolean;
|
|
69
69
|
}
|
|
70
70
|
declare const _default: import('vue').DefineComponent<MeshReflectionMaterialProps, {
|
|
71
|
-
instance: import('vue').ShallowRef<any>;
|
|
71
|
+
instance: import('vue').ShallowRef<any, any>;
|
|
72
72
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MeshReflectionMaterialProps> & Readonly<{}>, {
|
|
73
73
|
color: TresColor;
|
|
74
74
|
fog: boolean;
|
|
@@ -2,7 +2,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
2
2
|
speed?: number;
|
|
3
3
|
factor?: number;
|
|
4
4
|
}, {
|
|
5
|
-
instance: import('vue').ShallowRef<any>;
|
|
5
|
+
instance: import('vue').ShallowRef<any, any>;
|
|
6
6
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
7
7
|
speed?: number;
|
|
8
8
|
factor?: number;
|
|
@@ -17,7 +17,29 @@ export interface HTMLProps {
|
|
|
17
17
|
occlude?: TresObject3D | null | (TresObject3D | null)[] | boolean | 'raycast' | 'blending';
|
|
18
18
|
}
|
|
19
19
|
type PointerEventsProperties = 'auto' | 'none' | 'visiblePainted' | 'visibleFill' | 'visibleStroke' | 'visible' | 'painted' | 'fill' | 'stroke' | 'all' | 'inherit';
|
|
20
|
-
declare function __VLS_template():
|
|
20
|
+
declare function __VLS_template(): {
|
|
21
|
+
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
22
|
+
refs: {
|
|
23
|
+
groupRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Group<import('three').Object3DEventMap>, typeof import('three').Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
24
|
+
P: {};
|
|
25
|
+
B: {};
|
|
26
|
+
D: {};
|
|
27
|
+
C: {};
|
|
28
|
+
M: {};
|
|
29
|
+
Defaults: {};
|
|
30
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Group<import('three').Object3DEventMap>, typeof import('three').Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
31
|
+
meshRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
32
|
+
P: {};
|
|
33
|
+
B: {};
|
|
34
|
+
D: {};
|
|
35
|
+
C: {};
|
|
36
|
+
M: {};
|
|
37
|
+
Defaults: {};
|
|
38
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
39
|
+
};
|
|
40
|
+
attrs: Partial<{}>;
|
|
41
|
+
};
|
|
42
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
43
|
declare const __VLS_component: import('vue').DefineComponent<HTMLProps, {
|
|
22
44
|
instance: import('vue').Ref<TresObject3D | undefined, TresObject3D | undefined>;
|
|
23
45
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -33,7 +55,7 @@ declare const __VLS_component: import('vue').DefineComponent<HTMLProps, {
|
|
|
33
55
|
pointerEvents: PointerEventsProperties;
|
|
34
56
|
zIndexRange: Array<number>;
|
|
35
57
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
36
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
58
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
37
59
|
export default _default;
|
|
38
60
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
39
61
|
new (): {
|
|
@@ -20,15 +20,29 @@ export interface BoxProps {
|
|
|
20
20
|
color?: TresColor;
|
|
21
21
|
}
|
|
22
22
|
declare function __VLS_template(): {
|
|
23
|
-
|
|
23
|
+
slots: {
|
|
24
|
+
default?(_: {}): any;
|
|
25
|
+
};
|
|
26
|
+
refs: {
|
|
27
|
+
boxRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
28
|
+
P: {};
|
|
29
|
+
B: {};
|
|
30
|
+
D: {};
|
|
31
|
+
C: {};
|
|
32
|
+
M: {};
|
|
33
|
+
Defaults: {};
|
|
34
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
35
|
+
};
|
|
36
|
+
attrs: Partial<{}>;
|
|
24
37
|
};
|
|
38
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
25
39
|
declare const __VLS_component: import('vue').DefineComponent<BoxProps, {
|
|
26
|
-
instance: import('vue').ShallowRef<any>;
|
|
40
|
+
instance: import('vue').ShallowRef<any, any>;
|
|
27
41
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BoxProps> & Readonly<{}>, {
|
|
28
42
|
color: TresColor;
|
|
29
43
|
args: ConstructorParameters<typeof BoxGeometry>;
|
|
30
44
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
31
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
45
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
32
46
|
export default _default;
|
|
33
47
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
34
48
|
new (): {
|
|
@@ -20,7 +20,7 @@ interface CatmullRomCurve3Props {
|
|
|
20
20
|
worldUnits?: boolean;
|
|
21
21
|
}
|
|
22
22
|
declare const _default: import('vue').DefineComponent<CatmullRomCurve3Props, {
|
|
23
|
-
instance: import('vue').ShallowRef<any>;
|
|
23
|
+
instance: import('vue').ShallowRef<any, any>;
|
|
24
24
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CatmullRomCurve3Props> & Readonly<{}>, {
|
|
25
25
|
closed: boolean;
|
|
26
26
|
curveType: CurveType;
|
|
@@ -19,15 +19,29 @@ export interface CircleProps {
|
|
|
19
19
|
color?: TresColor;
|
|
20
20
|
}
|
|
21
21
|
declare function __VLS_template(): {
|
|
22
|
-
|
|
22
|
+
slots: {
|
|
23
|
+
default?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
refs: {
|
|
26
|
+
circleRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
27
|
+
P: {};
|
|
28
|
+
B: {};
|
|
29
|
+
D: {};
|
|
30
|
+
C: {};
|
|
31
|
+
M: {};
|
|
32
|
+
Defaults: {};
|
|
33
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
34
|
+
};
|
|
35
|
+
attrs: Partial<{}>;
|
|
23
36
|
};
|
|
37
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
24
38
|
declare const __VLS_component: import('vue').DefineComponent<CircleProps, {
|
|
25
|
-
instance: import('vue').ShallowRef<any>;
|
|
39
|
+
instance: import('vue').ShallowRef<any, any>;
|
|
26
40
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CircleProps> & Readonly<{}>, {
|
|
27
41
|
color: TresColor;
|
|
28
42
|
args: ConstructorParameters<typeof CircleGeometry>;
|
|
29
43
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
30
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
44
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
31
45
|
export default _default;
|
|
32
46
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
47
|
new (): {
|
|
@@ -19,15 +19,29 @@ export interface ConeProps {
|
|
|
19
19
|
color?: TresColor;
|
|
20
20
|
}
|
|
21
21
|
declare function __VLS_template(): {
|
|
22
|
-
|
|
22
|
+
slots: {
|
|
23
|
+
default?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
refs: {
|
|
26
|
+
coneRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
27
|
+
P: {};
|
|
28
|
+
B: {};
|
|
29
|
+
D: {};
|
|
30
|
+
C: {};
|
|
31
|
+
M: {};
|
|
32
|
+
Defaults: {};
|
|
33
|
+
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
34
|
+
};
|
|
35
|
+
attrs: Partial<{}>;
|
|
23
36
|
};
|
|
37
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
24
38
|
declare const __VLS_component: import('vue').DefineComponent<ConeProps, {
|
|
25
|
-
instance: import('vue').ShallowRef<any>;
|
|
39
|
+
instance: import('vue').ShallowRef<any, any>;
|
|
26
40
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ConeProps> & Readonly<{}>, {
|
|
27
41
|
color: TresColor;
|
|
28
42
|
args: ConstructorParameters<typeof ConeGeometry>;
|
|
29
43
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
30
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
44
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
31
45
|
export default _default;
|
|
32
46
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
47
|
new (): {
|