@kalyptos/narcissus 0.2.0 → 0.2.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/dist/element/index.js
CHANGED
package/dist/engine/engine.d.ts
CHANGED
|
@@ -56,8 +56,9 @@ export interface Engine {
|
|
|
56
56
|
/** canvas size in css pixels and the device pixel ratio to render at */
|
|
57
57
|
resize(width: number, height: number, ratio: number): void;
|
|
58
58
|
/**
|
|
59
|
-
* the surface under canvas css pixel (x, y), or null over nothing: the
|
|
60
|
-
*
|
|
59
|
+
* the surface under canvas css pixel (x, y), or null over nothing: where the splats the last
|
|
60
|
+
* frame drew there, blended front to back, first cover half the pixel, met on that splat's
|
|
61
|
+
* plane; it renders no frame of its own
|
|
61
62
|
*/
|
|
62
63
|
pick(x: number, y: number): Promise<Hit | null>;
|
|
63
64
|
ground(e: number, n: number): number | undefined;
|
|
@@ -19,7 +19,9 @@ export declare class Pick {
|
|
|
19
19
|
}[]): void;
|
|
20
20
|
/**
|
|
21
21
|
* submits a pick of target pixel (x, y from the top-left) over the frame's visible clusters;
|
|
22
|
-
* frame must be the last one submitted, whose uniforms and cull the buffers still hold
|
|
22
|
+
* frame must be the last one submitted, whose uniforms and cull the buffers still hold. null
|
|
23
|
+
* where the splats over the pixel never reach half, and where more lay there than the buffer
|
|
24
|
+
* kept, which grows it for the next
|
|
23
25
|
*/
|
|
24
26
|
run(x: number, y: number, frame: Frame): Promise<Found | null>;
|
|
25
27
|
destroy(): void;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as e } from "./format-CbtEy9NS.js";
|
|
2
|
-
import { C as t, S as n, _ as r, a as i, b as a, c as o, d as s, f as c, g as l, h as u, i as d, l as f, m as p, n as m, o as h, p as g, r as _, s as v, t as y, u as b, v as x, w as S, x as C, y as w } from "./controls-
|
|
2
|
+
import { C as t, S as n, _ as r, a as i, b as a, c as o, d as s, f as c, g as l, h as u, i as d, l as f, m as p, n as m, o as h, p as g, r as _, s as v, t as y, u as b, v as x, w as S, x as C, y as w } from "./controls--A-CvrQ5.js";
|
|
3
3
|
import { t as T } from "./ports-DZRKjdYD.js";
|
|
4
4
|
import { t as E } from "./http-DL7R39Nc.js";
|
|
5
5
|
//#region src/engine/plugins/grade.wgsl?raw
|