@vectojs/core 1.35.0 → 1.35.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/{chunk-IFSFHYF7.mjs → chunk-25PS5K7R.mjs} +35 -15
- package/dist/{chunk-TV4ARAC5.mjs → chunk-CHDJEHML.mjs} +2 -0
- package/dist/{chunk-M73XB4ZK.js → chunk-MO24PVGT.js} +42 -22
- package/dist/{chunk-XXU56ZNA.js → chunk-XHPUCU5P.js} +32 -30
- package/dist/components/SplineEntity.d.ts +6 -0
- package/dist/index.js +214 -116
- package/dist/index.mjs +161 -63
- package/dist/renderer/WebGLPointRenderer.d.ts +3 -3
- package/dist/renderer/colorParse.d.ts +2 -2
- package/dist/renderer/url.d.ts +4 -2
- package/dist/renderer.js +2 -2
- package/dist/renderer.mjs +1 -1
- package/dist/text.js +2 -2
- package/dist/text.mjs +1 -1
- package/dist/tree/Entity.d.ts +15 -0
- package/dist/tree/Scene.d.ts +14 -13
- package/dist/wasm/anim-backend.d.ts +13 -3
- package/dist/wasm/backend.d.ts +13 -0
- package/dist/wasm/hit-backend.d.ts +11 -4
- package/dist/wasm/particle-backend.d.ts +6 -0
- package/dist/wasm/vectojs_core.wasm +0 -0
- package/package.json +4 -4
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* {@link candidatesAt} returns the AABB-overlapping candidates in a cell
|
|
12
12
|
* (ascending entity index — scan from the end for topmost-first); the caller
|
|
13
13
|
* re-checks each one against its entity's own precise `isPointInside` (so
|
|
14
|
-
*
|
|
14
|
+
* non-rectangular hit shapes stay correct) before trusting a result.
|
|
15
15
|
*/
|
|
16
16
|
export declare class HitTestBackend {
|
|
17
17
|
private readonly ex;
|
|
@@ -46,12 +46,19 @@ export declare class HitTestBackend {
|
|
|
46
46
|
* writing first and sizing after would write into a stale buffer.
|
|
47
47
|
*/
|
|
48
48
|
ensure(count: number, vw: number, vh: number, cellSize: number): void;
|
|
49
|
+
/**
|
|
50
|
+
* Re-create the typed-array views if another backend's allocation grew the
|
|
51
|
+
* shared linear memory and detached them (see {@link viewsStale}). Call after
|
|
52
|
+
* {@link ensure} and before writing into {@link inputView}.
|
|
53
|
+
*/
|
|
54
|
+
revalidateViews(): void;
|
|
49
55
|
/**
|
|
50
56
|
* Run the kernel's bucketing over whatever is currently resident in
|
|
51
57
|
* {@link inputView} (write the AABBs there, and call {@link ensure} first).
|
|
52
|
-
* Returns `false` if the build
|
|
53
|
-
* not trust {@link candidatesAt} results
|
|
54
|
-
* to the JS walk instead (never return a
|
|
58
|
+
* Returns `false` if the build was rejected (no `hit_init` yet) or overflowed
|
|
59
|
+
* its item budget — the caller must not trust {@link candidatesAt} results
|
|
60
|
+
* for this build and should fall back to the JS walk instead (never return a
|
|
61
|
+
* wrong hit).
|
|
55
62
|
*/
|
|
56
63
|
runBuild(count: number, vw: number, vh: number, cellSize: number): boolean;
|
|
57
64
|
/**
|
|
@@ -67,6 +67,12 @@ export declare class ParticleBackend {
|
|
|
67
67
|
* writing into {@link particleView} — a growth detaches the previous views.
|
|
68
68
|
*/
|
|
69
69
|
ensure(count: number): void;
|
|
70
|
+
/**
|
|
71
|
+
* Re-create the typed-array views if another backend's allocation grew the
|
|
72
|
+
* shared linear memory and detached them (see {@link viewsStale}). Call after
|
|
73
|
+
* {@link ensure} and before {@link gather}/{@link scatter}.
|
|
74
|
+
*/
|
|
75
|
+
revalidateViews(): void;
|
|
70
76
|
/**
|
|
71
77
|
* Advance `count` particles one step in place. Returns `true` when at least
|
|
72
78
|
* one live particle is still moving or off-origin beyond epsilon (the fused
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vectojs/core",
|
|
3
|
-
"version": "1.35.
|
|
3
|
+
"version": "1.35.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -64,10 +64,10 @@
|
|
|
64
64
|
"test:e2e": "bun e2e/hidpi.e2e.ts && bun e2e/text-projection.e2e.ts && bun e2e/svg-fallback.e2e.ts && bun e2e/msdf-atlas-decode.e2e.ts && bun e2e/layout-worker-fallback.e2e.ts"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@vectojs/animation": "^0.1.
|
|
68
|
-
"@vectojs/layout": "^0.9.
|
|
67
|
+
"@vectojs/animation": "^0.1.2",
|
|
68
|
+
"@vectojs/layout": "^0.9.3",
|
|
69
69
|
"@vectojs/math": "^0.1.1",
|
|
70
|
-
"@vectojs/text": "^0.4.
|
|
70
|
+
"@vectojs/text": "^0.4.1"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@guidepup/virtual-screen-reader": "0.32.1",
|