@n3rdw1z4rd/core 0.22.0 → 0.23.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.
- package/README.md +59 -4
- package/dist/astar.d.ts +1 -3
- package/dist/astar.js +1 -2
- package/dist/canvas-renderer.d.ts +1 -3
- package/dist/canvas-renderer.js +1 -2
- package/dist/clock.d.ts +1 -3
- package/dist/clock.js +1 -2
- package/dist/color-palette.d.ts +1 -3
- package/dist/color-palette.js +1 -2
- package/dist/color.d.ts +1 -3
- package/dist/color.js +1 -2
- package/dist/disposable.d.ts +1 -3
- package/dist/disposable.js +1 -2
- package/dist/dungeon-generator.d.ts +2 -4
- package/dist/dungeon-generator.js +3 -4
- package/dist/ecs.d.ts +1 -3
- package/dist/ecs.js +1 -2
- package/dist/emitter.d.ts +1 -3
- package/dist/emitter.js +1 -2
- package/dist/event-queue.d.ts +1 -3
- package/dist/event-queue.js +1 -2
- package/dist/graph/doc.d.ts +2 -4
- package/dist/graph/doc.js +1 -2
- package/dist/graph/evaluate.d.ts +1 -3
- package/dist/graph/evaluate.js +1 -2
- package/dist/graph/index.d.ts +4 -4
- package/dist/graph/index.js +4 -4
- package/dist/graph/node.d.ts +7 -9
- package/dist/graph/node.js +1 -2
- package/dist/graph/nodes.d.ts +1 -3
- package/dist/graph/nodes.js +1 -2
- package/dist/graph/script.d.ts +37 -40
- package/dist/graph/script.js +14 -60
- package/dist/graph/sources.d.ts +1 -3
- package/dist/graph/sources.js +1 -2
- package/dist/graph/subgraph.d.ts +2 -4
- package/dist/graph/subgraph.js +1 -2
- package/dist/graph/types.d.ts +3 -5
- package/dist/graph/types.js +2 -3
- package/dist/graph.cjs +22 -77
- package/dist/graph.d.cts +44 -61
- package/dist/index.cjs +27 -52
- package/dist/index.d.cts +1 -63
- package/dist/index.d.ts +10 -10
- package/dist/index.js +14 -14
- package/dist/input/_input.d.ts +1 -3
- package/dist/input/_input.js +1 -2
- package/dist/input/action-map.d.ts +1 -3
- package/dist/input/action-map.js +1 -2
- package/dist/input/bindings.d.ts +1 -3
- package/dist/input/bindings.js +1 -2
- package/dist/input/gestures.d.ts +1 -3
- package/dist/input/gestures.js +1 -2
- package/dist/input/index.d.ts +1 -1
- package/dist/input/index.js +1 -1
- package/dist/input/input-action-map.d.ts +3 -5
- package/dist/input/input-action-map.js +3 -4
- package/dist/input/input.d.ts +2 -4
- package/dist/input/input.js +2 -3
- package/dist/log.d.ts +1 -3
- package/dist/log.js +1 -2
- package/dist/map2d.d.ts +1 -3
- package/dist/map2d.js +1 -2
- package/dist/{map3d-CHDJiq5T.d.cts → map3d-DRHhbrFn.d.cts} +0 -8
- package/dist/map3d.d.ts +1 -3
- package/dist/map3d.js +1 -2
- package/dist/math.d.ts +1 -3
- package/dist/math.js +1 -2
- package/dist/misc.d.ts +1 -3
- package/dist/misc.js +1 -2
- package/dist/observable.d.ts +1 -3
- package/dist/observable.js +1 -2
- package/dist/particle-renderer.d.ts +1 -3
- package/dist/particle-renderer.js +1 -2
- package/dist/particle-system-2d.d.ts +1 -3
- package/dist/particle-system-2d.js +3 -4
- package/dist/random.d.ts +1 -3
- package/dist/random.js +1 -2
- package/dist/rectangle.d.ts +1 -3
- package/dist/rectangle.js +1 -2
- package/dist/{rng-Dhqq7owV.cjs → rng-edL6atS3.cjs} +3 -6
- package/dist/rng.d.ts +1 -3
- package/dist/rng.js +2 -3
- package/dist/signal.d.ts +1 -3
- package/dist/signal.js +1 -2
- package/dist/spatial-partition-2d.d.ts +1 -3
- package/dist/spatial-partition-2d.js +1 -2
- package/dist/{spatial-partition-3d-CmSCL87Z.cjs → spatial-partition-3d-D1uyJVhM.cjs} +7 -13
- package/dist/spatial-partition-3d.d.ts +1 -3
- package/dist/spatial-partition-3d.js +1 -2
- package/dist/three/adaptive-grid.d.ts +1 -3
- package/dist/three/adaptive-grid.js +1 -2
- package/dist/three/asteroid-mesh.d.ts +1 -3
- package/dist/three/asteroid-mesh.js +1 -2
- package/dist/three/camera-rig.d.ts +1 -3
- package/dist/three/camera-rig.js +1 -2
- package/dist/three/cube-sphere-geometry.d.ts +1 -3
- package/dist/three/cube-sphere-geometry.js +1 -2
- package/dist/three/ecs.d.ts +1 -3
- package/dist/three/ecs.js +1 -2
- package/dist/three/editor-camera.d.ts +1 -3
- package/dist/three/editor-camera.js +1 -2
- package/dist/three/index.d.ts +4 -4
- package/dist/three/index.js +1 -1
- package/dist/three/particle-system-3d.d.ts +1 -3
- package/dist/three/particle-system-3d.js +3 -4
- package/dist/three/picking.d.ts +2 -4
- package/dist/three/picking.js +1 -2
- package/dist/three/renderer.d.ts +1 -3
- package/dist/three/renderer.js +1 -2
- package/dist/three/schema.d.ts +0 -2
- package/dist/three/schema.js +1 -2
- package/dist/three/starfield.d.ts +1 -3
- package/dist/three/starfield.js +1 -2
- package/dist/three/texture-atlas.d.ts +1 -3
- package/dist/three/texture-atlas.js +1 -2
- package/dist/three/texture-utils.d.ts +1 -3
- package/dist/three/texture-utils.js +1 -2
- package/dist/three/voxel-geometry.d.ts +2 -4
- package/dist/three/voxel-geometry.js +2 -3
- package/dist/three/voxel-mesh.d.ts +1 -3
- package/dist/three/voxel-mesh.js +1 -2
- package/dist/three/world.d.ts +0 -2
- package/dist/three/world.js +1 -2
- package/dist/three.cjs +18 -34
- package/dist/three.d.cts +1 -33
- package/dist/tilemap.d.ts +1 -3
- package/dist/tilemap.js +1 -2
- package/dist/types.d.ts +1 -3
- package/dist/vector.d.ts +1 -3
- package/dist/vector.js +1 -2
- package/dist/vite.cjs +1 -2
- package/dist/vite.d.cts +1 -3
- package/dist/vite.d.ts +1 -3
- package/dist/vite.js +1 -2
- package/dist/webgl-renderer.d.ts +1 -3
- package/dist/webgl-renderer.js +1 -2
- package/dist/webgl.d.ts +1 -3
- package/dist/webgl.js +1 -2
- package/dist/worker-interface.d.ts +1 -3
- package/dist/worker-interface.js +1 -2
- package/package.json +6 -6
package/dist/vector.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { distance2d } from "./math.js";
|
|
2
|
-
|
|
2
|
+
// src/vector.ts
|
|
3
3
|
/**
|
|
4
4
|
* Mutable 2D vector. Most methods modify the vector in place and return `this` for chaining;
|
|
5
5
|
* {@link Vector.clone} and {@link Vector.floored} return new vectors.
|
|
@@ -165,5 +165,4 @@ var Vector = class Vector {
|
|
|
165
165
|
return new Vector(-1, 0);
|
|
166
166
|
}
|
|
167
167
|
};
|
|
168
|
-
//#endregion
|
|
169
168
|
export { Vector };
|
package/dist/vite.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
|
|
2
|
+
// src/vite.ts
|
|
3
3
|
/** @category Build */
|
|
4
4
|
function decorators() {
|
|
5
5
|
const file = /\.[cm]?[jt]sx?$/;
|
|
@@ -36,5 +36,4 @@ function decorators() {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
//#endregion
|
|
40
39
|
exports.decorators = decorators;
|
package/dist/vite.d.cts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/vite.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Vite plugin: lowers standard (TC39) decorators such as `@field` / `@component` with esbuild.
|
|
4
3
|
*
|
|
@@ -31,5 +30,4 @@ export interface DecoratorsPlugin {
|
|
|
31
30
|
} | null>;
|
|
32
31
|
}
|
|
33
32
|
/** @category Build */
|
|
34
|
-
export declare function decorators(): DecoratorsPlugin;
|
|
35
|
-
//#endregion
|
|
33
|
+
export declare function decorators(): DecoratorsPlugin;
|
package/dist/vite.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/vite.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Vite plugin: lowers standard (TC39) decorators such as `@field` / `@component` with esbuild.
|
|
4
3
|
*
|
|
@@ -31,5 +30,4 @@ export interface DecoratorsPlugin {
|
|
|
31
30
|
} | null>;
|
|
32
31
|
}
|
|
33
32
|
/** @category Build */
|
|
34
|
-
export declare function decorators(): DecoratorsPlugin;
|
|
35
|
-
//#endregion
|
|
33
|
+
export declare function decorators(): DecoratorsPlugin;
|
package/dist/vite.js
CHANGED
package/dist/webgl-renderer.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Observable } from "./observable.js";
|
|
2
2
|
import { DrawOptions, ProgramInfo, RenderTarget, VertexArrayInfo } from "./webgl.js";
|
|
3
|
-
//#region src/webgl-renderer.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Options for the {@link WebGlRenderer} constructor.
|
|
6
5
|
*
|
|
@@ -85,5 +84,4 @@ export declare class WebGlRenderer {
|
|
|
85
84
|
/** Removes the renderer's event listeners. GPU resources you created are yours to delete. */
|
|
86
85
|
dispose(): void;
|
|
87
86
|
private _listen;
|
|
88
|
-
}
|
|
89
|
-
//#endregion
|
|
87
|
+
}
|
package/dist/webgl-renderer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Observable } from "./observable.js";
|
|
2
2
|
import { BindRenderTarget, CreateProgramInfo, CreateWebGlContext, Draw, ResizeWebGlContext } from "./webgl.js";
|
|
3
|
-
|
|
3
|
+
// src/webgl-renderer.ts
|
|
4
4
|
/**
|
|
5
5
|
* A thin owner of a WebGL2 context: sizing (CSS pixels x pixel ratio), clearing, render targets,
|
|
6
6
|
* drawing, and context-loss notifications. Everything else is the webgl.ts wrappers on `gl`.
|
|
@@ -136,5 +136,4 @@ var WebGlRenderer = class {
|
|
|
136
136
|
this._listeners.push([type, listener]);
|
|
137
137
|
}
|
|
138
138
|
};
|
|
139
|
-
//#endregion
|
|
140
139
|
export { WebGlRenderer };
|
package/dist/webgl.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/webgl.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Literal GLenum values, so importing this module doesn't require `WebGL2RenderingContext` to exist.
|
|
4
3
|
*
|
|
@@ -353,5 +352,4 @@ export interface DrawOptions {
|
|
|
353
352
|
*
|
|
354
353
|
* @category WebGL
|
|
355
354
|
*/
|
|
356
|
-
export declare function Draw(gl: WebGL2RenderingContext, info: ProgramInfo, vertexArray: VertexArrayInfo, options?: DrawOptions): void;
|
|
357
|
-
//#endregion
|
|
355
|
+
export declare function Draw(gl: WebGL2RenderingContext, info: ProgramInfo, vertexArray: VertexArrayInfo, options?: DrawOptions): void;
|
package/dist/webgl.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/webgl.ts
|
|
2
2
|
/**
|
|
3
3
|
* Literal GLenum values, so importing this module doesn't require `WebGL2RenderingContext` to exist.
|
|
4
4
|
*
|
|
@@ -624,5 +624,4 @@ function Draw(gl, info, vertexArray, options = {}) {
|
|
|
624
624
|
else gl.drawArrays(mode, offset, count);
|
|
625
625
|
gl.bindVertexArray(null);
|
|
626
626
|
}
|
|
627
|
-
//#endregion
|
|
628
627
|
export { BindRenderTarget, CompileShader, CreateBuffer, CreateProgram, CreateProgramInfo, CreateRenderTarget, CreateTexture, CreateVertexArray, CreateWebGlContext, DeleteProgramInfo, DeleteRenderTarget, DeleteTexture, DeleteVertexArray, Draw, GetProgramLocations, LoadWebGlTexture, ResizeRenderTarget, ResizeWebGlContext, SetUniforms, ShaderType, UpdateBuffer, UpdateTexture };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Observable } from "./observable.js";
|
|
2
|
-
//#region src/worker-interface.d.ts
|
|
3
2
|
/**
|
|
4
3
|
* Thin wrapper around a module `Worker` that exposes its errors and messages as
|
|
5
4
|
* {@link Observable}s.
|
|
@@ -26,5 +25,4 @@ export declare class WorkerInterface<TReceive = any, TSend = any> {
|
|
|
26
25
|
postMessage(message: TSend, options?: StructuredSerializeOptions | undefined): void;
|
|
27
26
|
/** Stops the worker immediately. */
|
|
28
27
|
terminate(): void;
|
|
29
|
-
}
|
|
30
|
-
//#endregion
|
|
28
|
+
}
|
package/dist/worker-interface.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Observable } from "./observable.js";
|
|
2
|
-
|
|
2
|
+
// src/worker-interface.ts
|
|
3
3
|
/**
|
|
4
4
|
* Thin wrapper around a module `Worker` that exposes its errors and messages as
|
|
5
5
|
* {@link Observable}s.
|
|
@@ -35,5 +35,4 @@ var WorkerInterface = class {
|
|
|
35
35
|
this._worker.terminate();
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
//#endregion
|
|
39
38
|
export { WorkerInterface };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n3rdw1z4rd/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.1",
|
|
4
4
|
"description": "core library",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"heap-js": "^2.7.1"
|
|
99
99
|
},
|
|
100
100
|
"peerDependencies": {
|
|
101
|
-
"three": "^0.
|
|
101
|
+
"three": "^0.187.0"
|
|
102
102
|
},
|
|
103
103
|
"peerDependenciesMeta": {
|
|
104
104
|
"three": {
|
|
@@ -106,11 +106,11 @@
|
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
|
-
"@types/three": "^0.
|
|
110
|
-
"esbuild": "^0.
|
|
109
|
+
"@types/three": "^0.187.0",
|
|
110
|
+
"esbuild": "^0.28.2",
|
|
111
111
|
"playwright-core": "^1.56.1",
|
|
112
|
-
"three": "^0.
|
|
113
|
-
"tsdown": "^0.23.
|
|
112
|
+
"three": "^0.187.0",
|
|
113
|
+
"tsdown": "^0.23.4",
|
|
114
114
|
"tsx": "^4.23.15",
|
|
115
115
|
"typedoc": "^0.28.20",
|
|
116
116
|
"typescript": "^6.0.3"
|