@things-factory/figure-viewer 10.1.304 → 10.1.306

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
- const m = moving[group.id];
14
- if (m && m.speed > 0)
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
- const playing = this.moving[group.id] ?? { clip: group.defaultClip, speed: 0 };
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.304",
3
+ "version": "10.1.306",
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.16",
45
- "@hatiolab/things-scene": "^10.1.123",
44
+ "@hatiolab/figure-model": "^0.12.26",
45
+ "@hatiolab/things-scene": "^10.1.129",
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": "76ce38519069ba90190d69d2a9d6c130bc981cf0"
52
+ "gitHead": "439681f1596540031c5e6446e659277029ce2eb2"
53
53
  }