@things-factory/figure-service 10.1.307 → 10.1.308

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.
@@ -345,7 +345,10 @@ const SUBJECT = {
345
345
  'set-repeat': step => step.part,
346
346
  'remove-repeat': step => step.part,
347
347
  'set-mounting-face': step => step.part,
348
- 'add-binding': step => step.part,
348
+ /* On a face of a part, said by `part` and `face` or by `to` (ADR-0230): it writes that face's nodes. On the mounting plane, no part. */
349
+ 'add-binding': step => step.part ?? (step.to && 'part' in step.to ? step.to.part : undefined),
350
+ /* A part made only to hold a place gives its places to a place box: its sizes and fastening are read (ADR-0230 Q6). */
351
+ 'part-to-place': step => step.part,
349
352
  'set-joint': step => step.joint?.body1?.part,
350
353
  'remove-joint': (step, base) => (base.joints ?? []).find((j) => j?.id === step.id)?.body1?.part,
351
354
  'set-material': step => step.target,
@@ -364,6 +367,7 @@ const SUBJECT = {
364
367
  'declare-instance-size': () => undefined,
365
368
  'clear-mounting-face': () => undefined,
366
369
  'scale-uniformly': () => undefined,
370
+ 'scale-separately': () => undefined,
367
371
  'follow-size-in-proportion': () => undefined,
368
372
  'set-detail-level': () => undefined,
369
373
  'set-item': () => undefined,
@@ -372,6 +376,8 @@ const SUBJECT = {
372
376
  'publish-input': () => undefined,
373
377
  'unpublish-input': () => undefined,
374
378
  'remove-binding': () => undefined,
379
+ /* One side of a place's room: the place's, no part's. */
380
+ 'set-binding-size': () => undefined,
375
381
  'set-slot-layout': () => undefined,
376
382
  'remove-slot-layout': () => undefined,
377
383
  'set-extension': () => undefined,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/figure-service",
3
- "version": "10.1.307",
3
+ "version": "10.1.308",
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.27",
45
+ "@hatiolab/figure-model": "^0.12.28",
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": "69bf75d4f602bc32e4ba20bb189b0fe9f4d85543",
58
+ "gitHead": "fb1e5f82471a206f641bcc5b79bbb9db909cc0a1",
59
59
  "engines": {
60
60
  "node": ">=22.12"
61
61
  },