@tresjs/cientos 4.0.2 → 4.1.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/component.vue.d.ts +27 -56
- 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/GlobalAudio.d.ts +1 -1
- 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 +9 -44
- package/dist/core/abstractions/Lensflare/index.d.ts +1 -1
- package/dist/core/abstractions/Levioso.vue.d.ts +22 -35
- 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/MouseParallax.vue.d.ts +2 -29
- 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 +7 -42
- package/dist/core/abstractions/Reflector.vue.d.ts +14 -38
- 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 +20 -46
- package/dist/core/abstractions/index.d.ts +19 -9
- package/dist/core/abstractions/useAnimations.d.ts +1 -1
- package/dist/core/abstractions/useFBO/component.vue.d.ts +4 -29
- package/dist/core/abstractions/useFBO/index.d.ts +2 -2
- package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +19 -14
- package/dist/core/abstractions/useSurfaceSampler/index.d.ts +1059 -299
- package/dist/core/controls/CameraControls.vue.d.ts +18 -10095
- package/dist/core/controls/KeyboardControls.vue.d.ts +6 -29
- package/dist/core/controls/MapControls.vue.d.ts +15 -8925
- package/dist/core/controls/OrbitControls.vue.d.ts +20 -8940
- package/dist/core/controls/PointerLockControls.vue.d.ts +6 -28
- package/dist/core/controls/ScrollControls.vue.d.ts +24 -39
- package/dist/core/controls/TransformControls.vue.d.ts +8 -43
- package/dist/core/controls/index.d.ts +5 -5
- package/dist/core/index.d.ts +2 -2
- package/dist/core/loaders/SVG/component.vue.d.ts +4 -29
- package/dist/core/loaders/index.d.ts +3 -3
- package/dist/core/loaders/useFBX/component.vue.d.ts +6 -29
- package/dist/core/loaders/useFBX/index.d.ts +3 -3
- package/dist/core/loaders/useGLTF/component.vue.d.ts +6 -33
- package/dist/core/loaders/useGLTF/index.d.ts +8 -9
- package/dist/core/materials/customShaderMaterial/index.vue.d.ts +3 -12
- package/dist/core/materials/holographicMaterial/index.vue.d.ts +6 -47
- package/dist/core/materials/index.d.ts +5 -4
- 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 +2 -2
- package/dist/core/materials/meshGlassMaterial/material.d.ts +1 -3
- package/dist/core/materials/meshReflectionMaterial/BlurPass.d.ts +1 -1
- package/dist/core/materials/meshReflectionMaterial/index.vue.d.ts +16 -109
- package/dist/core/materials/meshReflectionMaterial/material.d.ts +1 -1
- package/dist/core/materials/meshWobbleMaterial/index.vue.d.ts +6 -29
- package/dist/core/materials/meshWobbleMaterial/material.d.ts +1 -1
- package/dist/core/misc/BakeShadows.d.ts +1 -1
- package/dist/core/misc/Stats.d.ts +4 -4
- package/dist/core/misc/StatsGl.d.ts +1 -1
- package/dist/core/misc/html/HTML.vue.d.ts +30 -42
- package/dist/core/misc/html/utils.d.ts +1 -1
- package/dist/core/misc/index.d.ts +3 -3
- package/dist/core/shapes/Box.vue.d.ts +20 -29
- package/dist/core/shapes/CatmullRomCurve3.vue.d.ts +6 -33
- package/dist/core/shapes/Circle.vue.d.ts +20 -29
- package/dist/core/shapes/Cone.vue.d.ts +20 -29
- package/dist/core/shapes/Cylinder.vue.d.ts +20 -29
- package/dist/core/shapes/Dodecahedron.vue.d.ts +20 -29
- package/dist/core/shapes/Icosahedron.vue.d.ts +20 -29
- package/dist/core/shapes/Line2.vue.d.ts +6 -45
- package/dist/core/shapes/Octahedron.vue.d.ts +20 -29
- package/dist/core/shapes/Plane.vue.d.ts +20 -29
- package/dist/core/shapes/Ring.vue.d.ts +20 -29
- package/dist/core/shapes/RoundedBox.vue.d.ts +20 -29
- package/dist/core/shapes/Sphere.vue.d.ts +20 -29
- package/dist/core/shapes/Superformula.vue.d.ts +21 -39
- package/dist/core/shapes/Tetrahedron.vue.d.ts +20 -29
- package/dist/core/shapes/Torus.vue.d.ts +20 -29
- package/dist/core/shapes/TorusKnot.vue.d.ts +20 -29
- package/dist/core/shapes/Tube.vue.d.ts +21 -30
- package/dist/core/shapes/index.d.ts +1 -1
- package/dist/core/staging/Align.vue.d.ts +87 -0
- package/dist/core/staging/Backdrop.vue.d.ts +29 -31
- package/dist/core/staging/ContactShadows.vue.d.ts +7 -50
- package/dist/core/staging/Fit.vue.d.ts +37 -30
- package/dist/core/staging/Grid.vue.d.ts +52 -0
- package/dist/core/staging/Ocean.vue.d.ts +15 -50
- package/dist/core/staging/Precipitation.vue.d.ts +22 -62
- package/dist/core/staging/Sky.vue.d.ts +4 -37
- package/dist/core/staging/Smoke.vue.d.ts +6 -41
- package/dist/core/staging/SoftShadows.vue.d.ts +14 -0
- package/dist/core/staging/Sparkles/ShaderData.d.ts +1 -1
- package/dist/core/staging/Sparkles/ShaderDataBuilder.d.ts +1 -1
- package/dist/core/staging/Sparkles/component.vue.d.ts +9 -86
- package/dist/core/staging/Stars.vue.d.ts +5 -40
- package/dist/core/staging/index.d.ts +7 -4
- package/dist/core/staging/useEnvironment/{envSence.d.ts → EnvironmentScene.d.ts} +3 -3
- package/dist/core/staging/useEnvironment/component.vue.d.ts +15 -45
- package/dist/core/staging/useEnvironment/index.d.ts +14 -0
- package/dist/core/staging/useEnvironment/lightformer/index.vue.d.ts +10 -39
- package/dist/trescientos.js +15288 -14829
- package/dist/trescientos.umd.cjs +1064 -762
- package/dist/utils/calculateScaleFactor.d.ts +7 -0
- package/dist/utils/shaderMaterial.d.ts +6 -0
- package/package.json +28 -26
|
@@ -32,37 +32,10 @@ export interface MouseParallaxProps {
|
|
|
32
32
|
*/
|
|
33
33
|
local?: boolean;
|
|
34
34
|
}
|
|
35
|
-
declare const _default: import('vue').DefineComponent<
|
|
36
|
-
disabled: boolean;
|
|
37
|
-
factor: number;
|
|
38
|
-
ease: number;
|
|
39
|
-
local: boolean;
|
|
40
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<MouseParallaxProps>, {
|
|
41
|
-
disabled: boolean;
|
|
42
|
-
factor: number;
|
|
43
|
-
ease: number;
|
|
44
|
-
local: boolean;
|
|
45
|
-
}>>>, {
|
|
35
|
+
declare const _default: import('vue').DefineComponent<MouseParallaxProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MouseParallaxProps> & Readonly<{}>, {
|
|
46
36
|
disabled: boolean;
|
|
47
37
|
factor: number | [number, number];
|
|
48
38
|
ease: number | [number, number];
|
|
49
39
|
local: boolean;
|
|
50
|
-
}, {}>;
|
|
40
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
51
41
|
export default _default;
|
|
52
|
-
type __VLS_WithDefaults<P, D> = {
|
|
53
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
54
|
-
default: D[K];
|
|
55
|
-
}> : P[K];
|
|
56
|
-
};
|
|
57
|
-
type __VLS_Prettify<T> = {
|
|
58
|
-
[K in keyof T]: T[K];
|
|
59
|
-
} & {};
|
|
60
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
61
|
-
type __VLS_TypePropsToOption<T> = {
|
|
62
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
63
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
64
|
-
} : {
|
|
65
|
-
type: import('vue').PropType<T[K]>;
|
|
66
|
-
required: true;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { TresColor } from '@tresjs/core';
|
|
2
|
+
interface OutlineProps {
|
|
3
|
+
/** Outline color, default: black */
|
|
4
|
+
color?: TresColor;
|
|
5
|
+
/** Line thickness is independent of zoom, default: false */
|
|
6
|
+
screenspace?: boolean;
|
|
7
|
+
/** Outline opacity, default: 1 */
|
|
8
|
+
opacity?: number;
|
|
9
|
+
/** Outline transparency, default: false */
|
|
10
|
+
transparent?: boolean;
|
|
11
|
+
/** Outline thickness, default 0.05 */
|
|
12
|
+
thickness?: number;
|
|
13
|
+
/** Geometry crease angle (-1 === no crease), default: Math.PI, See [BufferGeometryUtils.toCreasedNormals](https://threejs.org/docs/#examples/en/utils/BufferGeometryUtils.toCreasedNormals) */
|
|
14
|
+
angle?: number;
|
|
15
|
+
toneMapped?: boolean;
|
|
16
|
+
polygonOffset?: boolean;
|
|
17
|
+
polygonOffsetFactor?: number;
|
|
18
|
+
renderOrder?: number;
|
|
19
|
+
}
|
|
20
|
+
declare const _default: import('vue').DefineComponent<OutlineProps, {
|
|
21
|
+
instance: import('vue').ShallowRef<any, any>;
|
|
22
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<OutlineProps> & Readonly<{}>, {
|
|
23
|
+
color: TresColor;
|
|
24
|
+
renderOrder: number;
|
|
25
|
+
opacity: number;
|
|
26
|
+
polygonOffset: boolean;
|
|
27
|
+
polygonOffsetFactor: number;
|
|
28
|
+
toneMapped: boolean;
|
|
29
|
+
transparent: boolean;
|
|
30
|
+
angle: number;
|
|
31
|
+
thickness: number;
|
|
32
|
+
screenspace: boolean;
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
export default _default;
|
|
@@ -10,59 +10,24 @@ export interface PositionalAudioProps {
|
|
|
10
10
|
outerAngle?: number;
|
|
11
11
|
outerGain?: number;
|
|
12
12
|
}
|
|
13
|
-
declare const _default: import('vue').DefineComponent<
|
|
14
|
-
|
|
15
|
-
helper: boolean;
|
|
16
|
-
distance: number;
|
|
17
|
-
loop: boolean;
|
|
18
|
-
autoplay: boolean;
|
|
19
|
-
innerAngle: number;
|
|
20
|
-
outerAngle: number;
|
|
21
|
-
outerGain: number;
|
|
22
|
-
}>, {
|
|
23
|
-
root: import('vue').ShallowRef<PositionalAudio | null>;
|
|
13
|
+
declare const _default: import('vue').DefineComponent<PositionalAudioProps, {
|
|
14
|
+
instance: import('vue').ShallowRef<PositionalAudio | null, PositionalAudio | null>;
|
|
24
15
|
play: () => void;
|
|
25
16
|
stop: () => void;
|
|
26
17
|
pause: () => void;
|
|
27
18
|
dispose: () => void;
|
|
28
|
-
},
|
|
19
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
20
|
isPlaying: (...args: any[]) => void;
|
|
30
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
31
|
-
ready: boolean;
|
|
32
|
-
helper: boolean;
|
|
33
|
-
distance: number;
|
|
34
|
-
loop: boolean;
|
|
35
|
-
autoplay: boolean;
|
|
36
|
-
innerAngle: number;
|
|
37
|
-
outerAngle: number;
|
|
38
|
-
outerGain: number;
|
|
39
|
-
}>>> & {
|
|
21
|
+
}, string, import('vue').PublicProps, Readonly<PositionalAudioProps> & Readonly<{
|
|
40
22
|
onIsPlaying?: ((...args: any[]) => any) | undefined;
|
|
41
|
-
}
|
|
23
|
+
}>, {
|
|
42
24
|
loop: boolean;
|
|
25
|
+
autoplay: boolean;
|
|
43
26
|
distance: number;
|
|
44
27
|
ready: boolean;
|
|
45
28
|
helper: boolean;
|
|
46
|
-
autoplay: boolean;
|
|
47
29
|
innerAngle: number;
|
|
48
30
|
outerAngle: number;
|
|
49
31
|
outerGain: number;
|
|
50
|
-
}, {}>;
|
|
32
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
51
33
|
export default _default;
|
|
52
|
-
type __VLS_WithDefaults<P, D> = {
|
|
53
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
54
|
-
default: D[K];
|
|
55
|
-
}> : P[K];
|
|
56
|
-
};
|
|
57
|
-
type __VLS_Prettify<T> = {
|
|
58
|
-
[K in keyof T]: T[K];
|
|
59
|
-
} & {};
|
|
60
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
61
|
-
type __VLS_TypePropsToOption<T> = {
|
|
62
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
63
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
64
|
-
} : {
|
|
65
|
-
type: import('vue').PropType<T[K]>;
|
|
66
|
-
required: true;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TresColor } from '@tresjs/core';
|
|
2
1
|
import { Reflector } from 'three-stdlib';
|
|
2
|
+
import { TresColor } from '@tresjs/core';
|
|
3
3
|
export interface ReflectorProps {
|
|
4
4
|
/**
|
|
5
5
|
* The color of the reflector.
|
|
@@ -57,53 +57,29 @@ export interface ReflectorProps {
|
|
|
57
57
|
shader?: object;
|
|
58
58
|
}
|
|
59
59
|
declare function __VLS_template(): {
|
|
60
|
-
|
|
60
|
+
slots: {
|
|
61
|
+
default?(_: {}): any;
|
|
62
|
+
};
|
|
63
|
+
refs: {
|
|
64
|
+
reflectorRef: unknown;
|
|
65
|
+
};
|
|
66
|
+
attrs: Partial<{}>;
|
|
61
67
|
};
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
clipBias: number;
|
|
67
|
-
multisample: number;
|
|
68
|
-
shader: any;
|
|
69
|
-
}>, {
|
|
70
|
-
instance: import('vue').ShallowRef<Reflector | undefined>;
|
|
71
|
-
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ReflectorProps>, {
|
|
72
|
-
color: string;
|
|
73
|
-
textureWidth: number;
|
|
74
|
-
textureHeight: number;
|
|
75
|
-
clipBias: number;
|
|
76
|
-
multisample: number;
|
|
77
|
-
shader: any;
|
|
78
|
-
}>>>, {
|
|
68
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
69
|
+
declare const __VLS_component: import('vue').DefineComponent<ReflectorProps, {
|
|
70
|
+
instance: import('vue').ShallowRef<Reflector | undefined, Reflector | undefined>;
|
|
71
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ReflectorProps> & Readonly<{}>, {
|
|
79
72
|
color: TresColor;
|
|
80
73
|
textureWidth: number;
|
|
81
74
|
textureHeight: number;
|
|
82
75
|
clipBias: number;
|
|
83
76
|
multisample: number;
|
|
84
77
|
shader: object;
|
|
85
|
-
}, {}>;
|
|
86
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
78
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
79
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
87
80
|
export default _default;
|
|
88
|
-
type __VLS_WithDefaults<P, D> = {
|
|
89
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
90
|
-
default: D[K];
|
|
91
|
-
}> : P[K];
|
|
92
|
-
};
|
|
93
|
-
type __VLS_Prettify<T> = {
|
|
94
|
-
[K in keyof T]: T[K];
|
|
95
|
-
} & {};
|
|
96
81
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
97
82
|
new (): {
|
|
98
83
|
$slots: S;
|
|
99
84
|
};
|
|
100
85
|
};
|
|
101
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
102
|
-
type __VLS_TypePropsToOption<T> = {
|
|
103
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
104
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
105
|
-
} : {
|
|
106
|
-
type: import('vue').PropType<T[K]>;
|
|
107
|
-
required: true;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
slots: {
|
|
3
|
+
default?(_: {}): any;
|
|
4
|
+
};
|
|
5
|
+
refs: {
|
|
6
|
+
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').EventHandlers>>>, 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, {
|
|
7
|
+
P: {};
|
|
8
|
+
B: {};
|
|
9
|
+
D: {};
|
|
10
|
+
C: {};
|
|
11
|
+
M: {};
|
|
12
|
+
Defaults: {};
|
|
13
|
+
}, 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').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Object3D<import('three').Object3DEventMap>, typeof import('three').Object3D>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
14
|
+
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').EventHandlers>>>, 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, {
|
|
15
|
+
P: {};
|
|
16
|
+
B: {};
|
|
17
|
+
D: {};
|
|
18
|
+
C: {};
|
|
19
|
+
M: {};
|
|
20
|
+
Defaults: {};
|
|
21
|
+
}, 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').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Object3D<import('three').Object3DEventMap>, typeof import('three').Object3D>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
|
|
22
|
+
};
|
|
23
|
+
attrs: Partial<{}>;
|
|
24
|
+
};
|
|
25
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
26
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
27
|
+
instance: import('vue').ShallowRef<any, any>;
|
|
28
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
29
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface ScreenSpaceProps {
|
|
2
|
+
depth?: number;
|
|
3
|
+
}
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
slots: {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {
|
|
9
|
+
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').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, {
|
|
10
|
+
P: {};
|
|
11
|
+
B: {};
|
|
12
|
+
D: {};
|
|
13
|
+
C: {};
|
|
14
|
+
M: {};
|
|
15
|
+
Defaults: {};
|
|
16
|
+
}, 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;
|
|
17
|
+
};
|
|
18
|
+
attrs: Partial<{}>;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
21
|
+
declare const __VLS_component: import('vue').DefineComponent<ScreenSpaceProps, {
|
|
22
|
+
instance: import('vue').ShallowRef<any, any>;
|
|
23
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ScreenSpaceProps> & Readonly<{}>, {
|
|
24
|
+
depth: number;
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -115,66 +115,40 @@ export interface Text3DProps {
|
|
|
115
115
|
needUpdates?: boolean;
|
|
116
116
|
}
|
|
117
117
|
declare function __VLS_template(): {
|
|
118
|
-
|
|
118
|
+
slots: {
|
|
119
|
+
default?(_: {}): any;
|
|
120
|
+
};
|
|
121
|
+
refs: {
|
|
122
|
+
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').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, {
|
|
123
|
+
P: {};
|
|
124
|
+
B: {};
|
|
125
|
+
D: {};
|
|
126
|
+
C: {};
|
|
127
|
+
M: {};
|
|
128
|
+
Defaults: {};
|
|
129
|
+
}, 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;
|
|
130
|
+
};
|
|
131
|
+
attrs: Partial<{}>;
|
|
119
132
|
};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
bevelEnabled: boolean;
|
|
125
|
-
bevelThickness: number;
|
|
126
|
-
bevelSize: number;
|
|
127
|
-
bevelOffset: number;
|
|
128
|
-
bevelSegments: number;
|
|
133
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
134
|
+
declare const __VLS_component: import('vue').DefineComponent<Text3DProps, {
|
|
135
|
+
instance: import('vue').ShallowRef<any, any>;
|
|
136
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Text3DProps> & Readonly<{}>, {
|
|
129
137
|
center: boolean;
|
|
130
|
-
needUpdates: boolean;
|
|
131
|
-
}>, {
|
|
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>, {
|
|
134
|
-
size: number;
|
|
135
138
|
height: number;
|
|
136
139
|
curveSegments: number;
|
|
137
|
-
bevelEnabled: boolean;
|
|
138
|
-
bevelThickness: number;
|
|
139
|
-
bevelSize: number;
|
|
140
|
-
bevelOffset: number;
|
|
141
|
-
bevelSegments: number;
|
|
142
|
-
center: boolean;
|
|
143
|
-
needUpdates: boolean;
|
|
144
|
-
}>>>, {
|
|
145
140
|
size: number;
|
|
146
|
-
height: number;
|
|
147
|
-
curveSegments: number;
|
|
148
141
|
bevelEnabled: boolean;
|
|
149
142
|
bevelThickness: number;
|
|
150
143
|
bevelSize: number;
|
|
151
144
|
bevelOffset: number;
|
|
152
145
|
bevelSegments: number;
|
|
153
|
-
center: boolean;
|
|
154
146
|
needUpdates: boolean;
|
|
155
|
-
}, {}>;
|
|
156
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component,
|
|
147
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
148
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
157
149
|
export default _default;
|
|
158
|
-
|
|
159
|
-
type __VLS_WithDefaults<P, D> = {
|
|
160
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
161
|
-
default: D[K];
|
|
162
|
-
}> : P[K];
|
|
163
|
-
};
|
|
164
|
-
type __VLS_Prettify<T> = {
|
|
165
|
-
[K in keyof T]: T[K];
|
|
166
|
-
} & {};
|
|
167
150
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
168
151
|
new (): {
|
|
169
152
|
$slots: S;
|
|
170
153
|
};
|
|
171
154
|
};
|
|
172
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
173
|
-
type __VLS_TypePropsToOption<T> = {
|
|
174
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
175
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
176
|
-
} : {
|
|
177
|
-
type: import('vue').PropType<T[K]>;
|
|
178
|
-
required: true;
|
|
179
|
-
};
|
|
180
|
-
};
|
|
@@ -1,15 +1,25 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import {
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as Reflector } from './Reflector.vue';
|
|
5
|
-
import { default as MouseParallax } from './MouseParallax.vue';
|
|
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';
|
|
6
4
|
import { GlobalAudio } from './GlobalAudio';
|
|
5
|
+
import { default as GradientTexture } from './GradientTexture.vue';
|
|
6
|
+
import { default as Image } from './Image/component.vue';
|
|
7
7
|
import { default as Lensflare } from './Lensflare/component.vue';
|
|
8
|
+
import { default as Levioso } from './Levioso.vue';
|
|
9
|
+
import { default as Mask } from './Mask/component.vue';
|
|
10
|
+
import { default as MouseParallax } from './MouseParallax.vue';
|
|
11
|
+
import { default as Outline } from './Outline/component.vue';
|
|
12
|
+
import { default as PositionalAudio } from './PositionalAudio.vue';
|
|
13
|
+
import { default as Reflector } from './Reflector.vue';
|
|
14
|
+
import { default as ScreenSpace } from './ScreenSpace.vue';
|
|
15
|
+
import { default as Text3D } from './Text3D.vue';
|
|
16
|
+
import { useAnimations } from './useAnimations';
|
|
17
|
+
import { useMask } from './Mask/useMask';
|
|
8
18
|
import { default as Fbo } from './useFBO/component.vue';
|
|
9
19
|
import { default as Sampler } from './useSurfaceSampler/component.vue';
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
20
|
+
import { default as ScreenSizer } from './ScreenSizer.vue';
|
|
21
|
+
import { default as Edges } from './Edges.vue';
|
|
22
|
+
export * from '../staging/useEnvironment';
|
|
12
23
|
export * from './useFBO/';
|
|
13
24
|
export * from './useSurfaceSampler';
|
|
14
|
-
export
|
|
15
|
-
export { Text3D, useAnimations, MouseParallax, Levioso, Reflector, Lensflare, GlobalAudio, Fbo, Sampler, AnimatedSprite, PositionalAudio, };
|
|
25
|
+
export { AnimatedSprite, Billboard, CubeCamera, Edges, Fbo, GlobalAudio, GradientTexture, Image, Lensflare, Levioso, Mask, MouseParallax, Outline, PositionalAudio, Reflector, Sampler, ScreenSizer, ScreenSpace, Text3D, useAnimations, useMask, };
|
|
@@ -1,34 +1,9 @@
|
|
|
1
1
|
import { FboOptions } from '.';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<
|
|
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<{}>, {
|
|
3
5
|
depth: boolean;
|
|
4
|
-
settings: undefined;
|
|
5
|
-
autoRender: boolean;
|
|
6
|
-
}>, {
|
|
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>, {
|
|
9
|
-
depth: boolean;
|
|
10
|
-
settings: undefined;
|
|
11
|
-
autoRender: boolean;
|
|
12
|
-
}>>>, {
|
|
13
6
|
settings: import('three').RenderTargetOptions;
|
|
14
|
-
depth: boolean;
|
|
15
7
|
autoRender: boolean;
|
|
16
|
-
}, {}>;
|
|
8
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
9
|
export default _default;
|
|
18
|
-
type __VLS_WithDefaults<P, D> = {
|
|
19
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
20
|
-
default: D[K];
|
|
21
|
-
}> : P[K];
|
|
22
|
-
};
|
|
23
|
-
type __VLS_Prettify<T> = {
|
|
24
|
-
[K in keyof T]: T[K];
|
|
25
|
-
} & {};
|
|
26
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
|
-
type __VLS_TypePropsToOption<T> = {
|
|
28
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
29
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
30
|
-
} : {
|
|
31
|
-
type: import('vue').PropType<T[K]>;
|
|
32
|
-
required: true;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { WebGLRenderTarget, RenderTargetOptions } from 'three';
|
|
2
2
|
import { Ref } from 'vue';
|
|
3
3
|
export interface FboOptions {
|
|
4
4
|
width?: number;
|
|
@@ -14,4 +14,4 @@ export interface FboOptions {
|
|
|
14
14
|
*/
|
|
15
15
|
autoRender?: boolean;
|
|
16
16
|
}
|
|
17
|
-
export declare function useFBO(options: FboOptions): Ref<WebGLRenderTarget<import('three').Texture> | null>;
|
|
17
|
+
export declare function useFBO(options: FboOptions): Ref<WebGLRenderTarget<import('three').Texture> | null, WebGLRenderTarget<import('three').Texture> | null>;
|
|
@@ -1,23 +1,28 @@
|
|
|
1
1
|
import { useSurfaceSamplerProps } from '.';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
|
-
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {
|
|
7
|
+
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').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, {
|
|
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').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;
|
|
15
|
+
};
|
|
16
|
+
attrs: Partial<{}>;
|
|
4
17
|
};
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<useSurfaceSamplerProps, {
|
|
20
|
+
samplerRef: import('vue').Ref<any, any>;
|
|
21
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<useSurfaceSamplerProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
9
23
|
export default _default;
|
|
10
24
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
11
25
|
new (): {
|
|
12
26
|
$slots: S;
|
|
13
27
|
};
|
|
14
28
|
};
|
|
15
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
16
|
-
type __VLS_TypePropsToOption<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
|
-
};
|