@things-factory/figure-viewer 10.1.213 → 10.1.224

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/figure-viewer",
3
- "version": "10.1.213",
3
+ "version": "10.1.224",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -27,13 +27,13 @@
27
27
  "test": "FIGURE_FREEZE_COMPILED=1 node --import ./test/resolve-ts-siblings.mjs --test test/*.test.ts"
28
28
  },
29
29
  "dependencies": {
30
- "@hatiolab/figure-model": "^0.11.0",
31
- "@hatiolab/things-scene": "^10.1.100",
30
+ "@hatiolab/figure-model": "^0.12.0",
31
+ "@hatiolab/things-scene": "^10.1.102",
32
32
  "@material/web": "^2.0.0",
33
33
  "@operato/i18n": "^10.0.0",
34
34
  "@operato/styles": "^10.0.0",
35
35
  "@things-factory/styles": "^10.1.123",
36
36
  "lit": "^3.1.2"
37
37
  },
38
- "gitHead": "81f23aa18cb584c7d8185e81cca0d688f509cf8c"
38
+ "gitHead": "7edcdca6fc9862973e99048812e22f2aa9b2f9c9"
39
39
  }
@@ -74,6 +74,8 @@ test('★ a place reads its role, what it accepts and how many — the same word
74
74
  placeTerms({ role: 'grip', accepts: ['BOX', 'WORKPIECE'], capacity: 1 }, say),
75
75
  `${ko['figure.label.role-grip']} · ${say('figure.text.place-accepts', { accepts: 'BOX, WORKPIECE' })} · ${say('figure.label.place-holds', { count: 1 })}`
76
76
  )
77
+ /* A place that names no type takes any item (ADR-0051 §4.1 decision 5). */
78
+ assert.equal(placeTerms({ role: 'seat', capacity: 2 }, say), `${ko['figure.label.role-seat']} · 받는 것 모든 아이템 · ${say('figure.label.place-holds', { count: 2 })}`)
77
79
  assert.equal(ko['figure.label.role-grip'], '파지')
78
80
  assert.equal(say('figure.label.place-holds', { count: 1 }), '최대 1')
79
81
  })
@@ -57,12 +57,15 @@ test('a group clip the data chooses plays through the data value that turns into
57
57
  assert.equal(played(DOG, playSettingsOf(DOG, '')).locomotion!.clip, 'idle')
58
58
  })
59
59
 
60
- test('a map chooses by the value that turns into the clip, a fallback by a closed value it does not name; else the clip cannot be chosen', () => {
61
- /* A closed field of its own, then the clip bound to it by a map in place of mode's. */
60
+ test('a table chooses by the code whose look is the clip, its default by a closed value it does not name; else the clip cannot be chosen', () => {
61
+ /* A closed field of its own, then the clip bound to it by a table in place of mode's. */
62
62
  const mapped = applyFigureProposal(DOG, [
63
63
  { kind: 'set-data-schema', schema: [...DOG.dataInterface!.schema, { name: 'gait', kind: 'text', values: ['STOP', 'GO', 'HURRY'], default: 'STOP' }] },
64
64
  { kind: 'remove-data-binding', id: 'mode-locomotion' },
65
- { kind: 'set-data-binding', binding: { id: 'gait-locomotion', accessor: 'gait', behavior: { kind: 'motion-clip', group: 'locomotion' }, rule: 'map', param: { GO: 'walk', HURRY: 'walk', default: 'idle' } } }
65
+ {
66
+ kind: 'set-data-binding',
67
+ binding: { id: 'gait-locomotion', accessor: 'gait', rule: 'table', lookup: 'code', targets: { group: 'locomotion' }, table: { GO: { clip: 'walk' }, HURRY: { clip: 'walk' }, default: { clip: 'idle' } } }
68
+ }
66
69
  ])
67
70
  assert.deepEqual(clipPlayOf(mapped, 'walk'), { kind: 'data', group: 'locomotion', accessor: 'gait', value: 'GO' })
68
71
  assert.deepEqual(clipPlayOf(mapped, 'idle'), { kind: 'data', group: 'locomotion', accessor: 'gait', value: 'STOP' })
@@ -34,5 +34,6 @@
34
34
  "figure.text.detail-thumbnail-failed": "could not save the thumbnail. try again.",
35
35
  "figure.text.detail-thumbnail-saved": "saved as the thumbnail",
36
36
  "figure.text.not-measured-yet": "not measured",
37
- "figure.text.place-accepts": "accepts {accepts}"
37
+ "figure.text.place-accepts": "accepts {accepts}",
38
+ "figure.text.place-accepts-any": "accepts any item"
38
39
  }
@@ -34,5 +34,6 @@
34
34
  "figure.text.detail-thumbnail-failed": "no se pudo guardar la miniatura. inténtelo de nuevo.",
35
35
  "figure.text.detail-thumbnail-saved": "guardada como miniatura",
36
36
  "figure.text.not-measured-yet": "no medido",
37
- "figure.text.place-accepts": "acepta {accepts}"
37
+ "figure.text.place-accepts": "acepta {accepts}",
38
+ "figure.text.place-accepts-any": "acepta cualquier artículo"
38
39
  }
@@ -34,5 +34,6 @@
34
34
  "figure.text.detail-thumbnail-failed": "サムネイルを保存できませんでした。もう一度お試しください。",
35
35
  "figure.text.detail-thumbnail-saved": "サムネイルに保存しました",
36
36
  "figure.text.not-measured-yet": "not measured",
37
- "figure.text.place-accepts": "受け入れ {accepts}"
37
+ "figure.text.place-accepts": "受け入れ {accepts}",
38
+ "figure.text.place-accepts-any": "受け取るもの すべてのアイテム"
38
39
  }
@@ -34,5 +34,6 @@
34
34
  "figure.text.detail-thumbnail-failed": "썸네일을 저장하지 못했습니다. 다시 시도하세요.",
35
35
  "figure.text.detail-thumbnail-saved": "썸네일로 저장했습니다",
36
36
  "figure.text.not-measured-yet": "미측정",
37
- "figure.text.place-accepts": "받는 것 {accepts}"
37
+ "figure.text.place-accepts": "받는 것 {accepts}",
38
+ "figure.text.place-accepts-any": "받는 것 모든 아이템"
38
39
  }
@@ -34,5 +34,6 @@
34
34
  "figure.text.detail-thumbnail-failed": "lakaran kecil tidak dapat disimpan. cuba lagi.",
35
35
  "figure.text.detail-thumbnail-saved": "disimpan sebagai lakaran kecil",
36
36
  "figure.text.not-measured-yet": "not measured",
37
- "figure.text.place-accepts": "menerima {accepts}"
37
+ "figure.text.place-accepts": "menerima {accepts}",
38
+ "figure.text.place-accepts-any": "menerima sebarang item"
38
39
  }
@@ -34,5 +34,6 @@
34
34
  "figure.text.detail-thumbnail-failed": "无法保存缩略图。请重试。",
35
35
  "figure.text.detail-thumbnail-saved": "已保存为缩略图",
36
36
  "figure.text.not-measured-yet": "not measured",
37
- "figure.text.place-accepts": "接收 {accepts}"
37
+ "figure.text.place-accepts": "接收 {accepts}",
38
+ "figure.text.place-accepts-any": "接收 任何物品"
38
39
  }