@things-factory/figure-service 10.1.15 → 10.1.17

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,12 +10,18 @@
10
10
  */
11
11
  import { FigureSourceError, parseSource } from './figure-source'
12
12
 
13
- /** 온전한 부품 하나. 시험할 필드만 덮어쓴다. */
13
+ /**
14
+ * 온전한 부품 하나. 시험할 필드만 덮어쓴다.
15
+ *
16
+ * `y: -350` 은 `source()` 의 상자(높이 800)의 밑면 -400 에 딱 붙어 서는 자리다. 바닥 기반
17
+ * 도형이 상자 밑면에 안 닿으면 `parts-off-placement-face` 가 난다 — 픽스처가 그걸 달고
18
+ * 있으면 「위반이 없다」를 보는 시험이 그 하나 때문에 빨개진다.
19
+ */
14
20
  function part(over: Record<string, unknown> = {}) {
15
21
  return {
16
22
  name: 'body',
17
23
  primitive: 'cube',
18
- transform: { position: { x: 0, y: 0, z: 0 }, size: { x: 100, y: 100, z: 100 } },
24
+ transform: { position: { x: 0, y: -350, z: 0 }, size: { x: 100, y: 100, z: 100 } },
19
25
  material: { token: 'palette.primary' },
20
26
  ...over
21
27
  }