three-stdlib 2.35.9 → 2.35.11
Sign up to get free protection for your applications and to get access to all the features.
- package/_polyfill/constants.d.cts +1 -1
- package/_polyfill/constants.d.ts +1 -1
- package/_polyfill/uv1.d.cts +1 -1
- package/_polyfill/uv1.d.ts +1 -1
- package/controls/EventDispatcher.d.cts +1 -1
- package/controls/EventDispatcher.d.ts +1 -1
- package/controls/FirstPersonControls.d.cts +1 -1
- package/controls/FirstPersonControls.d.ts +1 -1
- package/controls/experimental/CameraControls.d.cts +1 -1
- package/controls/experimental/CameraControls.d.ts +1 -1
- package/exporters/STLExporter.d.cts +1 -1
- package/exporters/STLExporter.d.ts +1 -1
- package/geometries/TextGeometry.d.cts +1 -1
- package/geometries/TextGeometry.d.ts +1 -1
- package/libs/lottie.cjs +1 -1
- package/libs/lottie.cjs.map +1 -1
- package/libs/lottie.js +1 -1
- package/libs/lottie.js.map +1 -1
- package/libs/zstddec.d.cts +1 -1
- package/libs/zstddec.d.ts +1 -1
- package/loaders/FontLoader.d.cts +2 -2
- package/loaders/FontLoader.d.ts +2 -2
- package/math/SimplexNoise.d.cts +1 -1
- package/math/SimplexNoise.d.ts +1 -1
- package/misc/WebGL.d.cts +5 -5
- package/misc/WebGL.d.ts +5 -5
- package/modifiers/CurveModifier.d.cts +6 -6
- package/modifiers/CurveModifier.d.ts +6 -6
- package/objects/GroundProjectedEnv.d.cts +1 -1
- package/objects/GroundProjectedEnv.d.ts +1 -1
- package/package.json +1 -1
- package/shaders/ACESFilmicToneMappingShader.d.cts +1 -1
- package/shaders/ACESFilmicToneMappingShader.d.ts +1 -1
- package/shaders/AfterimageShader.d.cts +1 -1
- package/shaders/AfterimageShader.d.ts +1 -1
- package/shaders/BasicShader.d.cts +1 -1
- package/shaders/BasicShader.d.ts +1 -1
- package/shaders/BleachBypassShader.d.cts +1 -1
- package/shaders/BleachBypassShader.d.ts +1 -1
- package/shaders/BlendShader.d.cts +1 -1
- package/shaders/BlendShader.d.ts +1 -1
- package/shaders/BokehShader.d.cts +1 -1
- package/shaders/BokehShader.d.ts +1 -1
- package/shaders/BokehShader2.d.cts +2 -2
- package/shaders/BokehShader2.d.ts +2 -2
- package/shaders/BrightnessContrastShader.d.cts +1 -1
- package/shaders/BrightnessContrastShader.d.ts +1 -1
- package/shaders/ColorCorrectionShader.d.cts +1 -1
- package/shaders/ColorCorrectionShader.d.ts +1 -1
- package/shaders/ColorifyShader.d.cts +1 -1
- package/shaders/ColorifyShader.d.ts +1 -1
- package/shaders/ConvolutionShader.d.cts +1 -1
- package/shaders/ConvolutionShader.d.ts +1 -1
- package/shaders/CopyShader.d.cts +1 -1
- package/shaders/CopyShader.d.ts +1 -1
- package/shaders/DOFMipMapShader.d.cts +1 -1
- package/shaders/DOFMipMapShader.d.ts +1 -1
- package/shaders/DepthLimitedBlurShader.d.cts +2 -2
- package/shaders/DepthLimitedBlurShader.d.ts +2 -2
- package/shaders/DigitalGlitch.d.cts +1 -1
- package/shaders/DigitalGlitch.d.ts +1 -1
- package/shaders/DotScreenShader.d.cts +1 -1
- package/shaders/DotScreenShader.d.ts +1 -1
- package/shaders/FXAAShader.d.cts +1 -1
- package/shaders/FXAAShader.d.ts +1 -1
- package/shaders/FilmShader.d.cts +1 -1
- package/shaders/FilmShader.d.ts +1 -1
- package/shaders/FocusShader.d.cts +1 -1
- package/shaders/FocusShader.d.ts +1 -1
- package/shaders/FreiChenShader.d.cts +1 -1
- package/shaders/FreiChenShader.d.ts +1 -1
- package/shaders/FresnelShader.d.cts +1 -1
- package/shaders/FresnelShader.d.ts +1 -1
- package/shaders/GammaCorrectionShader.d.cts +1 -1
- package/shaders/GammaCorrectionShader.d.ts +1 -1
- package/shaders/GodRaysShader.d.cts +4 -4
- package/shaders/GodRaysShader.d.ts +4 -4
- package/shaders/HalftoneShader.d.cts +1 -1
- package/shaders/HalftoneShader.d.ts +1 -1
- package/shaders/HorizontalBlurShader.d.cts +1 -1
- package/shaders/HorizontalBlurShader.d.ts +1 -1
- package/shaders/HorizontalTiltShiftShader.d.cts +1 -1
- package/shaders/HorizontalTiltShiftShader.d.ts +1 -1
- package/shaders/HueSaturationShader.d.cts +1 -1
- package/shaders/HueSaturationShader.d.ts +1 -1
- package/shaders/KaleidoShader.d.cts +1 -1
- package/shaders/KaleidoShader.d.ts +1 -1
- package/shaders/LuminosityHighPassShader.d.cts +1 -1
- package/shaders/LuminosityHighPassShader.d.ts +1 -1
- package/shaders/LuminosityShader.d.cts +1 -1
- package/shaders/LuminosityShader.d.ts +1 -1
- package/shaders/MirrorShader.d.cts +1 -1
- package/shaders/MirrorShader.d.ts +1 -1
- package/shaders/NormalMapShader.d.cts +1 -1
- package/shaders/NormalMapShader.d.ts +1 -1
- package/shaders/ParallaxShader.d.cts +1 -1
- package/shaders/ParallaxShader.d.ts +1 -1
- package/shaders/PixelShader.d.cts +1 -1
- package/shaders/PixelShader.d.ts +1 -1
- package/shaders/RGBShiftShader.d.cts +1 -1
- package/shaders/RGBShiftShader.d.ts +1 -1
- package/shaders/SAOShader.d.cts +1 -1
- package/shaders/SAOShader.d.ts +1 -1
- package/shaders/SMAAShader.d.cts +3 -3
- package/shaders/SMAAShader.d.ts +3 -3
- package/shaders/SSAOShader.d.cts +3 -3
- package/shaders/SSAOShader.d.ts +3 -3
- package/shaders/SSRShader.d.cts +3 -3
- package/shaders/SSRShader.d.ts +3 -3
- package/shaders/SepiaShader.d.cts +1 -1
- package/shaders/SepiaShader.d.ts +1 -1
- package/shaders/SobelOperatorShader.d.cts +1 -1
- package/shaders/SobelOperatorShader.d.ts +1 -1
- package/shaders/SubsurfaceScatteringShader.d.cts +1 -1
- package/shaders/SubsurfaceScatteringShader.d.ts +1 -1
- package/shaders/TechnicolorShader.d.cts +1 -1
- package/shaders/TechnicolorShader.d.ts +1 -1
- package/shaders/ToneMapShader.d.cts +1 -1
- package/shaders/ToneMapShader.d.ts +1 -1
- package/shaders/ToonShader.d.cts +4 -4
- package/shaders/ToonShader.d.ts +4 -4
- package/shaders/TriangleBlurShader.d.cts +1 -1
- package/shaders/TriangleBlurShader.d.ts +1 -1
- package/shaders/UnpackDepthRGBAShader.d.cts +1 -1
- package/shaders/UnpackDepthRGBAShader.d.ts +1 -1
- package/shaders/VerticalBlurShader.d.cts +1 -1
- package/shaders/VerticalBlurShader.d.ts +1 -1
- package/shaders/VerticalTiltShiftShader.d.cts +1 -1
- package/shaders/VerticalTiltShiftShader.d.ts +1 -1
- package/shaders/VignetteShader.d.cts +1 -1
- package/shaders/VignetteShader.d.ts +1 -1
- package/shaders/VolumeShader.d.cts +1 -1
- package/shaders/VolumeShader.d.ts +1 -1
- package/shaders/WaterRefractionShader.d.cts +1 -1
- package/shaders/WaterRefractionShader.d.ts +1 -1
- package/types/helpers.d.cts +1 -1
- package/types/helpers.d.ts +1 -1
- package/utils/BufferGeometryUtils.d.cts +8 -8
- package/utils/BufferGeometryUtils.d.ts +8 -8
- package/utils/GeometryUtils.d.cts +1 -1
- package/utils/GeometryUtils.d.ts +1 -1
@@ -8,7 +8,7 @@ import type { Vector2 } from 'three';
|
|
8
8
|
* pyramid filter. The pyramid filter is separable and is applied as two
|
9
9
|
* perpendicular triangle filters.
|
10
10
|
*/
|
11
|
-
export
|
11
|
+
export declare const TriangleBlurShader: {
|
12
12
|
uniforms: {
|
13
13
|
texture: {
|
14
14
|
value: null;
|
@@ -8,7 +8,7 @@ import type { Vector2 } from 'three';
|
|
8
8
|
* pyramid filter. The pyramid filter is separable and is applied as two
|
9
9
|
* perpendicular triangle filters.
|
10
10
|
*/
|
11
|
-
export
|
11
|
+
export declare const TriangleBlurShader: {
|
12
12
|
uniforms: {
|
13
13
|
texture: {
|
14
14
|
value: null;
|
@@ -15,4 +15,4 @@ export type VerticalBlurShaderUniforms = {
|
|
15
15
|
};
|
16
16
|
export interface IVerticalBlurShader extends IShader<VerticalBlurShaderUniforms> {
|
17
17
|
}
|
18
|
-
export
|
18
|
+
export declare const VerticalBlurShader: IVerticalBlurShader;
|
@@ -15,4 +15,4 @@ export type VerticalBlurShaderUniforms = {
|
|
15
15
|
};
|
16
16
|
export interface IVerticalBlurShader extends IShader<VerticalBlurShaderUniforms> {
|
17
17
|
}
|
18
|
-
export
|
18
|
+
export declare const VerticalBlurShader: IVerticalBlurShader;
|
@@ -6,7 +6,7 @@
|
|
6
6
|
* - "h" and "v" parameters should be set to "1 / width" and "1 / height"
|
7
7
|
* - "r" parameter control where "focused" horizontal line lies
|
8
8
|
*/
|
9
|
-
export
|
9
|
+
export declare const VerticalTiltShiftShader: {
|
10
10
|
uniforms: {
|
11
11
|
tDiffuse: {
|
12
12
|
value: null;
|
@@ -6,7 +6,7 @@
|
|
6
6
|
* - "h" and "v" parameters should be set to "1 / width" and "1 / height"
|
7
7
|
* - "r" parameter control where "focused" horizontal line lies
|
8
8
|
*/
|
9
|
-
export
|
9
|
+
export declare const VerticalTiltShiftShader: {
|
10
10
|
uniforms: {
|
11
11
|
tDiffuse: {
|
12
12
|
value: null;
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* based on PaintEffect postprocess from ro.me
|
4
4
|
* http://code.google.com/p/3-dreams-of-black/source/browse/deploy/js/effects/PaintEffect.js
|
5
5
|
*/
|
6
|
-
export
|
6
|
+
export declare const VignetteShader: {
|
7
7
|
uniforms: {
|
8
8
|
tDiffuse: {
|
9
9
|
value: null;
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* based on PaintEffect postprocess from ro.me
|
4
4
|
* http://code.google.com/p/3-dreams-of-black/source/browse/deploy/js/effects/PaintEffect.js
|
5
5
|
*/
|
6
|
-
export
|
6
|
+
export declare const VignetteShader: {
|
7
7
|
uniforms: {
|
8
8
|
tDiffuse: {
|
9
9
|
value: null;
|
@@ -4,7 +4,7 @@ import type { Vector2, Vector3 } from 'three';
|
|
4
4
|
* The applied techniques are based on similar implementations in the Visvis and Vispy projects.
|
5
5
|
* This is not the only approach, therefore it's marked 1.
|
6
6
|
*/
|
7
|
-
export
|
7
|
+
export declare const VolumeRenderShader1: {
|
8
8
|
uniforms: {
|
9
9
|
u_size: {
|
10
10
|
value: Vector3;
|
@@ -4,7 +4,7 @@ import type { Vector2, Vector3 } from 'three';
|
|
4
4
|
* The applied techniques are based on similar implementations in the Visvis and Vispy projects.
|
5
5
|
* This is not the only approach, therefore it's marked 1.
|
6
6
|
*/
|
7
|
-
export
|
7
|
+
export declare const VolumeRenderShader1: {
|
8
8
|
uniforms: {
|
9
9
|
u_size: {
|
10
10
|
value: Vector3;
|
package/types/helpers.d.cts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export
|
1
|
+
export declare const getWithKey: <T, K extends keyof T>(obj: T, key: K) => T[K];
|
package/types/helpers.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export
|
1
|
+
export declare const getWithKey: <T, K extends keyof T>(obj: T, key: K) => T[K];
|
@@ -4,34 +4,34 @@ import type { BufferAttribute, BufferGeometry, Float32BufferAttribute, Interleav
|
|
4
4
|
* @param {Boolean} useGroups
|
5
5
|
* @return {BufferGeometry}
|
6
6
|
*/
|
7
|
-
export
|
7
|
+
export declare const mergeBufferGeometries: (geometries: BufferGeometry[], useGroups?: boolean) => BufferGeometry | null;
|
8
8
|
/**
|
9
9
|
* @param {Array<BufferAttribute>} attributes
|
10
10
|
* @return {BufferAttribute}
|
11
11
|
*/
|
12
|
-
export
|
12
|
+
export declare const mergeBufferAttributes: (attributes: BufferAttribute[]) => BufferAttribute | null | undefined;
|
13
13
|
/**
|
14
14
|
* @param {Array<BufferAttribute>} attributes
|
15
15
|
* @return {Array<InterleavedBufferAttribute>}
|
16
16
|
*/
|
17
|
-
export
|
17
|
+
export declare const interleaveAttributes: (attributes: BufferAttribute[]) => InterleavedBufferAttribute[] | null;
|
18
18
|
/**
|
19
19
|
* @param {Array<BufferGeometry>} geometry
|
20
20
|
* @return {number}
|
21
21
|
*/
|
22
|
-
export
|
22
|
+
export declare function estimateBytesUsed(geometry: BufferGeometry): number;
|
23
23
|
/**
|
24
24
|
* @param {BufferGeometry} geometry
|
25
25
|
* @param {number} tolerance
|
26
26
|
* @return {BufferGeometry>}
|
27
27
|
*/
|
28
|
-
export
|
28
|
+
export declare function mergeVertices(geometry: BufferGeometry, tolerance?: number): BufferGeometry;
|
29
29
|
/**
|
30
30
|
* @param {BufferGeometry} geometry
|
31
31
|
* @param {number} drawMode
|
32
32
|
* @return {BufferGeometry}
|
33
33
|
*/
|
34
|
-
export
|
34
|
+
export declare function toTrianglesDrawMode(geometry: BufferGeometry, drawMode: number): BufferGeometry;
|
35
35
|
/**
|
36
36
|
* Calculates the morphed attributes of a morphed/skinned BufferGeometry.
|
37
37
|
* Helpful for Raytracing or Decals.
|
@@ -44,7 +44,7 @@ export type ComputedMorphedAttribute = {
|
|
44
44
|
morphedPositionAttribute: Float32BufferAttribute;
|
45
45
|
morphedNormalAttribute: Float32BufferAttribute;
|
46
46
|
};
|
47
|
-
export
|
47
|
+
export declare function computeMorphedAttributes(object: Mesh | Line | Points): ComputedMorphedAttribute | null;
|
48
48
|
/**
|
49
49
|
* Modifies the supplied geometry if it is non-indexed, otherwise creates a new,
|
50
50
|
* non-indexed geometry. Returns the geometry with smooth normals everywhere except
|
@@ -60,4 +60,4 @@ export type declare function computeMorphedAttributes(object: Mesh | Line | Poin
|
|
60
60
|
* @param geometry
|
61
61
|
* @param creaseAngle
|
62
62
|
*/
|
63
|
-
export
|
63
|
+
export declare function toCreasedNormals(geometry: BufferGeometry, creaseAngle?: number): BufferGeometry;
|
@@ -4,34 +4,34 @@ import type { BufferAttribute, BufferGeometry, Float32BufferAttribute, Interleav
|
|
4
4
|
* @param {Boolean} useGroups
|
5
5
|
* @return {BufferGeometry}
|
6
6
|
*/
|
7
|
-
export
|
7
|
+
export declare const mergeBufferGeometries: (geometries: BufferGeometry[], useGroups?: boolean) => BufferGeometry | null;
|
8
8
|
/**
|
9
9
|
* @param {Array<BufferAttribute>} attributes
|
10
10
|
* @return {BufferAttribute}
|
11
11
|
*/
|
12
|
-
export
|
12
|
+
export declare const mergeBufferAttributes: (attributes: BufferAttribute[]) => BufferAttribute | null | undefined;
|
13
13
|
/**
|
14
14
|
* @param {Array<BufferAttribute>} attributes
|
15
15
|
* @return {Array<InterleavedBufferAttribute>}
|
16
16
|
*/
|
17
|
-
export
|
17
|
+
export declare const interleaveAttributes: (attributes: BufferAttribute[]) => InterleavedBufferAttribute[] | null;
|
18
18
|
/**
|
19
19
|
* @param {Array<BufferGeometry>} geometry
|
20
20
|
* @return {number}
|
21
21
|
*/
|
22
|
-
export
|
22
|
+
export declare function estimateBytesUsed(geometry: BufferGeometry): number;
|
23
23
|
/**
|
24
24
|
* @param {BufferGeometry} geometry
|
25
25
|
* @param {number} tolerance
|
26
26
|
* @return {BufferGeometry>}
|
27
27
|
*/
|
28
|
-
export
|
28
|
+
export declare function mergeVertices(geometry: BufferGeometry, tolerance?: number): BufferGeometry;
|
29
29
|
/**
|
30
30
|
* @param {BufferGeometry} geometry
|
31
31
|
* @param {number} drawMode
|
32
32
|
* @return {BufferGeometry}
|
33
33
|
*/
|
34
|
-
export
|
34
|
+
export declare function toTrianglesDrawMode(geometry: BufferGeometry, drawMode: number): BufferGeometry;
|
35
35
|
/**
|
36
36
|
* Calculates the morphed attributes of a morphed/skinned BufferGeometry.
|
37
37
|
* Helpful for Raytracing or Decals.
|
@@ -44,7 +44,7 @@ export type ComputedMorphedAttribute = {
|
|
44
44
|
morphedPositionAttribute: Float32BufferAttribute;
|
45
45
|
morphedNormalAttribute: Float32BufferAttribute;
|
46
46
|
};
|
47
|
-
export
|
47
|
+
export declare function computeMorphedAttributes(object: Mesh | Line | Points): ComputedMorphedAttribute | null;
|
48
48
|
/**
|
49
49
|
* Modifies the supplied geometry if it is non-indexed, otherwise creates a new,
|
50
50
|
* non-indexed geometry. Returns the geometry with smooth normals everywhere except
|
@@ -60,4 +60,4 @@ export type declare function computeMorphedAttributes(object: Mesh | Line | Poin
|
|
60
60
|
* @param geometry
|
61
61
|
* @param creaseAngle
|
62
62
|
*/
|
63
|
-
export
|
63
|
+
export declare function toCreasedNormals(geometry: BufferGeometry, creaseAngle?: number): BufferGeometry;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { Vector3 } from 'three';
|
2
|
-
export
|
2
|
+
export declare const GeometryUtils: {
|
3
3
|
hilbert3D: (center?: Vector3, size?: number, iterations?: number, v0?: number, v1?: number, v2?: number, v3?: number, v4?: number, v5?: number, v6?: number, v7?: number) => Vector3[];
|
4
4
|
gosper: (size?: number) => number[];
|
5
5
|
hilbert2D: (center?: Vector3, size?: number, iterations?: number, v0?: number, v1?: number, v2?: number, v3?: number) => Vector3[];
|
package/utils/GeometryUtils.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { Vector3 } from 'three';
|
2
|
-
export
|
2
|
+
export declare const GeometryUtils: {
|
3
3
|
hilbert3D: (center?: Vector3, size?: number, iterations?: number, v0?: number, v1?: number, v2?: number, v3?: number, v4?: number, v5?: number, v6?: number, v7?: number) => Vector3[];
|
4
4
|
gosper: (size?: number) => number[];
|
5
5
|
hilbert2D: (center?: Vector3, size?: number, iterations?: number, v0?: number, v1?: number, v2?: number, v3?: number) => Vector3[];
|