fastnoiselite-builder 0.1.0 → 0.2.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/ANoiseBuilder-CexggqMu.js +2326 -0
- package/dist/index.js +924 -3226
- package/dist/tsl/builder/TSLNoiseBuilder2D.d.ts +19 -0
- package/dist/tsl/builder/TSLNoiseBuilder3D.d.ts +36 -0
- package/dist/tsl/builder/index.d.ts +2 -0
- package/dist/tsl/index.d.ts +3 -0
- package/dist/tsl/index.js +2998 -0
- package/dist/tsl/transform/transform3d.tsl.d.ts +6 -0
- package/dist/tsl/wgsl/constants.d.ts +16 -0
- package/dist/tsl/wgsl/fractal/fbm.wgsl.d.ts +10 -0
- package/dist/tsl/wgsl/fractal/index.d.ts +3 -0
- package/dist/tsl/wgsl/fractal/pingpong.wgsl.d.ts +10 -0
- package/dist/tsl/wgsl/fractal/ridged.wgsl.d.ts +10 -0
- package/dist/tsl/wgsl/helpers.d.ts +6 -0
- package/dist/tsl/wgsl/noise/cellular.wgsl.d.ts +28 -0
- package/dist/tsl/wgsl/noise/index.d.ts +6 -0
- package/dist/tsl/wgsl/noise/opensimplex2.wgsl.d.ts +24 -0
- package/dist/tsl/wgsl/noise/opensimplex2s.wgsl.d.ts +24 -0
- package/dist/tsl/wgsl/noise/perlin.wgsl.d.ts +23 -0
- package/dist/tsl/wgsl/noise/value-cubic.wgsl.d.ts +23 -0
- package/dist/tsl/wgsl/noise/value.wgsl.d.ts +23 -0
- package/dist/tsl/wgsl/warp/basic-grid.wgsl.d.ts +15 -0
- package/dist/tsl/wgsl/warp/index.d.ts +2 -0
- package/dist/tsl/wgsl/warp/opensimplex2.wgsl.d.ts +19 -0
- package/package.json +18 -3
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TransformType3D } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Returns a WGSL code snippet that transforms (x, y, z) variables in-place.
|
|
4
|
+
* Expects variables named x, y, z to exist as `var` in the calling scope.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getTransformWGSL3D(type: TransformType3D): string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare function wgslPrimes(): string;
|
|
2
|
+
export declare function wgslGradients2D(): string;
|
|
3
|
+
export declare function wgslGradients3D(): string;
|
|
4
|
+
export declare function wgslRandVecs2D(): string;
|
|
5
|
+
export declare function wgslRandVecs3D(): string;
|
|
6
|
+
export declare function wgslImul(): string;
|
|
7
|
+
export declare function wgslHashR2(): string;
|
|
8
|
+
export declare function wgslHashR3(): string;
|
|
9
|
+
export declare function wgslValCoordR2(): string;
|
|
10
|
+
export declare function wgslValCoordR3(): string;
|
|
11
|
+
export declare function wgslGradCoordR2(): string;
|
|
12
|
+
export declare function wgslGradCoordR3(): string;
|
|
13
|
+
export declare function wgslInterpHermite(): string;
|
|
14
|
+
export declare function wgslInterpQuintic(): string;
|
|
15
|
+
export declare function wgslCubicLerp(): string;
|
|
16
|
+
export declare function wgslPingPong(): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wraps a base 2D noise WGSL string with FBm fractal loop.
|
|
3
|
+
* Entry function: noise(x: f32, y: f32) -> f32
|
|
4
|
+
*/
|
|
5
|
+
export declare function wrapWithFBm2D(baseNoiseWGSL: string, baseNoiseFnName: string, seed: number, octaves: number, lacunarity: number, gain: number, weightedStrength: number, fractalBounding: number): string;
|
|
6
|
+
/**
|
|
7
|
+
* Wraps a base 3D noise WGSL string with FBm fractal loop.
|
|
8
|
+
* Entry function: noise(x: f32, y: f32, z: f32) -> f32
|
|
9
|
+
*/
|
|
10
|
+
export declare function wrapWithFBm3D(baseNoiseWGSL: string, baseNoiseFnName: string, seed: number, octaves: number, lacunarity: number, gain: number, weightedStrength: number, fractalBounding: number): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wraps a base 2D noise WGSL string with PingPong fractal loop.
|
|
3
|
+
* Entry function: noise(x: f32, y: f32) -> f32
|
|
4
|
+
*/
|
|
5
|
+
export declare function wrapWithPingPong2D(baseNoiseWGSL: string, baseNoiseFnName: string, seed: number, octaves: number, lacunarity: number, gain: number, weightedStrength: number, fractalBounding: number, pingPongStrength: number): string;
|
|
6
|
+
/**
|
|
7
|
+
* Wraps a base 3D noise WGSL string with PingPong fractal loop.
|
|
8
|
+
* Entry function: noise(x: f32, y: f32, z: f32) -> f32
|
|
9
|
+
*/
|
|
10
|
+
export declare function wrapWithPingPong3D(baseNoiseWGSL: string, baseNoiseFnName: string, seed: number, octaves: number, lacunarity: number, gain: number, weightedStrength: number, fractalBounding: number, pingPongStrength: number): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wraps a base 2D noise WGSL string with Ridged fractal loop.
|
|
3
|
+
* Entry function: noise(x: f32, y: f32) -> f32
|
|
4
|
+
*/
|
|
5
|
+
export declare function wrapWithRidged2D(baseNoiseWGSL: string, baseNoiseFnName: string, seed: number, octaves: number, lacunarity: number, gain: number, weightedStrength: number, fractalBounding: number): string;
|
|
6
|
+
/**
|
|
7
|
+
* Wraps a base 3D noise WGSL string with Ridged fractal loop.
|
|
8
|
+
* Entry function: noise(x: f32, y: f32, z: f32) -> f32
|
|
9
|
+
*/
|
|
10
|
+
export declare function wrapWithRidged3D(baseNoiseWGSL: string, baseNoiseFnName: string, seed: number, octaves: number, lacunarity: number, gain: number, weightedStrength: number, fractalBounding: number): string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type WGSLHelper = 'primes' | 'primesDouble' | 'imul' | 'hashR2' | 'hashR3' | 'gradients2D' | 'gradients3D' | 'randVecs2D' | 'randVecs3D' | 'valCoordR2' | 'valCoordR3' | 'gradCoordR2' | 'gradCoordR3' | 'interpHermite' | 'interpQuintic' | 'cubicLerp' | 'pingPong';
|
|
2
|
+
/**
|
|
3
|
+
* Emits all required WGSL helper declarations, deduplicated.
|
|
4
|
+
* Resolves dependencies automatically.
|
|
5
|
+
*/
|
|
6
|
+
export declare function emitWGSLHelpers(...helperLists: WGSLHelper[][]): string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CellularDistanceFunction, CellularReturnType } from '../../../types';
|
|
2
|
+
import type { WGSLHelper } from '../helpers';
|
|
3
|
+
/**
|
|
4
|
+
* Returns WGSL string for Cellular 2D noise.
|
|
5
|
+
* Distance function and return type are baked at build-time.
|
|
6
|
+
* Entry function: cellular2d(seed: i32, x: f32, y: f32) -> f32
|
|
7
|
+
*/
|
|
8
|
+
export declare function getCellularNoiseWGSL2D(distFn: CellularDistanceFunction, returnType: CellularReturnType, jitterModifier: number): string;
|
|
9
|
+
/**
|
|
10
|
+
* Returns WGSL string for Cellular 3D noise.
|
|
11
|
+
* Distance function and return type are baked at build-time.
|
|
12
|
+
* Entry function: cellular3d(seed: i32, x: f32, y: f32, z: f32) -> f32
|
|
13
|
+
*/
|
|
14
|
+
export declare function getCellularNoiseWGSL3D(distFn: CellularDistanceFunction, returnType: CellularReturnType, jitterModifier: number): string;
|
|
15
|
+
export declare const CELLULAR_2D_HELPERS: WGSLHelper[];
|
|
16
|
+
export declare const CELLULAR_3D_HELPERS: WGSLHelper[];
|
|
17
|
+
/**
|
|
18
|
+
* Returns ONLY the core WGSL for Cellular 2D noise, without helper declarations.
|
|
19
|
+
* Includes: CELL_JITTER_2D constant, cellDist2d, cellReturn2d, cellular2d functions.
|
|
20
|
+
* Use with emitWGSLHelpers(CELLULAR_2D_HELPERS) to get the full shader.
|
|
21
|
+
*/
|
|
22
|
+
export declare function getCellularNoiseWGSL2DCore(distFn: CellularDistanceFunction, returnType: CellularReturnType, jitterModifier: number): string;
|
|
23
|
+
/**
|
|
24
|
+
* Returns ONLY the core WGSL for Cellular 3D noise, without helper declarations.
|
|
25
|
+
* Includes: CELL_JITTER_3D constant, cellDist3d, cellReturn3d, cellular3d functions.
|
|
26
|
+
* Use with emitWGSLHelpers(CELLULAR_3D_HELPERS) to get the full shader.
|
|
27
|
+
*/
|
|
28
|
+
export declare function getCellularNoiseWGSL3DCore(distFn: CellularDistanceFunction, returnType: CellularReturnType, jitterModifier: number): string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { getValueNoiseWGSL2D, getValueNoiseWGSL3D, getValueNoiseWGSL2DCore, getValueNoiseWGSL3DCore, VALUE_2D_HELPERS, VALUE_3D_HELPERS } from './value.wgsl';
|
|
2
|
+
export { getPerlinNoiseWGSL2D, getPerlinNoiseWGSL3D, getPerlinNoiseWGSL2DCore, getPerlinNoiseWGSL3DCore, PERLIN_2D_HELPERS, PERLIN_3D_HELPERS } from './perlin.wgsl';
|
|
3
|
+
export { getValueCubicNoiseWGSL2D, getValueCubicNoiseWGSL3D, getValueCubicNoiseWGSL2DCore, getValueCubicNoiseWGSL3DCore, VALUE_CUBIC_2D_HELPERS, VALUE_CUBIC_3D_HELPERS, } from './value-cubic.wgsl';
|
|
4
|
+
export { getOpenSimplex2NoiseWGSL2D, getOpenSimplex2NoiseWGSL3D, getOpenSimplex2NoiseWGSL2DCore, getOpenSimplex2NoiseWGSL3DCore, OS2_NOISE_2D_HELPERS, OS2_NOISE_3D_HELPERS, } from './opensimplex2.wgsl';
|
|
5
|
+
export { getOpenSimplex2SNoiseWGSL2D, getOpenSimplex2SNoiseWGSL3D, getOpenSimplex2SNoiseWGSL2DCore, getOpenSimplex2SNoiseWGSL3DCore, OS2S_NOISE_2D_HELPERS, OS2S_NOISE_3D_HELPERS, } from './opensimplex2s.wgsl';
|
|
6
|
+
export { getCellularNoiseWGSL2D, getCellularNoiseWGSL3D, getCellularNoiseWGSL2DCore, getCellularNoiseWGSL3DCore, CELLULAR_2D_HELPERS, CELLULAR_3D_HELPERS, } from './cellular.wgsl';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { WGSLHelper } from '../helpers';
|
|
2
|
+
export declare const OS2_NOISE_2D_HELPERS: WGSLHelper[];
|
|
3
|
+
export declare const OS2_NOISE_3D_HELPERS: WGSLHelper[];
|
|
4
|
+
/**
|
|
5
|
+
* Returns WGSL string for OpenSimplex2 2D noise.
|
|
6
|
+
* Entry function: opensimplex2_2d(seed: i32, x: f32, y: f32) -> f32
|
|
7
|
+
*/
|
|
8
|
+
export declare function getOpenSimplex2NoiseWGSL2D(): string;
|
|
9
|
+
/**
|
|
10
|
+
* Returns WGSL string for OpenSimplex2 3D noise.
|
|
11
|
+
* Entry function: opensimplex2_3d(seed_in: i32, x: f32, y: f32, z: f32) -> f32
|
|
12
|
+
* Uses real WGSL for loop (no hoisting issues unlike TSL Loop()).
|
|
13
|
+
*/
|
|
14
|
+
export declare function getOpenSimplex2NoiseWGSL3D(): string;
|
|
15
|
+
/**
|
|
16
|
+
* Returns ONLY the core opensimplex2_2d function (no helper declarations).
|
|
17
|
+
* Use with emitWGSLHelpers(OS2_NOISE_2D_HELPERS) for deduplicated composition.
|
|
18
|
+
*/
|
|
19
|
+
export declare function getOpenSimplex2NoiseWGSL2DCore(): string;
|
|
20
|
+
/**
|
|
21
|
+
* Returns ONLY the core opensimplex2_3d function (no helper declarations).
|
|
22
|
+
* Use with emitWGSLHelpers(OS2_NOISE_3D_HELPERS) for deduplicated composition.
|
|
23
|
+
*/
|
|
24
|
+
export declare function getOpenSimplex2NoiseWGSL3DCore(): string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { WGSLHelper } from '../helpers';
|
|
2
|
+
/**
|
|
3
|
+
* Returns WGSL string for OpenSimplex2S 2D noise.
|
|
4
|
+
* Entry function: opensimplex2s_2d(seed: i32, x: f32, y: f32) -> f32
|
|
5
|
+
*/
|
|
6
|
+
export declare function getOpenSimplex2SNoiseWGSL2D(): string;
|
|
7
|
+
/**
|
|
8
|
+
* Returns WGSL string for OpenSimplex2S 3D noise.
|
|
9
|
+
* Entry function: opensimplex2s_3d(seed: i32, x: f32, y: f32, z: f32) -> f32
|
|
10
|
+
* Uses i32() for truncation toward zero (matches Math.trunc, NOT floor).
|
|
11
|
+
*/
|
|
12
|
+
export declare function getOpenSimplex2SNoiseWGSL3D(): string;
|
|
13
|
+
export declare const OS2S_NOISE_2D_HELPERS: WGSLHelper[];
|
|
14
|
+
export declare const OS2S_NOISE_3D_HELPERS: WGSLHelper[];
|
|
15
|
+
/**
|
|
16
|
+
* Returns ONLY the `fn opensimplex2s_2d(...)` WGSL function body, without helper declarations.
|
|
17
|
+
* Use with emitWGSLHelpers(OS2S_NOISE_2D_HELPERS) to get the full shader.
|
|
18
|
+
*/
|
|
19
|
+
export declare function getOpenSimplex2SNoiseWGSL2DCore(): string;
|
|
20
|
+
/**
|
|
21
|
+
* Returns ONLY the `fn opensimplex2s_3d(...)` WGSL function body, without helper declarations.
|
|
22
|
+
* Use with emitWGSLHelpers(OS2S_NOISE_3D_HELPERS) to get the full shader.
|
|
23
|
+
*/
|
|
24
|
+
export declare function getOpenSimplex2SNoiseWGSL3DCore(): string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { WGSLHelper } from '../helpers';
|
|
2
|
+
export declare const PERLIN_2D_HELPERS: WGSLHelper[];
|
|
3
|
+
export declare const PERLIN_3D_HELPERS: WGSLHelper[];
|
|
4
|
+
/**
|
|
5
|
+
* Returns WGSL string for Perlin 2D noise.
|
|
6
|
+
* Entry function: perlin2d(seed: i32, x: f32, y: f32) -> f32
|
|
7
|
+
*/
|
|
8
|
+
export declare function getPerlinNoiseWGSL2D(): string;
|
|
9
|
+
/**
|
|
10
|
+
* Returns WGSL string for Perlin 3D noise.
|
|
11
|
+
* Entry function: perlin3d(seed: i32, x: f32, y: f32, z: f32) -> f32
|
|
12
|
+
*/
|
|
13
|
+
export declare function getPerlinNoiseWGSL3D(): string;
|
|
14
|
+
/**
|
|
15
|
+
* Returns ONLY the core fn perlin2d WGSL (no helper declarations).
|
|
16
|
+
* Use with emitWGSLHelpers(PERLIN_2D_HELPERS) to get the full shader.
|
|
17
|
+
*/
|
|
18
|
+
export declare function getPerlinNoiseWGSL2DCore(): string;
|
|
19
|
+
/**
|
|
20
|
+
* Returns ONLY the core fn perlin3d WGSL (no helper declarations).
|
|
21
|
+
* Use with emitWGSLHelpers(PERLIN_3D_HELPERS) to get the full shader.
|
|
22
|
+
*/
|
|
23
|
+
export declare function getPerlinNoiseWGSL3DCore(): string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { WGSLHelper } from '../helpers';
|
|
2
|
+
export declare const VALUE_CUBIC_2D_HELPERS: WGSLHelper[];
|
|
3
|
+
export declare const VALUE_CUBIC_3D_HELPERS: WGSLHelper[];
|
|
4
|
+
/**
|
|
5
|
+
* Returns WGSL string for ValueCubic 2D noise.
|
|
6
|
+
* Entry function: valuecubic2d(seed: i32, x: f32, y: f32) -> f32
|
|
7
|
+
*/
|
|
8
|
+
export declare function getValueCubicNoiseWGSL2D(): string;
|
|
9
|
+
/**
|
|
10
|
+
* Returns WGSL string for ValueCubic 3D noise.
|
|
11
|
+
* Entry function: valuecubic3d(seed: i32, x: f32, y: f32, z: f32) -> f32
|
|
12
|
+
*/
|
|
13
|
+
export declare function getValueCubicNoiseWGSL3D(): string;
|
|
14
|
+
/**
|
|
15
|
+
* Returns ONLY the core `fn valuecubic2d(...)` WGSL, without helper declarations.
|
|
16
|
+
* Helpers must be emitted separately via VALUE_CUBIC_2D_HELPERS.
|
|
17
|
+
*/
|
|
18
|
+
export declare function getValueCubicNoiseWGSL2DCore(): string;
|
|
19
|
+
/**
|
|
20
|
+
* Returns ONLY the core `fn valuecubic3d(...)` WGSL, without helper declarations.
|
|
21
|
+
* Helpers must be emitted separately via VALUE_CUBIC_3D_HELPERS.
|
|
22
|
+
*/
|
|
23
|
+
export declare function getValueCubicNoiseWGSL3DCore(): string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { WGSLHelper } from '../helpers';
|
|
2
|
+
/**
|
|
3
|
+
* Returns WGSL string for Value 2D noise.
|
|
4
|
+
* Entry function: value2d(seed: i32, x: f32, y: f32) -> f32
|
|
5
|
+
*/
|
|
6
|
+
export declare function getValueNoiseWGSL2D(): string;
|
|
7
|
+
/**
|
|
8
|
+
* Returns WGSL string for Value 3D noise.
|
|
9
|
+
* Entry function: value3d(seed: i32, x: f32, y: f32, z: f32) -> f32
|
|
10
|
+
*/
|
|
11
|
+
export declare function getValueNoiseWGSL3D(): string;
|
|
12
|
+
export declare const VALUE_2D_HELPERS: WGSLHelper[];
|
|
13
|
+
export declare const VALUE_3D_HELPERS: WGSLHelper[];
|
|
14
|
+
/**
|
|
15
|
+
* Returns ONLY the `fn value2d(...)` WGSL function body, without helper declarations.
|
|
16
|
+
* Use with emitWGSLHelpers(VALUE_2D_HELPERS) to get the full shader.
|
|
17
|
+
*/
|
|
18
|
+
export declare function getValueNoiseWGSL2DCore(): string;
|
|
19
|
+
/**
|
|
20
|
+
* Returns ONLY the `fn value3d(...)` WGSL function body, without helper declarations.
|
|
21
|
+
* Use with emitWGSLHelpers(VALUE_3D_HELPERS) to get the full shader.
|
|
22
|
+
*/
|
|
23
|
+
export declare function getValueNoiseWGSL3DCore(): string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { WGSLHelper } from '../helpers';
|
|
2
|
+
export declare const BASIC_GRID_WARP_2D_HELPERS: WGSLHelper[];
|
|
3
|
+
export declare const BASIC_GRID_WARP_3D_HELPERS: WGSLHelper[];
|
|
4
|
+
/**
|
|
5
|
+
* Returns WGSL core function for BasicGrid 2D domain warp.
|
|
6
|
+
* Entry: basicgrid_warp2d(seed: i32, x: f32, y: f32) -> vec2<f32>
|
|
7
|
+
* Returns unit displacement vector (caller applies amplitude).
|
|
8
|
+
*/
|
|
9
|
+
export declare function getBasicGridWarpWGSL2D(): string;
|
|
10
|
+
/**
|
|
11
|
+
* Returns WGSL core function for BasicGrid 3D domain warp.
|
|
12
|
+
* Entry: basicgrid_warp3d(seed: i32, x: f32, y: f32, z: f32) -> vec3<f32>
|
|
13
|
+
* Returns unit displacement vector (caller applies amplitude).
|
|
14
|
+
*/
|
|
15
|
+
export declare function getBasicGridWarpWGSL3D(): string;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { getBasicGridWarpWGSL2D, getBasicGridWarpWGSL3D, BASIC_GRID_WARP_2D_HELPERS, BASIC_GRID_WARP_3D_HELPERS, } from './basic-grid.wgsl';
|
|
2
|
+
export { getOpenSimplex2WarpWGSL2D, getOpenSimplex2WarpWGSL3D, OS2_WARP_2D_HELPERS_REDUCED, OS2_WARP_2D_HELPERS_FULL, OS2_WARP_3D_HELPERS_REDUCED, OS2_WARP_3D_HELPERS_FULL, } from './opensimplex2.wgsl';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { WGSLHelper } from '../helpers';
|
|
2
|
+
export declare const OS2_WARP_2D_HELPERS_REDUCED: WGSLHelper[];
|
|
3
|
+
export declare const OS2_WARP_2D_HELPERS_FULL: WGSLHelper[];
|
|
4
|
+
export declare const OS2_WARP_3D_HELPERS_REDUCED: WGSLHelper[];
|
|
5
|
+
export declare const OS2_WARP_3D_HELPERS_FULL: WGSLHelper[];
|
|
6
|
+
/**
|
|
7
|
+
* Returns WGSL core function for OpenSimplex2 2D domain warp.
|
|
8
|
+
* Entry: os2_warp2d(seed: i32, cx: f32, cy: f32) -> vec2<f32>
|
|
9
|
+
* cx, cy are the RAW input coords (F2 skew + frequency applied inside).
|
|
10
|
+
* Returns displacement vector.
|
|
11
|
+
*/
|
|
12
|
+
export declare function getOpenSimplex2WarpWGSL2D(frequency: number, reduced: boolean): string;
|
|
13
|
+
/**
|
|
14
|
+
* Returns WGSL core function for OpenSimplex2 3D domain warp.
|
|
15
|
+
* Entry: os2_warp3d(seed_in: i32, x_in: f32, y_in: f32, z_in: f32) -> vec3<f32>
|
|
16
|
+
* x_in, y_in, z_in are already transformed + frequency-scaled.
|
|
17
|
+
* Returns displacement vector.
|
|
18
|
+
*/
|
|
19
|
+
export declare function getOpenSimplex2WarpWGSL3D(reduced: boolean): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fastnoiselite-builder",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -9,9 +9,23 @@
|
|
|
9
9
|
".": {
|
|
10
10
|
"import": "./dist/index.js",
|
|
11
11
|
"types": "./dist/index.d.ts"
|
|
12
|
+
},
|
|
13
|
+
"./tsl": {
|
|
14
|
+
"import": "./dist/tsl/index.js",
|
|
15
|
+
"types": "./dist/tsl/index.d.ts"
|
|
12
16
|
}
|
|
13
17
|
},
|
|
14
|
-
"
|
|
18
|
+
"peerDependencies": {
|
|
19
|
+
"three": ">=0.170.0"
|
|
20
|
+
},
|
|
21
|
+
"peerDependenciesMeta": {
|
|
22
|
+
"three": {
|
|
23
|
+
"optional": true
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"dist"
|
|
28
|
+
],
|
|
15
29
|
"scripts": {
|
|
16
30
|
"build:lib": "vite build --config vite.lib.config.js && tsc -p tsconfig.lib.json",
|
|
17
31
|
"prepublishOnly": "npm run build:lib",
|
|
@@ -23,9 +37,10 @@
|
|
|
23
37
|
},
|
|
24
38
|
"devDependencies": {
|
|
25
39
|
"@types/three": "^0.182.0",
|
|
40
|
+
"lil-gui": "^0.21.0",
|
|
26
41
|
"three": "^0.182.0",
|
|
27
42
|
"typescript": "~5.9.3",
|
|
28
43
|
"vite": "^7.2.4",
|
|
29
44
|
"vitest": "^4.0.18"
|
|
30
45
|
}
|
|
31
|
-
}
|
|
46
|
+
}
|