@hatiolab/things-scene 10.1.57 → 10.1.59
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.
|
@@ -35,6 +35,18 @@ export declare class FigureV3Rig {
|
|
|
35
35
|
/** Playback seconds per clip. A driver belongs to the clip its id starts with (`<clip>/<part>/<path>`). */
|
|
36
36
|
private clipTimes;
|
|
37
37
|
private theme;
|
|
38
|
+
/**
|
|
39
|
+
* This rig's evaluator: it runs again only what changed since its last evaluation -- a turning roller row re-evaluates
|
|
40
|
+
* its rollers, not its bed (figure-model's evaluator(), 2026-09-26).
|
|
41
|
+
*/
|
|
42
|
+
private evaluator?;
|
|
43
|
+
/** Each appearance's material, copied once. */
|
|
44
|
+
private readonly materials;
|
|
45
|
+
/**
|
|
46
|
+
* The last batch plan and what it was made from: while every body keeps its id, its shape (the same object, which the
|
|
47
|
+
* evaluator keeps when the shape did not change) and whether it is shown, only poses moved and the plan stands.
|
|
48
|
+
*/
|
|
49
|
+
private planned?;
|
|
38
50
|
/** The last evaluation, for readers that want the numbers behind the meshes. */
|
|
39
51
|
last: V3AssetEvaluation | null;
|
|
40
52
|
constructor(asset: V3Asset, options?: FigureV3RigOptions);
|
|
@@ -81,6 +93,8 @@ export declare class FigureV3Rig {
|
|
|
81
93
|
*/
|
|
82
94
|
placeNode(id: string): THREE.Object3D | null;
|
|
83
95
|
private static pose;
|
|
96
|
+
/** The batch plan for these bodies: the last one while only their poses moved, a new one otherwise. */
|
|
97
|
+
private planOf;
|
|
84
98
|
/** A pose as a matrix, written into the one scratch matrix (not kept: the next call overwrites it). */
|
|
85
99
|
private static matrixOf;
|
|
86
100
|
/**
|
|
@@ -98,6 +112,8 @@ export declare class FigureV3Rig {
|
|
|
98
112
|
* The evaluation only, without touching meshes. The document is compiled once per content and kernel; the
|
|
99
113
|
* instance's size and state are inputs to the evaluation, never a reason to compile again.
|
|
100
114
|
*/
|
|
115
|
+
/** The inputs this rig evaluates at now: the figure's defaults, its drivers and external values, and its size. */
|
|
116
|
+
evaluationInputs(): Record<string, number>;
|
|
101
117
|
evaluate(): V3AssetEvaluation;
|
|
102
118
|
private colourOf;
|
|
103
119
|
private materialFor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"figure-v3-rig.d.ts","sourceRoot":"","sources":["../../../src/figure/v3/figure-v3-rig.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAIL,KAAK,OAAO,EACZ,KAAK,iBAAiB,EAEtB,KAAK,QAAQ,EACd,MAAM,wBAAwB,CAAA;AAI/B,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,8BAA8B,CAAA;AAG5E,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAC/B;AAED,MAAM,WAAW,QAAQ;IACvB,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACV;AAED,iHAAiH;AACjH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAA;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,KAAK,GAAG,KAAK,CAAA;CACrB;AAED,qBAAa,WAAW;IACtB,QAAQ,CAAC,KAAK,sCAAoB;IAClC,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAA;IAC7B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgC;IACvD,mHAAmH;IACnH,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA0F;IAClH,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAsB;IACpD,sGAAsG;IACtG,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAC3D,OAAO,CAAC,IAAI,CAAwB;IACp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;IAMvB;;;OAGG;IACH,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,QAAQ,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAUvE,uGAAuG;IACvG,IAAI,KAAK,IAAI;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAIjE;IAED;;;OAGG;IACH,kHAAkH;IAClH,gBAAgB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAU1C,QAAQ,IAAI,iBAAiB;IAqB7B,OAAO,CAAC,QAAQ;IAIhB,OAAO,CAAC,WAAW;IAqBnB,6EAA6E;IAC7E,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,KAAK,CAAC,IAAI,GAAG,SAAS;IAI1C,yHAAyH;IACzH,QAAQ,IAAI,MAAM,EAAE;IAMpB,OAAO,IAAI,IAAI;CAehB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hatiolab/things-scene",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.59",
|
|
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.1.
|
|
94
|
+
"@hatiolab/figure-model": "^0.1.89",
|
|
95
95
|
"@wizpanda/super-gif": "^0.0.6",
|
|
96
96
|
"dompurify": "^3.3.1",
|
|
97
97
|
"jsonata": "^1.8.6",
|