@pinkaphant/kolmo 0.2.3 → 0.4.0

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 (381) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +36 -36
  3. package/bin/kolmo.mjs +12 -6
  4. package/dist/engine/causewayBridge.d.ts +14 -0
  5. package/dist/engine/causewayBridge.js +166 -0
  6. package/dist/engine/causewayBridge.js.map +1 -0
  7. package/dist/engine/index.d.ts +6 -4
  8. package/dist/engine/index.js +19 -12
  9. package/dist/engine/index.js.map +1 -0
  10. package/dist/engine/islandSettlementMesh.d.ts +26 -0
  11. package/dist/engine/islandSettlementMesh.js +166 -0
  12. package/dist/engine/islandSettlementMesh.js.map +1 -0
  13. package/dist/engine/kolmoActions.d.ts +23 -0
  14. package/dist/engine/kolmoActions.js +164 -0
  15. package/dist/engine/kolmoActions.js.map +1 -0
  16. package/dist/engine/kolmoActor.js +242 -165
  17. package/dist/engine/kolmoActor.js.map +1 -0
  18. package/dist/engine/kolmoFloatingOrigin.d.ts +17 -0
  19. package/dist/engine/kolmoFloatingOrigin.js +98 -0
  20. package/dist/engine/kolmoFloatingOrigin.js.map +1 -0
  21. package/dist/engine/kolmoGame.d.ts +27 -0
  22. package/dist/engine/kolmoGame.js +80 -0
  23. package/dist/engine/kolmoGame.js.map +1 -0
  24. package/dist/engine/kolmoHud.d.ts +23 -0
  25. package/dist/engine/kolmoHud.js +195 -0
  26. package/dist/engine/kolmoHud.js.map +1 -0
  27. package/dist/engine/kolmoInput.d.ts +1 -1
  28. package/dist/engine/kolmoInput.js +57 -30
  29. package/dist/engine/kolmoInput.js.map +1 -0
  30. package/dist/engine/kolmoIsland.d.ts +5 -10
  31. package/dist/engine/kolmoIsland.js +182 -250
  32. package/dist/engine/kolmoIsland.js.map +1 -0
  33. package/dist/engine/kolmoLongDrive.d.ts +3 -4
  34. package/dist/engine/kolmoLongDrive.js +140 -205
  35. package/dist/engine/kolmoLongDrive.js.map +1 -0
  36. package/dist/engine/kolmoPilotMesh.d.ts +2 -0
  37. package/dist/engine/kolmoPilotMesh.js +64 -0
  38. package/dist/engine/kolmoPilotMesh.js.map +1 -0
  39. package/dist/engine/kolmoProcedural.d.ts +13 -0
  40. package/dist/engine/kolmoProcedural.js +101 -0
  41. package/dist/engine/kolmoProcedural.js.map +1 -0
  42. package/dist/engine/kolmoRigs.d.ts +1 -1
  43. package/dist/engine/kolmoRigs.js +88 -47
  44. package/dist/engine/kolmoRigs.js.map +1 -0
  45. package/dist/engine/kolmoStore.d.ts +3 -100
  46. package/dist/engine/kolmoSurface.d.ts +2 -2
  47. package/dist/engine/kolmoSurface.js +150 -134
  48. package/dist/engine/kolmoSurface.js.map +1 -0
  49. package/dist/engine/kolmoTraits.d.ts +128 -0
  50. package/dist/engine/kolmoTraits.js +140 -0
  51. package/dist/engine/kolmoTraits.js.map +1 -0
  52. package/dist/engine/kolmoVehicle.d.ts +3 -33
  53. package/dist/engine/kolmoVehicle.js +66 -240
  54. package/dist/engine/kolmoVehicle.js.map +1 -0
  55. package/dist/engine/kolmoVehicleConfig.d.ts +54 -0
  56. package/dist/engine/kolmoVehicleConfig.js +80 -0
  57. package/dist/engine/kolmoVehicleConfig.js.map +1 -0
  58. package/dist/engine/kolmoVehicleDriver.d.ts +4 -1
  59. package/dist/engine/kolmoVehicleDriver.js +116 -22
  60. package/dist/engine/kolmoVehicleDriver.js.map +1 -0
  61. package/dist/engine/kolmoVehicleInner.d.ts +7 -0
  62. package/dist/engine/kolmoVehicleInner.js +261 -0
  63. package/dist/engine/kolmoVehicleInner.js.map +1 -0
  64. package/dist/engine/kolmoWorld.d.ts +6 -4
  65. package/dist/engine/kolmoWorld.js +134 -116
  66. package/dist/engine/kolmoWorld.js.map +1 -0
  67. package/dist/engine/longDriveKit.d.ts +5 -12
  68. package/dist/engine/longDriveKit.js +121 -233
  69. package/dist/engine/longDriveKit.js.map +1 -0
  70. package/dist/engine/longDriveRoadside.d.ts +16 -0
  71. package/dist/engine/longDriveRoadside.js +171 -0
  72. package/dist/engine/longDriveRoadside.js.map +1 -0
  73. package/dist/engine/macroCellBuilder.d.ts +34 -0
  74. package/dist/engine/macroCellBuilder.js +145 -0
  75. package/dist/engine/macroCellBuilder.js.map +1 -0
  76. package/dist/engine/mainlandMacroCell.d.ts +2 -2
  77. package/dist/engine/mainlandMacroCell.js +77 -165
  78. package/dist/engine/mainlandMacroCell.js.map +1 -0
  79. package/dist/engine/shiftedFixedBody.d.ts +1 -1
  80. package/dist/engine/shiftedFixedBody.js +55 -28
  81. package/dist/engine/shiftedFixedBody.js.map +1 -0
  82. package/dist/importer/ChopShopPanel.d.ts +9 -1
  83. package/dist/importer/ChopShopPanel.js +303 -359
  84. package/dist/importer/ChopShopPanel.js.map +1 -0
  85. package/dist/importer/DomainWorkshopPanel.d.ts +2 -1
  86. package/dist/importer/DomainWorkshopPanel.js +172 -242
  87. package/dist/importer/DomainWorkshopPanel.js.map +1 -0
  88. package/dist/importer/GateHudBar.d.ts +8 -0
  89. package/dist/importer/GateHudBar.js +290 -279
  90. package/dist/importer/GateHudBar.js.map +1 -0
  91. package/dist/importer/GlbImportGate.d.ts +2 -1
  92. package/dist/importer/GlbImportGate.js +252 -225
  93. package/dist/importer/GlbImportGate.js.map +1 -0
  94. package/dist/importer/ImperativeVehicleRig.d.ts +2 -2
  95. package/dist/importer/ImperativeVehicleRig.js +223 -284
  96. package/dist/importer/ImperativeVehicleRig.js.map +1 -0
  97. package/dist/importer/LiveDrivePads.d.ts +20 -0
  98. package/dist/importer/LiveDrivePads.js +169 -0
  99. package/dist/importer/LiveDrivePads.js.map +1 -0
  100. package/dist/importer/PaperShellDebrisRig.d.ts +25 -0
  101. package/dist/importer/PaperShellDebrisRig.js +143 -0
  102. package/dist/importer/PaperShellDebrisRig.js.map +1 -0
  103. package/dist/importer/R2VaultDrawer.d.ts +12 -0
  104. package/dist/importer/R2VaultDrawer.js +90 -0
  105. package/dist/importer/R2VaultDrawer.js.map +1 -0
  106. package/dist/importer/Step1CalibrationPlinth.d.ts +23 -5
  107. package/dist/importer/Step1CalibrationPlinth.js +180 -251
  108. package/dist/importer/Step1CalibrationPlinth.js.map +1 -0
  109. package/dist/importer/Step1ExplodedIslands.d.ts +31 -0
  110. package/dist/importer/Step1ExplodedIslands.js +144 -0
  111. package/dist/importer/Step1ExplodedIslands.js.map +1 -0
  112. package/dist/importer/Step2UniversalPad.d.ts +7 -7
  113. package/dist/importer/Step2UniversalPad.js +49 -170
  114. package/dist/importer/Step2UniversalPad.js.map +1 -0
  115. package/dist/importer/VfxEmitterPool.js +59 -86
  116. package/dist/importer/VfxEmitterPool.js.map +1 -0
  117. package/dist/importer/WheelRingHandles3D.d.ts +11 -0
  118. package/dist/importer/WheelRingHandles3D.js +318 -0
  119. package/dist/importer/WheelRingHandles3D.js.map +1 -0
  120. package/dist/importer/archLinerGeom.d.ts +2 -0
  121. package/dist/importer/archLinerGeom.js +51 -0
  122. package/dist/importer/archLinerGeom.js.map +1 -0
  123. package/dist/importer/{vehiclePanelAnim.d.ts → chopHingeHelpers.d.ts} +0 -10
  124. package/dist/importer/chopHingeHelpers.js +193 -0
  125. package/dist/importer/chopHingeHelpers.js.map +1 -0
  126. package/dist/importer/chopShopActions.d.ts +20 -26
  127. package/dist/importer/chopShopActions.js +135 -210
  128. package/dist/importer/chopShopActions.js.map +1 -0
  129. package/dist/importer/chopShopHandlers.d.ts +26 -0
  130. package/dist/importer/chopShopHandlers.js +276 -0
  131. package/dist/importer/chopShopHandlers.js.map +1 -0
  132. package/dist/importer/chopShopIoActions.d.ts +15 -0
  133. package/dist/importer/chopShopIoActions.js +137 -0
  134. package/dist/importer/chopShopIoActions.js.map +1 -0
  135. package/dist/importer/chopShopMcpAction.d.ts +18 -0
  136. package/dist/importer/chopShopMcpAction.js +58 -0
  137. package/dist/importer/chopShopMcpAction.js.map +1 -0
  138. package/dist/importer/cylinderBooleanSlice.d.ts +14 -0
  139. package/dist/importer/cylinderBooleanSlice.js +110 -0
  140. package/dist/importer/cylinderBooleanSlice.js.map +1 -0
  141. package/dist/importer/cylinderSliceMath.d.ts +14 -0
  142. package/dist/importer/cylinderSliceMath.js +251 -0
  143. package/dist/importer/cylinderSliceMath.js.map +1 -0
  144. package/dist/importer/fusedWheelDetect.d.ts +4 -0
  145. package/dist/importer/fusedWheelDetect.js +175 -0
  146. package/dist/importer/fusedWheelDetect.js.map +1 -0
  147. package/dist/importer/fusedWheelFit.d.ts +13 -0
  148. package/dist/importer/fusedWheelFit.js +138 -0
  149. package/dist/importer/fusedWheelFit.js.map +1 -0
  150. package/dist/importer/gateStore.d.ts +1 -1
  151. package/dist/importer/gateStore.js +36 -27
  152. package/dist/importer/gateStore.js.map +1 -0
  153. package/dist/importer/glbNormalizer.js +118 -79
  154. package/dist/importer/glbNormalizer.js.map +1 -0
  155. package/dist/importer/importerWebMcp.d.ts +4 -3
  156. package/dist/importer/importerWebMcp.js +41 -336
  157. package/dist/importer/importerWebMcp.js.map +1 -0
  158. package/dist/importer/importerWebMcpTools.d.ts +2 -0
  159. package/dist/importer/importerWebMcpTools.js +340 -0
  160. package/dist/importer/importerWebMcpTools.js.map +1 -0
  161. package/dist/importer/index.d.ts +4 -0
  162. package/dist/importer/index.js +32 -22
  163. package/dist/importer/index.js.map +1 -0
  164. package/dist/importer/khrCarPlanHelpers.d.ts +28 -0
  165. package/dist/importer/khrCarPlanHelpers.js +221 -0
  166. package/dist/importer/khrCarPlanHelpers.js.map +1 -0
  167. package/dist/importer/khrCarPlanner.d.ts +7 -0
  168. package/dist/importer/khrCarPlanner.js +279 -0
  169. package/dist/importer/khrCarPlanner.js.map +1 -0
  170. package/dist/importer/khrCompiler.d.ts +4 -22
  171. package/dist/importer/khrCompiler.js +56 -424
  172. package/dist/importer/khrCompiler.js.map +1 -0
  173. package/dist/importer/khrCraftPropCompiler.d.ts +40 -0
  174. package/dist/importer/khrCraftPropCompiler.js +250 -0
  175. package/dist/importer/khrCraftPropCompiler.js.map +1 -0
  176. package/dist/importer/launcherBake.js +76 -35
  177. package/dist/importer/launcherBake.js.map +1 -0
  178. package/dist/importer/meshIslands.d.ts +4 -46
  179. package/dist/importer/meshIslands.js +84 -283
  180. package/dist/importer/meshIslands.js.map +1 -0
  181. package/dist/importer/meshSliceBuffers.d.ts +15 -0
  182. package/dist/importer/meshSliceBuffers.js +159 -0
  183. package/dist/importer/meshSliceBuffers.js.map +1 -0
  184. package/dist/importer/polygonEarClipYZ.d.ts +3 -0
  185. package/dist/importer/polygonEarClipYZ.js +67 -0
  186. package/dist/importer/polygonEarClipYZ.js.map +1 -0
  187. package/dist/importer/sceneSiNormalize.d.ts +19 -0
  188. package/dist/importer/sceneSiNormalize.js +138 -0
  189. package/dist/importer/sceneSiNormalize.js.map +1 -0
  190. package/dist/importer/starterScene.d.ts +3 -0
  191. package/dist/importer/starterScene.js +76 -0
  192. package/dist/importer/starterScene.js.map +1 -0
  193. package/dist/importer/surfaceCutter.d.ts +4 -15
  194. package/dist/importer/surfaceCutter.js +69 -240
  195. package/dist/importer/surfaceCutter.js.map +1 -0
  196. package/dist/importer/surfaceGeodesic.d.ts +7 -0
  197. package/dist/importer/surfaceGeodesic.js +130 -0
  198. package/dist/importer/surfaceGeodesic.js.map +1 -0
  199. package/dist/importer/surfaceLoopRefine.d.ts +6 -0
  200. package/dist/importer/surfaceLoopRefine.js +171 -0
  201. package/dist/importer/surfaceLoopRefine.js.map +1 -0
  202. package/dist/importer/surfacePeel.d.ts +11 -0
  203. package/dist/importer/surfacePeel.js +119 -0
  204. package/dist/importer/surfacePeel.js.map +1 -0
  205. package/dist/importer/surfaceTopology.d.ts +2 -6
  206. package/dist/importer/surfaceTopology.js +93 -133
  207. package/dist/importer/surfaceTopology.js.map +1 -0
  208. package/dist/importer/universalGateBake.d.ts +7 -3
  209. package/dist/importer/universalGateBake.js +104 -106
  210. package/dist/importer/universalGateBake.js.map +1 -0
  211. package/dist/importer/usdPhysicsSpecs.d.ts +3 -0
  212. package/dist/importer/usdPhysicsSpecs.js +245 -0
  213. package/dist/importer/usdPhysicsSpecs.js.map +1 -0
  214. package/dist/importer/usdTextParse.d.ts +12 -0
  215. package/dist/importer/usdTextParse.js +118 -0
  216. package/dist/importer/usdTextParse.js.map +1 -0
  217. package/dist/importer/usdToGlb.d.ts +3 -2
  218. package/dist/importer/usdToGlb.js +80 -280
  219. package/dist/importer/usdToGlb.js.map +1 -0
  220. package/dist/importer/useChopShopController.d.ts +50 -47
  221. package/dist/importer/useChopShopController.js +156 -338
  222. package/dist/importer/useChopShopController.js.map +1 -0
  223. package/dist/importer/useChopShopState.d.ts +103 -0
  224. package/dist/importer/useChopShopState.js +319 -0
  225. package/dist/importer/useChopShopState.js.map +1 -0
  226. package/dist/importer/useWasdKeyRef.d.ts +9 -0
  227. package/dist/importer/useWasdKeyRef.js +35 -0
  228. package/dist/importer/useWasdKeyRef.js.map +1 -0
  229. package/dist/importer/vehiclePartSplit.d.ts +33 -0
  230. package/dist/importer/vehiclePartSplit.js +178 -0
  231. package/dist/importer/vehiclePartSplit.js.map +1 -0
  232. package/dist/importer/wheelAxlePairing.js +106 -70
  233. package/dist/importer/wheelAxlePairing.js.map +1 -0
  234. package/dist/importer/wheelCutterHelpers.d.ts +42 -0
  235. package/dist/importer/wheelCutterHelpers.js +178 -0
  236. package/dist/importer/wheelCutterHelpers.js.map +1 -0
  237. package/dist/importer/wheelRingHandleMath.d.ts +20 -0
  238. package/dist/importer/wheelRingHandleMath.js +66 -0
  239. package/dist/importer/wheelRingHandleMath.js.map +1 -0
  240. package/dist/index.d.ts +3 -2
  241. package/dist/index.js +90 -66
  242. package/dist/index.js.map +1 -0
  243. package/dist/junk/DestructibleTarget.d.ts +3 -3
  244. package/dist/junk/DestructibleTarget.js +177 -114
  245. package/dist/junk/DestructibleTarget.js.map +1 -0
  246. package/dist/junk/KolmoJunk.js +55 -44
  247. package/dist/junk/KolmoJunk.js.map +1 -0
  248. package/dist/junk/ShardPieces.d.ts +2 -1
  249. package/dist/junk/ShardPieces.js +80 -61
  250. package/dist/junk/ShardPieces.js.map +1 -0
  251. package/dist/junk/TargetDecals.d.ts +6 -15
  252. package/dist/junk/TargetDecals.js +66 -40
  253. package/dist/junk/TargetDecals.js.map +1 -0
  254. package/dist/junk/bvhShatter.d.ts +2 -6
  255. package/dist/junk/bvhShatter.js +89 -43
  256. package/dist/junk/bvhShatter.js.map +1 -0
  257. package/dist/junk/bvhTriCollector.d.ts +2 -6
  258. package/dist/junk/bvhTriCollector.js +111 -62
  259. package/dist/junk/bvhTriCollector.js.map +1 -0
  260. package/dist/junk/index.d.ts +2 -2
  261. package/dist/junk/index.js +11 -11
  262. package/dist/junk/index.js.map +1 -0
  263. package/dist/junk/junkGeometry.d.ts +5 -26
  264. package/dist/junk/junkGeometry.js +61 -43
  265. package/dist/junk/junkGeometry.js.map +1 -0
  266. package/dist/junk/junkImportSanitize.d.ts +4 -5
  267. package/dist/junk/junkImportSanitize.js +57 -37
  268. package/dist/junk/junkImportSanitize.js.map +1 -0
  269. package/dist/junk/junkImporter.d.ts +2 -13
  270. package/dist/junk/junkImporter.js +105 -76
  271. package/dist/junk/junkImporter.js.map +1 -0
  272. package/dist/junk/junkLabelCanvas.d.ts +1 -6
  273. package/dist/junk/junkLabelCanvas.js +147 -29
  274. package/dist/junk/junkLabelCanvas.js.map +1 -0
  275. package/dist/junk/junkLabels.d.ts +4 -26
  276. package/dist/junk/junkLabels.js +42 -28
  277. package/dist/junk/junkLabels.js.map +1 -0
  278. package/dist/junk/targetHelpers.d.ts +3 -4
  279. package/dist/junk/targetHelpers.js +121 -67
  280. package/dist/junk/targetHelpers.js.map +1 -0
  281. package/dist/junk/targetHitLogic.d.ts +8 -8
  282. package/dist/junk/targetHitLogic.js +131 -95
  283. package/dist/junk/targetHitLogic.js.map +1 -0
  284. package/dist/junk/useTargetAssets.d.ts +9 -14
  285. package/dist/junk/useTargetAssets.js +113 -85
  286. package/dist/junk/useTargetAssets.js.map +1 -0
  287. package/dist/physics/index.d.ts +1 -1
  288. package/dist/physics/index.js +79 -58
  289. package/dist/physics/index.js.map +1 -0
  290. package/dist/schema/kolmoSchema.d.ts +3 -64
  291. package/dist/schema/kolmoSchema.js +75 -149
  292. package/dist/schema/kolmoSchema.js.map +1 -0
  293. package/dist/schema/kolmoStamp.d.ts +6 -0
  294. package/dist/schema/kolmoStamp.js +71 -0
  295. package/dist/schema/kolmoStamp.js.map +1 -0
  296. package/dist/schema/kolmoTypes.d.ts +63 -0
  297. package/dist/schema/kolmoTypes.js +66 -0
  298. package/dist/schema/kolmoTypes.js.map +1 -0
  299. package/dist/shaders/celestialBackdrop.d.ts +2 -10
  300. package/dist/shaders/celestialBackdrop.js +128 -291
  301. package/dist/shaders/celestialBackdrop.js.map +1 -0
  302. package/dist/shaders/emitterShaders.d.ts +9 -0
  303. package/dist/shaders/emitterShaders.js +114 -0
  304. package/dist/shaders/emitterShaders.js.map +1 -0
  305. package/dist/shaders/index.d.ts +1 -1
  306. package/dist/shaders/index.js +12 -9
  307. package/dist/shaders/index.js.map +1 -0
  308. package/dist/shaders/plumeAndSparkle.d.ts +2 -4
  309. package/dist/shaders/plumeAndSparkle.js +152 -191
  310. package/dist/shaders/plumeAndSparkle.js.map +1 -0
  311. package/dist/shaders/ps2GlslShared.js +29 -2
  312. package/dist/shaders/ps2GlslShared.js.map +1 -0
  313. package/dist/shaders/ps2MaterialsTSL.js +132 -51
  314. package/dist/shaders/ps2MaterialsTSL.js.map +1 -0
  315. package/dist/shaders/ps2MaterialsWebGL.js +45 -28
  316. package/dist/shaders/ps2MaterialsWebGL.js.map +1 -0
  317. package/dist/shaders/ps2RoadWebGL.js +69 -32
  318. package/dist/shaders/ps2RoadWebGL.js.map +1 -0
  319. package/dist/shaders/ps2TerrainWebGL.js +107 -30
  320. package/dist/shaders/ps2TerrainWebGL.js.map +1 -0
  321. package/dist/shaders/ps2Textures.d.ts +1 -1
  322. package/dist/shaders/ps2Textures.js +116 -41
  323. package/dist/shaders/ps2Textures.js.map +1 -0
  324. package/dist/shaders/retroPalettes.d.ts +1 -1
  325. package/dist/shaders/retroPalettes.js +90 -57
  326. package/dist/shaders/retroPalettes.js.map +1 -0
  327. package/dist/shaders/retroShader.d.ts +2 -86
  328. package/dist/shaders/retroShader.js +65 -196
  329. package/dist/shaders/retroShader.js.map +1 -0
  330. package/dist/shaders/retroUniforms.d.ts +60 -0
  331. package/dist/shaders/retroUniforms.js +215 -0
  332. package/dist/shaders/retroUniforms.js.map +1 -0
  333. package/dist/shaders/skyboxShaders.d.ts +16 -0
  334. package/dist/shaders/skyboxShaders.js +266 -0
  335. package/dist/shaders/skyboxShaders.js.map +1 -0
  336. package/dist/shaders/tsl.d.ts +1 -1
  337. package/dist/shaders/tsl.js.map +1 -0
  338. package/dist/vite/index.js +39 -23
  339. package/dist/vite/index.js.map +1 -0
  340. package/dist/world/frontage.js +25 -21
  341. package/dist/world/frontage.js.map +1 -0
  342. package/dist/world/index.d.ts +4 -4
  343. package/dist/world/index.js +12 -11
  344. package/dist/world/index.js.map +1 -0
  345. package/dist/world/infiniteWorld2D.d.ts +0 -5
  346. package/dist/world/infiniteWorld2D.js +175 -200
  347. package/dist/world/infiniteWorld2D.js.map +1 -0
  348. package/dist/world/island.js +81 -166
  349. package/dist/world/island.js.map +1 -0
  350. package/dist/world/islandPathing.d.ts +6 -0
  351. package/dist/world/islandPathing.js +166 -0
  352. package/dist/world/islandPathing.js.map +1 -0
  353. package/dist/world/macroCellSchema.js +15 -8
  354. package/dist/world/macroCellSchema.js.map +1 -0
  355. package/dist/world/macroKnightAStar.js +140 -71
  356. package/dist/world/macroKnightAStar.js.map +1 -0
  357. package/dist/world/macroSettlementZones.d.ts +9 -0
  358. package/dist/world/macroSettlementZones.js +108 -0
  359. package/dist/world/macroSettlementZones.js.map +1 -0
  360. package/dist/world/random.js +50 -24
  361. package/dist/world/random.js.map +1 -0
  362. package/dist/world/road.js +152 -90
  363. package/dist/world/road.js.map +1 -0
  364. package/dist/world/roadRibbon.d.ts +4 -19
  365. package/dist/world/roadRibbon.js +129 -124
  366. package/dist/world/roadRibbon.js.map +1 -0
  367. package/dist/world/terrain.d.ts +1 -1
  368. package/dist/world/terrain.js +111 -65
  369. package/dist/world/terrain.js.map +1 -0
  370. package/dist/world/terrainGeometry.d.ts +14 -0
  371. package/dist/world/terrainGeometry.js +76 -0
  372. package/dist/world/terrainGeometry.js.map +1 -0
  373. package/dist/world/worldTypes.d.ts +3 -3
  374. package/dist/world/worldTypes.js +133 -67
  375. package/dist/world/worldTypes.js.map +1 -0
  376. package/docs/api-reference.md +187 -0
  377. package/package.json +58 -32
  378. package/dist/engine/kolmoStore.js +0 -211
  379. package/dist/importer/ImporterPlinthUikitTags.d.ts +0 -19
  380. package/dist/importer/ImporterPlinthUikitTags.js +0 -112
  381. package/dist/importer/vehiclePanelAnim.js +0 -214
@@ -1,387 +1,222 @@
1
- import { CHOP_ROLES as e } from "./surfaceTopology.js";
1
+ import { CHOP_ROLES } from "./surfaceTopology.js";
2
2
  import "react";
3
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
4
  // src/importer/ChopShopPanel.tsx
5
- var r = [
6
- {
7
- mode: "island",
8
- label: "1 · Bucket",
9
- hint: "1-click any separate mesh piece (auto-mirrors X=0)."
10
- },
11
- {
12
- mode: "crease",
13
- label: "2 · Crease Flood",
14
- hint: "Click a fused panel/tire face to flood up to shutlines."
15
- },
16
- {
17
- mode: "loop",
18
- label: "3 · Tape Lasso",
19
- hint: "Click 3+ seam dots around a fused door/hood/wheel, Close Loop, then Peel."
20
- },
21
- {
22
- mode: "triangle",
23
- label: "4 · Brush",
24
- hint: "Click or drag to paint faces. Alt / Right-click erases."
25
- }
26
- ], i = {
5
+ var asideStyle = {
27
6
  position: "absolute",
28
- top: 52,
29
- right: 10,
30
- bottom: 48,
31
- width: 306,
7
+ top: 64,
8
+ right: 12,
9
+ bottom: 60,
10
+ width: "min(264px, calc(100% - 24px))",
11
+ boxSizing: "border-box",
32
12
  display: "flex",
33
13
  flexDirection: "column",
34
- gap: 8,
35
- padding: "10px 11px",
36
- background: "rgba(10, 13, 18, 0.93)",
37
- border: "1px solid #1C2632",
38
- borderRadius: 6,
39
- fontFamily: "ui-monospace, SFMono-Regular, Menlo, monospace",
14
+ gap: 10,
15
+ padding: 12,
16
+ background: "rgba(10, 13, 18, 0.86)",
17
+ border: "1px solid rgba(255,255,255,0.1)",
18
+ borderRadius: 10,
19
+ fontFamily: "Inter, ui-sans-serif, system-ui, sans-serif",
20
+ fontSize: 12,
40
21
  color: "#E6EDF3",
41
22
  overflowY: "auto",
42
23
  zIndex: 18,
43
- backdropFilter: "blur(6px)"
44
- }, a = {
45
- border: "1px solid #1E293B",
46
- borderRadius: 4,
47
- padding: "7px 8px",
48
- display: "grid",
49
- gap: 6
24
+ backdropFilter: "blur(8px)"
25
+ };
26
+ var inlineAsideStyle = {
27
+ ...asideStyle,
28
+ position: "relative",
29
+ top: "auto",
30
+ right: "auto",
31
+ bottom: "auto",
32
+ width: "min(264px, 100%)",
33
+ maxHeight: "100%",
34
+ marginLeft: "auto",
35
+ alignSelf: "flex-start",
36
+ pointerEvents: "auto"
50
37
  };
51
- function o({ label: e, active: n = !1, disabled: r = !1, color: i = "#FFB000", onClick: a }) {
52
- return /* @__PURE__ */ t("button", {
38
+ function Btn({ label, active = false, disabled = false, accent = "#00E5FF", onClick }) {
39
+ return /* @__PURE__ */ jsx("button", {
53
40
  type: "button",
54
- disabled: r,
55
- onClick: a,
41
+ disabled,
42
+ onClick,
56
43
  style: {
57
- padding: "5px 7px",
58
- borderRadius: 3,
59
- fontSize: 10.5,
60
- fontWeight: n ? 700 : 600,
44
+ padding: "6px 9px",
45
+ borderRadius: 6,
46
+ fontSize: 11.5,
47
+ fontWeight: active ? 600 : 500,
61
48
  fontFamily: "inherit",
62
- cursor: r ? "not-allowed" : "pointer",
63
- border: `1px solid ${r ? "#1E293B" : n ? i : "#2B3A4E"}`,
64
- background: n ? i : "#0F151E",
65
- color: r ? "#475569" : n ? "#080B10" : "#E2E8F0",
66
- textAlign: "left"
49
+ cursor: disabled ? "not-allowed" : "pointer",
50
+ border: `1px solid ${disabled ? "rgba(255,255,255,0.08)" : active ? accent : "rgba(255,255,255,0.14)"}`,
51
+ background: active ? accent : "rgba(255,255,255,0.04)",
52
+ color: disabled ? "#64748B" : active ? "#07090C" : "#E2E8F0"
67
53
  },
68
- children: e
54
+ children: label
69
55
  });
70
56
  }
71
- function s(s) {
72
- let c = e.find((e) => e.role === s.activeRole) ?? e[0], l = (e) => e === "wheel" ? s.wheelCount : Object.values(s.partPicks).filter((t) => t === e).length, u = Object.keys(s.partPicks).length;
73
- return /* @__PURE__ */ n("aside", {
74
- style: i,
75
- "aria-label": "Car Chop-Shop",
57
+ var MODES = [
58
+ {
59
+ mode: "island",
60
+ label: "Island"
61
+ },
62
+ {
63
+ mode: "crease",
64
+ label: "Crease"
65
+ },
66
+ {
67
+ mode: "loop",
68
+ label: "Loop"
69
+ },
70
+ {
71
+ mode: "triangle",
72
+ label: "Brush"
73
+ }
74
+ ];
75
+ function ChopShopPanel(p) {
76
+ const cuttersReady = (p.wheelCutterCount ?? 0) > 0;
77
+ const totalPicked = Object.keys(p.partPicks).length;
78
+ return /* @__PURE__ */ jsxs("aside", {
79
+ style: p.inline ? inlineAsideStyle : asideStyle,
80
+ "aria-label": "Vehicle Calibration",
76
81
  children: [
77
- /* @__PURE__ */ n("div", {
82
+ /* @__PURE__ */ jsxs("div", {
78
83
  style: {
79
84
  display: "flex",
80
85
  justifyContent: "space-between",
81
86
  alignItems: "center"
82
87
  },
83
- children: [/* @__PURE__ */ t("span", {
88
+ children: [/* @__PURE__ */ jsx("span", {
84
89
  style: {
85
- fontSize: 11.5,
86
- fontWeight: 800,
87
- color: "#FFB000",
88
- letterSpacing: "0.05em"
90
+ fontWeight: 600,
91
+ fontSize: 13
89
92
  },
90
- children: "CHOP-SHOP · CUT & HINGE"
91
- }), /* @__PURE__ */ t("span", {
93
+ children: "Vehicle Calibration"
94
+ }), /* @__PURE__ */ jsx("span", {
92
95
  style: {
93
- fontSize: 10,
96
+ fontSize: 11,
94
97
  color: "#38BDF8"
95
98
  },
96
- children: `${s.wheelCount}W · ${u}P`
99
+ children: `${p.wheelCount} wheels`
97
100
  })]
98
101
  }),
99
- /* @__PURE__ */ n("div", {
100
- style: a,
101
- children: [/* @__PURE__ */ n("div", {
102
+ /* @__PURE__ */ jsxs("label", {
103
+ style: {
104
+ display: "grid",
105
+ gap: 4,
106
+ fontSize: 11.5,
107
+ color: "#94A3B8"
108
+ },
109
+ children: [/* @__PURE__ */ jsxs("div", {
102
110
  style: {
103
111
  display: "flex",
104
- justifyContent: "space-between",
105
- fontSize: 10.5,
106
- color: "#94A3B8"
112
+ justifyContent: "space-between"
107
113
  },
108
- children: [/* @__PURE__ */ t("span", { children: "LENGTH (+Z SI)" }), /* @__PURE__ */ t("span", {
109
- style: {
110
- color: "#00E5FF",
111
- fontWeight: 700
112
- },
113
- children: `${s.targetMeters.toFixed(2)} m`
114
+ children: [/* @__PURE__ */ jsx("span", { children: "Target Length" }), /* @__PURE__ */ jsx("span", {
115
+ style: { color: "#E6EDF3" },
116
+ children: `${p.targetMeters.toFixed(2)} m`
114
117
  })]
115
- }), /* @__PURE__ */ t("input", {
118
+ }), /* @__PURE__ */ jsx("input", {
116
119
  type: "range",
117
120
  min: 1.6,
118
121
  max: 7.5,
119
122
  step: .05,
120
- value: s.targetMeters,
121
- onChange: (e) => s.onChangeTargetMeters(Number(e.target.value)),
123
+ value: p.targetMeters,
124
+ onChange: (e) => p.onChangeTargetMeters(Number(e.target.value)),
122
125
  style: {
123
126
  width: "100%",
124
127
  accentColor: "#00E5FF"
125
128
  }
126
129
  })]
127
130
  }),
128
- /* @__PURE__ */ n("div", {
129
- style: a,
130
- children: [/* @__PURE__ */ t("span", {
131
- style: {
132
- fontSize: 10,
133
- color: "#94A3B8",
134
- letterSpacing: "0.06em"
135
- },
136
- children: "1. PICK PART ROLE TO TAG OR CUT"
137
- }), /* @__PURE__ */ t("div", {
138
- style: {
139
- display: "grid",
140
- gridTemplateColumns: "1fr 1fr",
141
- gap: 5
142
- },
143
- children: e.map((e) => {
144
- let n = l(e.role);
145
- return /* @__PURE__ */ t(o, {
146
- active: s.activeRole === e.role,
147
- color: e.color,
148
- label: `${e.label}${n > 0 ? ` (${n})` : ""}`,
149
- onClick: () => s.onSelectRole(e.role)
150
- }, e.role);
151
- })
152
- })]
153
- }),
154
- /* @__PURE__ */ n("div", {
155
- style: a,
131
+ /* @__PURE__ */ jsxs("div", {
132
+ style: {
133
+ display: "grid",
134
+ gap: 6,
135
+ paddingTop: 6,
136
+ borderTop: "1px solid rgba(255,255,255,0.08)"
137
+ },
156
138
  children: [
157
- /* @__PURE__ */ t("span", {
158
- style: {
159
- fontSize: 10,
160
- color: "#94A3B8",
161
- letterSpacing: "0.06em"
162
- },
163
- children: "2. SURFACE CUTTER (FUSED MESHES)"
164
- }),
165
- /* @__PURE__ */ t("div", {
139
+ /* @__PURE__ */ jsx("span", {
166
140
  style: {
167
- display: "grid",
168
- gridTemplateColumns: "1fr 1fr",
169
- gap: 5
141
+ fontSize: 11,
142
+ color: "#94A3B8"
170
143
  },
171
- children: r.map((e) => /* @__PURE__ */ t(o, {
172
- label: e.label,
173
- active: s.surfaceMode === e.mode,
174
- color: "#00E5FF",
175
- onClick: () => s.onChangeSurfaceMode(e.mode)
176
- }, e.mode))
144
+ children: "Wheel Coring & 3D Rings"
177
145
  }),
178
- /* @__PURE__ */ t("div", {
179
- style: {
180
- fontSize: 10,
181
- color: "#94A3B8",
182
- lineHeight: 1.35
183
- },
184
- children: r.find((e) => e.mode === s.surfaceMode)?.hint
185
- }),
186
- s.surfaceMode === "crease" && /* @__PURE__ */ n("label", {
187
- style: {
188
- display: "grid",
189
- gridTemplateColumns: "72px 1fr 36px",
190
- alignItems: "center",
191
- gap: 6,
192
- fontSize: 10.5
193
- },
194
- children: [
195
- /* @__PURE__ */ t("span", { children: "Crease" }),
196
- /* @__PURE__ */ t("input", {
197
- type: "range",
198
- min: 12,
199
- max: 62,
200
- step: 1,
201
- value: s.creaseDeg,
202
- onChange: (e) => s.onChangeCreaseDeg(Number(e.target.value)),
203
- style: { accentColor: "#FFB000" }
204
- }),
205
- /* @__PURE__ */ t("span", {
206
- style: {
207
- textAlign: "right",
208
- color: "#FFB000"
209
- },
210
- children: `${s.creaseDeg}°`
211
- })
212
- ]
213
- }),
214
- /* @__PURE__ */ n("label", {
146
+ /* @__PURE__ */ jsxs("label", {
215
147
  style: {
216
148
  display: "flex",
217
149
  alignItems: "center",
218
- gap: 6,
219
- fontSize: 10.5,
150
+ gap: 7,
220
151
  cursor: "pointer"
221
152
  },
222
- children: [/* @__PURE__ */ t("input", {
153
+ children: [/* @__PURE__ */ jsx("input", {
223
154
  type: "checkbox",
224
- checked: s.mirrorX,
225
- onChange: (e) => s.onToggleMirrorX(e.target.checked),
226
- style: { accentColor: "#00E5FF" }
227
- }), /* @__PURE__ */ t("span", { children: "Mirror cut/tag across X = 0 (L + R)" })]
155
+ checked: p.mirrorX,
156
+ onChange: (e) => p.onToggleMirrorX(e.target.checked)
157
+ }), /* @__PURE__ */ jsx("span", { children: "Mirror X=0" })]
228
158
  }),
229
- s.surfaceMode === "loop" && /* @__PURE__ */ n("label", {
159
+ p.onToggleSnapAxles && /* @__PURE__ */ jsxs("label", {
230
160
  style: {
231
161
  display: "flex",
232
162
  alignItems: "center",
233
- gap: 6,
234
- fontSize: 10.5,
163
+ gap: 7,
235
164
  cursor: "pointer"
236
165
  },
237
- children: [/* @__PURE__ */ t("input", {
166
+ children: [/* @__PURE__ */ jsx("input", {
238
167
  type: "checkbox",
239
- checked: s.splitCoarse,
240
- onChange: (e) => s.onToggleSplitCoarse(e.target.checked),
241
- style: { accentColor: "#FFB000" }
242
- }), /* @__PURE__ */ t("span", { children: "Split coarse triangles under cut line" })]
243
- }),
244
- s.surfaceMode !== "island" && /* @__PURE__ */ n("div", {
245
- style: {
246
- display: "flex",
247
- flexWrap: "wrap",
248
- gap: 5
249
- },
250
- children: [
251
- s.surfaceMode === "loop" && /* @__PURE__ */ t(o, {
252
- label: `[ CLOSE LOOP (${s.loopDotCount}) ]`,
253
- disabled: s.loopDotCount < 3,
254
- color: "#00E5FF",
255
- onClick: s.onCloseLoop
256
- }),
257
- /* @__PURE__ */ t(o, {
258
- label: `[ PEEL ${s.selectedFaces}${s.mirroredFaces > 0 ? `+${s.mirroredFaces}` : ""} FACES → ${s.activeRole.toUpperCase()} ]`,
259
- active: s.selectedFaces > 0,
260
- disabled: s.selectedFaces === 0,
261
- color: c.color,
262
- onClick: s.onPeel
263
- }),
264
- (s.selectedFaces > 0 || s.loopDotCount > 0) && /* @__PURE__ */ t(o, {
265
- label: "[ CLEAR ]",
266
- onClick: s.onClearSelection
267
- })
268
- ]
168
+ checked: p.snapAxles ?? true,
169
+ onChange: (e) => p.onToggleSnapAxles(e.target.checked)
170
+ }), /* @__PURE__ */ jsx("span", { children: "Snap Axles" })]
269
171
  }),
270
- (s.undoCount > 0 || u > 0) && /* @__PURE__ */ n("div", {
172
+ p.onToggleSealArchLiner && /* @__PURE__ */ jsxs("label", {
271
173
  style: {
272
174
  display: "flex",
273
- gap: 5
274
- },
275
- children: [s.undoCount > 0 && /* @__PURE__ */ t(o, {
276
- label: `[ UNDO CUT (${s.undoCount}) ]`,
277
- color: "#F43F5E",
278
- onClick: s.onUndoCut
279
- }), u > 0 && /* @__PURE__ */ t(o, {
280
- label: "[ CLEAR TAGS ]",
281
- onClick: s.onClearTags
282
- })]
283
- })
284
- ]
285
- }),
286
- /* @__PURE__ */ n("div", {
287
- style: a,
288
- children: [
289
- /* @__PURE__ */ t("span", {
290
- style: {
291
- fontSize: 10,
292
- color: "#94A3B8",
293
- letterSpacing: "0.06em"
294
- },
295
- children: "3. HINGE & EXPLODE PREVIEW"
296
- }),
297
- /* @__PURE__ */ n("label", {
298
- style: {
299
- display: "grid",
300
- gridTemplateColumns: "62px 1fr 42px",
301
175
  alignItems: "center",
302
- gap: 6,
303
- fontSize: 10.5
176
+ gap: 7,
177
+ cursor: "pointer"
304
178
  },
305
- children: [
306
- /* @__PURE__ */ t("span", { children: "Hinges" }),
307
- /* @__PURE__ */ t("input", {
308
- type: "range",
309
- min: 0,
310
- max: 1,
311
- step: .02,
312
- value: s.hingeScrub,
313
- onChange: (e) => s.onChangeHingeScrub(Number(e.target.value)),
314
- style: { accentColor: "#10B981" }
315
- }),
316
- /* @__PURE__ */ t("span", {
317
- style: {
318
- textAlign: "right",
319
- color: "#10B981"
320
- },
321
- children: `${Math.round(s.hingeScrub * 100)}%`
322
- })
323
- ]
179
+ children: [/* @__PURE__ */ jsx("input", {
180
+ type: "checkbox",
181
+ checked: p.sealArchLiner ?? true,
182
+ onChange: (e) => p.onToggleSealArchLiner(e.target.checked)
183
+ }), /* @__PURE__ */ jsx("span", { children: "Seal Arch Liners" })]
324
184
  }),
325
- /* @__PURE__ */ n("label", {
326
- style: {
327
- display: "grid",
328
- gridTemplateColumns: "62px 1fr 42px",
329
- alignItems: "center",
330
- gap: 6,
331
- fontSize: 10.5
332
- },
333
- children: [
334
- /* @__PURE__ */ t("span", { children: "Explode" }),
335
- /* @__PURE__ */ t("input", {
336
- type: "range",
337
- min: 0,
338
- max: 1.2,
339
- step: .02,
340
- value: s.explodeAmount,
341
- onChange: (e) => s.onChangeExplodeAmount(Number(e.target.value)),
342
- style: { accentColor: "#FFB000" }
343
- }),
344
- /* @__PURE__ */ t("span", {
345
- style: {
346
- textAlign: "right",
347
- color: "#FFB000"
348
- },
349
- children: `${s.explodeAmount.toFixed(2)}m`
350
- })
351
- ]
185
+ p.onApplyWheelCutters && /* @__PURE__ */ jsx(Btn, {
186
+ label: "Core Wheels",
187
+ active: cuttersReady,
188
+ disabled: !cuttersReady || p.busy,
189
+ accent: "#00E5FF",
190
+ onClick: p.onApplyWheelCutters
352
191
  })
353
192
  ]
354
193
  }),
355
- /* @__PURE__ */ n("div", {
356
- style: a,
194
+ /* @__PURE__ */ jsxs("div", {
195
+ style: {
196
+ display: "grid",
197
+ gap: 6,
198
+ paddingTop: 6,
199
+ borderTop: "1px solid rgba(255,255,255,0.08)"
200
+ },
357
201
  children: [
358
- /* @__PURE__ */ t("span", {
359
- style: {
360
- fontSize: 10,
361
- color: "#94A3B8",
362
- letterSpacing: "0.06em"
363
- },
364
- children: "4. WHEELS & POWERTRAIN"
365
- }),
366
- /* @__PURE__ */ n("div", {
202
+ /* @__PURE__ */ jsxs("div", {
367
203
  style: {
368
204
  display: "grid",
369
205
  gridTemplateColumns: "1fr 1fr",
370
206
  gap: 5
371
207
  },
372
- children: [/* @__PURE__ */ t(o, {
208
+ children: [/* @__PURE__ */ jsx(Btn, {
373
209
  label: "Imported Tires",
374
- active: s.wheelSource === "imported",
375
- color: "#00E5FF",
376
- onClick: () => s.onChangeWheelSource("imported")
377
- }), /* @__PURE__ */ t(o, {
210
+ active: p.wheelSource === "imported",
211
+ onClick: () => p.onChangeWheelSource("imported")
212
+ }), /* @__PURE__ */ jsx(Btn, {
378
213
  label: "12-Gon Fleet",
379
- active: s.wheelSource === "fleet12",
380
- color: "#10B981",
381
- onClick: () => s.onChangeWheelSource("fleet12")
214
+ active: p.wheelSource === "fleet12",
215
+ accent: "#10B981",
216
+ onClick: () => p.onChangeWheelSource("fleet12")
382
217
  })]
383
218
  }),
384
- /* @__PURE__ */ t("div", {
219
+ /* @__PURE__ */ jsx("div", {
385
220
  style: {
386
221
  display: "grid",
387
222
  gridTemplateColumns: "repeat(3, 1fr)",
@@ -391,75 +226,184 @@ function s(s) {
391
226
  "AWD",
392
227
  "RWD",
393
228
  "FWD"
394
- ].map((e) => /* @__PURE__ */ t(o, {
395
- label: e,
396
- active: s.driveType === e,
397
- color: "#FFB000",
398
- onClick: () => s.onChangeDriveType(e)
399
- }, e))
229
+ ].map((drv) => /* @__PURE__ */ jsx(Btn, {
230
+ label: drv,
231
+ active: p.driveType === drv,
232
+ accent: "#FFB000",
233
+ onClick: () => p.onChangeDriveType(drv)
234
+ }, drv))
400
235
  }),
401
- /* @__PURE__ */ n("label", {
236
+ /* @__PURE__ */ jsxs("label", {
402
237
  style: {
403
238
  display: "grid",
404
- gridTemplateColumns: "62px 1fr 46px",
405
- alignItems: "center",
406
- gap: 6,
407
- fontSize: 10.5
239
+ gap: 3,
240
+ fontSize: 11.5,
241
+ color: "#94A3B8"
408
242
  },
409
- children: [
410
- /* @__PURE__ */ t("span", { children: "Power" }),
411
- /* @__PURE__ */ t("input", {
412
- type: "range",
413
- min: 90,
414
- max: 720,
415
- step: 10,
416
- value: s.horsepower,
417
- onChange: (e) => s.onChangeHorsepower(Number(e.target.value)),
418
- style: { accentColor: "#FFB000" }
419
- }),
420
- /* @__PURE__ */ t("span", {
421
- style: {
422
- textAlign: "right",
423
- color: "#FFB000"
424
- },
425
- children: `${s.horsepower}HP`
426
- })
427
- ]
243
+ children: [/* @__PURE__ */ jsxs("div", {
244
+ style: {
245
+ display: "flex",
246
+ justifyContent: "space-between"
247
+ },
248
+ children: [/* @__PURE__ */ jsx("span", { children: "Power" }), /* @__PURE__ */ jsx("span", {
249
+ style: { color: "#E6EDF3" },
250
+ children: `${p.horsepower} hp`
251
+ })]
252
+ }), /* @__PURE__ */ jsx("input", {
253
+ type: "range",
254
+ min: 90,
255
+ max: 720,
256
+ step: 10,
257
+ value: p.horsepower,
258
+ onChange: (e) => p.onChangeHorsepower(Number(e.target.value)),
259
+ style: { accentColor: "#FFB000" }
260
+ })]
428
261
  })
429
262
  ]
430
263
  }),
431
- s.statusNote && /* @__PURE__ */ t("div", {
264
+ /* @__PURE__ */ jsxs("details", {
432
265
  style: {
433
- fontSize: 10.5,
434
- color: "#34D399",
435
- padding: "4px 6px",
436
- background: "rgba(16,185,129,0.1)",
437
- border: "1px solid rgba(16,185,129,0.35)",
438
- borderRadius: 4
266
+ paddingTop: 6,
267
+ borderTop: "1px solid rgba(255,255,255,0.08)"
439
268
  },
440
- children: s.statusNote
269
+ children: [/* @__PURE__ */ jsx("summary", {
270
+ style: {
271
+ cursor: "pointer",
272
+ fontSize: 11.5,
273
+ color: "#94A3B8"
274
+ },
275
+ children: "Panel Cut & Hinges"
276
+ }), /* @__PURE__ */ jsxs("div", {
277
+ style: {
278
+ display: "grid",
279
+ gap: 6,
280
+ marginTop: 8
281
+ },
282
+ children: [
283
+ /* @__PURE__ */ jsx("div", {
284
+ style: {
285
+ display: "grid",
286
+ gridTemplateColumns: "1fr 1fr",
287
+ gap: 4
288
+ },
289
+ children: CHOP_ROLES.map((item) => /* @__PURE__ */ jsx(Btn, {
290
+ label: item.label,
291
+ active: p.activeRole === item.role,
292
+ accent: item.color,
293
+ onClick: () => p.onSelectRole(item.role)
294
+ }, item.role))
295
+ }),
296
+ /* @__PURE__ */ jsx("div", {
297
+ style: {
298
+ display: "grid",
299
+ gridTemplateColumns: "1fr 1fr",
300
+ gap: 4
301
+ },
302
+ children: MODES.map((m) => /* @__PURE__ */ jsx(Btn, {
303
+ label: m.label,
304
+ active: p.surfaceMode === m.mode,
305
+ onClick: () => p.onChangeSurfaceMode(m.mode)
306
+ }, m.mode))
307
+ }),
308
+ p.surfaceMode === "loop" && /* @__PURE__ */ jsx(Btn, {
309
+ label: `Close Loop (${p.loopDotCount})`,
310
+ disabled: p.loopDotCount < 3,
311
+ onClick: p.onCloseLoop
312
+ }),
313
+ p.surfaceMode !== "island" && /* @__PURE__ */ jsx(Btn, {
314
+ label: `Peel ${p.selectedFaces} Faces`,
315
+ active: p.selectedFaces > 0,
316
+ disabled: p.selectedFaces === 0,
317
+ onClick: p.onPeel
318
+ }),
319
+ (p.undoCount > 0 || totalPicked > 0) && /* @__PURE__ */ jsxs("div", {
320
+ style: {
321
+ display: "flex",
322
+ gap: 5
323
+ },
324
+ children: [p.undoCount > 0 && /* @__PURE__ */ jsx(Btn, {
325
+ label: `Undo (${p.undoCount})`,
326
+ accent: "#F43F5E",
327
+ onClick: p.onUndoCut
328
+ }), totalPicked > 0 && /* @__PURE__ */ jsx(Btn, {
329
+ label: "Clear Tags",
330
+ onClick: p.onClearTags
331
+ })]
332
+ }),
333
+ /* @__PURE__ */ jsxs("label", {
334
+ style: {
335
+ display: "grid",
336
+ gap: 2,
337
+ fontSize: 11,
338
+ color: "#94A3B8"
339
+ },
340
+ children: [/* @__PURE__ */ jsx("span", { children: `Hinge Preview ${Math.round(p.hingeScrub * 100)}%` }), /* @__PURE__ */ jsx("input", {
341
+ type: "range",
342
+ min: 0,
343
+ max: 1,
344
+ step: .02,
345
+ value: p.hingeScrub,
346
+ onChange: (e) => p.onChangeHingeScrub(Number(e.target.value))
347
+ })]
348
+ }),
349
+ /* @__PURE__ */ jsxs("label", {
350
+ style: {
351
+ display: "grid",
352
+ gap: 2,
353
+ fontSize: 11,
354
+ color: "#94A3B8"
355
+ },
356
+ children: [/* @__PURE__ */ jsx("span", { children: `Explode ${p.explodeAmount.toFixed(2)} m` }), /* @__PURE__ */ jsx("input", {
357
+ type: "range",
358
+ min: 0,
359
+ max: 1.2,
360
+ step: .02,
361
+ value: p.explodeAmount,
362
+ onChange: (e) => p.onChangeExplodeAmount(Number(e.target.value))
363
+ })]
364
+ })
365
+ ]
366
+ })]
367
+ }),
368
+ p.statusNote && /* @__PURE__ */ jsx("div", {
369
+ style: {
370
+ fontSize: 11,
371
+ color: "#34D399"
372
+ },
373
+ children: p.statusNote
441
374
  }),
442
- /* @__PURE__ */ n("div", {
375
+ /* @__PURE__ */ jsxs("div", {
443
376
  style: {
444
377
  display: "grid",
445
378
  gap: 6,
446
379
  marginTop: "auto"
447
380
  },
448
- children: [/* @__PURE__ */ t(o, {
449
- label: "[ -> STEP 2: COMPILE & TEST TRACK (WASD) ]",
450
- active: s.unlocked,
451
- disabled: !s.unlocked || s.busy,
452
- color: "#FFB000",
453
- onClick: s.onGoTestDrive
454
- }), s.onSpawnWorld && /* @__PURE__ */ t(o, {
455
- label: s.busy ? "[ COMPILING KHR3… ]" : "[ -> SPAWN & DRIVE ON LONG DRIVE ]",
456
- active: s.unlocked,
457
- disabled: !s.unlocked || s.busy,
458
- color: "#10B981",
459
- onClick: s.onSpawnWorld
460
- })]
381
+ children: [
382
+ /* @__PURE__ */ jsx(Btn, {
383
+ label: "Test Drive",
384
+ active: p.unlocked,
385
+ disabled: !p.unlocked || p.busy,
386
+ accent: "#FFB000",
387
+ onClick: p.onGoTestDrive
388
+ }),
389
+ p.onExportGlb && /* @__PURE__ */ jsx(Btn, {
390
+ label: "Export GLB",
391
+ disabled: p.busy,
392
+ accent: "#00E5FF",
393
+ onClick: p.onExportGlb
394
+ }),
395
+ p.onSpawnWorld && /* @__PURE__ */ jsx(Btn, {
396
+ label: p.busy ? "Spawning…" : "Drive in World",
397
+ active: p.unlocked,
398
+ disabled: !p.unlocked || p.busy,
399
+ accent: "#10B981",
400
+ onClick: p.onSpawnWorld
401
+ })
402
+ ]
461
403
  })
462
404
  ]
463
405
  });
464
406
  }
465
- export { s as ChopShopPanel };
407
+ export { ChopShopPanel };
408
+
409
+ //# sourceMappingURL=ChopShopPanel.js.map