@vectojs/core 1.21.0 → 1.22.0

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/renderer.js CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
 
10
- var _chunkGKSCJ6AFjs = require('./chunk-GKSCJ6AF.js');
10
+ var _chunkLHONR3GOjs = require('./chunk-LHONR3GO.js');
11
11
 
12
12
 
13
13
 
@@ -16,4 +16,4 @@ var _chunkGKSCJ6AFjs = require('./chunk-GKSCJ6AF.js');
16
16
 
17
17
 
18
18
 
19
- exports.CanvasRenderer = _chunkGKSCJ6AFjs.CanvasRenderer; exports.GlyphRasterAtlas = _chunkGKSCJ6AFjs.GlyphRasterAtlas; exports.SVGRenderer = _chunkGKSCJ6AFjs.SVGRenderer; exports.TextRasterCache = _chunkGKSCJ6AFjs.TextRasterCache; exports.WebGPUParticleSystemManager = _chunkGKSCJ6AFjs.WebGPUParticleSystemManager; exports.createWebGLPointRenderer = _chunkGKSCJ6AFjs.createWebGLPointRenderer; exports.parseColorToRGBA = _chunkGKSCJ6AFjs.parseColorToRGBA;
19
+ exports.CanvasRenderer = _chunkLHONR3GOjs.CanvasRenderer; exports.GlyphRasterAtlas = _chunkLHONR3GOjs.GlyphRasterAtlas; exports.SVGRenderer = _chunkLHONR3GOjs.SVGRenderer; exports.TextRasterCache = _chunkLHONR3GOjs.TextRasterCache; exports.WebGPUParticleSystemManager = _chunkLHONR3GOjs.WebGPUParticleSystemManager; exports.createWebGLPointRenderer = _chunkLHONR3GOjs.createWebGLPointRenderer; exports.parseColorToRGBA = _chunkLHONR3GOjs.parseColorToRGBA;
package/dist/renderer.mjs CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  WebGPUParticleSystemManager,
7
7
  createWebGLPointRenderer,
8
8
  parseColorToRGBA
9
- } from "./chunk-RTENOAYT.mjs";
9
+ } from "./chunk-UPULSLKA.mjs";
10
10
  export {
11
11
  CanvasRenderer,
12
12
  GlyphRasterAtlas,
@@ -238,10 +238,12 @@ export interface DevtoolsDescriptor {
238
238
  * Stable identity for snapshot diffing, independent of tree position.
239
239
  *
240
240
  * Snapshot paths are structural indices (`root > Card[0] > Text[2]`), so
241
- * inserting at the head of a list renames every sibling and cascades into a
242
- * large diff. A key that survives reordering — a row id, a message id — keeps
243
- * the diff proportional to what actually changed. Most relevant to
244
- * `VirtualList` and `Table`, where recycling moves entities constantly.
241
+ * inserting at the head of a list renames every sibling, so the diff describes
242
+ * different nodes than the ones that changed. A key that survives reordering — a
243
+ * row id, a message id keeps each entry attributed to the node it belongs to.
244
+ * Most relevant to `VirtualList` and `Table`, where recycling moves entities
245
+ * constantly.
246
+
245
247
  */
246
248
  devtoolsKey?: string;
247
249
  }
@@ -12,6 +12,7 @@ export interface IWebGPUParticleSystemManager {
12
12
  }
13
13
  import { Entity } from './Entity';
14
14
  import { IRenderer } from '../renderer/IRenderer';
15
+ import type { WebGLDrawStats } from '../renderer/WebGLPointRenderer';
15
16
  import { type WasmModuleSource, type WasmTransformBackend } from '../wasm/backend';
16
17
  import { type CoreWasmRuntime } from '../wasm/runtime';
17
18
  import { type HitModuleSource, type HitTestBackend } from '../wasm/hit-backend';
@@ -808,6 +809,23 @@ export declare class Scene {
808
809
  particleBackend: 'auto' | 'webgpu' | 'cpu';
809
810
  private _webgpuDisabled;
810
811
  get webgpuDisabled(): boolean;
812
+ /**
813
+ * Draw accounting for the WebGL point layer, or null when that layer is not in
814
+ * use.
815
+ *
816
+ * Null and all-zero mean different things: null is "this backend is not
817
+ * running", zero is "it ran and drew nothing". A readout that conflates them
818
+ * sends someone looking for a performance problem in a backend that was never
819
+ * active.
820
+ */
821
+ get webglDrawStats(): WebGLDrawStats | null;
822
+ /**
823
+ * Whether a WebGPU device is currently live for particle compute.
824
+ *
825
+ * The WebGPU path only activates when a `ComputeParticleEntity` is present, so
826
+ * most scenes never touch it.
827
+ */
828
+ get webgpuActive(): boolean;
811
829
  set webgpuDisabled(value: boolean);
812
830
  private recoveryTimerId;
813
831
  private manager;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vectojs/core",
3
- "version": "1.21.0",
3
+ "version": "1.22.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -65,7 +65,7 @@
65
65
  },
66
66
  "dependencies": {
67
67
  "@vectojs/animation": "^0.1.1",
68
- "@vectojs/layout": "^0.3.0",
68
+ "@vectojs/layout": "^0.4.0",
69
69
  "@vectojs/math": "^0.1.1",
70
70
  "@vectojs/text": "^0.2.0"
71
71
  },