@tresjs/cientos 4.0.0-next.0 → 4.0.0-rc.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/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/GlobalAudio.d.ts +1 -1
- package/dist/core/abstractions/Lensflare/RandUtils.d.ts +2 -2
- package/dist/core/abstractions/Lensflare/component.vue.d.ts +22 -21
- package/dist/core/abstractions/Lensflare/constants.d.ts +2 -1
- package/dist/core/abstractions/Lensflare/index.d.ts +5 -4
- package/dist/core/abstractions/Levioso.vue.d.ts +25 -23
- package/dist/core/abstractions/MouseParallax.vue.d.ts +31 -20
- package/dist/core/abstractions/PositionalAudio.vue.d.ts +69 -0
- package/dist/core/abstractions/Reflector.vue.d.ts +21 -18
- package/dist/core/abstractions/Text3D.vue.d.ts +138 -15
- package/dist/core/abstractions/index.d.ts +11 -8
- package/dist/core/abstractions/useAnimations.d.ts +4 -4
- package/dist/core/abstractions/useFBO/component.vue.d.ts +15 -14
- package/dist/core/abstractions/useFBO/index.d.ts +5 -5
- package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +14 -11
- package/dist/core/abstractions/useSurfaceSampler/index.d.ts +170 -142
- package/dist/core/controls/CameraControls.vue.d.ts +4147 -3862
- package/dist/core/controls/KeyboardControls.vue.d.ts +51 -97
- package/dist/core/controls/MapControls.vue.d.ts +9507 -13
- package/dist/core/controls/OrbitControls.vue.d.ts +5906 -5660
- package/dist/core/controls/PointerLockControls.vue.d.ts +15 -14
- package/dist/core/controls/ScrollControls.vue.d.ts +34 -30
- package/dist/core/controls/TransformControls.vue.d.ts +20 -14
- package/dist/core/controls/index.d.ts +9 -8
- package/dist/core/index.d.ts +0 -1
- package/dist/core/loaders/SVG/component.vue.d.ts +23 -22
- package/dist/core/loaders/index.d.ts +4 -3
- package/dist/core/loaders/useFBX/component.vue.d.ts +18 -18
- package/dist/core/loaders/useFBX/index.d.ts +2 -1
- package/dist/core/loaders/useGLTF/component.vue.d.ts +25 -25
- package/dist/core/loaders/useGLTF/index.d.ts +14 -9
- package/dist/core/loaders/useProgress.d.ts +2 -1
- package/dist/core/loaders/useVideoTexture.d.ts +1 -0
- package/dist/core/materials/customShaderMaterial/index.vue.d.ts +7 -5
- package/dist/core/materials/holographicMaterial/HolographicMaterialParameters.d.ts +41 -0
- package/dist/core/materials/holographicMaterial/index.vue.d.ts +86 -0
- package/dist/core/materials/holographicMaterial/material.d.ts +27 -0
- package/dist/core/materials/index.d.ts +7 -5
- package/dist/core/materials/meshGlassMaterial/index.vue.d.ts +3 -3
- package/dist/core/materials/meshGlassMaterial/material.d.ts +2 -2
- package/dist/core/materials/{blurPass.d.ts → meshReflectionMaterial/BlurPass.d.ts} +8 -6
- package/dist/core/materials/{convolutionMaterial.d.ts → meshReflectionMaterial/ConvolutionMaterial.d.ts} +1 -0
- package/dist/core/materials/meshReflectionMaterial/index.vue.d.ts +180 -49
- package/dist/core/materials/meshReflectionMaterial/material.d.ts +33 -36
- package/dist/core/materials/meshWobbleMaterial/index.vue.d.ts +17 -15
- package/dist/core/materials/meshWobbleMaterial/material.d.ts +2 -2
- package/dist/core/misc/BakeShadows.d.ts +1 -1
- package/dist/core/misc/Stats.d.ts +2 -2
- package/dist/core/misc/StatsGl.d.ts +1 -1
- package/dist/core/misc/html/HTML.vue.d.ts +22 -17
- package/dist/core/misc/html/utils.d.ts +3 -3
- package/dist/core/misc/index.d.ts +3 -3
- package/dist/core/misc/useGLTFExporter.d.ts +2 -1
- package/dist/core/shapes/Box.vue.d.ts +22 -19
- package/dist/core/shapes/CatmullRomCurve3.vue.d.ts +15 -12
- package/dist/core/shapes/Circle.vue.d.ts +22 -19
- package/dist/core/shapes/Cone.vue.d.ts +22 -19
- package/dist/core/shapes/Cylinder.vue.d.ts +60 -0
- package/dist/core/shapes/Dodecahedron.vue.d.ts +22 -19
- package/dist/core/shapes/Icosahedron.vue.d.ts +22 -19
- package/dist/core/shapes/Line2.vue.d.ts +16 -13
- package/dist/core/shapes/Octahedron.vue.d.ts +22 -19
- package/dist/core/shapes/Plane.vue.d.ts +22 -19
- package/dist/core/shapes/Ring.vue.d.ts +22 -19
- package/dist/core/shapes/RoundedBox.vue.d.ts +22 -19
- package/dist/core/shapes/Sphere.vue.d.ts +22 -19
- package/dist/core/shapes/Superformula.vue.d.ts +35 -32
- package/dist/core/shapes/Tetrahedron.vue.d.ts +22 -19
- package/dist/core/shapes/Torus.vue.d.ts +22 -19
- package/dist/core/shapes/TorusKnot.vue.d.ts +22 -19
- package/dist/core/shapes/Tube.vue.d.ts +22 -20
- package/dist/core/shapes/index.d.ts +20 -18
- package/dist/core/staging/Backdrop.vue.d.ts +18 -14
- package/dist/core/staging/ContactShadows.vue.d.ts +168 -0
- package/dist/core/staging/Fit.vue.d.ts +64 -0
- package/dist/core/staging/Ocean.vue.d.ts +26 -23
- package/dist/core/staging/Precipitation.vue.d.ts +21 -18
- package/dist/core/staging/Sky.vue.d.ts +14 -13
- package/dist/core/staging/Smoke.vue.d.ts +18 -17
- package/dist/core/staging/Sparkles/ShaderData.d.ts +4 -3
- package/dist/core/staging/Sparkles/ShaderDataBuilder.d.ts +7 -7
- package/dist/core/staging/Sparkles/component.vue.d.ts +33 -31
- package/dist/core/staging/Sparkles/useEmptyDataTexture.d.ts +1 -0
- package/dist/core/staging/Stars.vue.d.ts +16 -16
- package/dist/core/staging/index.d.ts +13 -10
- package/dist/core/staging/useEnvironment/component.vue.d.ts +64 -0
- package/dist/core/staging/useEnvironment/const.d.ts +28 -0
- package/dist/core/staging/useEnvironment/envSence.d.ts +9 -0
- package/dist/core/staging/useEnvironment/index.d.ts +5 -3
- package/dist/core/staging/useEnvironment/lightformer/index.vue.d.ts +56 -0
- package/dist/trescientos.js +7318 -6360
- package/dist/trescientos.umd.cjs +566 -428
- package/dist/utils/Gradient.d.ts +3 -2
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/types.d.ts +4 -0
- package/package.json +29 -29
- package/dist/core/directives/index.d.ts +0 -5
- package/dist/core/directives/vAlwaysLookAt.d.ts +0 -4
- package/dist/core/directives/vDistanceTo.d.ts +0 -4
- package/dist/core/directives/vLightHelper.d.ts +0 -5
- package/dist/core/directives/vLog.d.ts +0 -3
- package/dist/core/misc/useTweakPane/index.d.ts +0 -10
|
@@ -114,7 +114,10 @@ export interface Text3DProps {
|
|
|
114
114
|
*/
|
|
115
115
|
needUpdates?: boolean;
|
|
116
116
|
}
|
|
117
|
-
declare
|
|
117
|
+
declare function __VLS_template(): {
|
|
118
|
+
default?(_: {}): any;
|
|
119
|
+
};
|
|
120
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Text3DProps>, {
|
|
118
121
|
size: number;
|
|
119
122
|
height: number;
|
|
120
123
|
curveSegments: number;
|
|
@@ -126,8 +129,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
126
129
|
center: boolean;
|
|
127
130
|
needUpdates: boolean;
|
|
128
131
|
}>, {
|
|
129
|
-
|
|
130
|
-
}, unknown, {}, {}, import(
|
|
132
|
+
instance: import('vue').ShallowRef<any>;
|
|
133
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Text3DProps>, {
|
|
131
134
|
size: number;
|
|
132
135
|
height: number;
|
|
133
136
|
curveSegments: number;
|
|
@@ -139,29 +142,140 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
139
142
|
center: boolean;
|
|
140
143
|
needUpdates: boolean;
|
|
141
144
|
}>>>, {
|
|
142
|
-
height: number;
|
|
143
|
-
center: boolean;
|
|
144
145
|
size: number;
|
|
146
|
+
height: number;
|
|
145
147
|
curveSegments: number;
|
|
146
148
|
bevelEnabled: boolean;
|
|
147
149
|
bevelThickness: number;
|
|
148
150
|
bevelSize: number;
|
|
149
151
|
bevelOffset: number;
|
|
150
152
|
bevelSegments: number;
|
|
153
|
+
center: boolean;
|
|
151
154
|
needUpdates: boolean;
|
|
152
|
-
}, {}
|
|
153
|
-
|
|
154
|
-
}>;
|
|
155
|
+
}, {}>;
|
|
156
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
155
157
|
export default _default;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
export declare const __VLS_globalTypesStart: {};
|
|
159
|
+
declare global {
|
|
160
|
+
type __VLS_IntrinsicElements = __VLS_PickNotAny<import('vue/jsx-runtime').JSX.IntrinsicElements, __VLS_PickNotAny<globalThis.JSX.IntrinsicElements, Record<string, any>>>;
|
|
161
|
+
type __VLS_Element = __VLS_PickNotAny<import('vue/jsx-runtime').JSX.Element, globalThis.JSX.Element>;
|
|
162
|
+
type __VLS_GlobalComponents = __VLS_PickNotAny<import('vue').GlobalComponents, {}> & __VLS_PickNotAny<import('@vue/runtime-core').GlobalComponents, {}> & __VLS_PickNotAny<import('@vue/runtime-dom').GlobalComponents, {}> & Pick<typeof import('vue'), 'Transition' | 'TransitionGroup' | 'KeepAlive' | 'Suspense' | 'Teleport'>;
|
|
163
|
+
type __VLS_BuiltInPublicProps = __VLS_PickNotAny<import('vue').VNodeProps, {}> & __VLS_PickNotAny<import('vue').AllowedComponentProps, {}> & __VLS_PickNotAny<import('vue').ComponentCustomProps, {}>;
|
|
164
|
+
type __VLS_IsAny<T> = 0 extends 1 & T ? true : false;
|
|
165
|
+
type __VLS_PickNotAny<A, B> = __VLS_IsAny<A> extends true ? B : A;
|
|
166
|
+
const __VLS_intrinsicElements: __VLS_IntrinsicElements;
|
|
167
|
+
function __VLS_getVForSourceType(source: number): [number, number, number][];
|
|
168
|
+
function __VLS_getVForSourceType(source: string): [string, number, number][];
|
|
169
|
+
function __VLS_getVForSourceType<T extends any[]>(source: T): [
|
|
170
|
+
item: T[number],
|
|
171
|
+
key: number,
|
|
172
|
+
index: number
|
|
173
|
+
][];
|
|
174
|
+
function __VLS_getVForSourceType<T extends {
|
|
175
|
+
[Symbol.iterator](): Iterator<any>;
|
|
176
|
+
}>(source: T): [
|
|
177
|
+
item: T extends {
|
|
178
|
+
[Symbol.iterator](): Iterator<infer T1>;
|
|
179
|
+
} ? T1 : never,
|
|
180
|
+
key: number,
|
|
181
|
+
index: undefined
|
|
182
|
+
][];
|
|
183
|
+
function __VLS_getVForSourceType<T extends number | {
|
|
184
|
+
[Symbol.iterator](): Iterator<any>;
|
|
185
|
+
}>(source: T): [
|
|
186
|
+
item: number | (Exclude<T, number> extends {
|
|
187
|
+
[Symbol.iterator](): Iterator<infer T1>;
|
|
188
|
+
} ? T1 : never),
|
|
189
|
+
key: number,
|
|
190
|
+
index: undefined
|
|
191
|
+
][];
|
|
192
|
+
function __VLS_getVForSourceType<T>(source: T): [
|
|
193
|
+
item: T[keyof T],
|
|
194
|
+
key: keyof T,
|
|
195
|
+
index: number
|
|
196
|
+
][];
|
|
197
|
+
function __VLS_getSlotParams<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>;
|
|
198
|
+
function __VLS_getSlotParam<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>[0];
|
|
199
|
+
function __VLS_directiveFunction<T>(dir: T): T extends import('vue').ObjectDirective<infer E, infer V> | import('vue').FunctionDirective<infer E, infer V> ? (value: V) => void : T;
|
|
200
|
+
function __VLS_withScope<T, K>(ctx: T, scope: K): ctx is T & K;
|
|
201
|
+
function __VLS_makeOptional<T>(t: T): {
|
|
202
|
+
[K in keyof T]?: T[K];
|
|
203
|
+
};
|
|
204
|
+
type __VLS_SelfComponent<N, C> = string extends N ? {} : N extends string ? {
|
|
205
|
+
[P in N]: C;
|
|
206
|
+
} : {};
|
|
207
|
+
type __VLS_WithComponent<N0 extends string, LocalComponents, N1 extends string, N2 extends string, N3 extends string> = N1 extends keyof LocalComponents ? N1 extends N0 ? Pick<LocalComponents, N0 extends keyof LocalComponents ? N0 : never> : {
|
|
208
|
+
[K in N0]: LocalComponents[N1];
|
|
209
|
+
} : N2 extends keyof LocalComponents ? N2 extends N0 ? Pick<LocalComponents, N0 extends keyof LocalComponents ? N0 : never> : {
|
|
210
|
+
[K in N0]: LocalComponents[N2];
|
|
211
|
+
} : N3 extends keyof LocalComponents ? N3 extends N0 ? Pick<LocalComponents, N0 extends keyof LocalComponents ? N0 : never> : {
|
|
212
|
+
[K in N0]: LocalComponents[N3];
|
|
213
|
+
} : N1 extends keyof __VLS_GlobalComponents ? N1 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : {
|
|
214
|
+
[K in N0]: __VLS_GlobalComponents[N1];
|
|
215
|
+
} : N2 extends keyof __VLS_GlobalComponents ? N2 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : {
|
|
216
|
+
[K in N0]: __VLS_GlobalComponents[N2];
|
|
217
|
+
} : N3 extends keyof __VLS_GlobalComponents ? N3 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : {
|
|
218
|
+
[K in N0]: __VLS_GlobalComponents[N3];
|
|
160
219
|
} : {
|
|
161
|
-
|
|
162
|
-
required: true;
|
|
220
|
+
[K in N0]: unknown;
|
|
163
221
|
};
|
|
164
|
-
|
|
222
|
+
function __VLS_asFunctionalComponent<T, K = T extends new (...args: any) => any ? InstanceType<T> : unknown>(t: T, instance?: K): T extends new (...args: any) => any ? (props: (K extends {
|
|
223
|
+
$props: infer Props;
|
|
224
|
+
} ? Props : any) & Record<string, unknown>, ctx?: any) => __VLS_Element & {
|
|
225
|
+
__ctx?: {
|
|
226
|
+
attrs?: any;
|
|
227
|
+
slots?: K extends {
|
|
228
|
+
$slots: infer Slots;
|
|
229
|
+
} ? Slots : any;
|
|
230
|
+
emit?: K extends {
|
|
231
|
+
$emit: infer Emit;
|
|
232
|
+
} ? Emit : any;
|
|
233
|
+
} & {
|
|
234
|
+
props?: (K extends {
|
|
235
|
+
$props: infer Props;
|
|
236
|
+
} ? Props : any) & Record<string, unknown>;
|
|
237
|
+
expose?(exposed: K): void;
|
|
238
|
+
};
|
|
239
|
+
} : T extends () => any ? (props: {}, ctx?: any) => ReturnType<T> : T extends (...args: any) => any ? T : (_: {} & Record<string, unknown>, ctx?: any) => {
|
|
240
|
+
__ctx?: {
|
|
241
|
+
attrs?: any;
|
|
242
|
+
expose?: any;
|
|
243
|
+
slots?: any;
|
|
244
|
+
emit?: any;
|
|
245
|
+
props?: {} & Record<string, unknown>;
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
function __VLS_elementAsFunction<T>(tag: T, endTag?: T): (_: T & Record<string, unknown>) => void;
|
|
249
|
+
function __VLS_functionalComponentArgsRest<T extends (...args: any) => any>(t: T): Parameters<T>['length'] extends 2 ? [any] : [];
|
|
250
|
+
function __VLS_pickFunctionalComponentCtx<T, K>(comp: T, compInstance: K): __VLS_PickNotAny<'__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends {
|
|
251
|
+
__ctx?: infer Ctx;
|
|
252
|
+
} ? Ctx : never : any, T extends (props: any, ctx: infer Ctx) => any ? Ctx : any>;
|
|
253
|
+
type __VLS_FunctionalComponentProps<T, K> = '__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends {
|
|
254
|
+
__ctx?: {
|
|
255
|
+
props?: infer P;
|
|
256
|
+
};
|
|
257
|
+
} ? NonNullable<P> : never : T extends (props: infer P, ...args: any) => any ? P : {};
|
|
258
|
+
type __VLS_AsFunctionOrAny<F> = unknown extends F ? any : ((...args: any) => any) extends F ? F : any;
|
|
259
|
+
function __VLS_normalizeSlot<S>(s: S): S extends () => infer R ? (props: {}) => R : S;
|
|
260
|
+
/**
|
|
261
|
+
* emit
|
|
262
|
+
*/
|
|
263
|
+
type __VLS_UnionToIntersection<U> = (U extends unknown ? (arg: U) => unknown : never) extends ((arg: infer P) => unknown) ? P : never;
|
|
264
|
+
type __VLS_OverloadUnionInner<T, U = unknown> = U & T extends (...args: infer A) => infer R ? U extends T ? never : __VLS_OverloadUnionInner<T, Pick<T, keyof T> & U & ((...args: A) => R)> | ((...args: A) => R) : never;
|
|
265
|
+
type __VLS_OverloadUnion<T> = Exclude<__VLS_OverloadUnionInner<(() => never) & T>, T extends () => never ? never : () => never>;
|
|
266
|
+
type __VLS_ConstructorOverloads<T> = __VLS_OverloadUnion<T> extends infer F ? F extends (event: infer E, ...args: infer A) => any ? {
|
|
267
|
+
[K in E & string]: (...args: A) => void;
|
|
268
|
+
} : never : never;
|
|
269
|
+
type __VLS_NormalizeEmits<T> = __VLS_PrettifyGlobal<__VLS_UnionToIntersection<__VLS_ConstructorOverloads<T> & {
|
|
270
|
+
[K in keyof T]: T[K] extends any[] ? {
|
|
271
|
+
(...args: T[K]): void;
|
|
272
|
+
} : never;
|
|
273
|
+
}>>;
|
|
274
|
+
type __VLS_PrettifyGlobal<T> = {
|
|
275
|
+
[K in keyof T]: T[K];
|
|
276
|
+
} & {};
|
|
277
|
+
}
|
|
278
|
+
export declare const __VLS_globalTypesEnd: {};
|
|
165
279
|
type __VLS_WithDefaults<P, D> = {
|
|
166
280
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
167
281
|
default: D[K];
|
|
@@ -175,3 +289,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
175
289
|
$slots: S;
|
|
176
290
|
};
|
|
177
291
|
};
|
|
292
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
293
|
+
type __VLS_TypePropsToOption<T> = {
|
|
294
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
295
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
296
|
+
} : {
|
|
297
|
+
type: import('vue').PropType<T[K]>;
|
|
298
|
+
required: true;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import Text3D from './Text3D.vue';
|
|
1
|
+
import { default as Text3D } from './Text3D.vue';
|
|
2
2
|
import { useAnimations } from './useAnimations';
|
|
3
|
-
import Levioso from './Levioso.vue';
|
|
4
|
-
import Reflector from './Reflector.vue';
|
|
5
|
-
import MouseParallax from './MouseParallax.vue';
|
|
3
|
+
import { default as Levioso } from './Levioso.vue';
|
|
4
|
+
import { default as Reflector } from './Reflector.vue';
|
|
5
|
+
import { default as MouseParallax } from './MouseParallax.vue';
|
|
6
6
|
import { GlobalAudio } from './GlobalAudio';
|
|
7
|
-
import Lensflare from './Lensflare/component.vue';
|
|
8
|
-
import Fbo from './useFBO/component.vue';
|
|
9
|
-
import Sampler from './useSurfaceSampler/component.vue';
|
|
7
|
+
import { default as Lensflare } from './Lensflare/component.vue';
|
|
8
|
+
import { default as Fbo } from './useFBO/component.vue';
|
|
9
|
+
import { default as Sampler } from './useSurfaceSampler/component.vue';
|
|
10
|
+
import { default as AnimatedSprite } from './AnimatedSprite/component.vue';
|
|
11
|
+
import { default as PositionalAudio } from './PositionalAudio.vue';
|
|
12
|
+
|
|
10
13
|
export * from './useFBO/';
|
|
11
14
|
export * from './useSurfaceSampler';
|
|
12
15
|
export * from '../staging/useEnvironment';
|
|
13
|
-
export { Text3D, useAnimations, MouseParallax, Levioso, Reflector, Lensflare, GlobalAudio, Fbo, Sampler, };
|
|
16
|
+
export { Text3D, useAnimations, MouseParallax, Levioso, Reflector, Lensflare, GlobalAudio, Fbo, Sampler, AnimatedSprite, PositionalAudio, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { AnimationAction, AnimationClip, Object3D, Scene, AnimationMixer } from 'three';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
|
|
4
4
|
/**
|
|
5
5
|
* Creates an AnimationMixer and returns it.
|
|
6
6
|
*
|
|
@@ -11,7 +11,7 @@ import type { Ref } from 'vue';
|
|
|
11
11
|
* @return {*}
|
|
12
12
|
*/
|
|
13
13
|
export declare function useAnimations<T extends AnimationClip>(animations: T[], modelRef?: Scene | Ref<Object3D | undefined | null>): {
|
|
14
|
-
actions: import(
|
|
14
|
+
actions: import('vue').ShallowReactive<{
|
|
15
15
|
[key: string]: AnimationAction;
|
|
16
16
|
}>;
|
|
17
17
|
mixer: AnimationMixer;
|
|
@@ -1,26 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { FboOptions } from '.';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<FboOptions>, {
|
|
3
4
|
depth: boolean;
|
|
4
5
|
settings: undefined;
|
|
5
6
|
}>, {
|
|
6
|
-
|
|
7
|
-
}, unknown, {}, {}, import(
|
|
7
|
+
instance: import('vue').Ref<import('three').WebGLRenderTarget<import('three').Texture> | null>;
|
|
8
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<FboOptions>, {
|
|
8
9
|
depth: boolean;
|
|
9
10
|
settings: undefined;
|
|
10
11
|
}>>>, {
|
|
11
|
-
settings: import(
|
|
12
|
+
settings: import('three').RenderTargetOptions;
|
|
12
13
|
depth: boolean;
|
|
13
14
|
}, {}>;
|
|
14
15
|
export default _default;
|
|
15
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
16
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
17
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
18
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
19
|
-
} : {
|
|
20
|
-
type: import('vue').PropType<T[K]>;
|
|
21
|
-
required: true;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
16
|
type __VLS_WithDefaults<P, D> = {
|
|
25
17
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
26
18
|
default: D[K];
|
|
@@ -29,3 +21,12 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
29
21
|
type __VLS_Prettify<T> = {
|
|
30
22
|
[K in keyof T]: T[K];
|
|
31
23
|
} & {};
|
|
24
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
|
+
type __VLS_TypePropsToOption<T> = {
|
|
26
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
27
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
28
|
+
} : {
|
|
29
|
+
type: import('vue').PropType<T[K]>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { RenderTargetOptions, WebGLRenderTarget } from 'three';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
|
|
4
4
|
export interface FboOptions {
|
|
5
5
|
width?: number;
|
|
6
6
|
height?: number;
|
|
7
7
|
depth?: boolean;
|
|
8
|
-
settings?:
|
|
8
|
+
settings?: RenderTargetOptions;
|
|
9
9
|
}
|
|
10
|
-
export declare function useFBO(options: FboOptions): Ref<WebGLRenderTarget<import(
|
|
10
|
+
export declare function useFBO(options: FboOptions): Ref<WebGLRenderTarget<import('three').Texture> | null>;
|
|
@@ -1,12 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<useSurfaceSamplerProps>>>, {}, {}>, {
|
|
1
|
+
import { useSurfaceSamplerProps } from '.';
|
|
2
|
+
|
|
3
|
+
declare function __VLS_template(): {
|
|
5
4
|
default?(_: {}): any;
|
|
6
|
-
}
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToOption<useSurfaceSamplerProps>, {
|
|
7
|
+
samplerRef: import('vue').Ref<any>;
|
|
8
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<useSurfaceSamplerProps>>>, {}, {}>;
|
|
9
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
7
10
|
export default _default;
|
|
11
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
8
16
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
|
-
type
|
|
17
|
+
type __VLS_TypePropsToOption<T> = {
|
|
10
18
|
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
11
19
|
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
12
20
|
} : {
|
|
@@ -14,8 +22,3 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
14
22
|
required: true;
|
|
15
23
|
};
|
|
16
24
|
};
|
|
17
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
-
new (): {
|
|
19
|
-
$slots: S;
|
|
20
|
-
};
|
|
21
|
-
};
|