@hatiolab/things-scene 10.1.67 → 10.1.69
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-types/figure/figure-geometry.d.ts +2 -0
- package/dist-types/figure/figure-geometry.d.ts.map +1 -1
- package/dist-types/figure/figure-merged-geometry.d.ts +38 -0
- package/dist-types/figure/figure-merged-geometry.d.ts.map +1 -0
- package/dist-types/figure/figure-real-object.d.ts.map +1 -1
- package/dist-types/figure/figure-rig.d.ts +71 -9
- package/dist-types/figure/figure-rig.d.ts.map +1 -1
- package/package.json +2 -2
- package/things-scene-min.js +6 -6
- package/things-scene-min.js.map +1 -1
- package/things-scene.mjs +1 -1
- package/things-scene.mjs.map +1 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
2
|
import type { FigureShape } from '@hatiolab/figure-model';
|
|
3
|
+
/** What makes two bodies one geometry: the shape's numbers and meaning, and its segments. */
|
|
4
|
+
export declare function figureGeometryKeyOf(shape: FigureShape, segments?: number): string;
|
|
3
5
|
/** The shared geometry for a body. Call `releaseFigureGeometry` with the same shape when the mesh goes away. */
|
|
4
6
|
export declare function acquireFigureGeometry(shape: FigureShape, segments?: number): THREE.BufferGeometry;
|
|
5
7
|
export declare function releaseFigureGeometry(geometry: THREE.BufferGeometry): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"figure-geometry.d.ts","sourceRoot":"","sources":["../../src/figure/figure-geometry.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"figure-geometry.d.ts","sourceRoot":"","sources":["../../src/figure/figure-geometry.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAQzD,6FAA6F;AAC7F,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,WAAW,EAAE,QAAQ,GAAE,MAAyB,GAAG,MAAM,CAkBnG;AAED,gHAAgH;AAChH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,WAAW,EAAE,QAAQ,GAAE,MAAyB,GAAG,KAAK,CAAC,cAAc,CAWnH;AAED,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,KAAK,CAAC,cAAc,GAAG,IAAI,CAS1E;AAED,iFAAiF;AACjF,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAED,wBAAgB,mBAAmB,IAAI,IAAI,CAG1C;AAED,2GAA2G;AAC3G,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,WAAW,EAAE,QAAQ,GAAE,MAAyB,GAAG,KAAK,CAAC,cAAc,CAOjH"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import type { FigureShape } from '@hatiolab/figure-model';
|
|
3
|
+
export interface FigureMergedPart {
|
|
4
|
+
shape: FigureShape;
|
|
5
|
+
segments?: number;
|
|
6
|
+
pose: {
|
|
7
|
+
r: number[][];
|
|
8
|
+
t: number[];
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface FigureMergedGeometry {
|
|
12
|
+
geometry: THREE.BufferGeometry;
|
|
13
|
+
/** The first triangle of each part, in the order given, and the triangle count last. */
|
|
14
|
+
starts: Int32Array;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* What the bank may hold, in bytes of vertex data (positions and normals). Past it a group is not merged.
|
|
18
|
+
* Measured (ADR-0109 step 4, the conveyor 8ca9b97b, every instance at a size of its own): three groups a size, about
|
|
19
|
+
* 19.5 KiB a group, 58 KiB a size -- the ceiling is reached past about 1,100 distinct sizes of it on one board.
|
|
20
|
+
*/
|
|
21
|
+
export declare const FIGURE_MERGED_BANK_LIMIT_BYTES: number;
|
|
22
|
+
/**
|
|
23
|
+
* The merged geometry for these parts, held once more; null when making it would pass the bank's ceiling. Give it back
|
|
24
|
+
* with `releaseMergedFigureGeometry`.
|
|
25
|
+
*/
|
|
26
|
+
export declare function acquireMergedFigureGeometry(parts: readonly FigureMergedPart[]): FigureMergedGeometry | null;
|
|
27
|
+
export declare function releaseMergedFigureGeometry(geometry: THREE.BufferGeometry): void;
|
|
28
|
+
/** What the bank holds now: entries, holds on them and bytes of vertex data. */
|
|
29
|
+
export declare function figureMergedGeometryStats(): {
|
|
30
|
+
entries: number;
|
|
31
|
+
users: number;
|
|
32
|
+
bytes: number;
|
|
33
|
+
limit: number;
|
|
34
|
+
};
|
|
35
|
+
/** The ceiling, for checks that reach it with a few parts; `undefined` puts it back. */
|
|
36
|
+
export declare function setMergedFigureGeometryLimit(bytes?: number): void;
|
|
37
|
+
export declare function resetMergedFigureGeometry(): void;
|
|
38
|
+
//# sourceMappingURL=figure-merged-geometry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"figure-merged-geometry.d.ts","sourceRoot":"","sources":["../../src/figure/figure-merged-geometry.ts"],"names":[],"mappings":"AAsBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAGzD,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,WAAW,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE;QAAE,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;QAAC,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,CAAA;CACrC;AAED,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,KAAK,CAAC,cAAc,CAAA;IAC9B,wFAAwF;IACxF,MAAM,EAAE,UAAU,CAAA;CACnB;AAED;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,QAAmB,CAAA;AA2B9D;;;GAGG;AACH,wBAAgB,2BAA2B,C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AAM,CAAA;SAAE,CAAA;KAAE,GAAG,SAAS;IAa7J,KAAK,IAAI,KAAK,CAAC,KAAK;CAO9B;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAUxG"}
|
|
@@ -7,6 +7,11 @@ export interface FigureRigOptions {
|
|
|
7
7
|
* ruling 5). Tokens the mapping does not name keep the asset's default.
|
|
8
8
|
*/
|
|
9
9
|
theme?: Record<string, string>;
|
|
10
|
+
/**
|
|
11
|
+
* Whether still parts of one render state are drawn as one mesh (ADR-0109). On unless set false: a rig drawn part by
|
|
12
|
+
* part is the reference a merged one is held to.
|
|
13
|
+
*/
|
|
14
|
+
merge?: boolean;
|
|
10
15
|
}
|
|
11
16
|
export interface Vec3Like {
|
|
12
17
|
x: number;
|
|
@@ -20,12 +25,30 @@ export interface FigureSizeClamp {
|
|
|
20
25
|
used: number;
|
|
21
26
|
bound: 'min' | 'max';
|
|
22
27
|
}
|
|
28
|
+
/** Where one body is drawn: a mesh of its own, a copy in an instanced mesh, or triangles of a merged mesh. */
|
|
29
|
+
export type FigureDraw = {
|
|
30
|
+
kind: 'alone';
|
|
31
|
+
object: THREE.Mesh;
|
|
32
|
+
} | {
|
|
33
|
+
kind: 'copy';
|
|
34
|
+
object: THREE.InstancedMesh;
|
|
35
|
+
index: number;
|
|
36
|
+
} | {
|
|
37
|
+
kind: 'merged';
|
|
38
|
+
object: THREE.Mesh;
|
|
39
|
+
triangles: {
|
|
40
|
+
start: number;
|
|
41
|
+
count: number;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
23
44
|
export declare class FigureRig {
|
|
24
45
|
readonly group: THREE.Group<THREE.Object3DEventMap>;
|
|
25
46
|
readonly compiled: CompiledFigure;
|
|
26
47
|
private readonly meshes;
|
|
27
48
|
/** One instanced mesh per batch of a row's copies, by the batch's key; \`ids\` is the copy drawn at each index. */
|
|
28
49
|
private readonly batches;
|
|
50
|
+
/** One merged mesh per group of still parts of one render state, by the group's key (ADR-0109). */
|
|
51
|
+
private readonly merged;
|
|
29
52
|
private static readonly matrix;
|
|
30
53
|
/** One node per place a thing is held (a seat or a grip), made when something first hangs from it. */
|
|
31
54
|
private readonly places;
|
|
@@ -43,6 +66,7 @@ export declare class FigureRig {
|
|
|
43
66
|
/** Playback seconds per clip. A driver belongs to the clip its id starts with (`<clip>/<part>/<path>`). */
|
|
44
67
|
private clipTimes;
|
|
45
68
|
private theme;
|
|
69
|
+
private readonly merge;
|
|
46
70
|
/**
|
|
47
71
|
* This rig's evaluator: it runs again only what changed since its last evaluation -- a turning roller row re-evaluates
|
|
48
72
|
* its rollers, not its bed (figure-model's evaluator(), 2026-09-26).
|
|
@@ -64,8 +88,23 @@ export declare class FigureRig {
|
|
|
64
88
|
* evaluator keeps when the shape did not change) and whether it is shown, only poses moved and the plan stands.
|
|
65
89
|
*/
|
|
66
90
|
private planned?;
|
|
67
|
-
/** The last
|
|
68
|
-
|
|
91
|
+
/** The still bodies of the last plan, kept while the bodies keep their ids. */
|
|
92
|
+
private stillOf?;
|
|
93
|
+
/** figure-model's still judgement, made once per compiled figure and shared by its rigs: it reads the asset only. */
|
|
94
|
+
private static readonly stillJudges;
|
|
95
|
+
private static stillJudgeOf;
|
|
96
|
+
/**
|
|
97
|
+
* The last evaluation the meshes were made from (ADR-0108 C3: renamed from \`last\` when pose steps came, so a reader
|
|
98
|
+
* of the old name would not go on reading it unawares). Pose steps move the meshes past it: for the values as they
|
|
99
|
+
* stand now, read \`evaluation()\`.
|
|
100
|
+
*/
|
|
101
|
+
lastEvaluation: FigureAssetEvaluation | null;
|
|
102
|
+
/**
|
|
103
|
+
* Where each body slot of the last evaluation is drawn, for pose steps (ADR-0108): a mesh drawn alone, or a copy of a
|
|
104
|
+
* batch at an index. Made with every evaluation, valid for its generation.
|
|
105
|
+
*/
|
|
106
|
+
private slots;
|
|
107
|
+
private generation;
|
|
69
108
|
constructor(asset: FigureAsset, options?: FigureRigOptions);
|
|
70
109
|
get asset(): FigureAsset;
|
|
71
110
|
/** The size the asset was authored at: its stored `size.*` design inputs, or null when it is not resizable. */
|
|
@@ -110,8 +149,25 @@ export declare class FigureRig {
|
|
|
110
149
|
private inputsRead;
|
|
111
150
|
/** The external values as last set, for readers that want to know what masks the drivers. */
|
|
112
151
|
get externalState(): Record<string, number>;
|
|
113
|
-
/**
|
|
114
|
-
|
|
152
|
+
/**
|
|
153
|
+
* Bring the meshes up to the current size, state and time (ADR-0108). When only poses moved the evaluator says so and
|
|
154
|
+
* gives their numbers by body slot; they go straight into the matrices. Otherwise it evaluates and the meshes are
|
|
155
|
+
* made from the evaluation. Nothing is returned: read \`evaluation()\` for the values as they stand.
|
|
156
|
+
*/
|
|
157
|
+
update(): void;
|
|
158
|
+
/** The values as they stand now -- an evaluation, made if pose steps moved past the last one (fresh on read). */
|
|
159
|
+
evaluation(): FigureAssetEvaluation;
|
|
160
|
+
private movesMerged;
|
|
161
|
+
/** A pose step: each written body slot's matrix, the rows that moved, the places that moved. */
|
|
162
|
+
private movePoses;
|
|
163
|
+
/** The meshes made from an evaluation, and where each of its body slots is drawn for the pose steps that follow. */
|
|
164
|
+
private draw;
|
|
165
|
+
/**
|
|
166
|
+
* The merged meshes for these groups of still parts: kept while every part keeps its shape, segments and pose objects,
|
|
167
|
+
* made again (from the bank) when one changed, taken away when the group is gone. Returns the bodies to draw one by one:
|
|
168
|
+
* the plan's, and any group the bank had no room for.
|
|
169
|
+
*/
|
|
170
|
+
private drawMerged;
|
|
115
171
|
/**
|
|
116
172
|
* The node a held thing hangs from at one place (`capabilities.bindings`). It is a child of the group that every
|
|
117
173
|
* update moves to the place's pose, so what hangs from it follows the part it sits on -- through the joints too --
|
|
@@ -124,13 +180,17 @@ export declare class FigureRig {
|
|
|
124
180
|
/** A pose as a matrix, written into the one scratch matrix (not kept: the next call overwrites it). */
|
|
125
181
|
private static matrixOf;
|
|
126
182
|
/**
|
|
127
|
-
* The body a pick landed on: a mesh drawn alone is its body; an instance of a batch is the copy drawn at that index
|
|
128
|
-
*
|
|
183
|
+
* The body a pick landed on: a mesh drawn alone is its body; an instance of a batch is the copy drawn at that index; a
|
|
184
|
+
* face of a merged mesh is the part whose triangles hold it (a raycast's \`faceIndex\`). Undefined for anything that is
|
|
185
|
+
* not this rig's, or a merged mesh asked without a face.
|
|
129
186
|
*/
|
|
130
|
-
bodyAt(object: THREE.Object3D, instanceId?: number): string | undefined;
|
|
131
|
-
/**
|
|
187
|
+
bodyAt(object: THREE.Object3D, instanceId?: number, faceIndex?: number): string | undefined;
|
|
188
|
+
/** Where a body is drawn now, or undefined when it is not (hidden, or no such body). */
|
|
189
|
+
drawOf(id: string): FigureDraw | undefined;
|
|
190
|
+
/** How the bodies are drawn now: a draw per batch, per merged group and per body drawn alone (what the grade counts). */
|
|
132
191
|
get draws(): {
|
|
133
192
|
batches: number;
|
|
193
|
+
merged: number;
|
|
134
194
|
alone: number;
|
|
135
195
|
instances: number;
|
|
136
196
|
};
|
|
@@ -141,9 +201,11 @@ export declare class FigureRig {
|
|
|
141
201
|
/** The inputs this rig evaluates at now: the figure's defaults, its drivers and external values, and its size. */
|
|
142
202
|
evaluationInputs(): Record<string, number>;
|
|
143
203
|
evaluate(): FigureAssetEvaluation;
|
|
204
|
+
/** An evaluation's bodies with their appearance: material, visibility and segments. */
|
|
205
|
+
private dress;
|
|
144
206
|
private colourOf;
|
|
145
207
|
private materialFor;
|
|
146
|
-
/**
|
|
208
|
+
/** The mesh a body drawn alone has, by its id. A merged part or a copy has none of its own: read \`drawOf\`. */
|
|
147
209
|
meshOf(id: string): THREE.Mesh | undefined;
|
|
148
210
|
/** The bodies that are currently drawn, by id: alone or as an instance of a batch. A hidden body is not in the group. */
|
|
149
211
|
drawnIds(): string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"figure-rig.d.ts","sourceRoot":"","sources":["../../src/figure/figure-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,IAAI,MAAM,EAAE;IAOpB,OAAO,IAAI,IAAI;CAsBhB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hatiolab/things-scene",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.69",
|
|
4
4
|
"description": "A high-performance 2D/3D scene graph library for building interactive visual editors, combining HTML5 Canvas and Three.js to enable facility visualization, data-driven animations, and real-time monitoring dashboards",
|
|
5
5
|
"main": "things-scene-min.js",
|
|
6
6
|
"module": "things-scene.mjs",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
},
|
|
92
92
|
"homepage": "https://github.com/hatiolab/things-scene#readme",
|
|
93
93
|
"dependencies": {
|
|
94
|
-
"@hatiolab/figure-model": "^0.2.
|
|
94
|
+
"@hatiolab/figure-model": "^0.2.15",
|
|
95
95
|
"@wizpanda/super-gif": "^0.0.6",
|
|
96
96
|
"dompurify": "^3.3.1",
|
|
97
97
|
"jsonata": "^1.8.6",
|