@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.
@@ -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
- * non-rectangular hit shapes stay correct) before trusting a result.
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 overflowed its item budget the caller must
53
- * not trust {@link candidatesAt} results for this build and should fall back
54
- * to the JS walk instead (never return a wrong hit).
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.0",
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.1",
68
- "@vectojs/layout": "^0.9.1",
67
+ "@vectojs/animation": "^0.1.2",
68
+ "@vectojs/layout": "^0.9.3",
69
69
  "@vectojs/math": "^0.1.1",
70
- "@vectojs/text": "^0.4.0"
70
+ "@vectojs/text": "^0.4.1"
71
71
  },
72
72
  "devDependencies": {
73
73
  "@guidepup/virtual-screen-reader": "0.32.1",