@tresjs/cientos 5.1.0 → 5.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/trescientos.d.ts +11504 -0
- package/dist/trescientos.js +11689 -60017
- package/package.json +11 -17
- package/dist/core/abstractions/AnimatedSprite/Atlas.d.ts +0 -37
- package/dist/core/abstractions/AnimatedSprite/AtlasAnimationDefinitionParser.d.ts +0 -10
- package/dist/core/abstractions/AnimatedSprite/StringOps.d.ts +0 -2
- package/dist/core/abstractions/AnimatedSprite/component.vue.d.ts +0 -107
- package/dist/core/abstractions/Billboard.vue.d.ts +0 -79
- package/dist/core/abstractions/CubeCamera/component.vue.d.ts +0 -49
- package/dist/core/abstractions/CubeCamera/useCubeCamera.d.ts +0 -24
- package/dist/core/abstractions/Edges.vue.d.ts +0 -46
- package/dist/core/abstractions/GlobalAudio.d.ts +0 -50
- package/dist/core/abstractions/GradientTexture.vue.d.ts +0 -60
- package/dist/core/abstractions/Image/ImageMaterial.vue.d.ts +0 -6
- package/dist/core/abstractions/Image/ImageMaterialImpl.d.ts +0 -8
- package/dist/core/abstractions/Image/component.vue.d.ts +0 -75
- package/dist/core/abstractions/Lensflare/LensflareImpl.d.ts +0 -23
- package/dist/core/abstractions/Lensflare/RandUtils.d.ts +0 -68
- package/dist/core/abstractions/Lensflare/component.vue.d.ts +0 -60
- package/dist/core/abstractions/Lensflare/constants.d.ts +0 -20
- package/dist/core/abstractions/Lensflare/index.d.ts +0 -36
- package/dist/core/abstractions/Levioso.vue.d.ts +0 -48
- package/dist/core/abstractions/MarchingCubes/MarchingCube.vue.d.ts +0 -22
- package/dist/core/abstractions/MarchingCubes/MarchingCubes.vue.d.ts +0 -35
- package/dist/core/abstractions/MarchingCubes/MarchingPlane.vue.d.ts +0 -20
- package/dist/core/abstractions/MarchingCubes/const.d.ts +0 -2
- package/dist/core/abstractions/Mask/component.vue.d.ts +0 -50
- package/dist/core/abstractions/Mask/useMask.d.ts +0 -9
- package/dist/core/abstractions/MouseParallax.vue.d.ts +0 -51
- package/dist/core/abstractions/Outline/OutlineMaterialImpl.d.ts +0 -4
- package/dist/core/abstractions/Outline/component.vue.d.ts +0 -44
- package/dist/core/abstractions/PositionalAudio.vue.d.ts +0 -42
- package/dist/core/abstractions/Reflector.vue.d.ts +0 -88
- package/dist/core/abstractions/ScreenSizer.vue.d.ts +0 -53
- package/dist/core/abstractions/ScreenSpace.vue.d.ts +0 -42
- package/dist/core/abstractions/Text3D.vue.d.ts +0 -164
- package/dist/core/abstractions/index.d.ts +0 -28
- package/dist/core/abstractions/useAnimations.d.ts +0 -19
- package/dist/core/abstractions/useFBO/component.vue.d.ts +0 -9
- package/dist/core/abstractions/useFBO/index.d.ts +0 -17
- package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +0 -38
- package/dist/core/abstractions/useSurfaceSampler/index.d.ts +0 -1412
- package/dist/core/controls/CameraControls.vue.d.ts +0 -306
- package/dist/core/controls/Helper/component.vue.d.ts +0 -16
- package/dist/core/controls/Helper/useHelper.d.ts +0 -10
- package/dist/core/controls/KeyboardControls.vue.d.ts +0 -58
- package/dist/core/controls/MapControls.vue.d.ts +0 -260
- package/dist/core/controls/OrbitControls.vue.d.ts +0 -285
- package/dist/core/controls/PointerLockControls.vue.d.ts +0 -51
- package/dist/core/controls/ScrollControls.vue.d.ts +0 -96
- package/dist/core/controls/TransformControls.vue.d.ts +0 -44
- package/dist/core/controls/index.d.ts +0 -9
- package/dist/core/index.d.ts +0 -7
- package/dist/core/loaders/index.d.ts +0 -12
- package/dist/core/loaders/useFBX/component.vue.d.ts +0 -38
- package/dist/core/loaders/useFBX/index.d.ts +0 -32
- package/dist/core/loaders/useGLTF/component.vue.d.ts +0 -61
- package/dist/core/loaders/useGLTF/index.d.ts +0 -43
- package/dist/core/loaders/useProgress.d.ts +0 -6
- package/dist/core/loaders/useSVG/component.vue.d.ts +0 -101
- package/dist/core/loaders/useSVG/index.d.ts +0 -65
- package/dist/core/loaders/useTexture/component.vue.d.ts +0 -5134
- package/dist/core/loaders/useTexture/index.d.ts +0 -3
- package/dist/core/loaders/useTextures/index.d.ts +0 -13
- package/dist/core/loaders/useVideoTexture.d.ts +0 -28
- package/dist/core/materials/customShaderMaterial/index.vue.d.ts +0 -16
- package/dist/core/materials/holographicMaterial/HolographicMaterialParameters.d.ts +0 -41
- package/dist/core/materials/holographicMaterial/index.vue.d.ts +0 -35
- package/dist/core/materials/holographicMaterial/material.d.ts +0 -27
- package/dist/core/materials/index.d.ts +0 -8
- package/dist/core/materials/meshDiscardMaterial/index.vue.d.ts +0 -6
- package/dist/core/materials/meshDiscardMaterial/material.d.ts +0 -4
- package/dist/core/materials/meshGlassMaterial/index.vue.d.ts +0 -6
- package/dist/core/materials/meshGlassMaterial/material.d.ts +0 -37
- package/dist/core/materials/meshReflectionMaterial/BlurPass.d.ts +0 -23
- package/dist/core/materials/meshReflectionMaterial/ConvolutionMaterial.d.ts +0 -7
- package/dist/core/materials/meshReflectionMaterial/index.vue.d.ts +0 -113
- package/dist/core/materials/meshReflectionMaterial/material.d.ts +0 -47
- package/dist/core/materials/meshWobbleMaterial/index.vue.d.ts +0 -13
- package/dist/core/materials/meshWobbleMaterial/material.d.ts +0 -21
- package/dist/core/materials/pointMaterial/component.vue.d.ts +0 -8
- package/dist/core/materials/pointMaterial/material.d.ts +0 -4
- package/dist/core/misc/BakeShadows.d.ts +0 -1
- package/dist/core/misc/LOD.vue.d.ts +0 -52
- package/dist/core/misc/Stats.d.ts +0 -13
- package/dist/core/misc/StatsGl.d.ts +0 -10
- package/dist/core/misc/html/HTML.vue.d.ts +0 -82
- package/dist/core/misc/html/utils.d.ts +0 -17
- package/dist/core/misc/index.d.ts +0 -8
- package/dist/core/misc/useGLTFExporter.d.ts +0 -12
- package/dist/core/misc/useIntersect.d.ts +0 -9
- package/dist/core/shapes/Box.vue.d.ts +0 -61
- package/dist/core/shapes/CatmullRomCurve3.vue.d.ts +0 -30
- package/dist/core/shapes/Circle.vue.d.ts +0 -60
- package/dist/core/shapes/Cone.vue.d.ts +0 -60
- package/dist/core/shapes/CubicBezierLine.vue.d.ts +0 -49
- package/dist/core/shapes/Cylinder.vue.d.ts +0 -60
- package/dist/core/shapes/Dodecahedron.vue.d.ts +0 -60
- package/dist/core/shapes/Icosahedron.vue.d.ts +0 -60
- package/dist/core/shapes/Line2.vue.d.ts +0 -32
- package/dist/core/shapes/Octahedron.vue.d.ts +0 -60
- package/dist/core/shapes/Plane.vue.d.ts +0 -60
- package/dist/core/shapes/QuadraticBezierLine.vue.d.ts +0 -48
- package/dist/core/shapes/Ring.vue.d.ts +0 -60
- package/dist/core/shapes/RoundedBox.vue.d.ts +0 -61
- package/dist/core/shapes/ScreenQuad.vue.d.ts +0 -38
- package/dist/core/shapes/Sphere.vue.d.ts +0 -61
- package/dist/core/shapes/Superformula.vue.d.ts +0 -79
- package/dist/core/shapes/Tetrahedron.vue.d.ts +0 -60
- package/dist/core/shapes/Torus.vue.d.ts +0 -60
- package/dist/core/shapes/TorusKnot.vue.d.ts +0 -60
- package/dist/core/shapes/Tube.vue.d.ts +0 -60
- package/dist/core/shapes/index.d.ts +0 -22
- package/dist/core/staging/AccumulativeShadows/ProgressiveLightMap.d.ts +0 -35
- package/dist/core/staging/AccumulativeShadows/SoftShadowMaterial.d.ts +0 -10
- package/dist/core/staging/AccumulativeShadows/component.vue.d.ts +0 -115
- package/dist/core/staging/Align.vue.d.ts +0 -117
- package/dist/core/staging/Backdrop.vue.d.ts +0 -63
- package/dist/core/staging/Bounds/Bounds.d.ts +0 -73
- package/dist/core/staging/Bounds/component.vue.d.ts +0 -60
- package/dist/core/staging/CircleShadow.vue.d.ts +0 -27
- package/dist/core/staging/ContactShadows.vue.d.ts +0 -124
- package/dist/core/staging/Fit.vue.d.ts +0 -96
- package/dist/core/staging/Grid.vue.d.ts +0 -61
- package/dist/core/staging/Ocean.vue.d.ts +0 -133
- package/dist/core/staging/Precipitation.vue.d.ts +0 -144
- package/dist/core/staging/RandomizedLights/RandomizedLights.d.ts +0 -29
- package/dist/core/staging/RandomizedLights/component.vue.d.ts +0 -43
- package/dist/core/staging/Sky.vue.d.ts +0 -46
- package/dist/core/staging/Smoke.vue.d.ts +0 -97
- package/dist/core/staging/SoftShadows.vue.d.ts +0 -14
- package/dist/core/staging/Sparkles/ShaderData.d.ts +0 -37
- package/dist/core/staging/Sparkles/ShaderDataBuilder.d.ts +0 -42
- package/dist/core/staging/Sparkles/component.vue.d.ts +0 -168
- package/dist/core/staging/Sparkles/useEmptyDataTexture.d.ts +0 -2
- package/dist/core/staging/Stage.vue.d.ts +0 -677
- package/dist/core/staging/Stars.vue.d.ts +0 -88
- package/dist/core/staging/index.d.ts +0 -20
- package/dist/core/staging/useEnvironment/EnvironmentScene.d.ts +0 -8
- package/dist/core/staging/useEnvironment/component.vue.d.ts +0 -38
- package/dist/core/staging/useEnvironment/const.d.ts +0 -116
- package/dist/core/staging/useEnvironment/index.d.ts +0 -23
- package/dist/core/staging/useEnvironment/lightformer/index.vue.d.ts +0 -37
- package/dist/index.d.ts +0 -2
- package/dist/utils/Gradient.d.ts +0 -10
- package/dist/utils/calculateScaleFactor.d.ts +0 -7
- package/dist/utils/constants.d.ts +0 -1
- package/dist/utils/easing.d.ts +0 -5
- package/dist/utils/index.d.ts +0 -22
- package/dist/utils/shaderMaterial.d.ts +0 -6
- package/dist/utils/types.d.ts +0 -3
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { PositionalAudio } from 'three';
|
|
2
|
-
export interface PositionalAudioProps {
|
|
3
|
-
ready: boolean;
|
|
4
|
-
url: string;
|
|
5
|
-
distance?: number;
|
|
6
|
-
helper?: boolean;
|
|
7
|
-
loop?: boolean;
|
|
8
|
-
autoplay?: boolean;
|
|
9
|
-
innerAngle?: number;
|
|
10
|
-
outerAngle?: number;
|
|
11
|
-
outerGain?: number;
|
|
12
|
-
}
|
|
13
|
-
declare const _default: import('vue').DefineComponent<PositionalAudioProps, {
|
|
14
|
-
instance: import('vue').ShallowRef<PositionalAudio | null, PositionalAudio | null>;
|
|
15
|
-
play: () => void;
|
|
16
|
-
stop: () => void;
|
|
17
|
-
pause: () => void;
|
|
18
|
-
dispose: () => void;
|
|
19
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
-
isPlaying: (...args: any[]) => void;
|
|
21
|
-
}, string, import('vue').PublicProps, Readonly<PositionalAudioProps> & Readonly<{
|
|
22
|
-
onIsPlaying?: ((...args: any[]) => any) | undefined;
|
|
23
|
-
}>, {
|
|
24
|
-
loop: boolean;
|
|
25
|
-
distance: number;
|
|
26
|
-
autoplay: boolean;
|
|
27
|
-
ready: boolean;
|
|
28
|
-
helper: boolean;
|
|
29
|
-
innerAngle: number;
|
|
30
|
-
outerAngle: number;
|
|
31
|
-
outerGain: number;
|
|
32
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
33
|
-
positionalAudioRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<PositionalAudio, import('@tresjs/core').WithMathProps<PositionalAudio> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<PositionalAudio, typeof PositionalAudio>, "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, {
|
|
34
|
-
P: {};
|
|
35
|
-
B: {};
|
|
36
|
-
D: {};
|
|
37
|
-
C: {};
|
|
38
|
-
M: {};
|
|
39
|
-
Defaults: {};
|
|
40
|
-
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<PositionalAudio, import('@tresjs/core').WithMathProps<PositionalAudio> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<PositionalAudio, typeof PositionalAudio>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
41
|
-
}, any>;
|
|
42
|
-
export default _default;
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { Reflector } from 'three-stdlib';
|
|
2
|
-
import { TresColor } from '@tresjs/core';
|
|
3
|
-
export interface ReflectorProps {
|
|
4
|
-
/**
|
|
5
|
-
* The color of the reflector.
|
|
6
|
-
*
|
|
7
|
-
* @default '#333'
|
|
8
|
-
* @type {TresColor}
|
|
9
|
-
* @memberof ReflectorProps
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
color?: TresColor;
|
|
13
|
-
/**
|
|
14
|
-
* The textureWidth of the internal WebGLRenderTarget.
|
|
15
|
-
*
|
|
16
|
-
* @default window.innerWidth
|
|
17
|
-
* @type {number}
|
|
18
|
-
* @memberof ReflectorProps
|
|
19
|
-
*
|
|
20
|
-
*/
|
|
21
|
-
textureWidth?: number;
|
|
22
|
-
/**
|
|
23
|
-
* The textureHeight of the internal WebGLRenderTarget.
|
|
24
|
-
*
|
|
25
|
-
* @default window.innerHeight
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof ReflectorProps
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
|
-
textureHeight?: number;
|
|
31
|
-
/**
|
|
32
|
-
* The clipBias.
|
|
33
|
-
*
|
|
34
|
-
* @default 0
|
|
35
|
-
* @type {number}
|
|
36
|
-
* @memberof ReflectorProps
|
|
37
|
-
*
|
|
38
|
-
*/
|
|
39
|
-
clipBias?: number;
|
|
40
|
-
/**
|
|
41
|
-
* The multisample.
|
|
42
|
-
*
|
|
43
|
-
* @default 4
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof ReflectorProps
|
|
46
|
-
*
|
|
47
|
-
*/
|
|
48
|
-
multisample?: number;
|
|
49
|
-
/**
|
|
50
|
-
* Custom shader.
|
|
51
|
-
*
|
|
52
|
-
* @default Reflector.ReflectorShader
|
|
53
|
-
* @type {object}
|
|
54
|
-
* @memberof ReflectorProps
|
|
55
|
-
*
|
|
56
|
-
*/
|
|
57
|
-
shader?: object;
|
|
58
|
-
}
|
|
59
|
-
declare function __VLS_template(): {
|
|
60
|
-
attrs: Partial<{}>;
|
|
61
|
-
slots: {
|
|
62
|
-
default?(_: {}): any;
|
|
63
|
-
};
|
|
64
|
-
refs: {
|
|
65
|
-
reflectorRef: unknown;
|
|
66
|
-
};
|
|
67
|
-
rootEl: any;
|
|
68
|
-
};
|
|
69
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
70
|
-
declare const __VLS_component: import('vue').DefineComponent<ReflectorProps, {
|
|
71
|
-
instance: import('vue').ShallowRef<Reflector | undefined, Reflector | undefined>;
|
|
72
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ReflectorProps> & Readonly<{}>, {
|
|
73
|
-
color: TresColor;
|
|
74
|
-
textureWidth: number;
|
|
75
|
-
textureHeight: number;
|
|
76
|
-
clipBias: number;
|
|
77
|
-
multisample: number;
|
|
78
|
-
shader: object;
|
|
79
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
80
|
-
reflectorRef: unknown;
|
|
81
|
-
}, any>;
|
|
82
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
83
|
-
export default _default;
|
|
84
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
85
|
-
new (): {
|
|
86
|
-
$slots: S;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
attrs: Partial<{}>;
|
|
3
|
-
slots: {
|
|
4
|
-
default?(_: {}): any;
|
|
5
|
-
};
|
|
6
|
-
refs: {
|
|
7
|
-
outerRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Object3D<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Object3D<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Object3D<import('three').Object3DEventMap>, typeof import('three').Object3D>, "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, {
|
|
8
|
-
P: {};
|
|
9
|
-
B: {};
|
|
10
|
-
D: {};
|
|
11
|
-
C: {};
|
|
12
|
-
M: {};
|
|
13
|
-
Defaults: {};
|
|
14
|
-
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Object3D<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Object3D<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Object3D<import('three').Object3DEventMap>, typeof import('three').Object3D>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
15
|
-
innerRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Object3D<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Object3D<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Object3D<import('three').Object3DEventMap>, typeof import('three').Object3D>, "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, {
|
|
16
|
-
P: {};
|
|
17
|
-
B: {};
|
|
18
|
-
D: {};
|
|
19
|
-
C: {};
|
|
20
|
-
M: {};
|
|
21
|
-
Defaults: {};
|
|
22
|
-
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Object3D<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Object3D<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Object3D<import('three').Object3DEventMap>, typeof import('three').Object3D>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
23
|
-
};
|
|
24
|
-
rootEl: any;
|
|
25
|
-
};
|
|
26
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
27
|
-
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
28
|
-
instance: import('vue').ShallowRef<any, any>;
|
|
29
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
30
|
-
outerRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Object3D<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Object3D<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Object3D<import('three').Object3DEventMap>, typeof import('three').Object3D>, "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, {
|
|
31
|
-
P: {};
|
|
32
|
-
B: {};
|
|
33
|
-
D: {};
|
|
34
|
-
C: {};
|
|
35
|
-
M: {};
|
|
36
|
-
Defaults: {};
|
|
37
|
-
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Object3D<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Object3D<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Object3D<import('three').Object3DEventMap>, typeof import('three').Object3D>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
38
|
-
innerRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Object3D<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Object3D<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Object3D<import('three').Object3DEventMap>, typeof import('three').Object3D>, "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, {
|
|
39
|
-
P: {};
|
|
40
|
-
B: {};
|
|
41
|
-
D: {};
|
|
42
|
-
C: {};
|
|
43
|
-
M: {};
|
|
44
|
-
Defaults: {};
|
|
45
|
-
}, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Object3D<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Object3D<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Object3D<import('three').Object3DEventMap>, typeof import('three').Object3D>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
46
|
-
}, any>;
|
|
47
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
48
|
-
export default _default;
|
|
49
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
50
|
-
new (): {
|
|
51
|
-
$slots: S;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export interface ScreenSpaceProps {
|
|
2
|
-
depth?: number;
|
|
3
|
-
}
|
|
4
|
-
declare function __VLS_template(): {
|
|
5
|
-
attrs: Partial<{}>;
|
|
6
|
-
slots: {
|
|
7
|
-
default?(_: {}): any;
|
|
8
|
-
};
|
|
9
|
-
refs: {
|
|
10
|
-
outerRef: 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, 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, {
|
|
11
|
-
P: {};
|
|
12
|
-
B: {};
|
|
13
|
-
D: {};
|
|
14
|
-
C: {};
|
|
15
|
-
M: {};
|
|
16
|
-
Defaults: {};
|
|
17
|
-
}, 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Group<import('three').Object3DEventMap>, typeof import('three').Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
18
|
-
};
|
|
19
|
-
rootEl: any;
|
|
20
|
-
};
|
|
21
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
-
declare const __VLS_component: import('vue').DefineComponent<ScreenSpaceProps, {
|
|
23
|
-
instance: import('vue').ShallowRef<any, any>;
|
|
24
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ScreenSpaceProps> & Readonly<{}>, {
|
|
25
|
-
depth: number;
|
|
26
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
27
|
-
outerRef: 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, 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, {
|
|
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').Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Group<import('three').Object3DEventMap>, typeof import('three').Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
35
|
-
}, any>;
|
|
36
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
37
|
-
export default _default;
|
|
38
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
39
|
-
new (): {
|
|
40
|
-
$slots: S;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
export interface Glyph {
|
|
2
|
-
_cachedOutline: string[];
|
|
3
|
-
ha: number;
|
|
4
|
-
o: string;
|
|
5
|
-
}
|
|
6
|
-
export interface FontData {
|
|
7
|
-
boundingBox: {
|
|
8
|
-
yMax: number;
|
|
9
|
-
yMin: number;
|
|
10
|
-
};
|
|
11
|
-
familyName: string;
|
|
12
|
-
glyphs: {
|
|
13
|
-
[k: string]: Glyph;
|
|
14
|
-
};
|
|
15
|
-
resolution: number;
|
|
16
|
-
underlineThickness: number;
|
|
17
|
-
}
|
|
18
|
-
export interface Text3DProps {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* The JSON font to use for the text.
|
|
22
|
-
* Text3D requires fonts in JSON format generated through [typeface.json](http://gero3.github.io/facetype.js)
|
|
23
|
-
*
|
|
24
|
-
* @type {(FontData | string)}
|
|
25
|
-
* @memberof Text3DProps
|
|
26
|
-
* @see https://threejs.org/docs/index.html?q=TEXT#examples/en/geometries/TextGeometry
|
|
27
|
-
*/
|
|
28
|
-
font: FontData | string;
|
|
29
|
-
/**
|
|
30
|
-
* The text to display.
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof Text3DProps
|
|
34
|
-
*/
|
|
35
|
-
text?: string;
|
|
36
|
-
/**
|
|
37
|
-
* The size of the text.
|
|
38
|
-
*
|
|
39
|
-
* @type {number}
|
|
40
|
-
* @memberof Text3DProps
|
|
41
|
-
* @default 0.5
|
|
42
|
-
*/
|
|
43
|
-
size?: number;
|
|
44
|
-
/**
|
|
45
|
-
* The height of the text.
|
|
46
|
-
*
|
|
47
|
-
* @type {number}
|
|
48
|
-
* @memberof Text3DProps
|
|
49
|
-
* @default 0.2
|
|
50
|
-
*/
|
|
51
|
-
height?: number;
|
|
52
|
-
/**
|
|
53
|
-
* The curve segments of the text.
|
|
54
|
-
*
|
|
55
|
-
* @type {number}
|
|
56
|
-
* @memberof Text3DProps
|
|
57
|
-
* @default 5
|
|
58
|
-
*/
|
|
59
|
-
curveSegments?: number;
|
|
60
|
-
/**
|
|
61
|
-
* Turn on bevel
|
|
62
|
-
*
|
|
63
|
-
* @type {boolean}
|
|
64
|
-
* @memberof Text3DProps
|
|
65
|
-
* @default true
|
|
66
|
-
*/
|
|
67
|
-
bevelEnabled?: boolean;
|
|
68
|
-
/**
|
|
69
|
-
* How deep into text bevel goes.
|
|
70
|
-
*
|
|
71
|
-
* @type {number}
|
|
72
|
-
* @memberof Text3DProps
|
|
73
|
-
* @default 0.05
|
|
74
|
-
*/
|
|
75
|
-
bevelThickness?: number;
|
|
76
|
-
/**
|
|
77
|
-
* How far from text outline is bevel.
|
|
78
|
-
*
|
|
79
|
-
* @type {number}
|
|
80
|
-
* @memberof Text3DProps
|
|
81
|
-
* @default 0.02
|
|
82
|
-
*/
|
|
83
|
-
bevelSize?: number;
|
|
84
|
-
/**
|
|
85
|
-
* How far from text outline is bevel.
|
|
86
|
-
*
|
|
87
|
-
* @type {number}
|
|
88
|
-
* @memberof Text3DProps
|
|
89
|
-
* @default 0
|
|
90
|
-
*/
|
|
91
|
-
bevelOffset?: number;
|
|
92
|
-
/**
|
|
93
|
-
* How many bevel segments.
|
|
94
|
-
*
|
|
95
|
-
* @type {number}
|
|
96
|
-
* @memberof Text3DProps
|
|
97
|
-
* @default 4
|
|
98
|
-
*/
|
|
99
|
-
bevelSegments?: number;
|
|
100
|
-
/**
|
|
101
|
-
* Whether to center the text.
|
|
102
|
-
*
|
|
103
|
-
* @type {boolean}
|
|
104
|
-
* @memberof Text3DProps
|
|
105
|
-
* @default false
|
|
106
|
-
*/
|
|
107
|
-
center?: boolean;
|
|
108
|
-
/**
|
|
109
|
-
* Whether to update the text.
|
|
110
|
-
*
|
|
111
|
-
* @type {boolean}
|
|
112
|
-
* @memberof Text3DProps
|
|
113
|
-
* @default false
|
|
114
|
-
*/
|
|
115
|
-
needUpdates?: boolean;
|
|
116
|
-
}
|
|
117
|
-
declare function __VLS_template(): {
|
|
118
|
-
attrs: Partial<{}>;
|
|
119
|
-
slots: {
|
|
120
|
-
default?(_: {}): any;
|
|
121
|
-
};
|
|
122
|
-
refs: {
|
|
123
|
-
text3DRef: 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').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, 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, {
|
|
124
|
-
P: {};
|
|
125
|
-
B: {};
|
|
126
|
-
D: {};
|
|
127
|
-
C: {};
|
|
128
|
-
M: {};
|
|
129
|
-
Defaults: {};
|
|
130
|
-
}, 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').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
131
|
-
};
|
|
132
|
-
rootEl: any;
|
|
133
|
-
};
|
|
134
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
135
|
-
declare const __VLS_component: import('vue').DefineComponent<Text3DProps, {
|
|
136
|
-
instance: import('vue').ShallowRef<any, any>;
|
|
137
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Text3DProps> & Readonly<{}>, {
|
|
138
|
-
center: boolean;
|
|
139
|
-
height: number;
|
|
140
|
-
curveSegments: number;
|
|
141
|
-
size: number;
|
|
142
|
-
bevelEnabled: boolean;
|
|
143
|
-
bevelThickness: number;
|
|
144
|
-
bevelSize: number;
|
|
145
|
-
bevelOffset: number;
|
|
146
|
-
bevelSegments: number;
|
|
147
|
-
needUpdates: boolean;
|
|
148
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
149
|
-
text3DRef: 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').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, 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, {
|
|
150
|
-
P: {};
|
|
151
|
-
B: {};
|
|
152
|
-
D: {};
|
|
153
|
-
C: {};
|
|
154
|
-
M: {};
|
|
155
|
-
Defaults: {};
|
|
156
|
-
}, 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').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes, import('three').BufferGeometryEventMap>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
157
|
-
}, any>;
|
|
158
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
159
|
-
export default _default;
|
|
160
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
161
|
-
new (): {
|
|
162
|
-
$slots: S;
|
|
163
|
-
};
|
|
164
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { default as AnimatedSprite } from './AnimatedSprite/component.vue';
|
|
2
|
-
import { default as CubeCamera } from './CubeCamera/component.vue';
|
|
3
|
-
import { default as Billboard } from './Billboard.vue';
|
|
4
|
-
import { GlobalAudio } from './GlobalAudio';
|
|
5
|
-
import { default as GradientTexture } from './GradientTexture.vue';
|
|
6
|
-
import { default as Image } from './Image/component.vue';
|
|
7
|
-
import { default as Lensflare } from './Lensflare/component.vue';
|
|
8
|
-
import { default as Levioso } from './Levioso.vue';
|
|
9
|
-
import { default as MarchingCube } from './MarchingCubes/MarchingCube.vue';
|
|
10
|
-
import { default as MarchingCubes } from './MarchingCubes/MarchingCubes.vue';
|
|
11
|
-
import { default as MarchingPlane } from './MarchingCubes/MarchingPlane.vue';
|
|
12
|
-
import { default as Mask } from './Mask/component.vue';
|
|
13
|
-
import { default as MouseParallax } from './MouseParallax.vue';
|
|
14
|
-
import { default as Outline } from './Outline/component.vue';
|
|
15
|
-
import { default as PositionalAudio } from './PositionalAudio.vue';
|
|
16
|
-
import { default as Reflector } from './Reflector.vue';
|
|
17
|
-
import { default as ScreenSpace } from './ScreenSpace.vue';
|
|
18
|
-
import { default as Text3D } from './Text3D.vue';
|
|
19
|
-
import { useAnimations } from './useAnimations';
|
|
20
|
-
import { useMask } from './Mask/useMask';
|
|
21
|
-
import { default as Fbo } from './useFBO/component.vue';
|
|
22
|
-
import { default as Sampler } from './useSurfaceSampler/component.vue';
|
|
23
|
-
import { default as ScreenSizer } from './ScreenSizer.vue';
|
|
24
|
-
import { default as Edges } from './Edges.vue';
|
|
25
|
-
export * from '../staging/useEnvironment';
|
|
26
|
-
export * from './useFBO/';
|
|
27
|
-
export * from './useSurfaceSampler';
|
|
28
|
-
export { AnimatedSprite, Billboard, CubeCamera, Edges, Fbo, GlobalAudio, GradientTexture, Image, Lensflare, Levioso, MarchingCube, MarchingCubes, MarchingPlane, Mask, MouseParallax, Outline, PositionalAudio, Reflector, Sampler, ScreenSizer, ScreenSpace, Text3D, useAnimations, useMask, };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { AnimationMixer, AnimationAction, AnimationClip, Object3D } from 'three';
|
|
2
|
-
import { MaybeRef } from 'vue';
|
|
3
|
-
/**
|
|
4
|
-
* Creates an AnimationMixer and returns it.
|
|
5
|
-
*
|
|
6
|
-
* @export
|
|
7
|
-
* @template T
|
|
8
|
-
* @param {T[]} animations
|
|
9
|
-
* @param {(Scene | Ref<Object3D | undefined | null>)} [modelRef]
|
|
10
|
-
* @return {*}
|
|
11
|
-
*/
|
|
12
|
-
export declare function useAnimations<T extends AnimationClip>(animations: MaybeRef<T[]>, modelRef?: MaybeRef<Object3D | undefined | null>, options?: {
|
|
13
|
-
manualUpdate?: boolean;
|
|
14
|
-
}): {
|
|
15
|
-
actions: import('vue').ShallowReactive<{
|
|
16
|
-
[key: string]: AnimationAction | undefined;
|
|
17
|
-
}>;
|
|
18
|
-
mixer: import('vue').ComputedRef<AnimationMixer>;
|
|
19
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FboOptions } from '.';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<FboOptions, {
|
|
3
|
-
instance: import('vue').Ref<import('three').WebGLRenderTarget<import('three').Texture> | null, import('three').WebGLRenderTarget<import('three').Texture> | null>;
|
|
4
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FboOptions> & Readonly<{}>, {
|
|
5
|
-
depth: boolean;
|
|
6
|
-
settings: import('three').RenderTargetOptions;
|
|
7
|
-
autoRender: boolean;
|
|
8
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
-
export default _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { WebGLRenderTarget, RenderTargetOptions } from 'three';
|
|
2
|
-
import { Ref } from 'vue';
|
|
3
|
-
export interface FboOptions {
|
|
4
|
-
width?: number;
|
|
5
|
-
height?: number;
|
|
6
|
-
depth?: boolean;
|
|
7
|
-
settings?: RenderTargetOptions;
|
|
8
|
-
/**
|
|
9
|
-
* Whether to automatically render the FBO on the default scene.
|
|
10
|
-
*
|
|
11
|
-
* @default true
|
|
12
|
-
* @type {boolean}
|
|
13
|
-
* @memberof FboProps
|
|
14
|
-
*/
|
|
15
|
-
autoRender?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare function useFBO(options: FboOptions): Ref<WebGLRenderTarget<import('three').Texture> | null, WebGLRenderTarget<import('three').Texture> | null>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { useSurfaceSamplerProps } from '.';
|
|
2
|
-
declare function __VLS_template(): {
|
|
3
|
-
attrs: Partial<{}>;
|
|
4
|
-
slots: {
|
|
5
|
-
default?(_: {}): any;
|
|
6
|
-
};
|
|
7
|
-
refs: {
|
|
8
|
-
samplerRef: 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, 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, {
|
|
9
|
-
P: {};
|
|
10
|
-
B: {};
|
|
11
|
-
D: {};
|
|
12
|
-
C: {};
|
|
13
|
-
M: {};
|
|
14
|
-
Defaults: {};
|
|
15
|
-
}, 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Group<import('three').Object3DEventMap>, typeof import('three').Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
16
|
-
};
|
|
17
|
-
rootEl: any;
|
|
18
|
-
};
|
|
19
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
-
declare const __VLS_component: import('vue').DefineComponent<useSurfaceSamplerProps, {
|
|
21
|
-
samplerRef: import('vue').Ref<any, any>;
|
|
22
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<useSurfaceSamplerProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
23
|
-
samplerRef: 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Group<import('three').Object3DEventMap>, typeof import('three').Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
31
|
-
}, any>;
|
|
32
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
33
|
-
export default _default;
|
|
34
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
35
|
-
new (): {
|
|
36
|
-
$slots: S;
|
|
37
|
-
};
|
|
38
|
-
};
|