@things-factory/figure-service 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.
@@ -189,6 +189,29 @@ function figureWording(violation, say) {
189
189
  })
190
190
  };
191
191
  }
192
+ case 'PUBLIC_INPUT_REFUSED': {
193
+ /*
194
+ A board may place the figure at any size its range allows and set what it publishes; at these values a part
195
+ cannot be made. There was no case here and the release door said 「undefined」 (production inquiry 2026-11-23).
196
+ The values come from figure-model 0.12.27 on; an older kernel's finding has them only in `detail`.
197
+ */
198
+ const inputs = violation.inputs;
199
+ const tenth = (v) => Math.round(v * 10) / 10;
200
+ const at = inputs
201
+ ? Object.entries(inputs)
202
+ .map(([id, v]) => (/^(sizing\.)?size\.[xyz]$/.test(id) ? `${id.slice(-1).toUpperCase()} ${tenth(v)} mm` : `${id} ${tenth(v)}`))
203
+ .join(' · ')
204
+ : (/^at (.*?) the figure cannot be made/.exec(violation.detail ?? '')?.[1] ?? '');
205
+ return {
206
+ message: part
207
+ ? say(key('message'), { part, at }, `'${part}' cannot be made when a board places the figure at ${at}.`)
208
+ : say(key('message-figure'), { at }, `The figure cannot be made when a board places it at ${at}.`),
209
+ why: say(key('why'), {}, 'A board may place the figure at any size in its range. At this size a shape is not valid, such as a rounded corner larger than half its side.'),
210
+ how: part
211
+ ? say(key('how'), { part }, `Set the smallest size a drawing may give the figure (the size range in the size tab), or make '${part}' fit there: a smaller corner, or a size that follows the figure.`)
212
+ : say(key('how-figure'), {}, 'Set the smallest size a drawing may give the figure (the size range in the size tab), or narrow the range of the value it publishes.')
213
+ };
214
+ }
192
215
  case 'HOLD_UNMEASURED': {
193
216
  const hold = violation.hold ?? '';
194
217
  return {
@@ -626,6 +649,11 @@ function figureContractWording(change, say) {
626
649
  message: say(key('message'), v, `The motion group '${v.group}' now starts with '${v.after}', not '${v.before}'.`),
627
650
  why: say(key('why'), {}, 'Placed instances with no choice of their own play the new default after this release.')
628
651
  };
652
+ case 'motion-group-speed-changed':
653
+ return {
654
+ message: say(key('message'), v, `The motion group '${v.group}' now starts at speed ${v.after}, not ${v.before}.`),
655
+ why: say(key('why'), {}, 'Placed instances with no speed of their own play at the new speed after this release.')
656
+ };
629
657
  case 'motion-group-transition-changed':
630
658
  return {
631
659
  message: say(key('message'), v, `A change of clip in '${v.group}' now blends over ${v.after} s, not ${v.before} s.`),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/figure-service",
3
- "version": "10.1.304",
3
+ "version": "10.1.307",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "@things-factory:registry": "https://registry.npmjs.org"
@@ -42,7 +42,7 @@
42
42
  "test": "node --test test/conventions.test.mjs scripts/templates.test.mts"
43
43
  },
44
44
  "dependencies": {
45
- "@hatiolab/figure-model": "^0.12.23",
45
+ "@hatiolab/figure-model": "^0.12.27",
46
46
  "@operato/typeorm-history": "^10.0.0",
47
47
  "@things-factory/ai-client-base": "^10.1.304",
48
48
  "@things-factory/attachment-base": "^10.1.304",
@@ -55,7 +55,7 @@
55
55
  "jszip": "^3.10.1",
56
56
  "koa-router": "^7.4.0"
57
57
  },
58
- "gitHead": "76ce38519069ba90190d69d2a9d6c130bc981cf0",
58
+ "gitHead": "69bf75d4f602bc32e4ba20bb189b0fe9f4d85543",
59
59
  "engines": {
60
60
  "node": ">=22.12"
61
61
  },
@@ -19,6 +19,11 @@
19
19
  "figure.gate.hold-slip.why-unreachable": "The controls hold {hold} solves cannot keep the part there in this pose: solved again, it stays {nearest} mm away.",
20
20
  "figure.gate.hold-slip.how-unreachable": "Add a control for hold {hold} to solve, or change the pose at {seconds} s.",
21
21
  "figure.gate.hold-slip.how-unreachable-start": "Add a control for hold {hold} to solve, or change the starting pose.",
22
+ "figure.gate.public-input-refused.message": "'{part}' cannot be made when a board places the figure at {at}.",
23
+ "figure.gate.public-input-refused.message-figure": "The figure cannot be made when a board places it at {at}.",
24
+ "figure.gate.public-input-refused.why": "A board may place the figure at any size in its range. At this size a shape is not valid, such as a rounded corner larger than half its side.",
25
+ "figure.gate.public-input-refused.how": "Set the smallest size a drawing may give the figure (the size range in the size tab), or make '{part}' fit there: a smaller corner, or a size that follows the figure.",
26
+ "figure.gate.public-input-refused.how-figure": "Set the smallest size a drawing may give the figure (the size range in the size tab), or narrow the range of the value it publishes.",
22
27
  "figure.gate.hold-unmeasured.message": "Hold {hold} cannot be measured.",
23
28
  "figure.gate.hold-unmeasured.why": "What it names is missing, or the figure cannot be posed as it asks, so whether the part stays on the floor is not known.",
24
29
  "figure.gate.hold-unmeasured.how": "Set hold {hold} again, or remove it.",
@@ -170,6 +175,8 @@
170
175
  "figure.gate.contract.motion-group-clip-added.why": "It plays when a board or data chooses it.",
171
176
  "figure.gate.contract.motion-group-default-changed.message": "The motion group '{group}' now starts with '{after}', not '{before}'.",
172
177
  "figure.gate.contract.motion-group-default-changed.why": "Placed instances with no choice of their own play the new default after this release.",
178
+ "figure.gate.contract.motion-group-speed-changed.message": "The motion group '{group}' now starts at speed {after}, not {before}.",
179
+ "figure.gate.contract.motion-group-speed-changed.why": "Placed instances with no speed of their own play at the new speed after this release.",
173
180
  "figure.gate.contract.motion-group-transition-changed.message": "A change of clip in '{group}' now blends over {after} s, not {before} s.",
174
181
  "figure.gate.contract.motion-group-transition-changed.why": "Only how a change of clip looks changes; which clip plays does not.",
175
182
  "figure.gate.contract.slot-moved.message": "The slot '{binding}' is somewhere else on its anchor.",
@@ -19,6 +19,11 @@
19
19
  "figure.gate.hold-slip.why-unreachable": "En esta postura, los controles que resuelve la sujeción {hold} no pueden mantener la pieza en su sitio: resuelta de nuevo, queda a {nearest} mm.",
20
20
  "figure.gate.hold-slip.how-unreachable": "Añada un control para que la sujeción {hold} lo resuelva, o cambie la postura en {seconds} s.",
21
21
  "figure.gate.hold-slip.how-unreachable-start": "Añada un control para que la sujeción {hold} lo resuelva, o cambie la postura inicial.",
22
+ "figure.gate.public-input-refused.message": "La pieza '{part}' no se puede construir cuando un plano coloca la figura en {at}.",
23
+ "figure.gate.public-input-refused.message-figure": "La figura no se puede construir cuando un plano la coloca en {at}.",
24
+ "figure.gate.public-input-refused.why": "Un plano puede colocar la figura en cualquier tamaño de su rango. En este tamaño la forma no es válida, por ejemplo un radio de esquina mayor que la mitad de su lado.",
25
+ "figure.gate.public-input-refused.how": "Fije el tamaño mínimo en el rango de tamaño del plano (pestaña de tamaño), o haga que '{part}' quepa en ese tamaño: un radio de esquina menor, o un tamaño que siga a la figura.",
26
+ "figure.gate.public-input-refused.how-figure": "Fije el tamaño mínimo en el rango de tamaño del plano (pestaña de tamaño), o reduzca el rango del valor publicado.",
22
27
  "figure.gate.hold-unmeasured.message": "La sujeción {hold} no se puede medir.",
23
28
  "figure.gate.hold-unmeasured.why": "Falta lo que nombra o la figura no puede adoptar la pose que pide, así que no se sabe si la pieza queda en el suelo.",
24
29
  "figure.gate.hold-unmeasured.how": "Vuelva a definir la sujeción {hold} o quítela.",
@@ -170,6 +175,8 @@
170
175
  "figure.gate.contract.motion-group-clip-added.why": "Se reproduce cuando un tablero o datos lo eligen.",
171
176
  "figure.gate.contract.motion-group-default-changed.message": "El grupo '{group}' empieza ahora con '{after}', no con '{before}'.",
172
177
  "figure.gate.contract.motion-group-default-changed.why": "Las instancias sin elección propia reproducen el nuevo predeterminado tras esta publicación.",
178
+ "figure.gate.contract.motion-group-speed-changed.message": "El grupo de movimiento '{group}' ahora empieza a velocidad {after}, no {before}.",
179
+ "figure.gate.contract.motion-group-speed-changed.why": "Las instancias colocadas sin velocidad propia se reproducen a la nueva velocidad tras esta publicación.",
173
180
  "figure.gate.contract.motion-group-transition-changed.message": "El cambio de clip en '{group}' dura ahora {after} s, no {before} s.",
174
181
  "figure.gate.contract.motion-group-transition-changed.why": "Solo cambia cómo se ve el cambio de clip; qué clip se reproduce no cambia.",
175
182
  "figure.gate.contract.slot-moved.message": "La ranura '{binding}' está en otro lugar de su anclaje.",
@@ -19,6 +19,11 @@
19
19
  "figure.gate.hold-slip.why-unreachable": "この姿勢では、床固定 {hold} が計算する操作値だけでは部品を固定位置に置けません。再計算しても {nearest} mm 離れます。",
20
20
  "figure.gate.hold-slip.how-unreachable": "床固定 {hold} に計算する操作値を追加するか、{seconds} 秒の姿勢を変えてください。",
21
21
  "figure.gate.hold-slip.how-unreachable-start": "床固定 {hold} に計算する操作値を追加するか、開始姿勢を変えてください。",
22
+ "figure.gate.public-input-refused.message": "図面でフィギュアを {at} の大きさに置くと、部品「{part}」を作れません。",
23
+ "figure.gate.public-input-refused.message-figure": "図面でフィギュアを {at} の大きさに置くと、フィギュアを作れません。",
24
+ "figure.gate.public-input-refused.why": "図面はフィギュアをサイズ範囲内のどの大きさにも置けます。この大きさでは形が成り立ちません。たとえば角の半径が辺の半分より大きくなります。",
25
+ "figure.gate.public-input-refused.how": "サイズタブの「図面でのサイズ範囲」で最小サイズを決めるか、その大きさでも部品「{part}」が収まるよう角の半径を小さくするか、サイズをフィギュアに合わせてください。",
26
+ "figure.gate.public-input-refused.how-figure": "サイズタブの「図面でのサイズ範囲」で最小サイズを決めるか、公開した値の範囲を狭めてください。",
22
27
  "figure.gate.hold-unmeasured.message": "床固定 {hold} を測れません。",
23
28
  "figure.gate.hold-unmeasured.why": "指定した部品や操作値がないか、その姿勢を作れないため、部品が床にあるか分かりません。",
24
29
  "figure.gate.hold-unmeasured.how": "床固定 {hold} を設定し直すか、解除してください。",
@@ -170,6 +175,8 @@
170
175
  "figure.gate.contract.motion-group-clip-added.why": "ボードやデータが選ぶと再生します。",
171
176
  "figure.gate.contract.motion-group-default-changed.message": "モーショングループ '{group}' の既定クリップが '{before}' から '{after}' に変わりました。",
172
177
  "figure.gate.contract.motion-group-default-changed.why": "選択のないインスタンスは、このリリース以降新しい既定クリップを再生します。",
178
+ "figure.gate.contract.motion-group-speed-changed.message": "動作グループ '{group}' の既定の再生速度が {before} から {after} に変わりました。",
179
+ "figure.gate.contract.motion-group-speed-changed.why": "速度を個別に決めていないインスタンスは、この発行の後、新しい既定の速度で再生します。",
173
180
  "figure.gate.contract.motion-group-transition-changed.message": "'{group}' のクリップ切替時間が {before} 秒から {after} 秒に変わりました。",
174
181
  "figure.gate.contract.motion-group-transition-changed.why": "クリップの切り替わり方だけが変わり、どのクリップを再生するかは変わりません。",
175
182
  "figure.gate.contract.slot-moved.message": "'{binding}' スロットが基準面上の別の位置に移りました。",
@@ -19,6 +19,11 @@
19
19
  "figure.gate.hold-slip.why-unreachable": "이 자세에서는 바닥 고정 「{hold}」이 계산하는 조작값만으로 부품을 고정된 자리에 둘 수 없습니다. 다시 계산해도 {nearest} mm 떨어집니다.",
20
20
  "figure.gate.hold-slip.how-unreachable": "바닥 고정 「{hold}」에 계산할 조작값을 더하거나, {seconds}초의 자세를 바꿔 주세요.",
21
21
  "figure.gate.hold-slip.how-unreachable-start": "바닥 고정 「{hold}」에 계산할 조작값을 더하거나, 시작 자세를 바꿔 주세요.",
22
+ "figure.gate.public-input-refused.message": "도면에서 피규어를 {at} 크기로 놓으면 '{part}' 부품을 만들 수 없습니다.",
23
+ "figure.gate.public-input-refused.message-figure": "도면에서 피규어를 {at} 크기로 놓으면 피규어를 만들 수 없습니다.",
24
+ "figure.gate.public-input-refused.why": "도면은 피규어를 크기 범위 안의 어떤 크기로든 놓을 수 있습니다. 이 크기에서는 모양이 성립하지 않습니다. 예를 들어 모서리 반지름이 변 길이의 절반보다 커집니다.",
25
+ "figure.gate.public-input-refused.how": "크기 탭의 「도면에서의 크기 범위」에 최소 크기를 정하거나, 그 크기에서도 '{part}' 부품이 맞도록 모서리 반지름을 줄이거나 크기가 피규어를 따르게 해 주세요.",
26
+ "figure.gate.public-input-refused.how-figure": "크기 탭의 「도면에서의 크기 범위」에 최소 크기를 정하거나, 공개한 값의 범위를 좁혀 주세요.",
22
27
  "figure.gate.hold-unmeasured.message": "바닥 고정 「{hold}」: 부품이 바닥에 있는지 잴 수 없습니다.",
23
28
  "figure.gate.hold-unmeasured.why": "고정이 가리키는 부품이나 조작값이 없거나, 피규어를 그 자세로 만들 수 없어 부품이 바닥에 있는지 알 수 없습니다.",
24
29
  "figure.gate.hold-unmeasured.how": "바닥 고정 「{hold}」 설정을 다시 하거나 해제해 주세요.",
@@ -170,6 +175,8 @@
170
175
  "figure.gate.contract.motion-group-clip-added.why": "보드나 데이터가 선택하면 재생합니다.",
171
176
  "figure.gate.contract.motion-group-default-changed.message": "'{group}' 동작 그룹의 기본 클립이 '{before}' 클립에서 '{after}' 클립으로 바뀌었습니다.",
172
177
  "figure.gate.contract.motion-group-default-changed.why": "선택이 없는 인스턴스는 이 발행 뒤에 새 기본 클립을 재생합니다.",
178
+ "figure.gate.contract.motion-group-speed-changed.message": "'{group}' 동작 그룹의 기본 배속이 {before}배에서 {after}배로 바뀌었습니다.",
179
+ "figure.gate.contract.motion-group-speed-changed.why": "배속을 따로 정하지 않은 인스턴스는 이 발행 뒤에 새 기본 배속으로 재생합니다.",
173
180
  "figure.gate.contract.motion-group-transition-changed.message": "'{group}' 동작 그룹에서 클립을 바꿀 때의 전환 시간이 {before}초에서 {after}초로 바뀌었습니다.",
174
181
  "figure.gate.contract.motion-group-transition-changed.why": "클립이 바뀌는 모습만 달라지고, 어느 클립을 재생하는지는 그대로입니다.",
175
182
  "figure.gate.contract.slot-moved.message": "'{binding}' 적재 위치가 기준면 위의 다른 위치로 옮겨졌습니다.",
@@ -19,6 +19,11 @@
19
19
  "figure.gate.hold-slip.why-unreachable": "Dalam postur ini, kawalan yang diselesaikan oleh pegangan {hold} tidak dapat mengekalkan bahagian itu di tempatnya: diselesaikan semula, ia kekal {nearest} mm jauhnya.",
20
20
  "figure.gate.hold-slip.how-unreachable": "Tambah kawalan untuk diselesaikan oleh pegangan {hold}, atau ubah postur pada {seconds} s.",
21
21
  "figure.gate.hold-slip.how-unreachable-start": "Tambah kawalan untuk diselesaikan oleh pegangan {hold}, atau ubah postur permulaan.",
22
+ "figure.gate.public-input-refused.message": "Bahagian '{part}' tidak dapat dibuat apabila lukisan meletakkan figura pada {at}.",
23
+ "figure.gate.public-input-refused.message-figure": "Figura tidak dapat dibuat apabila lukisan meletakkannya pada {at}.",
24
+ "figure.gate.public-input-refused.why": "Lukisan boleh meletakkan figura pada apa-apa saiz dalam julatnya. Pada saiz ini bentuknya tidak sah, contohnya jejari sudut lebih besar daripada separuh sisinya.",
25
+ "figure.gate.public-input-refused.how": "Tetapkan saiz terkecil dalam julat saiz lukisan (tab saiz), atau jadikan '{part}' muat pada saiz itu: jejari sudut yang lebih kecil, atau saiz yang mengikut figura.",
26
+ "figure.gate.public-input-refused.how-figure": "Tetapkan saiz terkecil dalam julat saiz lukisan (tab saiz), atau sempitkan julat nilai yang diterbitkan.",
22
27
  "figure.gate.hold-unmeasured.message": "Pegangan {hold} tidak dapat diukur.",
23
28
  "figure.gate.hold-unmeasured.why": "Apa yang dinamakannya tiada, atau figura tidak dapat dipose seperti yang diminta, jadi tidak diketahui sama ada bahagian kekal di lantai.",
24
29
  "figure.gate.hold-unmeasured.how": "Tetapkan semula pegangan {hold}, atau buangnya.",
@@ -170,6 +175,8 @@
170
175
  "figure.gate.contract.motion-group-clip-added.why": "Ia dimainkan apabila papan atau data memilihnya.",
171
176
  "figure.gate.contract.motion-group-default-changed.message": "Kumpulan gerakan '{group}' kini bermula dengan '{after}', bukan '{before}'.",
172
177
  "figure.gate.contract.motion-group-default-changed.why": "Instans tanpa pilihan sendiri memainkan klip lalai baharu selepas keluaran ini.",
178
+ "figure.gate.contract.motion-group-speed-changed.message": "Kumpulan gerakan '{group}' kini bermula pada kelajuan {after}, bukan {before}.",
179
+ "figure.gate.contract.motion-group-speed-changed.why": "Instans yang diletakkan tanpa kelajuan sendiri dimainkan pada kelajuan baharu selepas keluaran ini.",
173
180
  "figure.gate.contract.motion-group-transition-changed.message": "Peralihan klip dalam '{group}' kini {after} s, bukan {before} s.",
174
181
  "figure.gate.contract.motion-group-transition-changed.why": "Hanya rupa peralihan berubah; klip yang dimainkan tidak berubah.",
175
182
  "figure.gate.contract.slot-moved.message": "Slot '{binding}' berada di tempat lain pada anchornya.",
@@ -19,6 +19,11 @@
19
19
  "figure.gate.hold-slip.why-unreachable": "在此姿势下,仅靠地面固定 {hold} 求解的控制值无法使部件保持在固定位置。重新求解后仍相差 {nearest} mm。",
20
20
  "figure.gate.hold-slip.how-unreachable": "请为地面固定 {hold} 添加要求解的控制值,或更改 {seconds} 秒处的姿势。",
21
21
  "figure.gate.hold-slip.how-unreachable-start": "请为地面固定 {hold} 添加要求解的控制值,或更改起始姿势。",
22
+ "figure.gate.public-input-refused.message": "在图纸上把模型放成 {at} 时,无法生成部件“{part}”。",
23
+ "figure.gate.public-input-refused.message-figure": "在图纸上把模型放成 {at} 时,无法生成模型。",
24
+ "figure.gate.public-input-refused.why": "图纸可以把模型放成尺寸范围内的任意大小。在这个尺寸下形状不成立,例如圆角半径大于边长的一半。",
25
+ "figure.gate.public-input-refused.how": "请在尺寸选项卡的“图纸中的尺寸范围”设置最小尺寸,或让部件“{part}”在该尺寸下也能成立:减小圆角半径,或让其尺寸跟随模型。",
26
+ "figure.gate.public-input-refused.how-figure": "请在尺寸选项卡的“图纸中的尺寸范围”设置最小尺寸,或缩小公开值的范围。",
22
27
  "figure.gate.hold-unmeasured.message": "无法测量地面固定 {hold}。",
23
28
  "figure.gate.hold-unmeasured.why": "它所指定的部件或控制值不存在,或模型无法摆出所需姿势,因此不知道部件是否在地面上。",
24
29
  "figure.gate.hold-unmeasured.how": "请重新设置或解除地面固定 {hold}。",
@@ -170,6 +175,8 @@
170
175
  "figure.gate.contract.motion-group-clip-added.why": "看板或数据选择时播放。",
171
176
  "figure.gate.contract.motion-group-default-changed.message": "动作组 '{group}' 的默认片段从 '{before}' 改为 '{after}'。",
172
177
  "figure.gate.contract.motion-group-default-changed.why": "没有自身选择的实例在本次发布后播放新的默认片段。",
178
+ "figure.gate.contract.motion-group-speed-changed.message": "动作组 '{group}' 的默认倍速已从 {before} 改为 {after}。",
179
+ "figure.gate.contract.motion-group-speed-changed.why": "未单独设定倍速的实例在本次发布后按新的默认倍速播放。",
173
180
  "figure.gate.contract.motion-group-transition-changed.message": "'{group}' 中切换片段的过渡时间从 {before} 秒改为 {after} 秒。",
174
181
  "figure.gate.contract.motion-group-transition-changed.why": "只改变切换的样子,播放哪个片段不变。",
175
182
  "figure.gate.contract.slot-moved.message": "'{binding}' 槽位移到了基准面上的其他位置。",