@things-factory/figure-viewer 10.1.304 → 10.1.307
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.
|
@@ -10,8 +10,9 @@ export function parametersForClip(asset, values, clip) {
|
|
|
10
10
|
export function playedControlsOf(asset, driving, moving) {
|
|
11
11
|
const playing = new Set(Object.entries(driving).filter(([, speed]) => speed > 0).map(([clip]) => clip));
|
|
12
12
|
for (const group of asset.motionGroups ?? []) {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
/* A group not moved here plays as the figure starts it: its default clip at its default speed. */
|
|
14
|
+
const m = moving[group.id] ?? { clip: group.defaultClip, speed: group.defaultSpeed ?? 0 };
|
|
15
|
+
if (m.speed > 0)
|
|
15
16
|
playing.add(m.clip || group.defaultClip);
|
|
16
17
|
}
|
|
17
18
|
const played = new Map();
|
|
@@ -279,7 +279,8 @@ let FigureMotionControls = class FigureMotionControls extends localize(i18next)(
|
|
|
279
279
|
under them, scrolling (the user, 2026-11-21: 「클립위주로 배치를 바꿔주면 어떤가」). -->
|
|
280
280
|
${rows.map(row => this.renderDataValue(row))}
|
|
281
281
|
${(asset.motionGroups ?? []).map(group => {
|
|
282
|
-
|
|
282
|
+
/* Until moved here, the group plays as the figure starts it: its default clip at its default speed. */
|
|
283
|
+
const playing = this.moving[group.id] ?? { clip: group.defaultClip, speed: group.defaultSpeed ?? 0 };
|
|
283
284
|
/* A field the data writes wins over the group's own setting, here as on a board: it is moved by the data values above. */
|
|
284
285
|
const byData = motionWrittenByData(asset)[group.id] ?? { clip: false, speed: false };
|
|
285
286
|
return html `${byData.clip
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/figure-viewer",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.307",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "dist-client/index.js",
|
|
6
6
|
"files": [
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"test": "FIGURE_FREEZE_COMPILED=1 node --import ./test/resolve-ts-siblings.mjs --test test/*.test.ts"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@hatiolab/figure-model": "^0.12.
|
|
45
|
-
"@hatiolab/things-scene": "^10.1.
|
|
44
|
+
"@hatiolab/figure-model": "^0.12.27",
|
|
45
|
+
"@hatiolab/things-scene": "^10.1.130",
|
|
46
46
|
"@material/web": "^2.0.0",
|
|
47
47
|
"@operato/i18n": "^10.0.0",
|
|
48
48
|
"@operato/styles": "^10.0.0",
|
|
49
49
|
"@things-factory/styles": "^10.1.281",
|
|
50
50
|
"lit": "^3.1.2"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "69bf75d4f602bc32e4ba20bb189b0fe9f4d85543"
|
|
53
53
|
}
|