@tresjs/cientos 3.6.0 → 3.7.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/Lensflare/component.vue.d.ts +52 -14
- package/dist/core/abstractions/Reflector.vue.d.ts +107 -0
- package/dist/core/abstractions/Text3D.vue.d.ts +1 -1
- package/dist/core/abstractions/index.d.ts +4 -1
- package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +21 -0
- package/dist/core/abstractions/useSurfaceSampler/index.d.ts +614 -0
- package/dist/core/controls/CameraControls.vue.d.ts +2 -2
- package/dist/core/controls/OrbitControls.vue.d.ts +2 -2
- package/dist/core/controls/PointerLockControls.vue.d.ts +2 -0
- package/dist/core/materials/customShaderMaterial/index.vue.d.ts +1 -1
- package/dist/core/misc/html/HTML.vue.d.ts +1 -1
- package/dist/core/staging/Precipitation.vue.d.ts +1 -1
- package/dist/core/staging/Sky.vue.d.ts +22 -0
- package/dist/core/staging/Sparkles/ShaderData.d.ts +1 -1
- package/dist/core/staging/Stars.vue.d.ts +2 -2
- package/dist/trescientos.js +3464 -3169
- package/dist/trescientos.umd.cjs +104 -60
- package/package.json +20 -20
|
@@ -9307,8 +9307,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
9307
9307
|
dispatchEvent: <T_32 extends never>(event: import("three").BaseEvent<T_32> & {}[T_32]) => void;
|
|
9308
9308
|
} | null>;
|
|
9309
9309
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9310
|
-
change: (...args: any[]) => void;
|
|
9311
9310
|
start: (...args: any[]) => void;
|
|
9311
|
+
change: (...args: any[]) => void;
|
|
9312
9312
|
end: (...args: any[]) => void;
|
|
9313
9313
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OrbitControlsProps>, {
|
|
9314
9314
|
makeDefault: boolean;
|
|
@@ -9336,8 +9336,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
9336
9336
|
rotateSpeed: number;
|
|
9337
9337
|
target: () => number[];
|
|
9338
9338
|
}>>> & {
|
|
9339
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
9340
9339
|
onStart?: ((...args: any[]) => any) | undefined;
|
|
9340
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
9341
9341
|
onEnd?: ((...args: any[]) => any) | undefined;
|
|
9342
9342
|
}, {
|
|
9343
9343
|
target: number | import("three").Vector3 | import("@tresjs/core").VectorCoordinates | [x: number, y: number, z: number];
|
|
@@ -42,10 +42,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
42
42
|
enabled: boolean;
|
|
43
43
|
}) | null>;
|
|
44
44
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
45
|
+
change: (...args: any[]) => void;
|
|
45
46
|
isLock: (...args: any[]) => void;
|
|
46
47
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PointerLockControlsProps>, {
|
|
47
48
|
makeDefault: boolean;
|
|
48
49
|
}>>> & {
|
|
50
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
49
51
|
onIsLock?: ((...args: any[]) => any) | undefined;
|
|
50
52
|
}, {
|
|
51
53
|
makeDefault: boolean;
|
|
@@ -8,7 +8,7 @@ interface CustomShaderMaterialProps {
|
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
10
|
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<CustomShaderMaterialProps>, {
|
|
11
|
-
value: import("vue").ShallowRef<null>;
|
|
11
|
+
value: import("vue").Ref<null> | import("vue").ShallowRef<null>;
|
|
12
12
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<CustomShaderMaterialProps>>>, {}, {}>;
|
|
13
13
|
export default _default;
|
|
14
14
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -42,8 +42,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
42
42
|
}, {
|
|
43
43
|
sprite: boolean;
|
|
44
44
|
geometry: any;
|
|
45
|
-
as: string;
|
|
46
45
|
transform: boolean;
|
|
46
|
+
as: string;
|
|
47
47
|
eps: number;
|
|
48
48
|
pointerEvents: PointerEventsProperties;
|
|
49
49
|
zIndexRange: number[];
|
|
@@ -139,9 +139,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
139
139
|
depthWrite: boolean;
|
|
140
140
|
opacity: number;
|
|
141
141
|
transparent: boolean;
|
|
142
|
+
count: number;
|
|
142
143
|
size: number;
|
|
143
144
|
area: [number, number, number];
|
|
144
|
-
count: number;
|
|
145
145
|
randomness: number;
|
|
146
146
|
sizeAttenuation: boolean;
|
|
147
147
|
}, {}>;
|
|
@@ -1,10 +1,32 @@
|
|
|
1
1
|
export interface SkyProps {
|
|
2
|
+
/**
|
|
3
|
+
* Haziness
|
|
4
|
+
* @param {number} turbidity
|
|
5
|
+
*/
|
|
2
6
|
turbidity?: number;
|
|
7
|
+
/**
|
|
8
|
+
* [Rayleigh scattering](https://en.wikipedia.org/wiki/Rayleigh_scattering)
|
|
9
|
+
*/
|
|
3
10
|
rayleigh?: number;
|
|
11
|
+
/**
|
|
12
|
+
* [Mie scattering](https://en.wikipedia.org/wiki/Mie_scattering) amount
|
|
13
|
+
*/
|
|
4
14
|
mieCoefficient?: number;
|
|
15
|
+
/**
|
|
16
|
+
* [Mie scattering](https://en.wikipedia.org/wiki/Mie_scattering) direction
|
|
17
|
+
*/
|
|
5
18
|
mieDirectionalG?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Sun's elevation from the horizon, in degrees
|
|
21
|
+
*/
|
|
6
22
|
elevation?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Sun's [azimuth angle](https://en.wikipedia.org/wiki/Solar_azimuth_angle), in degrees – its horizontal coordinate on the horizon
|
|
25
|
+
*/
|
|
7
26
|
azimuth?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Sky box scale
|
|
29
|
+
*/
|
|
8
30
|
distance?: number;
|
|
9
31
|
}
|
|
10
32
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SkyProps>, {
|
|
@@ -7,7 +7,7 @@ export declare class ShaderData {
|
|
|
7
7
|
private resolution;
|
|
8
8
|
constructor(entries: ShaderDataEntry<any>[], resolution: number);
|
|
9
9
|
useTexture(): {
|
|
10
|
-
texture: import("vue").ShallowRef<DataTexture>;
|
|
10
|
+
texture: Ref<DataTexture> | import("vue").ShallowRef<DataTexture>;
|
|
11
11
|
dispose: () => void;
|
|
12
12
|
yFor: Record<string, number>;
|
|
13
13
|
};
|
|
@@ -87,11 +87,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
87
87
|
}>>>, {
|
|
88
88
|
alphaTest: number;
|
|
89
89
|
transparent: boolean;
|
|
90
|
+
count: number;
|
|
91
|
+
radius: number;
|
|
90
92
|
size: number;
|
|
91
93
|
depth: number;
|
|
92
94
|
alphaMap: null;
|
|
93
|
-
count: number;
|
|
94
|
-
radius: number;
|
|
95
95
|
sizeAttenuation: boolean;
|
|
96
96
|
}, {}>;
|
|
97
97
|
export default _default;
|