@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/{chunk-GKSCJ6AF.js → chunk-LHONR3GO.js} +150 -44
- package/dist/{chunk-RTENOAYT.mjs → chunk-UPULSLKA.mjs} +106 -0
- package/dist/index.js +82 -61
- package/dist/index.mjs +22 -1
- package/dist/renderer/CanvasRenderer.d.ts +18 -1
- package/dist/renderer/IRenderer.d.ts +63 -0
- package/dist/renderer/SVGRenderer.d.ts +2 -0
- package/dist/renderer/WebGLPointRenderer.d.ts +33 -0
- package/dist/renderer.js +2 -2
- package/dist/renderer.mjs +1 -1
- package/dist/tree/Entity.d.ts +6 -4
- package/dist/tree/Scene.d.ts +18 -0
- package/package.json +2 -2
package/dist/renderer.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
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 =
|
|
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
package/dist/tree/Entity.d.ts
CHANGED
|
@@ -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
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
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
|
}
|
package/dist/tree/Scene.d.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
68
|
+
"@vectojs/layout": "^0.4.0",
|
|
69
69
|
"@vectojs/math": "^0.1.1",
|
|
70
70
|
"@vectojs/text": "^0.2.0"
|
|
71
71
|
},
|