@things-factory/figure-service 10.1.200 → 10.1.201

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.
Files changed (347) hide show
  1. package/dist-server/service/figure/figure-context.d.ts +1 -1
  2. package/dist-server/service/figure/figure-context.js +10 -4
  3. package/dist-server/service/figure/figure-context.js.map +1 -1
  4. package/dist-server/service/figure/figure-propose-steps.js +3 -3
  5. package/dist-server/service/figure/figure-propose-steps.js.map +1 -1
  6. package/dist-server/tsconfig.tsbuildinfo +1 -1
  7. package/package.json +3 -3
  8. package/recipes/_lib/model.mts +4 -4
  9. package/recipes/air-cylinder/build.mts +2 -2
  10. package/recipes/air-cylinder/models/default.json +1 -1
  11. package/recipes/air-cylinder/recipe.json +2 -4
  12. package/recipes/air-shower/build.mts +2 -2
  13. package/recipes/air-shower/models/default.json +1 -1
  14. package/recipes/air-shower/recipe.json +2 -4
  15. package/recipes/barrier-gate/build.mts +1 -1
  16. package/recipes/barrier-gate/models/default.json +1 -1
  17. package/recipes/barrier-gate/recipe.json +1 -2
  18. package/recipes/base-frame/build.mts +2 -2
  19. package/recipes/base-frame/models/default.json +1 -1
  20. package/recipes/base-frame/recipe.json +4 -8
  21. package/recipes/belt-surface/build.mts +1 -1
  22. package/recipes/belt-surface/models/default.json +1 -1
  23. package/recipes/belt-surface/recipe.json +1 -2
  24. package/recipes/bin-row/build.mts +1 -1
  25. package/recipes/bin-row/models/default.json +1 -1
  26. package/recipes/bin-row/recipe.json +1 -2
  27. package/recipes/bollard-row/build.mts +1 -1
  28. package/recipes/bollard-row/models/default.json +1 -1
  29. package/recipes/bollard-row/recipe.json +1 -2
  30. package/recipes/buzzer/build.mts +1 -1
  31. package/recipes/buzzer/models/default.json +1 -1
  32. package/recipes/buzzer/recipe.json +1 -2
  33. package/recipes/cabinet-doors/build.mts +2 -2
  34. package/recipes/cabinet-doors/models/default.json +1 -1
  35. package/recipes/cabinet-doors/models/doors=1.json +1 -1
  36. package/recipes/cabinet-doors/models/doors=2.json +1 -1
  37. package/recipes/cabinet-doors/recipe.json +2 -4
  38. package/recipes/cable-tray/build.mts +2 -2
  39. package/recipes/cable-tray/models/default.json +1 -1
  40. package/recipes/cable-tray/recipe.json +3 -6
  41. package/recipes/camera-mount/build.mts +2 -2
  42. package/recipes/camera-mount/models/default.json +1 -1
  43. package/recipes/camera-mount/recipe.json +2 -4
  44. package/recipes/canopy/build.mts +2 -2
  45. package/recipes/canopy/models/default.json +1 -1
  46. package/recipes/canopy/recipe.json +5 -10
  47. package/recipes/cart/build.mts +5 -5
  48. package/recipes/cart/models/default.json +1 -1
  49. package/recipes/cart/recipe.json +16 -36
  50. package/recipes/cart-handle/build.mts +2 -2
  51. package/recipes/cart-handle/models/default.json +1 -1
  52. package/recipes/cart-handle/recipe.json +3 -6
  53. package/recipes/casters-four/build.mts +2 -2
  54. package/recipes/casters-four/models/default.json +1 -1
  55. package/recipes/casters-four/recipe.json +12 -28
  56. package/recipes/ceiling-rail-carriage/build.mts +2 -2
  57. package/recipes/ceiling-rail-carriage/models/default.json +1 -1
  58. package/recipes/ceiling-rail-carriage/recipe.json +2 -4
  59. package/recipes/chain-rails/build.mts +2 -2
  60. package/recipes/chain-rails/models/default.json +1 -1
  61. package/recipes/chain-rails/recipe.json +2 -4
  62. package/recipes/charging-station/build.mts +2 -2
  63. package/recipes/charging-station/models/default.json +1 -1
  64. package/recipes/charging-station/recipe.json +2 -4
  65. package/recipes/column-row/build.mts +1 -1
  66. package/recipes/column-row/models/default.json +1 -1
  67. package/recipes/column-row/recipe.json +1 -2
  68. package/recipes/control-cabinet/build.mts +2 -2
  69. package/recipes/control-cabinet/models/default.json +1 -1
  70. package/recipes/control-cabinet/recipe.json +2 -4
  71. package/recipes/conveyor-skirts/build.mts +2 -2
  72. package/recipes/conveyor-skirts/models/default.json +1 -1
  73. package/recipes/conveyor-skirts/recipe.json +2 -4
  74. package/recipes/counter-display/build.mts +2 -2
  75. package/recipes/counter-display/models/default.json +1 -1
  76. package/recipes/counter-display/recipe.json +2 -4
  77. package/recipes/dock-bumpers/build.mts +1 -1
  78. package/recipes/dock-bumpers/models/default.json +1 -1
  79. package/recipes/dock-bumpers/recipe.json +2 -4
  80. package/recipes/dock-leveler/build.mts +1 -1
  81. package/recipes/dock-leveler/models/default.json +1 -1
  82. package/recipes/dock-leveler/recipe.json +1 -2
  83. package/recipes/double-hinged-door/build.mts +2 -2
  84. package/recipes/double-hinged-door/models/default.json +1 -1
  85. package/recipes/double-hinged-door/recipe.json +3 -6
  86. package/recipes/drawer-stack/build.mts +1 -1
  87. package/recipes/drawer-stack/models/default.json +1 -1
  88. package/recipes/drawer-stack/models/drawers=2.json +1 -1
  89. package/recipes/drawer-stack/models/drawers=3.json +1 -1
  90. package/recipes/drawer-stack/models/drawers=4.json +1 -1
  91. package/recipes/drawer-stack/recipe.json +9 -18
  92. package/recipes/drip-tray/build.mts +1 -1
  93. package/recipes/drip-tray/models/default.json +1 -1
  94. package/recipes/drip-tray/recipe.json +1 -2
  95. package/recipes/duct-fan/build.mts +2 -2
  96. package/recipes/duct-fan/models/default.json +1 -1
  97. package/recipes/duct-fan/recipe.json +2 -4
  98. package/recipes/emergency-stop/build.mts +2 -2
  99. package/recipes/emergency-stop/models/default.json +1 -1
  100. package/recipes/emergency-stop/recipe.json +2 -4
  101. package/recipes/end-covers/build.mts +2 -2
  102. package/recipes/end-covers/models/default.json +1 -1
  103. package/recipes/end-covers/recipe.json +2 -4
  104. package/recipes/ffu-row/build.mts +1 -1
  105. package/recipes/ffu-row/models/default.json +1 -1
  106. package/recipes/ffu-row/recipe.json +1 -2
  107. package/recipes/fire-extinguisher/build.mts +2 -2
  108. package/recipes/fire-extinguisher/models/default.json +1 -1
  109. package/recipes/fire-extinguisher/recipe.json +2 -4
  110. package/recipes/first-aid-box/build.mts +2 -2
  111. package/recipes/first-aid-box/models/default.json +1 -1
  112. package/recipes/first-aid-box/recipe.json +2 -4
  113. package/recipes/floor-zone/build.mts +2 -2
  114. package/recipes/floor-zone/models/default.json +1 -1
  115. package/recipes/floor-zone/recipe.json +4 -8
  116. package/recipes/folding-door/build.mts +3 -3
  117. package/recipes/folding-door/models/default.json +1 -1
  118. package/recipes/folding-door/recipe.json +3 -6
  119. package/recipes/fork/build.mts +1 -1
  120. package/recipes/fork/models/default.json +1 -1
  121. package/recipes/fork/recipe.json +2 -4
  122. package/recipes/gantry-frame/build.mts +2 -2
  123. package/recipes/gantry-frame/models/default.json +1 -1
  124. package/recipes/gantry-frame/recipe.json +3 -6
  125. package/recipes/gripper-2f/build.mts +2 -2
  126. package/recipes/gripper-2f/models/default.json +1 -1
  127. package/recipes/gripper-2f/recipe.json +3 -6
  128. package/recipes/guard-cover/build.mts +1 -1
  129. package/recipes/guard-cover/models/default.json +1 -1
  130. package/recipes/guard-cover/recipe.json +1 -2
  131. package/recipes/handrail/build.mts +2 -2
  132. package/recipes/handrail/models/default.json +1 -1
  133. package/recipes/handrail/recipe.json +2 -4
  134. package/recipes/hatch/build.mts +2 -2
  135. package/recipes/hatch/models/default.json +1 -1
  136. package/recipes/hatch/recipe.json +2 -4
  137. package/recipes/hinged-door/build.mts +2 -2
  138. package/recipes/hinged-door/models/default.json +1 -1
  139. package/recipes/hinged-door/models/hinge=left.json +1 -1
  140. package/recipes/hinged-door/models/hinge=right.json +1 -1
  141. package/recipes/hinged-door/recipe.json +3 -6
  142. package/recipes/hmi-monitor/build.mts +2 -2
  143. package/recipes/hmi-monitor/models/default.json +1 -1
  144. package/recipes/hmi-monitor/recipe.json +2 -4
  145. package/recipes/hopper/build.mts +2 -2
  146. package/recipes/hopper/models/default.json +1 -1
  147. package/recipes/hopper/recipe.json +2 -4
  148. package/recipes/interlock-switch/build.mts +1 -1
  149. package/recipes/interlock-switch/models/default.json +1 -1
  150. package/recipes/interlock-switch/recipe.json +1 -2
  151. package/recipes/junction-box/build.mts +1 -1
  152. package/recipes/junction-box/models/default.json +1 -1
  153. package/recipes/junction-box/recipe.json +1 -2
  154. package/recipes/ladder/build.mts +2 -2
  155. package/recipes/ladder/models/default.json +1 -1
  156. package/recipes/ladder/recipe.json +3 -6
  157. package/recipes/legs-four/build.mts +1 -1
  158. package/recipes/legs-four/models/default.json +1 -1
  159. package/recipes/legs-four/recipe.json +4 -8
  160. package/recipes/leveling-feet/build.mts +1 -1
  161. package/recipes/leveling-feet/models/default.json +1 -1
  162. package/recipes/leveling-feet/recipe.json +4 -8
  163. package/recipes/lift-updown/build.mts +1 -1
  164. package/recipes/lift-updown/models/default.json +1 -1
  165. package/recipes/lift-updown/recipe.json +1 -2
  166. package/recipes/light-curtain/build.mts +1 -1
  167. package/recipes/light-curtain/models/default.json +1 -1
  168. package/recipes/light-curtain/recipe.json +2 -4
  169. package/recipes/limit-switch/build.mts +2 -2
  170. package/recipes/limit-switch/models/default.json +1 -1
  171. package/recipes/limit-switch/recipe.json +2 -4
  172. package/recipes/linear-guide/build.mts +2 -2
  173. package/recipes/linear-guide/models/default.json +1 -1
  174. package/recipes/linear-guide/recipe.json +2 -4
  175. package/recipes/locker-row/build.mts +1 -1
  176. package/recipes/locker-row/models/default.json +1 -1
  177. package/recipes/locker-row/recipe.json +1 -2
  178. package/recipes/motor-box/build.mts +1 -1
  179. package/recipes/motor-box/models/default.json +1 -1
  180. package/recipes/motor-box/recipe.json +1 -2
  181. package/recipes/observation-window/build.mts +2 -2
  182. package/recipes/observation-window/models/default.json +1 -1
  183. package/recipes/observation-window/recipe.json +2 -4
  184. package/recipes/operator-panel/build.mts +2 -2
  185. package/recipes/operator-panel/models/buttons=2.json +1 -1
  186. package/recipes/operator-panel/models/buttons=3.json +1 -1
  187. package/recipes/operator-panel/models/buttons=4.json +1 -1
  188. package/recipes/operator-panel/models/buttons=5.json +1 -1
  189. package/recipes/operator-panel/models/default.json +1 -1
  190. package/recipes/operator-panel/recipe.json +5 -10
  191. package/recipes/pallet/build.mts +2 -2
  192. package/recipes/pallet/models/default.json +1 -1
  193. package/recipes/pallet/recipe.json +4 -8
  194. package/recipes/partition-wall/build.mts +2 -2
  195. package/recipes/partition-wall/models/default.json +1 -1
  196. package/recipes/partition-wall/recipe.json +3 -6
  197. package/recipes/pass-box/build.mts +2 -2
  198. package/recipes/pass-box/models/default.json +1 -1
  199. package/recipes/pass-box/recipe.json +2 -4
  200. package/recipes/peg-board/build.mts +2 -2
  201. package/recipes/peg-board/models/default.json +1 -1
  202. package/recipes/peg-board/recipe.json +2 -4
  203. package/recipes/photo-sensor-pair/build.mts +1 -1
  204. package/recipes/photo-sensor-pair/models/default.json +1 -1
  205. package/recipes/photo-sensor-pair/recipe.json +2 -4
  206. package/recipes/pipe-run/build.mts +1 -1
  207. package/recipes/pipe-run/models/default.json +1 -1
  208. package/recipes/pipe-run/recipe.json +4 -7
  209. package/recipes/platform/build.mts +2 -2
  210. package/recipes/platform/models/default.json +1 -1
  211. package/recipes/platform/recipe.json +5 -10
  212. package/recipes/power-box/build.mts +1 -1
  213. package/recipes/power-box/models/default.json +1 -1
  214. package/recipes/power-box/recipe.json +1 -2
  215. package/recipes/pressure-gauge/build.mts +1 -1
  216. package/recipes/pressure-gauge/models/default.json +1 -1
  217. package/recipes/pressure-gauge/recipe.json +1 -2
  218. package/recipes/pull-cord/build.mts +1 -1
  219. package/recipes/pull-cord/models/default.json +1 -1
  220. package/recipes/pull-cord/recipe.json +1 -2
  221. package/recipes/pump/build.mts +2 -2
  222. package/recipes/pump/models/default.json +1 -1
  223. package/recipes/pump/recipe.json +2 -4
  224. package/recipes/pusher/build.mts +1 -1
  225. package/recipes/pusher/models/default.json +1 -1
  226. package/recipes/pusher/recipe.json +1 -2
  227. package/recipes/robot-plinth/build.mts +2 -2
  228. package/recipes/robot-plinth/models/default.json +1 -1
  229. package/recipes/robot-plinth/recipe.json +2 -4
  230. package/recipes/roll-up-shutter/build.mts +2 -2
  231. package/recipes/roll-up-shutter/models/default.json +1 -1
  232. package/recipes/roll-up-shutter/recipe.json +2 -4
  233. package/recipes/roller-row/build.mts +1 -1
  234. package/recipes/roller-row/models/default.json +1 -1
  235. package/recipes/roller-row/recipe.json +5 -7
  236. package/recipes/room-shell/build.mts +3 -3
  237. package/recipes/room-shell/models/default.json +1 -1
  238. package/recipes/room-shell/recipe.json +5 -10
  239. package/recipes/rotating-beacon/build.mts +3 -3
  240. package/recipes/rotating-beacon/models/default.json +1 -1
  241. package/recipes/rotating-beacon/recipe.json +3 -6
  242. package/recipes/safety-fence/build.mts +2 -2
  243. package/recipes/safety-fence/models/default.json +1 -1
  244. package/recipes/safety-fence/recipe.json +2 -4
  245. package/recipes/safety-mat/build.mts +1 -1
  246. package/recipes/safety-mat/models/default.json +1 -1
  247. package/recipes/safety-mat/recipe.json +1 -2
  248. package/recipes/safety-sign-stand/build.mts +3 -3
  249. package/recipes/safety-sign-stand/models/default.json +1 -1
  250. package/recipes/safety-sign-stand/recipe.json +3 -6
  251. package/recipes/scanner-mount/build.mts +3 -3
  252. package/recipes/scanner-mount/models/default.json +1 -1
  253. package/recipes/scanner-mount/recipe.json +3 -6
  254. package/recipes/selector-switch/build.mts +2 -2
  255. package/recipes/selector-switch/models/default.json +1 -1
  256. package/recipes/selector-switch/recipe.json +2 -4
  257. package/recipes/shelf-tiers/build.mts +1 -1
  258. package/recipes/shelf-tiers/models/default.json +1 -1
  259. package/recipes/shelf-tiers/models/tiers=2.json +1 -1
  260. package/recipes/shelf-tiers/models/tiers=3.json +1 -1
  261. package/recipes/shelf-tiers/models/tiers=4.json +1 -1
  262. package/recipes/shelf-tiers/models/tiers=5.json +1 -1
  263. package/recipes/shelf-tiers/recipe.json +4 -8
  264. package/recipes/side-guides/build.mts +1 -1
  265. package/recipes/side-guides/models/default.json +1 -1
  266. package/recipes/side-guides/recipe.json +2 -4
  267. package/recipes/sign-board/build.mts +1 -1
  268. package/recipes/sign-board/models/default.json +1 -1
  269. package/recipes/sign-board/recipe.json +1 -2
  270. package/recipes/signal-tower-3/build.mts +2 -2
  271. package/recipes/signal-tower-3/models/default.json +1 -1
  272. package/recipes/signal-tower-3/recipe.json +4 -8
  273. package/recipes/sliding-door/build.mts +4 -4
  274. package/recipes/sliding-door/models/default.json +1 -1
  275. package/recipes/sliding-door/models/leaves=1,lamp=false.json +1 -1
  276. package/recipes/sliding-door/models/leaves=1,lamp=true.json +1 -1
  277. package/recipes/sliding-door/models/leaves=2,lamp=false.json +1 -1
  278. package/recipes/sliding-door/models/leaves=2,lamp=true.json +1 -1
  279. package/recipes/sliding-door/recipe.json +5 -10
  280. package/recipes/stairs/build.mts +1 -1
  281. package/recipes/stairs/models/default.json +1 -1
  282. package/recipes/stairs/recipe.json +1 -2
  283. package/recipes/status-lamp/build.mts +3 -3
  284. package/recipes/status-lamp/models/default.json +1 -1
  285. package/recipes/status-lamp/recipe.json +3 -6
  286. package/recipes/stopper/build.mts +1 -1
  287. package/recipes/stopper/models/default.json +1 -1
  288. package/recipes/stopper/recipe.json +1 -2
  289. package/recipes/suction-pads/build.mts +1 -1
  290. package/recipes/suction-pads/models/default.json +1 -1
  291. package/recipes/suction-pads/recipe.json +1 -2
  292. package/recipes/tank/build.mts +1 -1
  293. package/recipes/tank/models/default.json +1 -1
  294. package/recipes/tank/recipe.json +1 -2
  295. package/recipes/telescopic-arm/build.mts +2 -2
  296. package/recipes/telescopic-arm/models/default.json +1 -1
  297. package/recipes/telescopic-arm/recipe.json +2 -4
  298. package/recipes/toe-board/build.mts +1 -1
  299. package/recipes/toe-board/models/default.json +1 -1
  300. package/recipes/toe-board/recipe.json +1 -2
  301. package/recipes/tote/build.mts +1 -1
  302. package/recipes/tote/models/default.json +1 -1
  303. package/recipes/tote/recipe.json +1 -2
  304. package/recipes/traffic-cones/build.mts +2 -2
  305. package/recipes/traffic-cones/models/default.json +1 -1
  306. package/recipes/traffic-cones/recipe.json +2 -4
  307. package/recipes/transfer-belts/build.mts +1 -1
  308. package/recipes/transfer-belts/models/default.json +1 -1
  309. package/recipes/transfer-belts/recipe.json +2 -4
  310. package/recipes/tray-stack/build.mts +1 -1
  311. package/recipes/tray-stack/models/default.json +1 -1
  312. package/recipes/tray-stack/models/trays=3.json +1 -1
  313. package/recipes/tray-stack/models/trays=4.json +1 -1
  314. package/recipes/tray-stack/models/trays=5.json +1 -1
  315. package/recipes/tray-stack/recipe.json +5 -10
  316. package/recipes/trough/build.mts +1 -1
  317. package/recipes/trough/models/default.json +1 -1
  318. package/recipes/trough/recipe.json +1 -2
  319. package/recipes/turntable/build.mts +2 -2
  320. package/recipes/turntable/models/default.json +1 -1
  321. package/recipes/turntable/recipe.json +2 -4
  322. package/recipes/valve-handle/build.mts +3 -3
  323. package/recipes/valve-handle/models/default.json +1 -1
  324. package/recipes/valve-handle/recipe.json +3 -6
  325. package/recipes/waste-bin/build.mts +1 -1
  326. package/recipes/waste-bin/models/default.json +1 -1
  327. package/recipes/waste-bin/recipe.json +1 -2
  328. package/recipes/work-light/build.mts +3 -3
  329. package/recipes/work-light/models/default.json +1 -1
  330. package/recipes/work-light/recipe.json +3 -6
  331. package/recipes/workbench-top/build.mts +1 -1
  332. package/recipes/workbench-top/models/default.json +1 -1
  333. package/recipes/workbench-top/recipe.json +1 -2
  334. package/server/service/figure/figure-category-db.test.ts +1 -1
  335. package/server/service/figure/figure-context.test.ts +6 -6
  336. package/server/service/figure/figure-context.ts +11 -4
  337. package/server/service/figure/figure-deprecation-db.test.ts +1 -1
  338. package/server/service/figure/figure-format.test.ts +3 -3
  339. package/server/service/figure/figure-llm-smoke.test.ts +2 -2
  340. package/server/service/figure/figure-namespace-db.test.ts +1 -1
  341. package/server/service/figure/figure-propose-clips.test.ts +1 -1
  342. package/server/service/figure/figure-propose-steps.test.ts +5 -5
  343. package/server/service/figure/figure-propose-steps.ts +3 -3
  344. package/server/service/figure/figure-public-db.test.ts +1 -1
  345. package/server/service/figure/figure-release-check.test.ts +1 -1
  346. package/server/service/figure/figure-release-record-db.test.ts +1 -1
  347. package/server/service/figure/figure-tools.test.ts +2 -2
@@ -1 +1 @@
1
- {"version":"figure-asset-1","name":"TPL_DRAWER_STACK","document":{"version":"figure-prototype-1","model":{"version":"r3-spatial-1","inputs":[{"id":"host.size.x","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"host.size.y","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"host.size.z","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"drawer-1.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"drawer-2.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"drawer-3.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"drawer-4.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"open-1","unit":"mm","min":0,"max":400,"role":"state"},{"id":"open-2","unit":"mm","min":0,"max":400,"role":"state"},{"id":"open-3","unit":"mm","min":0,"max":400,"role":"state"},{"id":"open-4","unit":"mm","min":0,"max":400,"role":"state"}],"constants":[{"id":"host.k.centre","unit":"ratio","value":-0.5},{"id":"d.mm.0","unit":"mm","value":0},{"id":"a.deg.0","unit":"deg","value":0},{"id":"k.ratio.0_5","unit":"ratio","value":0.5},{"id":"drawer-1.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio.1","unit":"ratio","value":1},{"id":"k.ratio.0_95","unit":"ratio","value":0.95},{"id":"k.ratio.0_225","unit":"ratio","value":0.225},{"id":"k.ratio._0_375","unit":"ratio","value":-0.375},{"id":"axis.ratio.0","unit":"ratio","value":0},{"id":"drawer-2.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio._0_125","unit":"ratio","value":-0.125},{"id":"drawer-3.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio.0_125","unit":"ratio","value":0.125},{"id":"drawer-4.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio.0_375","unit":"ratio","value":0.375}],"nodes":[{"id":"host.start","op":"mul@1","args":["host.dimension.y.value","host.k.centre"],"outputs":{"value":"host.start.value"}},{"id":"host.shape","op":"extrude@1","args":["host.start.value","host.dimension.y.value","host.dimension.x.value","host.size.z"],"outputs":{"shape":"host.shapeValue"},"params":{"frame":"host.local","axis":"y","section":"rectangle"}},{"id":"host.pose","op":"rigid@1","args":["d.mm.0","host.on.plane.stand.y.1.sum.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.poseValue"},"params":{"from":"host.local","to":"host.seat"}},{"id":"host","op":"place@1","args":["host.shapeValue","host.chain.value"],"outputs":{"placed":"host.placed"}},{"id":"drawer-1.shape","op":"extrude@1","args":["drawer-1.start.value","drawer-1.dimension.y.value","drawer-1.dimension.x.value","drawer-1.dimension.depth"],"outputs":{"shape":"drawer-1.shapeValue"},"params":{"frame":"drawer-1.local","axis":"y","section":"rectangle"}},{"id":"drawer-1.pose","op":"rigid@1","args":["d.mm.0","d.mm.0","drawer-1.on.host.along.z.1.sum.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"drawer-1.poseValue"},"params":{"from":"drawer-1.local","to":"drawer-1.seat"}},{"id":"drawer-1","op":"place@1","args":["drawer-1.shapeValue","drawer-1.world.value"],"outputs":{"placed":"drawer-1.placed"}},{"id":"drawer-1.start","op":"mul@1","args":["drawer-1.dimension.y.value","drawer-1.k.centre"],"outputs":{"value":"drawer-1.start.value"}},{"id":"drawer-1.dimension.x","op":"mul@1","args":["drawer-1.x.follows.times.value","k.ratio.1"],"outputs":{"value":"drawer-1.dimension.x.value"}},{"id":"host.dimension.x","op":"mul@1","args":["host.size.x","k.ratio.1"],"outputs":{"value":"host.dimension.x.value"}},{"id":"drawer-1.x.follows.times","op":"mul@1","args":["host.dimension.x.value","k.ratio.0_95"],"outputs":{"value":"drawer-1.x.follows.times.value"}},{"id":"drawer-1.dimension.y","op":"mul@1","args":["drawer-1.y.follows.times.value","k.ratio.1"],"outputs":{"value":"drawer-1.dimension.y.value"}},{"id":"host.dimension.y","op":"mul@1","args":["host.size.y","k.ratio.1"],"outputs":{"value":"host.dimension.y.value"}},{"id":"drawer-1.y.follows.times","op":"mul@1","args":["host.dimension.y.value","k.ratio.0_225"],"outputs":{"value":"drawer-1.y.follows.times.value"}},{"id":"drawer-2.shape","op":"extrude@1","args":["drawer-2.start.value","drawer-2.dimension.y.value","drawer-2.dimension.x.value","drawer-2.dimension.depth"],"outputs":{"shape":"drawer-2.shapeValue"},"params":{"frame":"drawer-2.local","axis":"y","section":"rectangle"}},{"id":"drawer-2.pose","op":"rigid@1","args":["d.mm.0","d.mm.0","drawer-2.on.host.along.z.1.sum.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"drawer-2.poseValue"},"params":{"from":"drawer-2.local","to":"drawer-2.seat"}},{"id":"drawer-2","op":"place@1","args":["drawer-2.shapeValue","drawer-2.world.value"],"outputs":{"placed":"drawer-2.placed"}},{"id":"drawer-2.start","op":"mul@1","args":["drawer-2.dimension.y.value","drawer-2.k.centre"],"outputs":{"value":"drawer-2.start.value"}},{"id":"drawer-2.dimension.x","op":"mul@1","args":["drawer-2.x.follows.times.value","k.ratio.1"],"outputs":{"value":"drawer-2.dimension.x.value"}},{"id":"drawer-2.x.follows.times","op":"mul@1","args":["host.dimension.x.value","k.ratio.0_95"],"outputs":{"value":"drawer-2.x.follows.times.value"}},{"id":"drawer-2.dimension.y","op":"mul@1","args":["drawer-2.y.follows.times.value","k.ratio.1"],"outputs":{"value":"drawer-2.dimension.y.value"}},{"id":"drawer-2.y.follows.times","op":"mul@1","args":["host.dimension.y.value","k.ratio.0_225"],"outputs":{"value":"drawer-2.y.follows.times.value"}},{"id":"drawer-3.shape","op":"extrude@1","args":["drawer-3.start.value","drawer-3.dimension.y.value","drawer-3.dimension.x.value","drawer-3.dimension.depth"],"outputs":{"shape":"drawer-3.shapeValue"},"params":{"frame":"drawer-3.local","axis":"y","section":"rectangle"}},{"id":"drawer-3.pose","op":"rigid@1","args":["d.mm.0","d.mm.0","drawer-3.on.host.along.z.1.sum.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"drawer-3.poseValue"},"params":{"from":"drawer-3.local","to":"drawer-3.seat"}},{"id":"drawer-3","op":"place@1","args":["drawer-3.shapeValue","drawer-3.world.value"],"outputs":{"placed":"drawer-3.placed"}},{"id":"drawer-3.start","op":"mul@1","args":["drawer-3.dimension.y.value","drawer-3.k.centre"],"outputs":{"value":"drawer-3.start.value"}},{"id":"drawer-3.dimension.x","op":"mul@1","args":["drawer-3.x.follows.times.value","k.ratio.1"],"outputs":{"value":"drawer-3.dimension.x.value"}},{"id":"drawer-3.x.follows.times","op":"mul@1","args":["host.dimension.x.value","k.ratio.0_95"],"outputs":{"value":"drawer-3.x.follows.times.value"}},{"id":"drawer-3.dimension.y","op":"mul@1","args":["drawer-3.y.follows.times.value","k.ratio.1"],"outputs":{"value":"drawer-3.dimension.y.value"}},{"id":"drawer-3.y.follows.times","op":"mul@1","args":["host.dimension.y.value","k.ratio.0_225"],"outputs":{"value":"drawer-3.y.follows.times.value"}},{"id":"drawer-4.shape","op":"extrude@1","args":["drawer-4.start.value","drawer-4.dimension.y.value","drawer-4.dimension.x.value","drawer-4.dimension.depth"],"outputs":{"shape":"drawer-4.shapeValue"},"params":{"frame":"drawer-4.local","axis":"y","section":"rectangle"}},{"id":"drawer-4.pose","op":"rigid@1","args":["d.mm.0","d.mm.0","drawer-4.on.host.along.z.1.sum.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"drawer-4.poseValue"},"params":{"from":"drawer-4.local","to":"drawer-4.seat"}},{"id":"drawer-4","op":"place@1","args":["drawer-4.shapeValue","drawer-4.world.value"],"outputs":{"placed":"drawer-4.placed"}},{"id":"drawer-4.start","op":"mul@1","args":["drawer-4.dimension.y.value","drawer-4.k.centre"],"outputs":{"value":"drawer-4.start.value"}},{"id":"drawer-4.dimension.x","op":"mul@1","args":["drawer-4.x.follows.times.value","k.ratio.1"],"outputs":{"value":"drawer-4.dimension.x.value"}},{"id":"drawer-4.x.follows.times","op":"mul@1","args":["host.dimension.x.value","k.ratio.0_95"],"outputs":{"value":"drawer-4.x.follows.times.value"}},{"id":"drawer-4.dimension.y","op":"mul@1","args":["drawer-4.y.follows.times.value","k.ratio.1"],"outputs":{"value":"drawer-4.dimension.y.value"}},{"id":"drawer-4.y.follows.times","op":"mul@1","args":["host.dimension.y.value","k.ratio.0_225"],"outputs":{"value":"drawer-4.y.follows.times.value"}},{"id":"host.on.plane.stand.y.0.times","op":"mul@1","args":["host.dimension.y.value","k.ratio.0_5"],"outputs":{"value":"host.on.plane.stand.y.0.times.value"}},{"id":"host.on.plane.stand.y.1.sum","op":"add@1","args":["host.on.plane.stand.y.0.times.value","d.mm.0"],"outputs":{"value":"host.on.plane.stand.y.1.sum.value"}},{"id":"host.seat.rigid","op":"rigid@1","args":["d.mm.0","d.mm.0","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.seat.value"},"params":{"from":"host.seat","to":"asset"}},{"id":"host.chain","op":"compose@1","args":["host.seat.value","host.poseValue"],"outputs":{"pose":"host.chain.value"}},{"id":"drawer-1.on.host.seat.z.0.times","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"drawer-1.on.host.seat.z.0.times.value"}},{"id":"drawer-1.on.host.along.z.0.times","op":"mul@1","args":["drawer-1.dimension.depth","k.ratio.0_5"],"outputs":{"value":"drawer-1.on.host.along.z.0.times.value"}},{"id":"drawer-1.on.host.along.z.1.sum","op":"add@1","args":["drawer-1.on.host.along.z.0.times.value","d.mm.0"],"outputs":{"value":"drawer-1.on.host.along.z.1.sum.value"}},{"id":"drawer-1.on.host.align.y.times","op":"mul@1","args":["host.dimension.y.value","k.ratio._0_375"],"outputs":{"value":"drawer-1.on.host.align.y.times.value"}},{"id":"drawer-1.seat.rigid","op":"rigid@1","args":["d.mm.0","drawer-1.on.host.align.y.times.value","drawer-1.on.host.seat.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"drawer-1.seat.value"},"params":{"from":"drawer-1.joint","to":"host.local"}},{"id":"drawer-1.chain","op":"compose@1","args":["drawer-1.seat.value","drawer-1.turned.value"],"outputs":{"pose":"drawer-1.chain.value"}},{"id":"drawer-1.world","op":"compose@1","args":["host.chain.value","drawer-1.chain.value"],"outputs":{"pose":"drawer-1.world.value"}},{"id":"drawer-1.motion","op":"axis-slide@1","args":["axis.ratio.0","axis.ratio.0","k.ratio.1","open-1"],"outputs":{"pose":"drawer-1.motion.value"},"params":{"from":"drawer-1.seat","to":"drawer-1.joint"}},{"id":"drawer-1.turned","op":"compose@1","args":["drawer-1.motion.value","drawer-1.poseValue"],"outputs":{"pose":"drawer-1.turned.value"}},{"id":"drawer-2.on.host.seat.z.0.times","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"drawer-2.on.host.seat.z.0.times.value"}},{"id":"drawer-2.on.host.along.z.0.times","op":"mul@1","args":["drawer-2.dimension.depth","k.ratio.0_5"],"outputs":{"value":"drawer-2.on.host.along.z.0.times.value"}},{"id":"drawer-2.on.host.along.z.1.sum","op":"add@1","args":["drawer-2.on.host.along.z.0.times.value","d.mm.0"],"outputs":{"value":"drawer-2.on.host.along.z.1.sum.value"}},{"id":"drawer-2.on.host.align.y.times","op":"mul@1","args":["host.dimension.y.value","k.ratio._0_125"],"outputs":{"value":"drawer-2.on.host.align.y.times.value"}},{"id":"drawer-2.seat.rigid","op":"rigid@1","args":["d.mm.0","drawer-2.on.host.align.y.times.value","drawer-2.on.host.seat.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"drawer-2.seat.value"},"params":{"from":"drawer-2.joint","to":"host.local"}},{"id":"drawer-2.chain","op":"compose@1","args":["drawer-2.seat.value","drawer-2.turned.value"],"outputs":{"pose":"drawer-2.chain.value"}},{"id":"drawer-2.world","op":"compose@1","args":["host.chain.value","drawer-2.chain.value"],"outputs":{"pose":"drawer-2.world.value"}},{"id":"drawer-2.motion","op":"axis-slide@1","args":["axis.ratio.0","axis.ratio.0","k.ratio.1","open-2"],"outputs":{"pose":"drawer-2.motion.value"},"params":{"from":"drawer-2.seat","to":"drawer-2.joint"}},{"id":"drawer-2.turned","op":"compose@1","args":["drawer-2.motion.value","drawer-2.poseValue"],"outputs":{"pose":"drawer-2.turned.value"}},{"id":"drawer-3.on.host.seat.z.0.times","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"drawer-3.on.host.seat.z.0.times.value"}},{"id":"drawer-3.on.host.along.z.0.times","op":"mul@1","args":["drawer-3.dimension.depth","k.ratio.0_5"],"outputs":{"value":"drawer-3.on.host.along.z.0.times.value"}},{"id":"drawer-3.on.host.along.z.1.sum","op":"add@1","args":["drawer-3.on.host.along.z.0.times.value","d.mm.0"],"outputs":{"value":"drawer-3.on.host.along.z.1.sum.value"}},{"id":"drawer-3.on.host.align.y.times","op":"mul@1","args":["host.dimension.y.value","k.ratio.0_125"],"outputs":{"value":"drawer-3.on.host.align.y.times.value"}},{"id":"drawer-3.seat.rigid","op":"rigid@1","args":["d.mm.0","drawer-3.on.host.align.y.times.value","drawer-3.on.host.seat.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"drawer-3.seat.value"},"params":{"from":"drawer-3.joint","to":"host.local"}},{"id":"drawer-3.chain","op":"compose@1","args":["drawer-3.seat.value","drawer-3.turned.value"],"outputs":{"pose":"drawer-3.chain.value"}},{"id":"drawer-3.world","op":"compose@1","args":["host.chain.value","drawer-3.chain.value"],"outputs":{"pose":"drawer-3.world.value"}},{"id":"drawer-3.motion","op":"axis-slide@1","args":["axis.ratio.0","axis.ratio.0","k.ratio.1","open-3"],"outputs":{"pose":"drawer-3.motion.value"},"params":{"from":"drawer-3.seat","to":"drawer-3.joint"}},{"id":"drawer-3.turned","op":"compose@1","args":["drawer-3.motion.value","drawer-3.poseValue"],"outputs":{"pose":"drawer-3.turned.value"}},{"id":"drawer-4.on.host.seat.z.0.times","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"drawer-4.on.host.seat.z.0.times.value"}},{"id":"drawer-4.on.host.along.z.0.times","op":"mul@1","args":["drawer-4.dimension.depth","k.ratio.0_5"],"outputs":{"value":"drawer-4.on.host.along.z.0.times.value"}},{"id":"drawer-4.on.host.along.z.1.sum","op":"add@1","args":["drawer-4.on.host.along.z.0.times.value","d.mm.0"],"outputs":{"value":"drawer-4.on.host.along.z.1.sum.value"}},{"id":"drawer-4.on.host.align.y.times","op":"mul@1","args":["host.dimension.y.value","k.ratio.0_375"],"outputs":{"value":"drawer-4.on.host.align.y.times.value"}},{"id":"drawer-4.seat.rigid","op":"rigid@1","args":["d.mm.0","drawer-4.on.host.align.y.times.value","drawer-4.on.host.seat.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"drawer-4.seat.value"},"params":{"from":"drawer-4.joint","to":"host.local"}},{"id":"drawer-4.chain","op":"compose@1","args":["drawer-4.seat.value","drawer-4.turned.value"],"outputs":{"pose":"drawer-4.chain.value"}},{"id":"drawer-4.world","op":"compose@1","args":["host.chain.value","drawer-4.chain.value"],"outputs":{"pose":"drawer-4.world.value"}},{"id":"drawer-4.motion","op":"axis-slide@1","args":["axis.ratio.0","axis.ratio.0","k.ratio.1","open-4"],"outputs":{"pose":"drawer-4.motion.value"},"params":{"from":"drawer-4.seat","to":"drawer-4.joint"}},{"id":"drawer-4.turned","op":"compose@1","args":["drawer-4.motion.value","drawer-4.poseValue"],"outputs":{"pose":"drawer-4.turned.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":800,"host.size.y":1000,"host.size.z":600,"drawer-1.dimension.depth":30,"drawer-2.dimension.depth":30,"drawer-3.dimension.depth":30,"drawer-4.dimension.depth":30},"stateDefaults":{"open-1":0,"open-2":0,"open-3":0,"open-4":0},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-5c7c96":"#5c7c96"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"drawer-1","material":{"token":"palette.tpl-5c7c96"}},{"target":"drawer-2","material":{"token":"palette.tpl-5c7c96"}},{"target":"drawer-3","material":{"token":"palette.tpl-5c7c96"}},{"target":"drawer-4","material":{"token":"palette.tpl-5c7c96"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host","face":"bottom"},"origin":{}},{"id":"drawer-1","type":"prismatic","body0":{"part":"host","face":"front"},"body1":{"part":"drawer-1","face":"back"},"origin":{"align":{"y":{"mm":{"from":{"of":"part","part":"host","axis":"y"},"times":-0.375}}}},"axis":"Z","lowerLimit":0,"upperLimit":400,"state":{"id":"open-1"}},{"id":"drawer-2","type":"prismatic","body0":{"part":"host","face":"front"},"body1":{"part":"drawer-2","face":"back"},"origin":{"align":{"y":{"mm":{"from":{"of":"part","part":"host","axis":"y"},"times":-0.125}}}},"axis":"Z","lowerLimit":0,"upperLimit":400,"state":{"id":"open-2"}},{"id":"drawer-3","type":"prismatic","body0":{"part":"host","face":"front"},"body1":{"part":"drawer-3","face":"back"},"origin":{"align":{"y":{"mm":{"from":{"of":"part","part":"host","axis":"y"},"times":0.125}}}},"axis":"Z","lowerLimit":0,"upperLimit":400,"state":{"id":"open-3"}},{"id":"drawer-4","type":"prismatic","body0":{"part":"host","face":"front"},"body1":{"part":"drawer-4","face":"back"},"origin":{"align":{"y":{"mm":{"from":{"of":"part","part":"host","axis":"y"},"times":0.375}}}},"axis":"Z","lowerLimit":0,"upperLimit":400,"state":{"id":"open-4"}}]}
1
+ {"version":"figure-asset-1","name":"TPL_DRAWER_STACK","document":{"version":"figure-prototype-1","model":{"version":"r3-spatial-1","inputs":[{"id":"host.size.x","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"host.size.y","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"host.size.z","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"drawer-1.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"drawer-2.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"drawer-3.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"drawer-4.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"open-1","unit":"mm","min":0,"max":400,"role":"state"},{"id":"open-2","unit":"mm","min":0,"max":400,"role":"state"},{"id":"open-3","unit":"mm","min":0,"max":400,"role":"state"},{"id":"open-4","unit":"mm","min":0,"max":400,"role":"state"}],"constants":[{"id":"host.k.centre","unit":"ratio","value":-0.5},{"id":"d.mm.0","unit":"mm","value":0},{"id":"k.ratio.0_5","unit":"ratio","value":0.5},{"id":"a.deg.0","unit":"deg","value":0},{"id":"drawer-1.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio.1","unit":"ratio","value":1},{"id":"k.ratio.0_95","unit":"ratio","value":0.95},{"id":"k.ratio.0_225","unit":"ratio","value":0.225},{"id":"k.ratio._0_375","unit":"ratio","value":-0.375},{"id":"axis.ratio.0","unit":"ratio","value":0},{"id":"drawer-2.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio._0_125","unit":"ratio","value":-0.125},{"id":"drawer-3.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio.0_125","unit":"ratio","value":0.125},{"id":"drawer-4.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio.0_375","unit":"ratio","value":0.375}],"nodes":[{"id":"host.start","op":"mul@1","args":["host.dimension.y.value","host.k.centre"],"outputs":{"value":"host.start.value"}},{"id":"host.shape","op":"extrude@1","args":["host.start.value","host.dimension.y.value","host.dimension.x.value","host.size.z"],"outputs":{"shape":"host.shapeValue"},"params":{"frame":"host.local","axis":"y","section":"rectangle"}},{"id":"host.pose","op":"rigid@1","args":["d.mm.0","host.on.plane.pose.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.poseValue"},"params":{"from":"host.local","to":"host.seat"}},{"id":"host","op":"place@1","args":["host.shapeValue","host.chain.value"],"outputs":{"placed":"host.placed"}},{"id":"drawer-1.shape","op":"extrude@1","args":["drawer-1.start.value","drawer-1.dimension.y.value","drawer-1.dimension.x.value","drawer-1.dimension.depth"],"outputs":{"shape":"drawer-1.shapeValue"},"params":{"frame":"drawer-1.local","axis":"y","section":"rectangle"}},{"id":"drawer-1.pose","op":"rigid@1","args":["d.mm.0","d.mm.0","drawer-1.on.host.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"drawer-1.poseValue"},"params":{"from":"drawer-1.local","to":"drawer-1.seat"}},{"id":"drawer-1","op":"place@1","args":["drawer-1.shapeValue","drawer-1.world.value"],"outputs":{"placed":"drawer-1.placed"}},{"id":"drawer-1.start","op":"mul@1","args":["drawer-1.dimension.y.value","drawer-1.k.centre"],"outputs":{"value":"drawer-1.start.value"}},{"id":"drawer-1.dimension.x","op":"mul@1","args":["drawer-1.x.follows.times.value","k.ratio.1"],"outputs":{"value":"drawer-1.dimension.x.value"}},{"id":"host.dimension.x","op":"mul@1","args":["host.size.x","k.ratio.1"],"outputs":{"value":"host.dimension.x.value"}},{"id":"drawer-1.x.follows.times","op":"mul@1","args":["host.dimension.x.value","k.ratio.0_95"],"outputs":{"value":"drawer-1.x.follows.times.value"}},{"id":"drawer-1.dimension.y","op":"mul@1","args":["drawer-1.y.follows.times.value","k.ratio.1"],"outputs":{"value":"drawer-1.dimension.y.value"}},{"id":"host.dimension.y","op":"mul@1","args":["host.size.y","k.ratio.1"],"outputs":{"value":"host.dimension.y.value"}},{"id":"drawer-1.y.follows.times","op":"mul@1","args":["host.dimension.y.value","k.ratio.0_225"],"outputs":{"value":"drawer-1.y.follows.times.value"}},{"id":"drawer-2.shape","op":"extrude@1","args":["drawer-2.start.value","drawer-2.dimension.y.value","drawer-2.dimension.x.value","drawer-2.dimension.depth"],"outputs":{"shape":"drawer-2.shapeValue"},"params":{"frame":"drawer-2.local","axis":"y","section":"rectangle"}},{"id":"drawer-2.pose","op":"rigid@1","args":["d.mm.0","d.mm.0","drawer-2.on.host.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"drawer-2.poseValue"},"params":{"from":"drawer-2.local","to":"drawer-2.seat"}},{"id":"drawer-2","op":"place@1","args":["drawer-2.shapeValue","drawer-2.world.value"],"outputs":{"placed":"drawer-2.placed"}},{"id":"drawer-2.start","op":"mul@1","args":["drawer-2.dimension.y.value","drawer-2.k.centre"],"outputs":{"value":"drawer-2.start.value"}},{"id":"drawer-2.dimension.x","op":"mul@1","args":["drawer-2.x.follows.times.value","k.ratio.1"],"outputs":{"value":"drawer-2.dimension.x.value"}},{"id":"drawer-2.x.follows.times","op":"mul@1","args":["host.dimension.x.value","k.ratio.0_95"],"outputs":{"value":"drawer-2.x.follows.times.value"}},{"id":"drawer-2.dimension.y","op":"mul@1","args":["drawer-2.y.follows.times.value","k.ratio.1"],"outputs":{"value":"drawer-2.dimension.y.value"}},{"id":"drawer-2.y.follows.times","op":"mul@1","args":["host.dimension.y.value","k.ratio.0_225"],"outputs":{"value":"drawer-2.y.follows.times.value"}},{"id":"drawer-3.shape","op":"extrude@1","args":["drawer-3.start.value","drawer-3.dimension.y.value","drawer-3.dimension.x.value","drawer-3.dimension.depth"],"outputs":{"shape":"drawer-3.shapeValue"},"params":{"frame":"drawer-3.local","axis":"y","section":"rectangle"}},{"id":"drawer-3.pose","op":"rigid@1","args":["d.mm.0","d.mm.0","drawer-3.on.host.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"drawer-3.poseValue"},"params":{"from":"drawer-3.local","to":"drawer-3.seat"}},{"id":"drawer-3","op":"place@1","args":["drawer-3.shapeValue","drawer-3.world.value"],"outputs":{"placed":"drawer-3.placed"}},{"id":"drawer-3.start","op":"mul@1","args":["drawer-3.dimension.y.value","drawer-3.k.centre"],"outputs":{"value":"drawer-3.start.value"}},{"id":"drawer-3.dimension.x","op":"mul@1","args":["drawer-3.x.follows.times.value","k.ratio.1"],"outputs":{"value":"drawer-3.dimension.x.value"}},{"id":"drawer-3.x.follows.times","op":"mul@1","args":["host.dimension.x.value","k.ratio.0_95"],"outputs":{"value":"drawer-3.x.follows.times.value"}},{"id":"drawer-3.dimension.y","op":"mul@1","args":["drawer-3.y.follows.times.value","k.ratio.1"],"outputs":{"value":"drawer-3.dimension.y.value"}},{"id":"drawer-3.y.follows.times","op":"mul@1","args":["host.dimension.y.value","k.ratio.0_225"],"outputs":{"value":"drawer-3.y.follows.times.value"}},{"id":"drawer-4.shape","op":"extrude@1","args":["drawer-4.start.value","drawer-4.dimension.y.value","drawer-4.dimension.x.value","drawer-4.dimension.depth"],"outputs":{"shape":"drawer-4.shapeValue"},"params":{"frame":"drawer-4.local","axis":"y","section":"rectangle"}},{"id":"drawer-4.pose","op":"rigid@1","args":["d.mm.0","d.mm.0","drawer-4.on.host.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"drawer-4.poseValue"},"params":{"from":"drawer-4.local","to":"drawer-4.seat"}},{"id":"drawer-4","op":"place@1","args":["drawer-4.shapeValue","drawer-4.world.value"],"outputs":{"placed":"drawer-4.placed"}},{"id":"drawer-4.start","op":"mul@1","args":["drawer-4.dimension.y.value","drawer-4.k.centre"],"outputs":{"value":"drawer-4.start.value"}},{"id":"drawer-4.dimension.x","op":"mul@1","args":["drawer-4.x.follows.times.value","k.ratio.1"],"outputs":{"value":"drawer-4.dimension.x.value"}},{"id":"drawer-4.x.follows.times","op":"mul@1","args":["host.dimension.x.value","k.ratio.0_95"],"outputs":{"value":"drawer-4.x.follows.times.value"}},{"id":"drawer-4.dimension.y","op":"mul@1","args":["drawer-4.y.follows.times.value","k.ratio.1"],"outputs":{"value":"drawer-4.dimension.y.value"}},{"id":"drawer-4.y.follows.times","op":"mul@1","args":["host.dimension.y.value","k.ratio.0_225"],"outputs":{"value":"drawer-4.y.follows.times.value"}},{"id":"host.on.plane.pose.y.t0","op":"mul@1","args":["host.dimension.y.value","k.ratio.0_5"],"outputs":{"value":"host.on.plane.pose.y.t0.value"}},{"id":"host.seat.rigid","op":"rigid@1","args":["d.mm.0","d.mm.0","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.seat.value"},"params":{"from":"host.seat","to":"asset"}},{"id":"host.chain","op":"compose@1","args":["host.seat.value","host.poseValue"],"outputs":{"pose":"host.chain.value"}},{"id":"drawer-1.on.host.align.y.times","op":"mul@1","args":["host.dimension.y.value","k.ratio._0_375"],"outputs":{"value":"drawer-1.on.host.align.y.times.value"}},{"id":"drawer-1.on.host.seat.z.t0","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"drawer-1.on.host.seat.z.t0.value"}},{"id":"drawer-1.on.host.pose.z.t0","op":"mul@1","args":["drawer-1.dimension.depth","k.ratio.0_5"],"outputs":{"value":"drawer-1.on.host.pose.z.t0.value"}},{"id":"drawer-1.seat.rigid","op":"rigid@1","args":["d.mm.0","drawer-1.on.host.align.y.times.value","drawer-1.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"drawer-1.seat.value"},"params":{"from":"drawer-1.joint","to":"host.local"}},{"id":"drawer-1.chain","op":"compose@1","args":["drawer-1.seat.value","drawer-1.turned.value"],"outputs":{"pose":"drawer-1.chain.value"}},{"id":"drawer-1.world","op":"compose@1","args":["host.chain.value","drawer-1.chain.value"],"outputs":{"pose":"drawer-1.world.value"}},{"id":"drawer-1.motion","op":"axis-slide@1","args":["axis.ratio.0","axis.ratio.0","k.ratio.1","open-1"],"outputs":{"pose":"drawer-1.motion.value"},"params":{"from":"drawer-1.seat","to":"drawer-1.joint"}},{"id":"drawer-1.turned","op":"compose@1","args":["drawer-1.motion.value","drawer-1.poseValue"],"outputs":{"pose":"drawer-1.turned.value"}},{"id":"drawer-2.on.host.align.y.times","op":"mul@1","args":["host.dimension.y.value","k.ratio._0_125"],"outputs":{"value":"drawer-2.on.host.align.y.times.value"}},{"id":"drawer-2.on.host.seat.z.t0","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"drawer-2.on.host.seat.z.t0.value"}},{"id":"drawer-2.on.host.pose.z.t0","op":"mul@1","args":["drawer-2.dimension.depth","k.ratio.0_5"],"outputs":{"value":"drawer-2.on.host.pose.z.t0.value"}},{"id":"drawer-2.seat.rigid","op":"rigid@1","args":["d.mm.0","drawer-2.on.host.align.y.times.value","drawer-2.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"drawer-2.seat.value"},"params":{"from":"drawer-2.joint","to":"host.local"}},{"id":"drawer-2.chain","op":"compose@1","args":["drawer-2.seat.value","drawer-2.turned.value"],"outputs":{"pose":"drawer-2.chain.value"}},{"id":"drawer-2.world","op":"compose@1","args":["host.chain.value","drawer-2.chain.value"],"outputs":{"pose":"drawer-2.world.value"}},{"id":"drawer-2.motion","op":"axis-slide@1","args":["axis.ratio.0","axis.ratio.0","k.ratio.1","open-2"],"outputs":{"pose":"drawer-2.motion.value"},"params":{"from":"drawer-2.seat","to":"drawer-2.joint"}},{"id":"drawer-2.turned","op":"compose@1","args":["drawer-2.motion.value","drawer-2.poseValue"],"outputs":{"pose":"drawer-2.turned.value"}},{"id":"drawer-3.on.host.align.y.times","op":"mul@1","args":["host.dimension.y.value","k.ratio.0_125"],"outputs":{"value":"drawer-3.on.host.align.y.times.value"}},{"id":"drawer-3.on.host.seat.z.t0","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"drawer-3.on.host.seat.z.t0.value"}},{"id":"drawer-3.on.host.pose.z.t0","op":"mul@1","args":["drawer-3.dimension.depth","k.ratio.0_5"],"outputs":{"value":"drawer-3.on.host.pose.z.t0.value"}},{"id":"drawer-3.seat.rigid","op":"rigid@1","args":["d.mm.0","drawer-3.on.host.align.y.times.value","drawer-3.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"drawer-3.seat.value"},"params":{"from":"drawer-3.joint","to":"host.local"}},{"id":"drawer-3.chain","op":"compose@1","args":["drawer-3.seat.value","drawer-3.turned.value"],"outputs":{"pose":"drawer-3.chain.value"}},{"id":"drawer-3.world","op":"compose@1","args":["host.chain.value","drawer-3.chain.value"],"outputs":{"pose":"drawer-3.world.value"}},{"id":"drawer-3.motion","op":"axis-slide@1","args":["axis.ratio.0","axis.ratio.0","k.ratio.1","open-3"],"outputs":{"pose":"drawer-3.motion.value"},"params":{"from":"drawer-3.seat","to":"drawer-3.joint"}},{"id":"drawer-3.turned","op":"compose@1","args":["drawer-3.motion.value","drawer-3.poseValue"],"outputs":{"pose":"drawer-3.turned.value"}},{"id":"drawer-4.on.host.align.y.times","op":"mul@1","args":["host.dimension.y.value","k.ratio.0_375"],"outputs":{"value":"drawer-4.on.host.align.y.times.value"}},{"id":"drawer-4.on.host.seat.z.t0","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"drawer-4.on.host.seat.z.t0.value"}},{"id":"drawer-4.on.host.pose.z.t0","op":"mul@1","args":["drawer-4.dimension.depth","k.ratio.0_5"],"outputs":{"value":"drawer-4.on.host.pose.z.t0.value"}},{"id":"drawer-4.seat.rigid","op":"rigid@1","args":["d.mm.0","drawer-4.on.host.align.y.times.value","drawer-4.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"drawer-4.seat.value"},"params":{"from":"drawer-4.joint","to":"host.local"}},{"id":"drawer-4.chain","op":"compose@1","args":["drawer-4.seat.value","drawer-4.turned.value"],"outputs":{"pose":"drawer-4.chain.value"}},{"id":"drawer-4.world","op":"compose@1","args":["host.chain.value","drawer-4.chain.value"],"outputs":{"pose":"drawer-4.world.value"}},{"id":"drawer-4.motion","op":"axis-slide@1","args":["axis.ratio.0","axis.ratio.0","k.ratio.1","open-4"],"outputs":{"pose":"drawer-4.motion.value"},"params":{"from":"drawer-4.seat","to":"drawer-4.joint"}},{"id":"drawer-4.turned","op":"compose@1","args":["drawer-4.motion.value","drawer-4.poseValue"],"outputs":{"pose":"drawer-4.turned.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":800,"host.size.y":1000,"host.size.z":600,"drawer-1.dimension.depth":30,"drawer-2.dimension.depth":30,"drawer-3.dimension.depth":30,"drawer-4.dimension.depth":30},"stateDefaults":{"open-1":0,"open-2":0,"open-3":0,"open-4":0},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-5c7c96":"#5c7c96"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"drawer-1","material":{"token":"palette.tpl-5c7c96"}},{"target":"drawer-2","material":{"token":"palette.tpl-5c7c96"}},{"target":"drawer-3","material":{"token":"palette.tpl-5c7c96"}},{"target":"drawer-4","material":{"token":"palette.tpl-5c7c96"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host"},"origin":{}},{"id":"drawer-1","type":"prismatic","body0":{"part":"host","face":"front"},"body1":{"part":"drawer-1"},"origin":{"align":{"y":{"mm":{"from":{"of":"part","part":"host","axis":"y"},"times":-0.375}}}},"axis":"Z","lowerLimit":0,"upperLimit":400,"state":{"id":"open-1"}},{"id":"drawer-2","type":"prismatic","body0":{"part":"host","face":"front"},"body1":{"part":"drawer-2"},"origin":{"align":{"y":{"mm":{"from":{"of":"part","part":"host","axis":"y"},"times":-0.125}}}},"axis":"Z","lowerLimit":0,"upperLimit":400,"state":{"id":"open-2"}},{"id":"drawer-3","type":"prismatic","body0":{"part":"host","face":"front"},"body1":{"part":"drawer-3"},"origin":{"align":{"y":{"mm":{"from":{"of":"part","part":"host","axis":"y"},"times":0.125}}}},"axis":"Z","lowerLimit":0,"upperLimit":400,"state":{"id":"open-3"}},{"id":"drawer-4","type":"prismatic","body0":{"part":"host","face":"front"},"body1":{"part":"drawer-4"},"origin":{"align":{"y":{"mm":{"from":{"of":"part","part":"host","axis":"y"},"times":0.375}}}},"axis":"Z","lowerLimit":0,"upperLimit":400,"state":{"id":"open-4"}}]}
@@ -282,8 +282,7 @@
282
282
  "face": "front"
283
283
  },
284
284
  "body1": {
285
- "part": "{id}-drawer-1",
286
- "face": "back"
285
+ "part": "{id}-drawer-1"
287
286
  },
288
287
  "origin": {
289
288
  "align": {
@@ -321,8 +320,7 @@
321
320
  "face": "front"
322
321
  },
323
322
  "body1": {
324
- "part": "{id}-drawer-2",
325
- "face": "back"
323
+ "part": "{id}-drawer-2"
326
324
  },
327
325
  "origin": {
328
326
  "align": {
@@ -427,8 +425,7 @@
427
425
  "face": "front"
428
426
  },
429
427
  "body1": {
430
- "part": "{id}-drawer-1",
431
- "face": "back"
428
+ "part": "{id}-drawer-1"
432
429
  },
433
430
  "origin": {
434
431
  "align": {
@@ -466,8 +463,7 @@
466
463
  "face": "front"
467
464
  },
468
465
  "body1": {
469
- "part": "{id}-drawer-2",
470
- "face": "back"
466
+ "part": "{id}-drawer-2"
471
467
  },
472
468
  "origin": {
473
469
  "align": {
@@ -505,8 +501,7 @@
505
501
  "face": "front"
506
502
  },
507
503
  "body1": {
508
- "part": "{id}-drawer-3",
509
- "face": "back"
504
+ "part": "{id}-drawer-3"
510
505
  },
511
506
  "origin": {
512
507
  "align": {
@@ -592,8 +587,7 @@
592
587
  "face": "front"
593
588
  },
594
589
  "body1": {
595
- "part": "{id}-drawer-1",
596
- "face": "back"
590
+ "part": "{id}-drawer-1"
597
591
  },
598
592
  "origin": {
599
593
  "align": {
@@ -631,8 +625,7 @@
631
625
  "face": "front"
632
626
  },
633
627
  "body1": {
634
- "part": "{id}-drawer-2",
635
- "face": "back"
628
+ "part": "{id}-drawer-2"
636
629
  },
637
630
  "origin": {
638
631
  "align": {
@@ -670,8 +663,7 @@
670
663
  "face": "front"
671
664
  },
672
665
  "body1": {
673
- "part": "{id}-drawer-3",
674
- "face": "back"
666
+ "part": "{id}-drawer-3"
675
667
  },
676
668
  "origin": {
677
669
  "align": {
@@ -709,8 +701,7 @@
709
701
  "face": "front"
710
702
  },
711
703
  "body1": {
712
- "part": "{id}-drawer-4",
713
- "face": "back"
704
+ "part": "{id}-drawer-4"
714
705
  },
715
706
  "origin": {
716
707
  "align": {
@@ -6,7 +6,7 @@ export default function build() {
6
6
  m.add({ id: 'tray', kind: 'hollow-box', dimensions: { width: 1600, height: 60, depth: 1000, roundX: 0, roundZ: 0, wallX: 5, wallZ: 5, floor: 5 } } as never)
7
7
  .follow('tray', 'x', 'host', 'x')
8
8
  .follow('tray', 'z', 'host', 'z')
9
- .on('tray', 'bottom', 'host', 'top')
9
+ .on('tray', 'host', 'top')
10
10
  .colour('tray', 'tray-dark', '#6f7f8e')
11
11
  return m.asset
12
12
  }
@@ -1 +1 @@
1
- {"version":"figure-asset-1","name":"TPL_DRIP_TRAY","document":{"version":"figure-prototype-1","model":{"version":"r3-spatial-1","inputs":[{"id":"host.size.x","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"host.size.y","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"host.size.z","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"tray.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"tray.dimension.roundX","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"tray.dimension.roundZ","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"tray.dimension.wallX","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"tray.dimension.wallZ","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"tray.dimension.floor","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"}],"constants":[{"id":"host.k.centre","unit":"ratio","value":-0.5},{"id":"d.mm.0","unit":"mm","value":0},{"id":"a.deg.0","unit":"deg","value":0},{"id":"k.ratio.0_5","unit":"ratio","value":0.5},{"id":"tray.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio.1","unit":"ratio","value":1}],"nodes":[{"id":"host.start","op":"mul@1","args":["host.size.y","host.k.centre"],"outputs":{"value":"host.start.value"}},{"id":"host.shape","op":"extrude@1","args":["host.start.value","host.size.y","host.dimension.x.value","host.dimension.z.value"],"outputs":{"shape":"host.shapeValue"},"params":{"frame":"host.local","axis":"y","section":"rectangle"}},{"id":"host.pose","op":"rigid@1","args":["d.mm.0","host.on.plane.stand.y.1.sum.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.poseValue"},"params":{"from":"host.local","to":"host.seat"}},{"id":"host","op":"place@1","args":["host.shapeValue","host.chain.value"],"outputs":{"placed":"host.placed"}},{"id":"tray.shape","op":"extrude@1","args":["tray.start.value","tray.dimension.height","tray.dimension.x.value","tray.dimension.z.value","tray.dimension.roundX","tray.dimension.roundZ","tray.dimension.wallX","tray.dimension.wallX","tray.dimension.wallZ","tray.dimension.wallZ","tray.dimension.floor"],"outputs":{"shape":"tray.shapeValue"},"params":{"frame":"tray.local","axis":"y","section":"rectangle","corner":"round","cavity":"inside","cavity-end":"open","cavity-start":"closed"}},{"id":"tray.pose","op":"rigid@1","args":["d.mm.0","tray.on.host.along.y.1.sum.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"tray.poseValue"},"params":{"from":"tray.local","to":"tray.seat"}},{"id":"tray","op":"place@1","args":["tray.shapeValue","tray.world.value"],"outputs":{"placed":"tray.placed"}},{"id":"tray.start","op":"mul@1","args":["tray.dimension.height","tray.k.centre"],"outputs":{"value":"tray.start.value"}},{"id":"tray.dimension.x","op":"mul@1","args":["host.dimension.x.value","k.ratio.1"],"outputs":{"value":"tray.dimension.x.value"}},{"id":"host.dimension.x","op":"mul@1","args":["host.size.x","k.ratio.1"],"outputs":{"value":"host.dimension.x.value"}},{"id":"tray.dimension.z","op":"mul@1","args":["host.dimension.z.value","k.ratio.1"],"outputs":{"value":"tray.dimension.z.value"}},{"id":"host.dimension.z","op":"mul@1","args":["host.size.z","k.ratio.1"],"outputs":{"value":"host.dimension.z.value"}},{"id":"host.on.plane.stand.y.0.times","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"host.on.plane.stand.y.0.times.value"}},{"id":"host.on.plane.stand.y.1.sum","op":"add@1","args":["host.on.plane.stand.y.0.times.value","d.mm.0"],"outputs":{"value":"host.on.plane.stand.y.1.sum.value"}},{"id":"host.seat.rigid","op":"rigid@1","args":["d.mm.0","d.mm.0","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.seat.value"},"params":{"from":"host.seat","to":"asset"}},{"id":"host.chain","op":"compose@1","args":["host.seat.value","host.poseValue"],"outputs":{"pose":"host.chain.value"}},{"id":"tray.on.host.seat.y.0.times","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"tray.on.host.seat.y.0.times.value"}},{"id":"tray.on.host.along.y.0.times","op":"mul@1","args":["tray.dimension.height","k.ratio.0_5"],"outputs":{"value":"tray.on.host.along.y.0.times.value"}},{"id":"tray.on.host.along.y.1.sum","op":"add@1","args":["tray.on.host.along.y.0.times.value","d.mm.0"],"outputs":{"value":"tray.on.host.along.y.1.sum.value"}},{"id":"tray.seat.rigid","op":"rigid@1","args":["d.mm.0","tray.on.host.seat.y.0.times.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"tray.seat.value"},"params":{"from":"tray.seat","to":"host.local"}},{"id":"tray.chain","op":"compose@1","args":["tray.seat.value","tray.poseValue"],"outputs":{"pose":"tray.chain.value"}},{"id":"tray.world","op":"compose@1","args":["host.chain.value","tray.chain.value"],"outputs":{"pose":"tray.world.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":1600,"host.size.y":1400,"host.size.z":1000,"tray.dimension.height":60,"tray.dimension.roundX":0,"tray.dimension.roundZ":0,"tray.dimension.wallX":5,"tray.dimension.wallZ":5,"tray.dimension.floor":5},"stateDefaults":{},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-6f7f8e":"#6f7f8e"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"tray","material":{"token":"palette.tpl-6f7f8e"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host","face":"bottom"},"origin":{}},{"id":"tray","type":"fixed","body0":{"part":"host","face":"top"},"body1":{"part":"tray","face":"bottom"},"origin":{}}]}
1
+ {"version":"figure-asset-1","name":"TPL_DRIP_TRAY","document":{"version":"figure-prototype-1","model":{"version":"r3-spatial-1","inputs":[{"id":"host.size.x","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"host.size.y","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"host.size.z","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"tray.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"tray.dimension.roundX","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"tray.dimension.roundZ","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"tray.dimension.wallX","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"tray.dimension.wallZ","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"tray.dimension.floor","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"}],"constants":[{"id":"host.k.centre","unit":"ratio","value":-0.5},{"id":"d.mm.0","unit":"mm","value":0},{"id":"k.ratio.0_5","unit":"ratio","value":0.5},{"id":"a.deg.0","unit":"deg","value":0},{"id":"tray.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio.1","unit":"ratio","value":1}],"nodes":[{"id":"host.start","op":"mul@1","args":["host.size.y","host.k.centre"],"outputs":{"value":"host.start.value"}},{"id":"host.shape","op":"extrude@1","args":["host.start.value","host.size.y","host.dimension.x.value","host.dimension.z.value"],"outputs":{"shape":"host.shapeValue"},"params":{"frame":"host.local","axis":"y","section":"rectangle"}},{"id":"host.pose","op":"rigid@1","args":["d.mm.0","host.on.plane.pose.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.poseValue"},"params":{"from":"host.local","to":"host.seat"}},{"id":"host","op":"place@1","args":["host.shapeValue","host.chain.value"],"outputs":{"placed":"host.placed"}},{"id":"tray.shape","op":"extrude@1","args":["tray.start.value","tray.dimension.height","tray.dimension.x.value","tray.dimension.z.value","tray.dimension.roundX","tray.dimension.roundZ","tray.dimension.wallX","tray.dimension.wallX","tray.dimension.wallZ","tray.dimension.wallZ","tray.dimension.floor"],"outputs":{"shape":"tray.shapeValue"},"params":{"frame":"tray.local","axis":"y","section":"rectangle","corner":"round","cavity":"inside","cavity-end":"open","cavity-start":"closed"}},{"id":"tray.pose","op":"rigid@1","args":["d.mm.0","tray.on.host.pose.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"tray.poseValue"},"params":{"from":"tray.local","to":"tray.seat"}},{"id":"tray","op":"place@1","args":["tray.shapeValue","tray.world.value"],"outputs":{"placed":"tray.placed"}},{"id":"tray.start","op":"mul@1","args":["tray.dimension.height","tray.k.centre"],"outputs":{"value":"tray.start.value"}},{"id":"tray.dimension.x","op":"mul@1","args":["host.dimension.x.value","k.ratio.1"],"outputs":{"value":"tray.dimension.x.value"}},{"id":"host.dimension.x","op":"mul@1","args":["host.size.x","k.ratio.1"],"outputs":{"value":"host.dimension.x.value"}},{"id":"tray.dimension.z","op":"mul@1","args":["host.dimension.z.value","k.ratio.1"],"outputs":{"value":"tray.dimension.z.value"}},{"id":"host.dimension.z","op":"mul@1","args":["host.size.z","k.ratio.1"],"outputs":{"value":"host.dimension.z.value"}},{"id":"host.on.plane.pose.y.t0","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"host.on.plane.pose.y.t0.value"}},{"id":"host.seat.rigid","op":"rigid@1","args":["d.mm.0","d.mm.0","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.seat.value"},"params":{"from":"host.seat","to":"asset"}},{"id":"host.chain","op":"compose@1","args":["host.seat.value","host.poseValue"],"outputs":{"pose":"host.chain.value"}},{"id":"tray.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"tray.on.host.seat.y.t0.value"}},{"id":"tray.on.host.pose.y.t0","op":"mul@1","args":["tray.dimension.height","k.ratio.0_5"],"outputs":{"value":"tray.on.host.pose.y.t0.value"}},{"id":"tray.seat.rigid","op":"rigid@1","args":["d.mm.0","tray.on.host.seat.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"tray.seat.value"},"params":{"from":"tray.seat","to":"host.local"}},{"id":"tray.chain","op":"compose@1","args":["tray.seat.value","tray.poseValue"],"outputs":{"pose":"tray.chain.value"}},{"id":"tray.world","op":"compose@1","args":["host.chain.value","tray.chain.value"],"outputs":{"pose":"tray.world.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":1600,"host.size.y":1400,"host.size.z":1000,"tray.dimension.height":60,"tray.dimension.roundX":0,"tray.dimension.roundZ":0,"tray.dimension.wallX":5,"tray.dimension.wallZ":5,"tray.dimension.floor":5},"stateDefaults":{},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-6f7f8e":"#6f7f8e"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"tray","material":{"token":"palette.tpl-6f7f8e"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host"},"origin":{}},{"id":"tray","type":"fixed","body0":{"part":"host","face":"top"},"body1":{"part":"tray"},"origin":{}}]}
@@ -66,8 +66,7 @@
66
66
  "face": "top"
67
67
  },
68
68
  "body1": {
69
- "part": "{id}-tray",
70
- "face": "bottom"
69
+ "part": "{id}-tray"
71
70
  },
72
71
  "origin": {}
73
72
  }
@@ -4,10 +4,10 @@ import { host, Model } from '../_lib/model.mts'
4
4
  export default function build() {
5
5
  const m = new Model(host({ x: 4000, y: 3000, z: 200 }, 'TPL_DUCT_FAN'))
6
6
  m.box('ring', 800, 800, 40)
7
- .on('ring', 'back', 'host', 'front', { y: 'max' })
7
+ .on('ring', 'host', 'front', { y: 'max' })
8
8
  .colour('ring', 'panel', '#4f5d6b')
9
9
  .box('blades', 680, 120, 20)
10
- .on('blades', 'back', 'host', 'front', { y: { mm: { from: { of: 'part', part: 'host', axis: 'y' }, times: 0.5, plus: -400 } } }, 60)
10
+ .on('blades', 'host', 'front', { y: { mm: { from: { of: 'part', part: 'host', axis: 'y' }, times: 0.5, plus: -400 } } }, 60)
11
11
  .colour('blades', 'blade', '#e8b04a')
12
12
  .moves('blades', { type: 'revolute', axis: 'Z', lower: -180, upper: 180, state: 'spin' })
13
13
  return m.asset
@@ -1 +1 @@
1
- {"version":"figure-asset-1","name":"TPL_DUCT_FAN","document":{"version":"figure-prototype-1","model":{"version":"r3-spatial-1","inputs":[{"id":"host.size.x","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"host.size.y","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"host.size.z","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"ring.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"ring.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"ring.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"blades.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"blades.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"blades.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"spin","unit":"deg","min":-180,"max":180,"role":"state"}],"constants":[{"id":"host.k.centre","unit":"ratio","value":-0.5},{"id":"d.mm.0","unit":"mm","value":0},{"id":"a.deg.0","unit":"deg","value":0},{"id":"k.ratio.0_5","unit":"ratio","value":0.5},{"id":"ring.k.centre","unit":"ratio","value":-0.5},{"id":"blades.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio.1","unit":"ratio","value":1},{"id":"d.mm.60","unit":"mm","value":60},{"id":"d.mm._400","unit":"mm","value":-400},{"id":"axis.ratio.0","unit":"ratio","value":0}],"nodes":[{"id":"host.start","op":"mul@1","args":["host.dimension.y.value","host.k.centre"],"outputs":{"value":"host.start.value"}},{"id":"host.shape","op":"extrude@1","args":["host.start.value","host.dimension.y.value","host.size.x","host.size.z"],"outputs":{"shape":"host.shapeValue"},"params":{"frame":"host.local","axis":"y","section":"rectangle"}},{"id":"host.pose","op":"rigid@1","args":["d.mm.0","host.on.plane.stand.y.1.sum.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.poseValue"},"params":{"from":"host.local","to":"host.seat"}},{"id":"host","op":"place@1","args":["host.shapeValue","host.chain.value"],"outputs":{"placed":"host.placed"}},{"id":"ring.shape","op":"extrude@1","args":["ring.start.value","ring.dimension.height","ring.dimension.width","ring.dimension.depth"],"outputs":{"shape":"ring.shapeValue"},"params":{"frame":"ring.local","axis":"y","section":"rectangle"}},{"id":"ring.pose","op":"rigid@1","args":["d.mm.0","ring.on.host.own-edge.y.0.times.value","ring.on.host.along.z.1.sum.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"ring.poseValue"},"params":{"from":"ring.local","to":"ring.seat"}},{"id":"ring","op":"place@1","args":["ring.shapeValue","ring.world.value"],"outputs":{"placed":"ring.placed"}},{"id":"ring.start","op":"mul@1","args":["ring.dimension.height","ring.k.centre"],"outputs":{"value":"ring.start.value"}},{"id":"blades.shape","op":"extrude@1","args":["blades.start.value","blades.dimension.height","blades.dimension.width","blades.dimension.depth"],"outputs":{"shape":"blades.shapeValue"},"params":{"frame":"blades.local","axis":"y","section":"rectangle"}},{"id":"blades.pose","op":"rigid@1","args":["d.mm.0","d.mm.0","blades.on.host.along.z.1.sum.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"blades.poseValue"},"params":{"from":"blades.local","to":"blades.seat"}},{"id":"blades","op":"place@1","args":["blades.shapeValue","blades.world.value"],"outputs":{"placed":"blades.placed"}},{"id":"blades.start","op":"mul@1","args":["blades.dimension.height","blades.k.centre"],"outputs":{"value":"blades.start.value"}},{"id":"host.dimension.y","op":"mul@1","args":["host.size.y","k.ratio.1"],"outputs":{"value":"host.dimension.y.value"}},{"id":"host.on.plane.stand.y.0.times","op":"mul@1","args":["host.dimension.y.value","k.ratio.0_5"],"outputs":{"value":"host.on.plane.stand.y.0.times.value"}},{"id":"host.on.plane.stand.y.1.sum","op":"add@1","args":["host.on.plane.stand.y.0.times.value","d.mm.0"],"outputs":{"value":"host.on.plane.stand.y.1.sum.value"}},{"id":"host.seat.rigid","op":"rigid@1","args":["d.mm.0","d.mm.0","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.seat.value"},"params":{"from":"host.seat","to":"asset"}},{"id":"host.chain","op":"compose@1","args":["host.seat.value","host.poseValue"],"outputs":{"pose":"host.chain.value"}},{"id":"ring.on.host.seat.z.0.times","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"ring.on.host.seat.z.0.times.value"}},{"id":"ring.on.host.along.z.0.times","op":"mul@1","args":["ring.dimension.depth","k.ratio.0_5"],"outputs":{"value":"ring.on.host.along.z.0.times.value"}},{"id":"ring.on.host.along.z.1.sum","op":"add@1","args":["ring.on.host.along.z.0.times.value","d.mm.0"],"outputs":{"value":"ring.on.host.along.z.1.sum.value"}},{"id":"ring.on.host.edge.y.0.times","op":"mul@1","args":["host.dimension.y.value","k.ratio.0_5"],"outputs":{"value":"ring.on.host.edge.y.0.times.value"}},{"id":"ring.on.host.own-edge.y.0.times","op":"mul@1","args":["ring.dimension.height","host.k.centre"],"outputs":{"value":"ring.on.host.own-edge.y.0.times.value"}},{"id":"ring.seat.rigid","op":"rigid@1","args":["d.mm.0","ring.on.host.edge.y.0.times.value","ring.on.host.seat.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"ring.seat.value"},"params":{"from":"ring.seat","to":"host.local"}},{"id":"ring.chain","op":"compose@1","args":["ring.seat.value","ring.poseValue"],"outputs":{"pose":"ring.chain.value"}},{"id":"ring.world","op":"compose@1","args":["host.chain.value","ring.chain.value"],"outputs":{"pose":"ring.world.value"}},{"id":"blades.on.host.seat.z.0.times","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"blades.on.host.seat.z.0.times.value"}},{"id":"blades.on.host.along.z.0.times","op":"mul@1","args":["blades.dimension.depth","k.ratio.0_5"],"outputs":{"value":"blades.on.host.along.z.0.times.value"}},{"id":"blades.on.host.along.z.1.sum","op":"add@1","args":["blades.on.host.along.z.0.times.value","d.mm.60"],"outputs":{"value":"blades.on.host.along.z.1.sum.value"}},{"id":"blades.on.host.align.y.times","op":"mul@1","args":["host.dimension.y.value","k.ratio.0_5"],"outputs":{"value":"blades.on.host.align.y.times.value"}},{"id":"blades.on.host.align.y.plus","op":"add@1","args":["blades.on.host.align.y.times.value","d.mm._400"],"outputs":{"value":"blades.on.host.align.y.plus.value"}},{"id":"blades.seat.rigid","op":"rigid@1","args":["d.mm.0","blades.on.host.align.y.plus.value","blades.on.host.seat.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"blades.seat.value"},"params":{"from":"blades.joint","to":"host.local"}},{"id":"blades.chain","op":"compose@1","args":["blades.seat.value","blades.turned.value"],"outputs":{"pose":"blades.chain.value"}},{"id":"blades.world","op":"compose@1","args":["host.chain.value","blades.chain.value"],"outputs":{"pose":"blades.world.value"}},{"id":"blades.motion","op":"axis-turn@1","args":["axis.ratio.0","axis.ratio.0","k.ratio.1","spin"],"outputs":{"pose":"blades.motion.value"},"params":{"from":"blades.seat","to":"blades.joint"}},{"id":"blades.turned","op":"compose@1","args":["blades.motion.value","blades.poseValue"],"outputs":{"pose":"blades.turned.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":4000,"host.size.y":3000,"host.size.z":200,"ring.dimension.width":800,"ring.dimension.height":800,"ring.dimension.depth":40,"blades.dimension.width":680,"blades.dimension.height":120,"blades.dimension.depth":20},"stateDefaults":{"spin":0},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-4f5d6b":"#4f5d6b","palette.tpl-e8b04a":"#e8b04a"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"ring","material":{"token":"palette.tpl-4f5d6b"}},{"target":"blades","material":{"token":"palette.tpl-e8b04a"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host","face":"bottom"},"origin":{}},{"id":"ring","type":"fixed","body0":{"part":"host","face":"front"},"body1":{"part":"ring","face":"back"},"origin":{"align":{"y":"max"}}},{"id":"blades","type":"revolute","body0":{"part":"host","face":"front"},"body1":{"part":"blades","face":"back"},"origin":{"gap":60,"align":{"y":{"mm":{"from":{"of":"part","part":"host","axis":"y"},"times":0.5,"plus":-400}}}},"axis":"Z","lowerLimit":-180,"upperLimit":180,"state":{"id":"spin"}}]}
1
+ {"version":"figure-asset-1","name":"TPL_DUCT_FAN","document":{"version":"figure-prototype-1","model":{"version":"r3-spatial-1","inputs":[{"id":"host.size.x","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"host.size.y","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"host.size.z","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"ring.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"ring.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"ring.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"blades.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"blades.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"blades.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"spin","unit":"deg","min":-180,"max":180,"role":"state"}],"constants":[{"id":"host.k.centre","unit":"ratio","value":-0.5},{"id":"d.mm.0","unit":"mm","value":0},{"id":"k.ratio.0_5","unit":"ratio","value":0.5},{"id":"a.deg.0","unit":"deg","value":0},{"id":"ring.k.centre","unit":"ratio","value":-0.5},{"id":"blades.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio.1","unit":"ratio","value":1},{"id":"d.mm.60","unit":"mm","value":60},{"id":"d.mm._400","unit":"mm","value":-400},{"id":"axis.ratio.0","unit":"ratio","value":0}],"nodes":[{"id":"host.start","op":"mul@1","args":["host.dimension.y.value","host.k.centre"],"outputs":{"value":"host.start.value"}},{"id":"host.shape","op":"extrude@1","args":["host.start.value","host.dimension.y.value","host.size.x","host.size.z"],"outputs":{"shape":"host.shapeValue"},"params":{"frame":"host.local","axis":"y","section":"rectangle"}},{"id":"host.pose","op":"rigid@1","args":["d.mm.0","host.on.plane.pose.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.poseValue"},"params":{"from":"host.local","to":"host.seat"}},{"id":"host","op":"place@1","args":["host.shapeValue","host.chain.value"],"outputs":{"placed":"host.placed"}},{"id":"ring.shape","op":"extrude@1","args":["ring.start.value","ring.dimension.height","ring.dimension.width","ring.dimension.depth"],"outputs":{"shape":"ring.shapeValue"},"params":{"frame":"ring.local","axis":"y","section":"rectangle"}},{"id":"ring.pose","op":"rigid@1","args":["d.mm.0","ring.on.host.pose.y.t0.value","ring.on.host.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"ring.poseValue"},"params":{"from":"ring.local","to":"ring.seat"}},{"id":"ring","op":"place@1","args":["ring.shapeValue","ring.world.value"],"outputs":{"placed":"ring.placed"}},{"id":"ring.start","op":"mul@1","args":["ring.dimension.height","ring.k.centre"],"outputs":{"value":"ring.start.value"}},{"id":"blades.shape","op":"extrude@1","args":["blades.start.value","blades.dimension.height","blades.dimension.width","blades.dimension.depth"],"outputs":{"shape":"blades.shapeValue"},"params":{"frame":"blades.local","axis":"y","section":"rectangle"}},{"id":"blades.pose","op":"rigid@1","args":["d.mm.0","d.mm.0","blades.on.host.pose.z.s0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"blades.poseValue"},"params":{"from":"blades.local","to":"blades.seat"}},{"id":"blades","op":"place@1","args":["blades.shapeValue","blades.world.value"],"outputs":{"placed":"blades.placed"}},{"id":"blades.start","op":"mul@1","args":["blades.dimension.height","blades.k.centre"],"outputs":{"value":"blades.start.value"}},{"id":"host.dimension.y","op":"mul@1","args":["host.size.y","k.ratio.1"],"outputs":{"value":"host.dimension.y.value"}},{"id":"host.on.plane.pose.y.t0","op":"mul@1","args":["host.dimension.y.value","k.ratio.0_5"],"outputs":{"value":"host.on.plane.pose.y.t0.value"}},{"id":"host.seat.rigid","op":"rigid@1","args":["d.mm.0","d.mm.0","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.seat.value"},"params":{"from":"host.seat","to":"asset"}},{"id":"host.chain","op":"compose@1","args":["host.seat.value","host.poseValue"],"outputs":{"pose":"host.chain.value"}},{"id":"ring.on.host.seat.y.t0","op":"mul@1","args":["host.dimension.y.value","k.ratio.0_5"],"outputs":{"value":"ring.on.host.seat.y.t0.value"}},{"id":"ring.on.host.seat.z.t0","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"ring.on.host.seat.z.t0.value"}},{"id":"ring.on.host.pose.y.t0","op":"mul@1","args":["ring.dimension.height","host.k.centre"],"outputs":{"value":"ring.on.host.pose.y.t0.value"}},{"id":"ring.on.host.pose.z.t0","op":"mul@1","args":["ring.dimension.depth","k.ratio.0_5"],"outputs":{"value":"ring.on.host.pose.z.t0.value"}},{"id":"ring.seat.rigid","op":"rigid@1","args":["d.mm.0","ring.on.host.seat.y.t0.value","ring.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"ring.seat.value"},"params":{"from":"ring.seat","to":"host.local"}},{"id":"ring.chain","op":"compose@1","args":["ring.seat.value","ring.poseValue"],"outputs":{"pose":"ring.chain.value"}},{"id":"ring.world","op":"compose@1","args":["host.chain.value","ring.chain.value"],"outputs":{"pose":"ring.world.value"}},{"id":"blades.on.host.align.y.times","op":"mul@1","args":["host.dimension.y.value","k.ratio.0_5"],"outputs":{"value":"blades.on.host.align.y.times.value"}},{"id":"blades.on.host.align.y.plus","op":"add@1","args":["blades.on.host.align.y.times.value","d.mm._400"],"outputs":{"value":"blades.on.host.align.y.plus.value"}},{"id":"blades.on.host.seat.z.t0","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"blades.on.host.seat.z.t0.value"}},{"id":"blades.on.host.pose.z.t1","op":"mul@1","args":["blades.dimension.depth","k.ratio.0_5"],"outputs":{"value":"blades.on.host.pose.z.t1.value"}},{"id":"blades.on.host.pose.z.s0","op":"add@1","args":["d.mm.60","blades.on.host.pose.z.t1.value"],"outputs":{"value":"blades.on.host.pose.z.s0.value"}},{"id":"blades.seat.rigid","op":"rigid@1","args":["d.mm.0","blades.on.host.align.y.plus.value","blades.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"blades.seat.value"},"params":{"from":"blades.joint","to":"host.local"}},{"id":"blades.chain","op":"compose@1","args":["blades.seat.value","blades.turned.value"],"outputs":{"pose":"blades.chain.value"}},{"id":"blades.world","op":"compose@1","args":["host.chain.value","blades.chain.value"],"outputs":{"pose":"blades.world.value"}},{"id":"blades.motion","op":"axis-turn@1","args":["axis.ratio.0","axis.ratio.0","k.ratio.1","spin"],"outputs":{"pose":"blades.motion.value"},"params":{"from":"blades.seat","to":"blades.joint"}},{"id":"blades.turned","op":"compose@1","args":["blades.motion.value","blades.poseValue"],"outputs":{"pose":"blades.turned.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":4000,"host.size.y":3000,"host.size.z":200,"ring.dimension.width":800,"ring.dimension.height":800,"ring.dimension.depth":40,"blades.dimension.width":680,"blades.dimension.height":120,"blades.dimension.depth":20},"stateDefaults":{"spin":0},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-4f5d6b":"#4f5d6b","palette.tpl-e8b04a":"#e8b04a"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"ring","material":{"token":"palette.tpl-4f5d6b"}},{"target":"blades","material":{"token":"palette.tpl-e8b04a"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host"},"origin":{}},{"id":"ring","type":"fixed","body0":{"part":"host","face":"front"},"body1":{"part":"ring"},"origin":{"align":{"y":"max"}}},{"id":"blades","type":"revolute","body0":{"part":"host","face":"front"},"body1":{"part":"blades"},"origin":{"gap":60,"align":{"y":{"mm":{"from":{"of":"part","part":"host","axis":"y"},"times":0.5,"plus":-400}}}},"axis":"Z","lowerLimit":-180,"upperLimit":180,"state":{"id":"spin"}}]}
@@ -51,8 +51,7 @@
51
51
  "face": "front"
52
52
  },
53
53
  "body1": {
54
- "part": "{id}-ring",
55
- "face": "back"
54
+ "part": "{id}-ring"
56
55
  },
57
56
  "origin": {
58
57
  "align": {
@@ -71,8 +70,7 @@
71
70
  "face": "front"
72
71
  },
73
72
  "body1": {
74
- "part": "{id}-blades",
75
- "face": "back"
73
+ "part": "{id}-blades"
76
74
  },
77
75
  "origin": {
78
76
  "gap": 60,
@@ -4,10 +4,10 @@ import { host, Model } from '../_lib/model.mts'
4
4
  export default function build() {
5
5
  const m = new Model(host({ x: 1600, y: 1400, z: 1000 }, 'TPL_EMERGENCY_STOP'))
6
6
  m.box('base', 100, 100, 50)
7
- .on('base', 'back', 'host', 'front', { x: 'max', y: 'max' })
7
+ .on('base', 'host', 'front', { x: 'max', y: 'max' })
8
8
  .colour('base', 'palette.estop-base', '#f2c200')
9
9
  .add({ id: 'button', kind: 'rounded-box', dimensions: { width: 70, height: 70, depth: 30, round: 12 } } as never)
10
- .on('button', 'back', 'base', 'front')
10
+ .on('button', 'base', 'front')
11
11
  .colour('button', 'palette.estop', '#d62828')
12
12
  .moves('button', { type: 'prismatic', axis: 'Z', lower: -15, upper: 0, state: 'press' })
13
13
  return m.asset
@@ -1 +1 @@
1
- {"version":"figure-asset-1","name":"TPL_EMERGENCY_STOP","document":{"version":"figure-prototype-1","model":{"version":"r3-spatial-1","inputs":[{"id":"host.size.x","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"host.size.y","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"host.size.z","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"base.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"base.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"base.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"button.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"button.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"button.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"button.dimension.round","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"press","unit":"mm","min":-15,"max":0,"role":"state"}],"constants":[{"id":"host.k.centre","unit":"ratio","value":-0.5},{"id":"d.mm.0","unit":"mm","value":0},{"id":"a.deg.0","unit":"deg","value":0},{"id":"k.ratio.0_5","unit":"ratio","value":0.5},{"id":"base.k.centre","unit":"ratio","value":-0.5},{"id":"button.k.centre","unit":"ratio","value":-0.5},{"id":"axis.ratio.0","unit":"ratio","value":0},{"id":"axis.ratio.1","unit":"ratio","value":1}],"nodes":[{"id":"host.start","op":"mul@1","args":["host.size.y","host.k.centre"],"outputs":{"value":"host.start.value"}},{"id":"host.shape","op":"extrude@1","args":["host.start.value","host.size.y","host.size.x","host.size.z"],"outputs":{"shape":"host.shapeValue"},"params":{"frame":"host.local","axis":"y","section":"rectangle"}},{"id":"host.pose","op":"rigid@1","args":["d.mm.0","host.on.plane.stand.y.1.sum.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.poseValue"},"params":{"from":"host.local","to":"host.seat"}},{"id":"host","op":"place@1","args":["host.shapeValue","host.chain.value"],"outputs":{"placed":"host.placed"}},{"id":"base.shape","op":"extrude@1","args":["base.start.value","base.dimension.height","base.dimension.width","base.dimension.depth"],"outputs":{"shape":"base.shapeValue"},"params":{"frame":"base.local","axis":"y","section":"rectangle"}},{"id":"base.pose","op":"rigid@1","args":["base.on.host.own-edge.x.0.times.value","base.on.host.own-edge.y.0.times.value","base.on.host.along.z.1.sum.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"base.poseValue"},"params":{"from":"base.local","to":"base.seat"}},{"id":"base","op":"place@1","args":["base.shapeValue","base.world.value"],"outputs":{"placed":"base.placed"}},{"id":"base.start","op":"mul@1","args":["base.dimension.height","base.k.centre"],"outputs":{"value":"base.start.value"}},{"id":"button.shape","op":"extrude@1","args":["button.start.value","button.dimension.height","button.dimension.width","button.dimension.depth","button.dimension.round","button.dimension.round"],"outputs":{"shape":"button.shapeValue"},"params":{"frame":"button.local","axis":"y","section":"rectangle","corner":"round"}},{"id":"button.pose","op":"rigid@1","args":["d.mm.0","d.mm.0","button.on.base.along.z.1.sum.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"button.poseValue"},"params":{"from":"button.local","to":"button.seat"}},{"id":"button","op":"place@1","args":["button.shapeValue","button.world.value"],"outputs":{"placed":"button.placed"}},{"id":"button.start","op":"mul@1","args":["button.dimension.height","button.k.centre"],"outputs":{"value":"button.start.value"}},{"id":"host.on.plane.stand.y.0.times","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"host.on.plane.stand.y.0.times.value"}},{"id":"host.on.plane.stand.y.1.sum","op":"add@1","args":["host.on.plane.stand.y.0.times.value","d.mm.0"],"outputs":{"value":"host.on.plane.stand.y.1.sum.value"}},{"id":"host.seat.rigid","op":"rigid@1","args":["d.mm.0","d.mm.0","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.seat.value"},"params":{"from":"host.seat","to":"asset"}},{"id":"host.chain","op":"compose@1","args":["host.seat.value","host.poseValue"],"outputs":{"pose":"host.chain.value"}},{"id":"base.on.host.seat.z.0.times","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"base.on.host.seat.z.0.times.value"}},{"id":"base.on.host.along.z.0.times","op":"mul@1","args":["base.dimension.depth","k.ratio.0_5"],"outputs":{"value":"base.on.host.along.z.0.times.value"}},{"id":"base.on.host.along.z.1.sum","op":"add@1","args":["base.on.host.along.z.0.times.value","d.mm.0"],"outputs":{"value":"base.on.host.along.z.1.sum.value"}},{"id":"base.on.host.edge.x.0.times","op":"mul@1","args":["host.size.x","k.ratio.0_5"],"outputs":{"value":"base.on.host.edge.x.0.times.value"}},{"id":"base.on.host.own-edge.x.0.times","op":"mul@1","args":["base.dimension.width","host.k.centre"],"outputs":{"value":"base.on.host.own-edge.x.0.times.value"}},{"id":"base.on.host.edge.y.0.times","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"base.on.host.edge.y.0.times.value"}},{"id":"base.on.host.own-edge.y.0.times","op":"mul@1","args":["base.dimension.height","host.k.centre"],"outputs":{"value":"base.on.host.own-edge.y.0.times.value"}},{"id":"base.seat.rigid","op":"rigid@1","args":["base.on.host.edge.x.0.times.value","base.on.host.edge.y.0.times.value","base.on.host.seat.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"base.seat.value"},"params":{"from":"base.seat","to":"host.local"}},{"id":"base.chain","op":"compose@1","args":["base.seat.value","base.poseValue"],"outputs":{"pose":"base.chain.value"}},{"id":"base.world","op":"compose@1","args":["host.chain.value","base.chain.value"],"outputs":{"pose":"base.world.value"}},{"id":"button.on.base.seat.z.0.times","op":"mul@1","args":["base.dimension.depth","k.ratio.0_5"],"outputs":{"value":"button.on.base.seat.z.0.times.value"}},{"id":"button.on.base.along.z.0.times","op":"mul@1","args":["button.dimension.depth","k.ratio.0_5"],"outputs":{"value":"button.on.base.along.z.0.times.value"}},{"id":"button.on.base.along.z.1.sum","op":"add@1","args":["button.on.base.along.z.0.times.value","d.mm.0"],"outputs":{"value":"button.on.base.along.z.1.sum.value"}},{"id":"button.seat.rigid","op":"rigid@1","args":["d.mm.0","d.mm.0","button.on.base.seat.z.0.times.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"button.seat.value"},"params":{"from":"button.joint","to":"base.local"}},{"id":"button.chain","op":"compose@1","args":["button.seat.value","button.turned.value"],"outputs":{"pose":"button.chain.value"}},{"id":"button.world","op":"compose@1","args":["base.world.value","button.chain.value"],"outputs":{"pose":"button.world.value"}},{"id":"button.motion","op":"axis-slide@1","args":["axis.ratio.0","axis.ratio.0","axis.ratio.1","press"],"outputs":{"pose":"button.motion.value"},"params":{"from":"button.seat","to":"button.joint"}},{"id":"button.turned","op":"compose@1","args":["button.motion.value","button.poseValue"],"outputs":{"pose":"button.turned.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":1600,"host.size.y":1400,"host.size.z":1000,"base.dimension.width":100,"base.dimension.height":100,"base.dimension.depth":50,"button.dimension.width":70,"button.dimension.height":70,"button.dimension.depth":30,"button.dimension.round":12},"stateDefaults":{"press":0},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-f2c200":"#f2c200","palette.tpl-d62828":"#d62828"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"base","material":{"token":"palette.tpl-f2c200"}},{"target":"button","material":{"token":"palette.tpl-d62828"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host","face":"bottom"},"origin":{}},{"id":"base","type":"fixed","body0":{"part":"host","face":"front"},"body1":{"part":"base","face":"back"},"origin":{"align":{"x":"max","y":"max"}}},{"id":"button","type":"prismatic","body0":{"part":"base","face":"front"},"body1":{"part":"button","face":"back"},"origin":{},"axis":"Z","lowerLimit":-15,"upperLimit":0,"state":{"id":"press"}}]}
1
+ {"version":"figure-asset-1","name":"TPL_EMERGENCY_STOP","document":{"version":"figure-prototype-1","model":{"version":"r3-spatial-1","inputs":[{"id":"host.size.x","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"host.size.y","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"host.size.z","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"base.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"base.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"base.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"button.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"button.dimension.height","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"button.dimension.depth","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"button.dimension.round","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"press","unit":"mm","min":-15,"max":0,"role":"state"}],"constants":[{"id":"host.k.centre","unit":"ratio","value":-0.5},{"id":"d.mm.0","unit":"mm","value":0},{"id":"k.ratio.0_5","unit":"ratio","value":0.5},{"id":"a.deg.0","unit":"deg","value":0},{"id":"base.k.centre","unit":"ratio","value":-0.5},{"id":"button.k.centre","unit":"ratio","value":-0.5},{"id":"axis.ratio.0","unit":"ratio","value":0},{"id":"axis.ratio.1","unit":"ratio","value":1}],"nodes":[{"id":"host.start","op":"mul@1","args":["host.size.y","host.k.centre"],"outputs":{"value":"host.start.value"}},{"id":"host.shape","op":"extrude@1","args":["host.start.value","host.size.y","host.size.x","host.size.z"],"outputs":{"shape":"host.shapeValue"},"params":{"frame":"host.local","axis":"y","section":"rectangle"}},{"id":"host.pose","op":"rigid@1","args":["d.mm.0","host.on.plane.pose.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.poseValue"},"params":{"from":"host.local","to":"host.seat"}},{"id":"host","op":"place@1","args":["host.shapeValue","host.chain.value"],"outputs":{"placed":"host.placed"}},{"id":"base.shape","op":"extrude@1","args":["base.start.value","base.dimension.height","base.dimension.width","base.dimension.depth"],"outputs":{"shape":"base.shapeValue"},"params":{"frame":"base.local","axis":"y","section":"rectangle"}},{"id":"base.pose","op":"rigid@1","args":["base.on.host.pose.x.t0.value","base.on.host.pose.y.t0.value","base.on.host.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"base.poseValue"},"params":{"from":"base.local","to":"base.seat"}},{"id":"base","op":"place@1","args":["base.shapeValue","base.world.value"],"outputs":{"placed":"base.placed"}},{"id":"base.start","op":"mul@1","args":["base.dimension.height","base.k.centre"],"outputs":{"value":"base.start.value"}},{"id":"button.shape","op":"extrude@1","args":["button.start.value","button.dimension.height","button.dimension.width","button.dimension.depth","button.dimension.round","button.dimension.round"],"outputs":{"shape":"button.shapeValue"},"params":{"frame":"button.local","axis":"y","section":"rectangle","corner":"round"}},{"id":"button.pose","op":"rigid@1","args":["d.mm.0","d.mm.0","button.on.base.pose.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"button.poseValue"},"params":{"from":"button.local","to":"button.seat"}},{"id":"button","op":"place@1","args":["button.shapeValue","button.world.value"],"outputs":{"placed":"button.placed"}},{"id":"button.start","op":"mul@1","args":["button.dimension.height","button.k.centre"],"outputs":{"value":"button.start.value"}},{"id":"host.on.plane.pose.y.t0","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"host.on.plane.pose.y.t0.value"}},{"id":"host.seat.rigid","op":"rigid@1","args":["d.mm.0","d.mm.0","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.seat.value"},"params":{"from":"host.seat","to":"asset"}},{"id":"host.chain","op":"compose@1","args":["host.seat.value","host.poseValue"],"outputs":{"pose":"host.chain.value"}},{"id":"base.on.host.seat.x.t0","op":"mul@1","args":["host.size.x","k.ratio.0_5"],"outputs":{"value":"base.on.host.seat.x.t0.value"}},{"id":"base.on.host.seat.y.t0","op":"mul@1","args":["host.size.y","k.ratio.0_5"],"outputs":{"value":"base.on.host.seat.y.t0.value"}},{"id":"base.on.host.seat.z.t0","op":"mul@1","args":["host.size.z","k.ratio.0_5"],"outputs":{"value":"base.on.host.seat.z.t0.value"}},{"id":"base.on.host.pose.x.t0","op":"mul@1","args":["base.dimension.width","host.k.centre"],"outputs":{"value":"base.on.host.pose.x.t0.value"}},{"id":"base.on.host.pose.y.t0","op":"mul@1","args":["base.dimension.height","host.k.centre"],"outputs":{"value":"base.on.host.pose.y.t0.value"}},{"id":"base.on.host.pose.z.t0","op":"mul@1","args":["base.dimension.depth","k.ratio.0_5"],"outputs":{"value":"base.on.host.pose.z.t0.value"}},{"id":"base.seat.rigid","op":"rigid@1","args":["base.on.host.seat.x.t0.value","base.on.host.seat.y.t0.value","base.on.host.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"base.seat.value"},"params":{"from":"base.seat","to":"host.local"}},{"id":"base.chain","op":"compose@1","args":["base.seat.value","base.poseValue"],"outputs":{"pose":"base.chain.value"}},{"id":"base.world","op":"compose@1","args":["host.chain.value","base.chain.value"],"outputs":{"pose":"base.world.value"}},{"id":"button.on.base.seat.z.t0","op":"mul@1","args":["base.dimension.depth","k.ratio.0_5"],"outputs":{"value":"button.on.base.seat.z.t0.value"}},{"id":"button.on.base.pose.z.t0","op":"mul@1","args":["button.dimension.depth","k.ratio.0_5"],"outputs":{"value":"button.on.base.pose.z.t0.value"}},{"id":"button.seat.rigid","op":"rigid@1","args":["d.mm.0","d.mm.0","button.on.base.seat.z.t0.value","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"button.seat.value"},"params":{"from":"button.joint","to":"base.local"}},{"id":"button.chain","op":"compose@1","args":["button.seat.value","button.turned.value"],"outputs":{"pose":"button.chain.value"}},{"id":"button.world","op":"compose@1","args":["base.world.value","button.chain.value"],"outputs":{"pose":"button.world.value"}},{"id":"button.motion","op":"axis-slide@1","args":["axis.ratio.0","axis.ratio.0","axis.ratio.1","press"],"outputs":{"pose":"button.motion.value"},"params":{"from":"button.seat","to":"button.joint"}},{"id":"button.turned","op":"compose@1","args":["button.motion.value","button.poseValue"],"outputs":{"pose":"button.turned.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":1600,"host.size.y":1400,"host.size.z":1000,"base.dimension.width":100,"base.dimension.height":100,"base.dimension.depth":50,"button.dimension.width":70,"button.dimension.height":70,"button.dimension.depth":30,"button.dimension.round":12},"stateDefaults":{"press":0},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-f2c200":"#f2c200","palette.tpl-d62828":"#d62828"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"base","material":{"token":"palette.tpl-f2c200"}},{"target":"button","material":{"token":"palette.tpl-d62828"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host"},"origin":{}},{"id":"base","type":"fixed","body0":{"part":"host","face":"front"},"body1":{"part":"base"},"origin":{"align":{"x":"max","y":"max"}}},{"id":"button","type":"prismatic","body0":{"part":"base","face":"front"},"body1":{"part":"button"},"origin":{},"axis":"Z","lowerLimit":-15,"upperLimit":0,"state":{"id":"press"}}]}
@@ -52,8 +52,7 @@
52
52
  "face": "front"
53
53
  },
54
54
  "body1": {
55
- "part": "{id}-base",
56
- "face": "back"
55
+ "part": "{id}-base"
57
56
  },
58
57
  "origin": {
59
58
  "align": {
@@ -73,8 +72,7 @@
73
72
  "face": "front"
74
73
  },
75
74
  "body1": {
76
- "part": "{id}-button",
77
- "face": "back"
75
+ "part": "{id}-button"
78
76
  },
79
77
  "origin": {},
80
78
  "axis": "Z",
@@ -3,11 +3,11 @@ import { host, Model } from '../_lib/model.mts'
3
3
 
4
4
  export default function build() {
5
5
  const m = new Model(host({ x: 3000, y: 700, z: 800 }, 'TPL_END_COVERS'))
6
- for (const [c, face, onto] of [['left-cover', 'right', 'left'], ['right-cover', 'left', 'right']] as const)
6
+ for (const [c, onto] of [['left-cover', 'left'], ['right-cover', 'right']] as const)
7
7
  m.box(c, 10, 700, 800)
8
8
  .follow(c, 'y', 'host', 'y')
9
9
  .follow(c, 'z', 'host', 'z')
10
- .on(c, face, 'host', onto)
10
+ .on(c, 'host', onto)
11
11
  .colour(c, 'palette.rail', '#9aa3ab')
12
12
  return m.asset
13
13
  }
@@ -1 +1 @@
1
- {"version":"figure-asset-1","name":"TPL_END_COVERS","document":{"version":"figure-prototype-1","model":{"version":"r3-spatial-1","inputs":[{"id":"host.size.x","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"host.size.y","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"host.size.z","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"left-cover.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"right-cover.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"}],"constants":[{"id":"host.k.centre","unit":"ratio","value":-0.5},{"id":"d.mm.0","unit":"mm","value":0},{"id":"a.deg.0","unit":"deg","value":0},{"id":"k.ratio.0_5","unit":"ratio","value":0.5},{"id":"left-cover.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio.1","unit":"ratio","value":1},{"id":"k.ratio._1","unit":"ratio","value":-1},{"id":"right-cover.k.centre","unit":"ratio","value":-0.5}],"nodes":[{"id":"host.start","op":"mul@1","args":["host.dimension.y.value","host.k.centre"],"outputs":{"value":"host.start.value"}},{"id":"host.shape","op":"extrude@1","args":["host.start.value","host.dimension.y.value","host.size.x","host.dimension.z.value"],"outputs":{"shape":"host.shapeValue"},"params":{"frame":"host.local","axis":"y","section":"rectangle"}},{"id":"host.pose","op":"rigid@1","args":["d.mm.0","host.on.plane.stand.y.1.sum.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.poseValue"},"params":{"from":"host.local","to":"host.seat"}},{"id":"host","op":"place@1","args":["host.shapeValue","host.chain.value"],"outputs":{"placed":"host.placed"}},{"id":"left-cover.shape","op":"extrude@1","args":["left-cover.start.value","left-cover.dimension.y.value","left-cover.dimension.width","left-cover.dimension.z.value"],"outputs":{"shape":"left-cover.shapeValue"},"params":{"frame":"left-cover.local","axis":"y","section":"rectangle"}},{"id":"left-cover.pose","op":"rigid@1","args":["left-cover.on.host.along.x.1.sum.value","d.mm.0","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"left-cover.poseValue"},"params":{"from":"left-cover.local","to":"left-cover.seat"}},{"id":"left-cover","op":"place@1","args":["left-cover.shapeValue","left-cover.world.value"],"outputs":{"placed":"left-cover.placed"}},{"id":"left-cover.start","op":"mul@1","args":["left-cover.dimension.y.value","left-cover.k.centre"],"outputs":{"value":"left-cover.start.value"}},{"id":"left-cover.dimension.y","op":"mul@1","args":["host.dimension.y.value","k.ratio.1"],"outputs":{"value":"left-cover.dimension.y.value"}},{"id":"host.dimension.y","op":"mul@1","args":["host.size.y","k.ratio.1"],"outputs":{"value":"host.dimension.y.value"}},{"id":"left-cover.dimension.z","op":"mul@1","args":["host.dimension.z.value","k.ratio.1"],"outputs":{"value":"left-cover.dimension.z.value"}},{"id":"host.dimension.z","op":"mul@1","args":["host.size.z","k.ratio.1"],"outputs":{"value":"host.dimension.z.value"}},{"id":"right-cover.shape","op":"extrude@1","args":["right-cover.start.value","right-cover.dimension.y.value","right-cover.dimension.width","right-cover.dimension.z.value"],"outputs":{"shape":"right-cover.shapeValue"},"params":{"frame":"right-cover.local","axis":"y","section":"rectangle"}},{"id":"right-cover.pose","op":"rigid@1","args":["right-cover.on.host.along.x.1.sum.value","d.mm.0","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"right-cover.poseValue"},"params":{"from":"right-cover.local","to":"right-cover.seat"}},{"id":"right-cover","op":"place@1","args":["right-cover.shapeValue","right-cover.world.value"],"outputs":{"placed":"right-cover.placed"}},{"id":"right-cover.start","op":"mul@1","args":["right-cover.dimension.y.value","right-cover.k.centre"],"outputs":{"value":"right-cover.start.value"}},{"id":"right-cover.dimension.y","op":"mul@1","args":["host.dimension.y.value","k.ratio.1"],"outputs":{"value":"right-cover.dimension.y.value"}},{"id":"right-cover.dimension.z","op":"mul@1","args":["host.dimension.z.value","k.ratio.1"],"outputs":{"value":"right-cover.dimension.z.value"}},{"id":"host.on.plane.stand.y.0.times","op":"mul@1","args":["host.dimension.y.value","k.ratio.0_5"],"outputs":{"value":"host.on.plane.stand.y.0.times.value"}},{"id":"host.on.plane.stand.y.1.sum","op":"add@1","args":["host.on.plane.stand.y.0.times.value","d.mm.0"],"outputs":{"value":"host.on.plane.stand.y.1.sum.value"}},{"id":"host.seat.rigid","op":"rigid@1","args":["d.mm.0","d.mm.0","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.seat.value"},"params":{"from":"host.seat","to":"asset"}},{"id":"host.chain","op":"compose@1","args":["host.seat.value","host.poseValue"],"outputs":{"pose":"host.chain.value"}},{"id":"left-cover.on.host.seat.x.0.times","op":"mul@1","args":["host.size.x","host.k.centre"],"outputs":{"value":"left-cover.on.host.seat.x.0.times.value"}},{"id":"left-cover.on.host.along.x.0.times","op":"mul@1","args":["left-cover.dimension.width","host.k.centre"],"outputs":{"value":"left-cover.on.host.along.x.0.times.value"}},{"id":"left-cover.on.host.along.x.1.times","op":"mul@1","args":["d.mm.0","k.ratio._1"],"outputs":{"value":"left-cover.on.host.along.x.1.times.value"}},{"id":"left-cover.on.host.along.x.1.sum","op":"add@1","args":["left-cover.on.host.along.x.0.times.value","left-cover.on.host.along.x.1.times.value"],"outputs":{"value":"left-cover.on.host.along.x.1.sum.value"}},{"id":"left-cover.seat.rigid","op":"rigid@1","args":["left-cover.on.host.seat.x.0.times.value","d.mm.0","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"left-cover.seat.value"},"params":{"from":"left-cover.seat","to":"host.local"}},{"id":"left-cover.chain","op":"compose@1","args":["left-cover.seat.value","left-cover.poseValue"],"outputs":{"pose":"left-cover.chain.value"}},{"id":"left-cover.world","op":"compose@1","args":["host.chain.value","left-cover.chain.value"],"outputs":{"pose":"left-cover.world.value"}},{"id":"right-cover.on.host.seat.x.0.times","op":"mul@1","args":["host.size.x","k.ratio.0_5"],"outputs":{"value":"right-cover.on.host.seat.x.0.times.value"}},{"id":"right-cover.on.host.along.x.0.times","op":"mul@1","args":["right-cover.dimension.width","k.ratio.0_5"],"outputs":{"value":"right-cover.on.host.along.x.0.times.value"}},{"id":"right-cover.on.host.along.x.1.sum","op":"add@1","args":["right-cover.on.host.along.x.0.times.value","d.mm.0"],"outputs":{"value":"right-cover.on.host.along.x.1.sum.value"}},{"id":"right-cover.seat.rigid","op":"rigid@1","args":["right-cover.on.host.seat.x.0.times.value","d.mm.0","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"right-cover.seat.value"},"params":{"from":"right-cover.seat","to":"host.local"}},{"id":"right-cover.chain","op":"compose@1","args":["right-cover.seat.value","right-cover.poseValue"],"outputs":{"pose":"right-cover.chain.value"}},{"id":"right-cover.world","op":"compose@1","args":["host.chain.value","right-cover.chain.value"],"outputs":{"pose":"right-cover.world.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":3000,"host.size.y":700,"host.size.z":800,"left-cover.dimension.width":10,"right-cover.dimension.width":10},"stateDefaults":{},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-9aa3ab":"#9aa3ab"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"left-cover","material":{"token":"palette.tpl-9aa3ab"}},{"target":"right-cover","material":{"token":"palette.tpl-9aa3ab"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host","face":"bottom"},"origin":{}},{"id":"left-cover","type":"fixed","body0":{"part":"host","face":"left"},"body1":{"part":"left-cover","face":"right"},"origin":{}},{"id":"right-cover","type":"fixed","body0":{"part":"host","face":"right"},"body1":{"part":"right-cover","face":"left"},"origin":{}}]}
1
+ {"version":"figure-asset-1","name":"TPL_END_COVERS","document":{"version":"figure-prototype-1","model":{"version":"r3-spatial-1","inputs":[{"id":"host.size.x","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"host.size.y","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"host.size.z","unit":"mm","min":5e-324,"max":1.7976931348623157e+308,"role":"design"},{"id":"left-cover.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"},{"id":"right-cover.dimension.width","unit":"mm","min":0,"max":1.7976931348623157e+308,"role":"design"}],"constants":[{"id":"host.k.centre","unit":"ratio","value":-0.5},{"id":"d.mm.0","unit":"mm","value":0},{"id":"k.ratio.0_5","unit":"ratio","value":0.5},{"id":"a.deg.0","unit":"deg","value":0},{"id":"left-cover.k.centre","unit":"ratio","value":-0.5},{"id":"k.ratio.1","unit":"ratio","value":1},{"id":"right-cover.k.centre","unit":"ratio","value":-0.5}],"nodes":[{"id":"host.start","op":"mul@1","args":["host.dimension.y.value","host.k.centre"],"outputs":{"value":"host.start.value"}},{"id":"host.shape","op":"extrude@1","args":["host.start.value","host.dimension.y.value","host.size.x","host.dimension.z.value"],"outputs":{"shape":"host.shapeValue"},"params":{"frame":"host.local","axis":"y","section":"rectangle"}},{"id":"host.pose","op":"rigid@1","args":["d.mm.0","host.on.plane.pose.y.t0.value","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.poseValue"},"params":{"from":"host.local","to":"host.seat"}},{"id":"host","op":"place@1","args":["host.shapeValue","host.chain.value"],"outputs":{"placed":"host.placed"}},{"id":"left-cover.shape","op":"extrude@1","args":["left-cover.start.value","left-cover.dimension.y.value","left-cover.dimension.width","left-cover.dimension.z.value"],"outputs":{"shape":"left-cover.shapeValue"},"params":{"frame":"left-cover.local","axis":"y","section":"rectangle"}},{"id":"left-cover.pose","op":"rigid@1","args":["left-cover.on.host.pose.x.t0.value","d.mm.0","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"left-cover.poseValue"},"params":{"from":"left-cover.local","to":"left-cover.seat"}},{"id":"left-cover","op":"place@1","args":["left-cover.shapeValue","left-cover.world.value"],"outputs":{"placed":"left-cover.placed"}},{"id":"left-cover.start","op":"mul@1","args":["left-cover.dimension.y.value","left-cover.k.centre"],"outputs":{"value":"left-cover.start.value"}},{"id":"left-cover.dimension.y","op":"mul@1","args":["host.dimension.y.value","k.ratio.1"],"outputs":{"value":"left-cover.dimension.y.value"}},{"id":"host.dimension.y","op":"mul@1","args":["host.size.y","k.ratio.1"],"outputs":{"value":"host.dimension.y.value"}},{"id":"left-cover.dimension.z","op":"mul@1","args":["host.dimension.z.value","k.ratio.1"],"outputs":{"value":"left-cover.dimension.z.value"}},{"id":"host.dimension.z","op":"mul@1","args":["host.size.z","k.ratio.1"],"outputs":{"value":"host.dimension.z.value"}},{"id":"right-cover.shape","op":"extrude@1","args":["right-cover.start.value","right-cover.dimension.y.value","right-cover.dimension.width","right-cover.dimension.z.value"],"outputs":{"shape":"right-cover.shapeValue"},"params":{"frame":"right-cover.local","axis":"y","section":"rectangle"}},{"id":"right-cover.pose","op":"rigid@1","args":["right-cover.on.host.pose.x.t0.value","d.mm.0","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"right-cover.poseValue"},"params":{"from":"right-cover.local","to":"right-cover.seat"}},{"id":"right-cover","op":"place@1","args":["right-cover.shapeValue","right-cover.world.value"],"outputs":{"placed":"right-cover.placed"}},{"id":"right-cover.start","op":"mul@1","args":["right-cover.dimension.y.value","right-cover.k.centre"],"outputs":{"value":"right-cover.start.value"}},{"id":"right-cover.dimension.y","op":"mul@1","args":["host.dimension.y.value","k.ratio.1"],"outputs":{"value":"right-cover.dimension.y.value"}},{"id":"right-cover.dimension.z","op":"mul@1","args":["host.dimension.z.value","k.ratio.1"],"outputs":{"value":"right-cover.dimension.z.value"}},{"id":"host.on.plane.pose.y.t0","op":"mul@1","args":["host.dimension.y.value","k.ratio.0_5"],"outputs":{"value":"host.on.plane.pose.y.t0.value"}},{"id":"host.seat.rigid","op":"rigid@1","args":["d.mm.0","d.mm.0","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"host.seat.value"},"params":{"from":"host.seat","to":"asset"}},{"id":"host.chain","op":"compose@1","args":["host.seat.value","host.poseValue"],"outputs":{"pose":"host.chain.value"}},{"id":"left-cover.on.host.seat.x.t0","op":"mul@1","args":["host.size.x","host.k.centre"],"outputs":{"value":"left-cover.on.host.seat.x.t0.value"}},{"id":"left-cover.on.host.pose.x.t0","op":"mul@1","args":["left-cover.dimension.width","host.k.centre"],"outputs":{"value":"left-cover.on.host.pose.x.t0.value"}},{"id":"left-cover.seat.rigid","op":"rigid@1","args":["left-cover.on.host.seat.x.t0.value","d.mm.0","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"left-cover.seat.value"},"params":{"from":"left-cover.seat","to":"host.local"}},{"id":"left-cover.chain","op":"compose@1","args":["left-cover.seat.value","left-cover.poseValue"],"outputs":{"pose":"left-cover.chain.value"}},{"id":"left-cover.world","op":"compose@1","args":["host.chain.value","left-cover.chain.value"],"outputs":{"pose":"left-cover.world.value"}},{"id":"right-cover.on.host.seat.x.t0","op":"mul@1","args":["host.size.x","k.ratio.0_5"],"outputs":{"value":"right-cover.on.host.seat.x.t0.value"}},{"id":"right-cover.on.host.pose.x.t0","op":"mul@1","args":["right-cover.dimension.width","k.ratio.0_5"],"outputs":{"value":"right-cover.on.host.pose.x.t0.value"}},{"id":"right-cover.seat.rigid","op":"rigid@1","args":["right-cover.on.host.seat.x.t0.value","d.mm.0","d.mm.0","a.deg.0","a.deg.0","a.deg.0"],"outputs":{"pose":"right-cover.seat.value"},"params":{"from":"right-cover.seat","to":"host.local"}},{"id":"right-cover.chain","op":"compose@1","args":["right-cover.seat.value","right-cover.poseValue"],"outputs":{"pose":"right-cover.chain.value"}},{"id":"right-cover.world","op":"compose@1","args":["host.chain.value","right-cover.chain.value"],"outputs":{"pose":"right-cover.world.value"}}]},"capabilities":{"version":"r3-capability-3","assetFrame":"asset","bindings":[]}},"designInputs":{"host.size.x":3000,"host.size.y":700,"host.size.z":800,"left-cover.dimension.width":10,"right-cover.dimension.width":10},"stateDefaults":{},"palette":{"palette.primary":"#477b9e","palette.host":"#d9dde2","palette.tpl-9aa3ab":"#9aa3ab"},"appearance":[{"target":"host","material":{"token":"palette.host"}},{"target":"left-cover","material":{"token":"palette.tpl-9aa3ab"}},{"target":"right-cover","material":{"token":"palette.tpl-9aa3ab"}}],"joints":[{"id":"host","type":"fixed","body0":{"plane":"mounting-plane"},"body1":{"part":"host"},"origin":{}},{"id":"left-cover","type":"fixed","body0":{"part":"host","face":"left"},"body1":{"part":"left-cover"},"origin":{}},{"id":"right-cover","type":"fixed","body0":{"part":"host","face":"right"},"body1":{"part":"right-cover"},"origin":{}}]}