@things-factory/figure-viewer 10.1.303 → 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.303",
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": "2d5888ebfc0a004b000a4aa3dfb8ff9561e75ff9"
52
+ "gitHead": "439681f1596540031c5e6446e659277029ce2eb2"
53
53
  }
@@ -35,7 +35,7 @@
35
35
  "figure.text.not-measured-yet": "미측정",
36
36
  "figure.text.place-accepts": "받는 것 {accepts}",
37
37
  "figure.text.place-accepts-any": "받는 것 모든 아이템",
38
- "figure.text.board-data-none": "이 피규어는 데이터 형식이 없습니다. 하나만 선택하면 보입니다.",
38
+ "figure.text.board-data-none": "이 피규어에는 정의된 데이터 형식이 없습니다. 피규어를 하나만 선택하면 데이터 형식을 확인할 수 있습니다.",
39
39
  "figure.label.board-data-source-live": "데이터",
40
40
  "figure.label.board-data-source-manual": "저장값",
41
41
  "figure.label.board-data-source-default": "기본값",
@@ -79,7 +79,7 @@
79
79
  "label.design-inputs": "설계값",
80
80
  "label.state-values": "상태값",
81
81
  "label.clip-speeds": "애니메이션 속도",
82
- "label.clip-travel": "달리는 클립의 이동",
82
+ "label.clip-travel": "재생 중인 클립의 이동",
83
83
  "label.motion-groups": "동작 그룹",
84
84
  "label.slot-layout": "자리 배치",
85
85
  "figure.label.data-item-id": "아이템 ID",
@@ -110,5 +110,5 @@
110
110
  "figure.label.data-value-from-sample": "견본 데이터",
111
111
  "figure.text.data-value-from-sample": "데이터 탭의 견본 데이터가 이 값을 정합니다. 데이터 탭에서 「미리보기에 적용」을 끄면 여기서 바꿀 수 있습니다.",
112
112
  "figure.text.control-played": "재생 중",
113
- "figure.text.control-played-explained": "{clip} 클립이 이 조작값을 움직이고 있습니다. 클립을 멈추면 값을 줄 수 있습니다."
113
+ "figure.text.control-played-explained": "{clip} 클립이 이 조작값을 제어하고 있습니다. 값을 직접 변경하려면 클립 재생을 중지하세요."
114
114
  }