@tresjs/cientos 3.9.0 → 4.0.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/dist/composables/useOnDemandInvalidation.d.ts +3 -0
  2. package/dist/core/abstractions/AnimatedSprite/Atlas.d.ts +38 -0
  3. package/dist/core/abstractions/AnimatedSprite/AtlasAnimationDefinitionParser.d.ts +10 -0
  4. package/dist/core/abstractions/AnimatedSprite/StringOps.d.ts +2 -0
  5. package/dist/core/abstractions/AnimatedSprite/component.vue.d.ts +130 -0
  6. package/dist/core/abstractions/Lensflare/component.vue.d.ts +4 -4
  7. package/dist/core/abstractions/Levioso.vue.d.ts +15 -13
  8. package/dist/core/abstractions/MouseParallax.vue.d.ts +6 -6
  9. package/dist/core/abstractions/Reflector.vue.d.ts +9 -7
  10. package/dist/core/abstractions/Text3D.vue.d.ts +7 -5
  11. package/dist/core/abstractions/index.d.ts +2 -1
  12. package/dist/core/abstractions/useFBO/component.vue.d.ts +2 -2
  13. package/dist/core/abstractions/useFBO/index.d.ts +2 -2
  14. package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +6 -4
  15. package/dist/core/abstractions/useSurfaceSampler/index.d.ts +161 -133
  16. package/dist/core/controls/CameraControls.vue.d.ts +1593 -1473
  17. package/dist/core/controls/KeyboardControls.vue.d.ts +39 -85
  18. package/dist/core/controls/MapControls.vue.d.ts +9495 -2
  19. package/dist/core/controls/OrbitControls.vue.d.ts +1366 -1262
  20. package/dist/core/controls/PointerLockControls.vue.d.ts +1 -1
  21. package/dist/core/controls/ScrollControls.vue.d.ts +19 -15
  22. package/dist/core/controls/TransformControls.vue.d.ts +6 -2
  23. package/dist/core/index.d.ts +0 -1
  24. package/dist/core/loaders/SVG/component.vue.d.ts +2 -2
  25. package/dist/core/loaders/useFBX/component.vue.d.ts +5 -5
  26. package/dist/core/loaders/useGLTF/component.vue.d.ts +9 -9
  27. package/dist/core/loaders/useGLTF/index.d.ts +41 -0
  28. package/dist/core/materials/customShaderMaterial/index.vue.d.ts +4 -2
  29. package/dist/core/materials/holographicMaterial/index.vue.d.ts +22 -22
  30. package/dist/core/materials/meshGlassMaterial/index.vue.d.ts +1 -1
  31. package/dist/core/materials/{blurPass.d.ts → meshReflectionMaterial/BlurPass.d.ts} +6 -5
  32. package/dist/core/materials/meshReflectionMaterial/index.vue.d.ts +170 -40
  33. package/dist/core/materials/meshReflectionMaterial/material.d.ts +31 -34
  34. package/dist/core/materials/meshWobbleMaterial/index.vue.d.ts +7 -5
  35. package/dist/core/misc/html/HTML.vue.d.ts +8 -4
  36. package/dist/core/misc/index.d.ts +1 -2
  37. package/dist/core/shapes/Box.vue.d.ts +9 -7
  38. package/dist/core/shapes/CatmullRomCurve3.vue.d.ts +3 -1
  39. package/dist/core/shapes/Circle.vue.d.ts +9 -7
  40. package/dist/core/shapes/Cone.vue.d.ts +9 -7
  41. package/dist/core/shapes/Cylinder.vue.d.ts +60 -0
  42. package/dist/core/shapes/Dodecahedron.vue.d.ts +9 -7
  43. package/dist/core/shapes/Icosahedron.vue.d.ts +9 -7
  44. package/dist/core/shapes/Line2.vue.d.ts +4 -2
  45. package/dist/core/shapes/Octahedron.vue.d.ts +9 -7
  46. package/dist/core/shapes/Plane.vue.d.ts +9 -7
  47. package/dist/core/shapes/Ring.vue.d.ts +9 -7
  48. package/dist/core/shapes/RoundedBox.vue.d.ts +9 -7
  49. package/dist/core/shapes/Sphere.vue.d.ts +9 -7
  50. package/dist/core/shapes/Superformula.vue.d.ts +8 -6
  51. package/dist/core/shapes/Tetrahedron.vue.d.ts +9 -7
  52. package/dist/core/shapes/Torus.vue.d.ts +9 -7
  53. package/dist/core/shapes/TorusKnot.vue.d.ts +9 -7
  54. package/dist/core/shapes/Tube.vue.d.ts +10 -8
  55. package/dist/core/shapes/index.d.ts +2 -1
  56. package/dist/core/staging/Backdrop.vue.d.ts +9 -5
  57. package/dist/core/staging/ContactShadows.vue.d.ts +173 -0
  58. package/dist/core/staging/Fit.vue.d.ts +9 -6
  59. package/dist/core/staging/Ocean.vue.d.ts +11 -9
  60. package/dist/core/staging/Precipitation.vue.d.ts +6 -4
  61. package/dist/core/staging/Sky.vue.d.ts +2 -2
  62. package/dist/core/staging/Smoke.vue.d.ts +3 -3
  63. package/dist/core/staging/Sparkles/ShaderDataBuilder.d.ts +3 -3
  64. package/dist/core/staging/Sparkles/component.vue.d.ts +10 -8
  65. package/dist/core/staging/Stars.vue.d.ts +4 -4
  66. package/dist/core/staging/useEnvironment/component.vue.d.ts +8 -6
  67. package/dist/core/staging/useEnvironment/lightformer/index.vue.d.ts +11 -11
  68. package/dist/trescientos.js +6517 -6177
  69. package/dist/trescientos.umd.cjs +455 -440
  70. package/package.json +20 -24
  71. package/dist/core/directives/index.d.ts +0 -6
  72. package/dist/core/directives/vAlwaysLookAt.d.ts +0 -5
  73. package/dist/core/directives/vDistanceTo.d.ts +0 -4
  74. package/dist/core/directives/vLightHelper.d.ts +0 -7
  75. package/dist/core/directives/vLog.d.ts +0 -3
  76. package/dist/core/misc/useTweakPane/index.d.ts +0 -11
  77. /package/dist/core/materials/{convolutionMaterial.d.ts → meshReflectionMaterial/ConvolutionMaterial.d.ts} +0 -0
@@ -2,6 +2,7 @@ import { default as Box } from './Box.vue';
2
2
  import { default as CatmullRomCurve3 } from './CatmullRomCurve3.vue';
3
3
  import { default as Circle } from './Circle.vue';
4
4
  import { default as Cone } from './Cone.vue';
5
+ import { default as Cylinder } from './Cylinder.vue';
5
6
  import { default as Dodecahedron } from './Dodecahedron.vue';
6
7
  import { default as Icosahedron } from './Icosahedron.vue';
7
8
  import { default as Line2 } from './Line2.vue';
@@ -16,4 +17,4 @@ import { default as Torus } from './Torus.vue';
16
17
  import { default as TorusKnot } from './TorusKnot.vue';
17
18
  import { default as Tube } from './Tube.vue';
18
19
 
19
- export { Box, CatmullRomCurve3, Circle, Cone, Dodecahedron, Icosahedron, Line2, Octahedron, Plane, Ring, RoundedBox, Sphere, Superformula, Tetrahedron, Torus, TorusKnot, Tube, };
20
+ export { Box, CatmullRomCurve3, Circle, Cone, Cylinder, Dodecahedron, Icosahedron, Line2, Octahedron, Plane, Ring, RoundedBox, Sphere, Superformula, Tetrahedron, Torus, TorusKnot, Tube, };
@@ -3,11 +3,16 @@ export interface BackdropProps {
3
3
  segments?: number;
4
4
  receiveShadow?: boolean;
5
5
  }
6
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BackdropProps>, {
6
+ declare function __VLS_template(): {
7
+ default?(_: {}): any;
8
+ };
9
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BackdropProps>, {
7
10
  floor: number;
8
11
  segments: number;
9
12
  receiveShadow: boolean;
10
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BackdropProps>, {
13
+ }>, {
14
+ instance: import('vue').ShallowRef<any>;
15
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BackdropProps>, {
11
16
  floor: number;
12
17
  segments: number;
13
18
  receiveShadow: boolean;
@@ -15,9 +20,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
15
20
  receiveShadow: boolean;
16
21
  floor: number;
17
22
  segments: number;
18
- }, {}>, {
19
- default?(_: {}): any;
20
- }>;
23
+ }, {}>;
24
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
21
25
  export default _default;
22
26
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
27
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -0,0 +1,173 @@
1
+ import { TresColor } from '@tresjs/core';
2
+
3
+ export interface ContactShadowsProps {
4
+ /**
5
+ *
6
+ * The opacity of the shadows.
7
+ *
8
+ * @default 1
9
+ * @type {number}
10
+ * @memberof ContactShadowsProps
11
+ *
12
+ */
13
+ opacity?: number;
14
+ /**
15
+ * The width of the shadows.
16
+ *
17
+ * @default 1
18
+ * @type {number}
19
+ * @memberof ContactShadowsProps
20
+ *
21
+ */
22
+ width?: number;
23
+ /**
24
+ * The height of the shadows.
25
+ *
26
+ * @default 1
27
+ * @type {number}
28
+ * @memberof ContactShadowsProps
29
+ *
30
+ */
31
+ height?: number;
32
+ /**
33
+ * The blur of the shadows.
34
+ *
35
+ * @default 1
36
+ * @type {number}
37
+ * @memberof ContactShadowsProps
38
+ *
39
+ */
40
+ blur?: number;
41
+ /**
42
+ * How far the OrthographicCamera should be to capture the shadows.
43
+ *
44
+ * @default 10
45
+ * @type {number}
46
+ * @memberof ContactShadowsProps
47
+ *
48
+ */
49
+ far?: number;
50
+ /**
51
+ * Whether the shadows should be smooth or not.
52
+ *
53
+ * @default true
54
+ * @type {boolean}
55
+ * @memberof ContactShadowsProps
56
+ *
57
+ */
58
+ smooth?: boolean;
59
+ /**
60
+ * The resolution of the shadows.
61
+ *
62
+ * @default 512
63
+ * @type {number}
64
+ * @memberof ContactShadowsProps
65
+ *
66
+ */
67
+ resolution?: number;
68
+ /**
69
+ * The number of frames to render the shadows.
70
+ *
71
+ * @default Infinity
72
+ * @type {number}
73
+ * @memberof ContactShadowsProps
74
+ *
75
+ */
76
+ frames?: number;
77
+ /**
78
+ * The scale of the shadows.
79
+ *
80
+ * @default 10
81
+ * @type {(number | [x: number, y: number])}
82
+ * @memberof ContactShadowsProps
83
+ *
84
+ */
85
+ scale?: number | [x: number, y: number];
86
+ /**
87
+ * The color of the shadows.
88
+ *
89
+ * @default '#000000'
90
+ * @type {TresColor}
91
+ * @memberof ContactShadowsProps
92
+ *
93
+ */
94
+ color?: TresColor;
95
+ /**
96
+ * Whether the shadows should write to the depth buffer or not.
97
+ *
98
+ * @default false
99
+ * @type {boolean}
100
+ * @memberof ContactShadowsProps
101
+ *
102
+ */
103
+ depthWrite?: boolean;
104
+ /**
105
+ * Whether the OrthographicCamera helper should be visible or not.
106
+ *
107
+ * @default false
108
+ * @type {boolean}
109
+ * @memberof ContactShadowsProps
110
+ *
111
+ */
112
+ helper?: boolean;
113
+ }
114
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ContactShadowsProps>, {
115
+ scale: number;
116
+ frames: number;
117
+ opacity: number;
118
+ width: number;
119
+ height: number;
120
+ blur: number;
121
+ far: number;
122
+ resolution: number;
123
+ smooth: boolean;
124
+ color: string;
125
+ depthWrite: boolean;
126
+ helper: boolean;
127
+ }>, {
128
+ instance: import('vue').ShallowRef<any>;
129
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ContactShadowsProps>, {
130
+ scale: number;
131
+ frames: number;
132
+ opacity: number;
133
+ width: number;
134
+ height: number;
135
+ blur: number;
136
+ far: number;
137
+ resolution: number;
138
+ smooth: boolean;
139
+ color: string;
140
+ depthWrite: boolean;
141
+ helper: boolean;
142
+ }>>>, {
143
+ color: TresColor;
144
+ scale: number | [x: number, y: number];
145
+ width: number;
146
+ height: number;
147
+ helper: boolean;
148
+ depthWrite: boolean;
149
+ opacity: number;
150
+ blur: number;
151
+ resolution: number;
152
+ far: number;
153
+ smooth: boolean;
154
+ frames: number;
155
+ }, {}>;
156
+ export default _default;
157
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
158
+ type __VLS_TypePropsToRuntimeProps<T> = {
159
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
160
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
161
+ } : {
162
+ type: import('vue').PropType<T[K]>;
163
+ required: true;
164
+ };
165
+ };
166
+ type __VLS_WithDefaults<P, D> = {
167
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
168
+ default: D[K];
169
+ }> : P[K];
170
+ };
171
+ type __VLS_Prettify<T> = {
172
+ [K in keyof T]: T[K];
173
+ } & {};
@@ -15,22 +15,25 @@ export interface Props {
15
15
  /** [See `precise` argument in `THREE.Box3.setFromObject`](https://threejs.org/docs/index.html?q=box3#api/en/math/Box3.setFromObject) */
16
16
  precise?: boolean;
17
17
  }
18
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
18
+ declare const props: Props;
19
+ declare function __VLS_template(): {
20
+ default?(_: {}): any;
21
+ };
22
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
19
23
  into: () => Box3;
20
24
  precise: boolean;
21
25
  }>, {
22
26
  instance: import('vue').ShallowRef<any>;
23
- fit: (into?: number | Box3 | Vector3 | Object3D<import('three').Object3DEventMap> | [number, number, number] | null | undefined, precise?: boolean) => void;
27
+ fit: (into?: typeof props.into, precise?: boolean) => void;
24
28
  update: () => void;
25
29
  }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
26
30
  into: () => Box3;
27
31
  precise: boolean;
28
32
  }>>>, {
29
- into: number | Box3 | Vector3 | Object3D<import('three').Object3DEventMap> | [number, number, number] | null;
33
+ into: number | [number, number, number] | Vector3 | Box3 | Object3D | null;
30
34
  precise: boolean;
31
- }, {}>, {
32
- default?(_: {}): any;
33
- }>;
35
+ }, {}>;
36
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
34
37
  export default _default;
35
38
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
36
39
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -98,7 +98,10 @@ export interface OceanProps {
98
98
  */
99
99
  side?: TresVector3;
100
100
  }
101
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OceanProps>, {
101
+ declare function __VLS_template(): {
102
+ default?(_: {}): any;
103
+ };
104
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OceanProps>, {
102
105
  textureWidth: number;
103
106
  textureHeight: number;
104
107
  waterNormals: string;
@@ -111,7 +114,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
111
114
  alpha: number;
112
115
  side: 0;
113
116
  }>, {
114
- root: import('vue').ShallowRef<any>;
117
+ instance: import('vue').ShallowRef<any>;
115
118
  }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OceanProps>, {
116
119
  textureWidth: number;
117
120
  textureHeight: number;
@@ -125,20 +128,19 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
125
128
  alpha: number;
126
129
  side: 0;
127
130
  }>>>, {
128
- side: Vector3 | [x: number, y: number, z: number];
131
+ side: TresVector3;
129
132
  textureWidth: number;
130
133
  textureHeight: number;
131
134
  clipBias: number;
132
135
  size: number;
133
136
  waterNormals: string;
134
- sunDirection: Vector3 | [x: number, y: number, z: number];
135
- sunColor: import('three').ColorRepresentation | [r: number, g: number, b: number];
136
- waterColor: import('three').ColorRepresentation | [r: number, g: number, b: number];
137
+ sunDirection: TresVector3;
138
+ sunColor: TresColor;
139
+ waterColor: TresColor;
137
140
  distortionScale: number;
138
141
  alpha: number;
139
- }, {}>, {
140
- default?(_: {}): any;
141
- }>;
142
+ }, {}>;
143
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
142
144
  export default _default;
143
145
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
144
146
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -121,7 +121,9 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
121
121
  depthWrite: boolean;
122
122
  transparent: boolean;
123
123
  sizeAttenuation: boolean;
124
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PrecipitationProps>, {
124
+ }>, {
125
+ instance: import('vue').ShallowRef<any>;
126
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PrecipitationProps>, {
125
127
  size: number;
126
128
  area: () => number[];
127
129
  color: number;
@@ -135,16 +137,16 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
135
137
  sizeAttenuation: boolean;
136
138
  }>>>, {
137
139
  speed: number;
138
- color: import('three').ColorRepresentation | [r: number, g: number, b: number];
140
+ color: TresColor;
139
141
  depthWrite: boolean;
140
142
  opacity: number;
141
143
  transparent: boolean;
142
144
  alphaTest: number;
143
- count: number;
144
145
  size: number;
146
+ sizeAttenuation: boolean;
147
+ count: number;
145
148
  area: [number, number, number];
146
149
  randomness: number;
147
- sizeAttenuation: boolean;
148
150
  }, {}>;
149
151
  export default _default;
150
152
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,5 +1,5 @@
1
1
  import { Vector3 } from 'three';
2
- import { Sky as SkyImpl } from 'three/examples/jsm/objects/Sky';
2
+ import { Sky as SkyImpl } from 'three-stdlib';
3
3
 
4
4
  export interface SkyProps {
5
5
  /**
@@ -41,7 +41,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
41
41
  azimuth: number;
42
42
  distance: number;
43
43
  }>, {
44
- root: import('vue').ShallowRef<SkyImpl | undefined>;
44
+ instance: import('vue').ShallowRef<SkyImpl | undefined>;
45
45
  sunPosition: Vector3;
46
46
  }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SkyProps>, {
47
47
  turbidity: number;
@@ -76,7 +76,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
76
76
  color: string;
77
77
  depthTest: boolean;
78
78
  }>, {
79
- value: import('vue').ShallowRef<any>;
79
+ instance: import('vue').ShallowRef<any>;
80
80
  }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SmokeProps>, {
81
81
  opacity: number;
82
82
  speed: number;
@@ -88,11 +88,11 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
88
88
  depthTest: boolean;
89
89
  }>>>, {
90
90
  speed: number;
91
- color: import('three').ColorRepresentation | [r: number, g: number, b: number];
91
+ color: TresColor;
92
92
  texture: string;
93
+ width: number;
93
94
  depthTest: boolean;
94
95
  opacity: number;
95
- width: number;
96
96
  depth: number;
97
97
  segments: number;
98
98
  }, {}>;
@@ -2,9 +2,9 @@ import { MaybeRef } from 'vue';
2
2
  import { GradientScalar, GradientTresColor, GradientVectorFlexibleParams } from './../../../utils/Gradient';
3
3
  import { CanvasGradientRenderer, ShaderDataEntry, ShaderData } from './ShaderData';
4
4
 
5
- declare const rgbaSuffixes: readonly ["r", "rg", "rgb", "rgba"];
6
- declare const xyzwSuffixes: readonly ["x", "xy", "xyz", "xyzw"];
7
- type ShaderSuffix = (typeof rgbaSuffixes)[number] | (typeof xyzwSuffixes)[number];
5
+ type rgbaSuffixes = ['r', 'rg', 'rgb', 'rgba'];
6
+ type xyzwSuffixes = ['x', 'xy', 'xyz', 'xyzw'];
7
+ type ShaderSuffix = (rgbaSuffixes)[number] | (xyzwSuffixes)[number];
8
8
  export default class ShaderDataBuilder {
9
9
  private entries;
10
10
  private resolution;
@@ -164,7 +164,9 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
164
164
  blending: 2;
165
165
  transparent: boolean;
166
166
  depthWrite: boolean;
167
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SparkleProps>, {
167
+ }>, {
168
+ instance: import('vue').ShallowRef<any>;
169
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SparkleProps>, {
168
170
  map: string;
169
171
  geometry: undefined;
170
172
  directionalLight: undefined;
@@ -195,14 +197,14 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
195
197
  transparent: boolean;
196
198
  depthWrite: boolean;
197
199
  }>>>, {
198
- map: string | Texture;
199
- directionalLight: Object3D<import('three').Object3DEventMap>;
200
+ map: Texture | string;
201
+ directionalLight: Object3D;
202
+ offset: number;
200
203
  blending: Blending;
201
204
  depthWrite: boolean;
202
205
  transparent: boolean;
203
- offset: number;
204
206
  size: number;
205
- geometry: Object3D<import('three').Object3DEventMap> | BufferGeometry<import('three').NormalBufferAttributes>;
207
+ geometry: Object3D | BufferGeometry;
206
208
  alpha: number;
207
209
  lifetimeSec: number;
208
210
  cooldownSec: number;
@@ -212,10 +214,10 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
212
214
  offsetNoise: number;
213
215
  lifetimeNoise: number;
214
216
  surfaceDistance: number;
215
- sequenceColor: Gradient<import('three').ColorRepresentation | [r: number, g: number, b: number]>;
217
+ sequenceColor: Gradient<TresColor>;
216
218
  sequenceAlpha: Gradient<number>;
217
- sequenceOffset: any;
218
- sequenceNoise: any;
219
+ sequenceOffset: Gradient<VectorFlexibleParams>;
220
+ sequenceNoise: Gradient<VectorFlexibleParams>;
219
221
  sequenceSize: Gradient<number>;
220
222
  sequenceSurfaceDistance: Gradient<number>;
221
223
  mixColor: number;
@@ -74,7 +74,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
74
74
  depth: number;
75
75
  radius: number;
76
76
  }>, {
77
- value: import('vue').ShallowRef<any>;
77
+ instance: import('vue').ShallowRef<any>;
78
78
  }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<StarsProps>, {
79
79
  size: number;
80
80
  sizeAttenuation: boolean;
@@ -87,12 +87,12 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
87
87
  }>>>, {
88
88
  transparent: boolean;
89
89
  alphaTest: number;
90
- count: number;
91
- radius: number;
92
90
  size: number;
93
- depth: number;
94
91
  alphaMap: null;
95
92
  sizeAttenuation: boolean;
93
+ depth: number;
94
+ count: number;
95
+ radius: number;
96
96
  }, {}>;
97
97
  export default _default;
98
98
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -2,7 +2,10 @@ import { Ref } from 'vue';
2
2
  import { CubeTexture, Texture } from 'three';
3
3
  import { EnvironmentOptions } from './const';
4
4
 
5
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<EnvironmentOptions>, {
5
+ declare function __VLS_template(): {
6
+ default?(_: {}): any;
7
+ };
8
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<EnvironmentOptions>, {
6
9
  background: boolean;
7
10
  blur: number;
8
11
  files: never[];
@@ -31,12 +34,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
31
34
  far: number;
32
35
  frames: number;
33
36
  near: number;
34
- preset: "sunset" | "studio" | "city" | "umbrellas" | "night" | "forest" | "snow" | "dawn" | "hangar" | "urban" | "modern" | "shangai";
37
+ preset: import('./const').EnvironmentPresetsType;
35
38
  files: string | string[];
36
- background: string | boolean;
37
- }, {}>, {
38
- default?(_: {}): any;
39
- }>;
39
+ background: boolean | string;
40
+ }, {}>;
41
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
40
42
  export default _default;
41
43
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
42
44
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,11 +1,11 @@
1
1
  import { Texture, Color } from 'three';
2
2
 
3
3
  declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
- args?: any[] | undefined;
5
- from?: 'circle' | 'ring' | 'rect' | any;
6
- toneMapped?: boolean | undefined;
7
- map?: Texture | undefined;
8
- intensity?: number | undefined;
4
+ args?: any[];
5
+ from?: "circle" | "ring" | "rect" | any;
6
+ toneMapped?: boolean;
7
+ map?: Texture;
8
+ intensity?: number;
9
9
  color?: any;
10
10
  }>, {
11
11
  args: any;
@@ -15,11 +15,11 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
15
15
  intensity: number;
16
16
  color: Color;
17
17
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
18
- args?: any[] | undefined;
19
- from?: 'circle' | 'ring' | 'rect' | any;
20
- toneMapped?: boolean | undefined;
21
- map?: Texture | undefined;
22
- intensity?: number | undefined;
18
+ args?: any[];
19
+ from?: "circle" | "ring" | "rect" | any;
20
+ toneMapped?: boolean;
21
+ map?: Texture;
22
+ intensity?: number;
23
23
  color?: any;
24
24
  }>, {
25
25
  args: any;
@@ -33,7 +33,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
33
33
  color: any;
34
34
  args: any[];
35
35
  toneMapped: boolean;
36
- from: 'circle' | 'ring' | 'rect' | any;
36
+ from: "circle" | "ring" | "rect" | any;
37
37
  intensity: number;
38
38
  }, {}>;
39
39
  export default _default;