@n3rdw1z4rd/core 0.18.0 → 0.18.2
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/css/index.ts +1 -0
- package/dist/index.css +104 -0
- package/dist/index.d.mts +40 -12
- package/dist/index.d.ts +40 -12
- package/dist/index.js +262 -97
- package/dist/index.mjs +360 -44
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './main.css';
|
package/dist/index.css
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/* src/css/reset.css */
|
|
2
|
+
*,
|
|
3
|
+
*::before,
|
|
4
|
+
*::after {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
}
|
|
7
|
+
html {
|
|
8
|
+
-moz-text-size-adjust: none;
|
|
9
|
+
-webkit-text-size-adjust: none;
|
|
10
|
+
text-size-adjust: none;
|
|
11
|
+
}
|
|
12
|
+
body,
|
|
13
|
+
h1,
|
|
14
|
+
h2,
|
|
15
|
+
h3,
|
|
16
|
+
h4,
|
|
17
|
+
p,
|
|
18
|
+
figure,
|
|
19
|
+
blockquote,
|
|
20
|
+
dl,
|
|
21
|
+
dd {
|
|
22
|
+
margin-block-end: 0;
|
|
23
|
+
}
|
|
24
|
+
ul[role=list],
|
|
25
|
+
ol[role=list] {
|
|
26
|
+
list-style: none;
|
|
27
|
+
}
|
|
28
|
+
body {
|
|
29
|
+
min-height: 100vh;
|
|
30
|
+
line-height: 1.5;
|
|
31
|
+
}
|
|
32
|
+
h1,
|
|
33
|
+
h2,
|
|
34
|
+
h3,
|
|
35
|
+
h4,
|
|
36
|
+
button,
|
|
37
|
+
input,
|
|
38
|
+
label {
|
|
39
|
+
line-height: 1.1;
|
|
40
|
+
}
|
|
41
|
+
h1,
|
|
42
|
+
h2,
|
|
43
|
+
h3,
|
|
44
|
+
h4 {
|
|
45
|
+
text-wrap: balance;
|
|
46
|
+
}
|
|
47
|
+
a:not([class]) {
|
|
48
|
+
text-decoration-skip-ink: auto;
|
|
49
|
+
color: currentColor;
|
|
50
|
+
}
|
|
51
|
+
img,
|
|
52
|
+
picture {
|
|
53
|
+
max-width: 100%;
|
|
54
|
+
display: block;
|
|
55
|
+
}
|
|
56
|
+
input,
|
|
57
|
+
button,
|
|
58
|
+
textarea,
|
|
59
|
+
select {
|
|
60
|
+
font-family: inherit;
|
|
61
|
+
font-size: inherit;
|
|
62
|
+
}
|
|
63
|
+
textarea:not([rows]) {
|
|
64
|
+
min-height: 10em;
|
|
65
|
+
}
|
|
66
|
+
:target {
|
|
67
|
+
scroll-margin-block: 5ex;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* src/css/main.css */
|
|
71
|
+
:root {
|
|
72
|
+
--color-foreground: lightgray;
|
|
73
|
+
--color-background: #111;
|
|
74
|
+
--color-border: #444;
|
|
75
|
+
--border-width: 1px;
|
|
76
|
+
--border-radius: 4px;
|
|
77
|
+
--padding-small: 4px;
|
|
78
|
+
--padding-medium: 8px;
|
|
79
|
+
--padding-large: 16px;
|
|
80
|
+
--margin-small: 4px;
|
|
81
|
+
--margin-medium: 8px;
|
|
82
|
+
--margin-large: 16px;
|
|
83
|
+
--border-style: var(--border-width) dashed var(--color-border);
|
|
84
|
+
--background-opacity-light: rgba(0, 0, 0, 0.1);
|
|
85
|
+
--background-opacity-medium: rgba(0, 0, 0, 0.5);
|
|
86
|
+
--background-opacity-dark: rgba(0, 0, 0, 0.8);
|
|
87
|
+
}
|
|
88
|
+
* {
|
|
89
|
+
font: 14px monospace;
|
|
90
|
+
}
|
|
91
|
+
html {
|
|
92
|
+
color: var(--color-foreground);
|
|
93
|
+
background-color: var(--color-background);
|
|
94
|
+
width: 100%;
|
|
95
|
+
height: 100%;
|
|
96
|
+
overflow: hidden;
|
|
97
|
+
}
|
|
98
|
+
body,
|
|
99
|
+
#root {
|
|
100
|
+
width: 100%;
|
|
101
|
+
height: 100%;
|
|
102
|
+
margin: 0;
|
|
103
|
+
padding: 0;
|
|
104
|
+
}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Mesh, Texture, MeshLambertMaterial, MeshLambertMaterialParameters, Group, PerspectiveCamera, Object3D, BoxGeometry, ColorRepresentation, WebGLRenderer, WebGLRendererParameters, Points,
|
|
1
|
+
import { Line, Vector3, Mesh, Texture, MeshLambertMaterial, MeshLambertMaterialParameters, Group, PerspectiveCamera, Object3D, BoxGeometry, ColorRepresentation, WebGLRenderer, WebGLRendererParameters, Points, BufferGeometry, MeshBasicMaterial, MeshPhongMaterial, MeshStandardMaterial, MeshPhysicalMaterial } from 'three';
|
|
2
|
+
import { CSS2DObject, CSS2DRenderer } from 'three/addons/renderers/CSS2DRenderer.js';
|
|
2
3
|
import { GUI } from 'three/examples/jsm/libs/lil-gui.module.min.js';
|
|
3
4
|
|
|
4
5
|
declare const DEFAULT_MAP_2D_VALUE = -1;
|
|
@@ -142,6 +143,19 @@ declare class Clock {
|
|
|
142
143
|
stop(): void;
|
|
143
144
|
}
|
|
144
145
|
|
|
146
|
+
type RGB = readonly [number, number, number];
|
|
147
|
+
type ColorPalette = readonly number[];
|
|
148
|
+
/**
|
|
149
|
+
* Builds a flat color palette: a grayscale ramp (black -> white) followed
|
|
150
|
+
* by a light -> dark ramp for each supplied color.
|
|
151
|
+
*
|
|
152
|
+
* @param grayscaleSteps number of grayscale entries, black -> white
|
|
153
|
+
* @param colorSteps number of steps per color, full color -> black
|
|
154
|
+
* @param colors base RGB colors to ramp; defaults to a set of common colors
|
|
155
|
+
* (white is always included via the grayscale ramp)
|
|
156
|
+
*/
|
|
157
|
+
declare function buildColorPalette(grayscaleSteps?: number, colorSteps?: number, ...colors: RGB[]): ColorPalette;
|
|
158
|
+
|
|
145
159
|
declare class Color {
|
|
146
160
|
private _hex;
|
|
147
161
|
private _r;
|
|
@@ -179,6 +193,20 @@ declare class Color {
|
|
|
179
193
|
static get TRANSPARENT(): Color;
|
|
180
194
|
}
|
|
181
195
|
|
|
196
|
+
interface DebugLabel {
|
|
197
|
+
div: HTMLDivElement;
|
|
198
|
+
label: CSS2DObject;
|
|
199
|
+
line: Line;
|
|
200
|
+
}
|
|
201
|
+
declare class DebugRenderer extends CSS2DRenderer {
|
|
202
|
+
private _labels;
|
|
203
|
+
get width(): number;
|
|
204
|
+
get height(): number;
|
|
205
|
+
constructor();
|
|
206
|
+
resize(width?: number, height?: number): boolean;
|
|
207
|
+
createLabel(text: string | string[], offset?: Vector3): DebugLabel;
|
|
208
|
+
}
|
|
209
|
+
|
|
182
210
|
declare class Disposable {
|
|
183
211
|
private readonly disposers;
|
|
184
212
|
add(disposer: () => void): void;
|
|
@@ -299,6 +327,14 @@ declare class ECS {
|
|
|
299
327
|
clear(): void;
|
|
300
328
|
}
|
|
301
329
|
|
|
330
|
+
type Listener = (...args: any[]) => void;
|
|
331
|
+
declare class Emitter {
|
|
332
|
+
private listeners;
|
|
333
|
+
constructor();
|
|
334
|
+
on<T extends string[]>(...eventName: [...T, Listener]): this;
|
|
335
|
+
emit(eventName: string, ...args: any[]): this;
|
|
336
|
+
}
|
|
337
|
+
|
|
302
338
|
declare class EventQueue<T> {
|
|
303
339
|
private readonly events;
|
|
304
340
|
emit(event: T): void;
|
|
@@ -308,14 +344,6 @@ declare class EventQueue<T> {
|
|
|
308
344
|
get size(): number;
|
|
309
345
|
}
|
|
310
346
|
|
|
311
|
-
type Listener = (...args: any[]) => void;
|
|
312
|
-
declare class Emitter {
|
|
313
|
-
private listeners;
|
|
314
|
-
constructor();
|
|
315
|
-
on<T extends string[]>(...eventName: [...T, Listener]): this;
|
|
316
|
-
emit(eventName: string, ...args: any[]): this;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
347
|
interface InputState {
|
|
320
348
|
state: number;
|
|
321
349
|
timeStamp: number;
|
|
@@ -352,6 +380,8 @@ declare class Input extends Emitter {
|
|
|
352
380
|
getMouseButtonState(button: number): number;
|
|
353
381
|
}
|
|
354
382
|
|
|
383
|
+
declare const log: (...args: any[]) => void;
|
|
384
|
+
|
|
355
385
|
declare const PI: number;
|
|
356
386
|
declare const TAU: number;
|
|
357
387
|
declare const HALF_PI: number;
|
|
@@ -739,8 +769,6 @@ declare class ThreeJsPlayerController extends Group {
|
|
|
739
769
|
update(deltaTime: number): void;
|
|
740
770
|
}
|
|
741
771
|
|
|
742
|
-
type ColorPalette = readonly number[];
|
|
743
|
-
|
|
744
772
|
declare class VoxelGeometry extends BufferGeometry {
|
|
745
773
|
type: string;
|
|
746
774
|
voxels: Map3D;
|
|
@@ -857,4 +885,4 @@ declare class WorkerInterface {
|
|
|
857
885
|
terminate(): void;
|
|
858
886
|
}
|
|
859
887
|
|
|
860
|
-
export { AStar, type AStarFindPathParams, AddThreeComponent, type AltasParams, AsteroidMesh, type AsteroidOptions, type AtlasParams, AtlasTextureMaterial, type AtlasTextureMaterialParams, BuildDefaultPalette, BuildVoxelGeometry, type BuildVoxelGeometryParams, CameraRig, type CameraRigParams, type CanvasColor, CanvasRenderer, Clock, Color, type ColorSelectionOptions, type ColorSelectionResult, Colors, type CommonEventProps, CompileShader, type Component, type ComponentType, CreatePaletteController, CreateProgram, CreateProgramInfo, CreateStarfield, CreateSubTexture, CreateSystemStar, CreateThreeEntity, CreateWebGlContext, CubeSphereGeometry, DEFAULT_COLOR, DEFAULT_FONT, DEFAULT_FONT_NAME, DEFAULT_FONT_SIZE, DEFAULT_MAP_2D_VALUE, DEFAULT_MAP_3D_VALUE, DEFAULT_PIXEL_SIZE, DEFAULT_TEXTALIGN, DEFAULT_TEXTBASELINE, DEG2RAD, Disposable, type DoorsParams, type DrawParams, E, ECS, EPSILON, type Entity, EventQueue, type EyeDropper, type FractalParams, GenerateDoors, GenerateEntityId, GenerateRooms, type GenerateRoomsParams, GenerateWalls, GetProgramLocations, GetThreeComponent, GetUrlParams, HALF_PI, Input, type InputState, IsThreeEntity, type KeyValue, LN10, LN2, LOG10E, LOG2E, LoadTexture, Map2D, type Map2DData, Map3D, Noise, ONE_SECOND, Observable, PI, type PaletteController, type PaletteControllerOnChange, ParticleRenderer, ParticleSystem2d, ParticleSystem3d, type PathsParams, type PointPair, PoissonDiskSampler, type ProgramInfo, type ProgramLocations, QUARTER_PI, RAD2DEG, Random, type RectPair, Rectangle, RemoveThreeComponent, Renderer, type RendererParams, ResizeWebGlContext, Rng, type RoomsParams, SQRT1_2, SQRT2, ShaderType, Signal, SimplexNoise, SpatialPartition2d, SpatialPartition3d, type SpatialPartitionEntity2d, type SpatialPartitionEntity3d, type SpriteParams, type System, TAU, TILE_EMPTY, TILE_FLOOR, TILE_PATH, TextureAtlas, type TextureData, type ThreeComponent, type ThreeEntity, ThreeJsCameraRig, type ThreeJsCameraRigParams, ThreeJsPlayerController, type ThreeSystem, Tilemap, type UV, VOXEL_FACES, Vector, type Voxel, type VoxelData, type VoxelFace, VoxelFaces, VoxelGeometry, type VoxelMap, type VoxelMaterial, VoxelMesh, WebGlRenderer, WorkerInterface, type XY, type XYZ, clamp, degrees, distance2d, distance3d, fract, getRedYellowGreenGradientHex, hash32, hash32mix, inverseLerp, isNullOrUndefined, isPositiveString, k2xy, k2xyz, lerp, manhattanDistance, mod, nearlyEqual, normalizeRadians, radians, randomMatrix, rng, roundTo, saturate, smoothstep, squaredDistance, wrap, xy2k, xyz2k };
|
|
888
|
+
export { AStar, type AStarFindPathParams, AddThreeComponent, type AltasParams, AsteroidMesh, type AsteroidOptions, type AtlasParams, AtlasTextureMaterial, type AtlasTextureMaterialParams, BuildDefaultPalette, BuildVoxelGeometry, type BuildVoxelGeometryParams, CameraRig, type CameraRigParams, type CanvasColor, CanvasRenderer, Clock, Color, type ColorPalette, type ColorSelectionOptions, type ColorSelectionResult, Colors, type CommonEventProps, CompileShader, type Component, type ComponentType, CreatePaletteController, CreateProgram, CreateProgramInfo, CreateStarfield, CreateSubTexture, CreateSystemStar, CreateThreeEntity, CreateWebGlContext, CubeSphereGeometry, DEFAULT_COLOR, DEFAULT_FONT, DEFAULT_FONT_NAME, DEFAULT_FONT_SIZE, DEFAULT_MAP_2D_VALUE, DEFAULT_MAP_3D_VALUE, DEFAULT_PIXEL_SIZE, DEFAULT_TEXTALIGN, DEFAULT_TEXTBASELINE, DEG2RAD, type DebugLabel, DebugRenderer, Disposable, type DoorsParams, type DrawParams, E, ECS, EPSILON, Emitter, type Entity, EventQueue, type EyeDropper, type FractalParams, GenerateDoors, GenerateEntityId, GenerateRooms, type GenerateRoomsParams, GenerateWalls, GetProgramLocations, GetThreeComponent, GetUrlParams, HALF_PI, Input, type InputState, IsThreeEntity, type KeyValue, LN10, LN2, LOG10E, LOG2E, type Listener, LoadTexture, Map2D, type Map2DData, Map3D, Noise, ONE_SECOND, Observable, PI, type PaletteController, type PaletteControllerOnChange, ParticleRenderer, ParticleSystem2d, ParticleSystem3d, type PathsParams, type PointPair, PoissonDiskSampler, type ProgramInfo, type ProgramLocations, QUARTER_PI, RAD2DEG, type RGB, Random, type RectPair, Rectangle, RemoveThreeComponent, Renderer, type RendererParams, ResizeWebGlContext, Rng, type RoomsParams, SQRT1_2, SQRT2, ShaderType, Signal, SimplexNoise, SpatialPartition2d, SpatialPartition3d, type SpatialPartitionEntity2d, type SpatialPartitionEntity3d, type SpriteParams, type System, TAU, TILE_EMPTY, TILE_FLOOR, TILE_PATH, TextureAtlas, type TextureData, type ThreeComponent, type ThreeEntity, ThreeJsCameraRig, type ThreeJsCameraRigParams, ThreeJsPlayerController, type ThreeSystem, Tilemap, type UV, VOXEL_FACES, Vector, type Voxel, type VoxelData, type VoxelFace, VoxelFaces, VoxelGeometry, type VoxelMap, type VoxelMaterial, VoxelMesh, WebGlRenderer, WorkerInterface, type XY, type XYZ, buildColorPalette, clamp, degrees, distance2d, distance3d, fract, getRedYellowGreenGradientHex, hash32, hash32mix, inverseLerp, isNullOrUndefined, isPositiveString, k2xy, k2xyz, lerp, log, manhattanDistance, mod, nearlyEqual, normalizeRadians, radians, randomMatrix, rng, roundTo, saturate, smoothstep, squaredDistance, wrap, xy2k, xyz2k };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Mesh, Texture, MeshLambertMaterial, MeshLambertMaterialParameters, Group, PerspectiveCamera, Object3D, BoxGeometry, ColorRepresentation, WebGLRenderer, WebGLRendererParameters, Points,
|
|
1
|
+
import { Line, Vector3, Mesh, Texture, MeshLambertMaterial, MeshLambertMaterialParameters, Group, PerspectiveCamera, Object3D, BoxGeometry, ColorRepresentation, WebGLRenderer, WebGLRendererParameters, Points, BufferGeometry, MeshBasicMaterial, MeshPhongMaterial, MeshStandardMaterial, MeshPhysicalMaterial } from 'three';
|
|
2
|
+
import { CSS2DObject, CSS2DRenderer } from 'three/addons/renderers/CSS2DRenderer.js';
|
|
2
3
|
import { GUI } from 'three/examples/jsm/libs/lil-gui.module.min.js';
|
|
3
4
|
|
|
4
5
|
declare const DEFAULT_MAP_2D_VALUE = -1;
|
|
@@ -142,6 +143,19 @@ declare class Clock {
|
|
|
142
143
|
stop(): void;
|
|
143
144
|
}
|
|
144
145
|
|
|
146
|
+
type RGB = readonly [number, number, number];
|
|
147
|
+
type ColorPalette = readonly number[];
|
|
148
|
+
/**
|
|
149
|
+
* Builds a flat color palette: a grayscale ramp (black -> white) followed
|
|
150
|
+
* by a light -> dark ramp for each supplied color.
|
|
151
|
+
*
|
|
152
|
+
* @param grayscaleSteps number of grayscale entries, black -> white
|
|
153
|
+
* @param colorSteps number of steps per color, full color -> black
|
|
154
|
+
* @param colors base RGB colors to ramp; defaults to a set of common colors
|
|
155
|
+
* (white is always included via the grayscale ramp)
|
|
156
|
+
*/
|
|
157
|
+
declare function buildColorPalette(grayscaleSteps?: number, colorSteps?: number, ...colors: RGB[]): ColorPalette;
|
|
158
|
+
|
|
145
159
|
declare class Color {
|
|
146
160
|
private _hex;
|
|
147
161
|
private _r;
|
|
@@ -179,6 +193,20 @@ declare class Color {
|
|
|
179
193
|
static get TRANSPARENT(): Color;
|
|
180
194
|
}
|
|
181
195
|
|
|
196
|
+
interface DebugLabel {
|
|
197
|
+
div: HTMLDivElement;
|
|
198
|
+
label: CSS2DObject;
|
|
199
|
+
line: Line;
|
|
200
|
+
}
|
|
201
|
+
declare class DebugRenderer extends CSS2DRenderer {
|
|
202
|
+
private _labels;
|
|
203
|
+
get width(): number;
|
|
204
|
+
get height(): number;
|
|
205
|
+
constructor();
|
|
206
|
+
resize(width?: number, height?: number): boolean;
|
|
207
|
+
createLabel(text: string | string[], offset?: Vector3): DebugLabel;
|
|
208
|
+
}
|
|
209
|
+
|
|
182
210
|
declare class Disposable {
|
|
183
211
|
private readonly disposers;
|
|
184
212
|
add(disposer: () => void): void;
|
|
@@ -299,6 +327,14 @@ declare class ECS {
|
|
|
299
327
|
clear(): void;
|
|
300
328
|
}
|
|
301
329
|
|
|
330
|
+
type Listener = (...args: any[]) => void;
|
|
331
|
+
declare class Emitter {
|
|
332
|
+
private listeners;
|
|
333
|
+
constructor();
|
|
334
|
+
on<T extends string[]>(...eventName: [...T, Listener]): this;
|
|
335
|
+
emit(eventName: string, ...args: any[]): this;
|
|
336
|
+
}
|
|
337
|
+
|
|
302
338
|
declare class EventQueue<T> {
|
|
303
339
|
private readonly events;
|
|
304
340
|
emit(event: T): void;
|
|
@@ -308,14 +344,6 @@ declare class EventQueue<T> {
|
|
|
308
344
|
get size(): number;
|
|
309
345
|
}
|
|
310
346
|
|
|
311
|
-
type Listener = (...args: any[]) => void;
|
|
312
|
-
declare class Emitter {
|
|
313
|
-
private listeners;
|
|
314
|
-
constructor();
|
|
315
|
-
on<T extends string[]>(...eventName: [...T, Listener]): this;
|
|
316
|
-
emit(eventName: string, ...args: any[]): this;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
347
|
interface InputState {
|
|
320
348
|
state: number;
|
|
321
349
|
timeStamp: number;
|
|
@@ -352,6 +380,8 @@ declare class Input extends Emitter {
|
|
|
352
380
|
getMouseButtonState(button: number): number;
|
|
353
381
|
}
|
|
354
382
|
|
|
383
|
+
declare const log: (...args: any[]) => void;
|
|
384
|
+
|
|
355
385
|
declare const PI: number;
|
|
356
386
|
declare const TAU: number;
|
|
357
387
|
declare const HALF_PI: number;
|
|
@@ -739,8 +769,6 @@ declare class ThreeJsPlayerController extends Group {
|
|
|
739
769
|
update(deltaTime: number): void;
|
|
740
770
|
}
|
|
741
771
|
|
|
742
|
-
type ColorPalette = readonly number[];
|
|
743
|
-
|
|
744
772
|
declare class VoxelGeometry extends BufferGeometry {
|
|
745
773
|
type: string;
|
|
746
774
|
voxels: Map3D;
|
|
@@ -857,4 +885,4 @@ declare class WorkerInterface {
|
|
|
857
885
|
terminate(): void;
|
|
858
886
|
}
|
|
859
887
|
|
|
860
|
-
export { AStar, type AStarFindPathParams, AddThreeComponent, type AltasParams, AsteroidMesh, type AsteroidOptions, type AtlasParams, AtlasTextureMaterial, type AtlasTextureMaterialParams, BuildDefaultPalette, BuildVoxelGeometry, type BuildVoxelGeometryParams, CameraRig, type CameraRigParams, type CanvasColor, CanvasRenderer, Clock, Color, type ColorSelectionOptions, type ColorSelectionResult, Colors, type CommonEventProps, CompileShader, type Component, type ComponentType, CreatePaletteController, CreateProgram, CreateProgramInfo, CreateStarfield, CreateSubTexture, CreateSystemStar, CreateThreeEntity, CreateWebGlContext, CubeSphereGeometry, DEFAULT_COLOR, DEFAULT_FONT, DEFAULT_FONT_NAME, DEFAULT_FONT_SIZE, DEFAULT_MAP_2D_VALUE, DEFAULT_MAP_3D_VALUE, DEFAULT_PIXEL_SIZE, DEFAULT_TEXTALIGN, DEFAULT_TEXTBASELINE, DEG2RAD, Disposable, type DoorsParams, type DrawParams, E, ECS, EPSILON, type Entity, EventQueue, type EyeDropper, type FractalParams, GenerateDoors, GenerateEntityId, GenerateRooms, type GenerateRoomsParams, GenerateWalls, GetProgramLocations, GetThreeComponent, GetUrlParams, HALF_PI, Input, type InputState, IsThreeEntity, type KeyValue, LN10, LN2, LOG10E, LOG2E, LoadTexture, Map2D, type Map2DData, Map3D, Noise, ONE_SECOND, Observable, PI, type PaletteController, type PaletteControllerOnChange, ParticleRenderer, ParticleSystem2d, ParticleSystem3d, type PathsParams, type PointPair, PoissonDiskSampler, type ProgramInfo, type ProgramLocations, QUARTER_PI, RAD2DEG, Random, type RectPair, Rectangle, RemoveThreeComponent, Renderer, type RendererParams, ResizeWebGlContext, Rng, type RoomsParams, SQRT1_2, SQRT2, ShaderType, Signal, SimplexNoise, SpatialPartition2d, SpatialPartition3d, type SpatialPartitionEntity2d, type SpatialPartitionEntity3d, type SpriteParams, type System, TAU, TILE_EMPTY, TILE_FLOOR, TILE_PATH, TextureAtlas, type TextureData, type ThreeComponent, type ThreeEntity, ThreeJsCameraRig, type ThreeJsCameraRigParams, ThreeJsPlayerController, type ThreeSystem, Tilemap, type UV, VOXEL_FACES, Vector, type Voxel, type VoxelData, type VoxelFace, VoxelFaces, VoxelGeometry, type VoxelMap, type VoxelMaterial, VoxelMesh, WebGlRenderer, WorkerInterface, type XY, type XYZ, clamp, degrees, distance2d, distance3d, fract, getRedYellowGreenGradientHex, hash32, hash32mix, inverseLerp, isNullOrUndefined, isPositiveString, k2xy, k2xyz, lerp, manhattanDistance, mod, nearlyEqual, normalizeRadians, radians, randomMatrix, rng, roundTo, saturate, smoothstep, squaredDistance, wrap, xy2k, xyz2k };
|
|
888
|
+
export { AStar, type AStarFindPathParams, AddThreeComponent, type AltasParams, AsteroidMesh, type AsteroidOptions, type AtlasParams, AtlasTextureMaterial, type AtlasTextureMaterialParams, BuildDefaultPalette, BuildVoxelGeometry, type BuildVoxelGeometryParams, CameraRig, type CameraRigParams, type CanvasColor, CanvasRenderer, Clock, Color, type ColorPalette, type ColorSelectionOptions, type ColorSelectionResult, Colors, type CommonEventProps, CompileShader, type Component, type ComponentType, CreatePaletteController, CreateProgram, CreateProgramInfo, CreateStarfield, CreateSubTexture, CreateSystemStar, CreateThreeEntity, CreateWebGlContext, CubeSphereGeometry, DEFAULT_COLOR, DEFAULT_FONT, DEFAULT_FONT_NAME, DEFAULT_FONT_SIZE, DEFAULT_MAP_2D_VALUE, DEFAULT_MAP_3D_VALUE, DEFAULT_PIXEL_SIZE, DEFAULT_TEXTALIGN, DEFAULT_TEXTBASELINE, DEG2RAD, type DebugLabel, DebugRenderer, Disposable, type DoorsParams, type DrawParams, E, ECS, EPSILON, Emitter, type Entity, EventQueue, type EyeDropper, type FractalParams, GenerateDoors, GenerateEntityId, GenerateRooms, type GenerateRoomsParams, GenerateWalls, GetProgramLocations, GetThreeComponent, GetUrlParams, HALF_PI, Input, type InputState, IsThreeEntity, type KeyValue, LN10, LN2, LOG10E, LOG2E, type Listener, LoadTexture, Map2D, type Map2DData, Map3D, Noise, ONE_SECOND, Observable, PI, type PaletteController, type PaletteControllerOnChange, ParticleRenderer, ParticleSystem2d, ParticleSystem3d, type PathsParams, type PointPair, PoissonDiskSampler, type ProgramInfo, type ProgramLocations, QUARTER_PI, RAD2DEG, type RGB, Random, type RectPair, Rectangle, RemoveThreeComponent, Renderer, type RendererParams, ResizeWebGlContext, Rng, type RoomsParams, SQRT1_2, SQRT2, ShaderType, Signal, SimplexNoise, SpatialPartition2d, SpatialPartition3d, type SpatialPartitionEntity2d, type SpatialPartitionEntity3d, type SpriteParams, type System, TAU, TILE_EMPTY, TILE_FLOOR, TILE_PATH, TextureAtlas, type TextureData, type ThreeComponent, type ThreeEntity, ThreeJsCameraRig, type ThreeJsCameraRigParams, ThreeJsPlayerController, type ThreeSystem, Tilemap, type UV, VOXEL_FACES, Vector, type Voxel, type VoxelData, type VoxelFace, VoxelFaces, VoxelGeometry, type VoxelMap, type VoxelMaterial, VoxelMesh, WebGlRenderer, WorkerInterface, type XY, type XYZ, buildColorPalette, clamp, degrees, distance2d, distance3d, fract, getRedYellowGreenGradientHex, hash32, hash32mix, inverseLerp, isNullOrUndefined, isPositiveString, k2xy, k2xyz, lerp, log, manhattanDistance, mod, nearlyEqual, normalizeRadians, radians, randomMatrix, rng, roundTo, saturate, smoothstep, squaredDistance, wrap, xy2k, xyz2k };
|