@nova-lab/core 1.0.0-dev.19 → 1.1.1-dev.229

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 (501) hide show
  1. package/README.md +1035 -10
  2. package/THIRD_PARTY_NOTICES.md +26 -0
  3. package/dist/2d/accessibility.d.ts +2 -0
  4. package/dist/2d/accessibility.js +171 -0
  5. package/dist/2d/commands.d.ts +2 -0
  6. package/dist/2d/commands.js +80 -0
  7. package/dist/2d/effects.d.ts +10 -0
  8. package/dist/2d/effects.js +566 -0
  9. package/dist/2d/ktx2.d.ts +5 -0
  10. package/dist/2d/ktx2.js +542 -0
  11. package/dist/2d/lighting.d.ts +3 -0
  12. package/dist/2d/lighting.js +495 -0
  13. package/dist/2d/lottie.d.ts +3 -0
  14. package/dist/2d/lottie.js +254 -0
  15. package/dist/2d/meshes.d.ts +4 -0
  16. package/dist/2d/meshes.js +451 -0
  17. package/dist/2d/primitives.d.ts +3 -0
  18. package/dist/2d/primitives.js +85 -0
  19. package/dist/2d/render-textures.d.ts +3 -0
  20. package/dist/2d/render-textures.js +539 -0
  21. package/dist/2d/svg/documents.d.ts +5 -0
  22. package/dist/2d/svg/documents.js +7 -0
  23. package/dist/2d/svg/renderer.d.ts +3 -0
  24. package/dist/2d/svg/renderer.js +222 -0
  25. package/dist/2d/svg.d.ts +3 -0
  26. package/dist/2d/svg.js +4 -0
  27. package/dist/2d/tools.d.ts +2 -0
  28. package/dist/2d/tools.js +100 -0
  29. package/dist/2d/video.d.ts +5 -0
  30. package/dist/2d/video.js +90 -0
  31. package/dist/2d.d.ts +2 -0
  32. package/dist/2d.js +220 -0
  33. package/dist/3d/animation.d.ts +8 -0
  34. package/dist/3d/animation.js +1396 -0
  35. package/dist/3d/area-lights.d.ts +2 -0
  36. package/dist/3d/area-lights.js +19 -0
  37. package/dist/3d/audio.d.ts +4 -0
  38. package/dist/3d/audio.js +500 -0
  39. package/dist/3d/character.d.ts +2 -0
  40. package/dist/3d/character.js +136 -0
  41. package/dist/3d/collision.d.ts +3 -0
  42. package/dist/3d/collision.js +387 -0
  43. package/dist/3d/commands.d.ts +2 -0
  44. package/dist/3d/commands.js +108 -0
  45. package/dist/3d/controls.d.ts +8 -0
  46. package/dist/3d/controls.js +1041 -0
  47. package/dist/3d/documents.d.ts +5 -0
  48. package/dist/3d/documents.js +227 -0
  49. package/dist/3d/effects.d.ts +5 -0
  50. package/dist/3d/effects.js +1986 -0
  51. package/dist/3d/export.d.ts +4 -0
  52. package/dist/3d/export.js +347 -0
  53. package/dist/3d/fbx.d.ts +2 -0
  54. package/dist/3d/fbx.js +784 -0
  55. package/dist/3d/gltf.d.ts +2 -0
  56. package/dist/3d/gltf.js +5 -0
  57. package/dist/3d/helpers.d.ts +5 -0
  58. package/dist/3d/helpers.js +191 -0
  59. package/dist/3d/ik.d.ts +9 -0
  60. package/dist/3d/ik.js +777 -0
  61. package/dist/3d/loaders.d.ts +17 -0
  62. package/dist/3d/loaders.js +1406 -0
  63. package/dist/3d/nodes.d.ts +8 -0
  64. package/dist/3d/nodes.js +49 -0
  65. package/dist/3d/particles.d.ts +5 -0
  66. package/dist/3d/particles.js +1574 -0
  67. package/dist/3d/physics/backend.d.ts +7 -0
  68. package/dist/3d/physics/backend.js +1 -0
  69. package/dist/3d/physics/rapier.d.ts +3 -0
  70. package/dist/3d/physics/rapier.js +765 -0
  71. package/dist/3d/physics.d.ts +5 -0
  72. package/dist/3d/physics.js +3346 -0
  73. package/dist/3d/splats.d.ts +7 -0
  74. package/dist/3d/splats.js +862 -0
  75. package/dist/3d/text.d.ts +5 -0
  76. package/dist/3d/text.js +1043 -0
  77. package/dist/3d/tiles.d.ts +24 -0
  78. package/dist/3d/tiles.js +1705 -0
  79. package/dist/3d/tools.d.ts +12 -0
  80. package/dist/3d/tools.js +338 -0
  81. package/dist/3d/usdz.d.ts +2 -0
  82. package/dist/3d/usdz.js +634 -0
  83. package/dist/3d/xr.d.ts +2 -0
  84. package/dist/3d/xr.js +202 -0
  85. package/dist/3d-B4jWF8Qb.js +5591 -0
  86. package/dist/3d.d.ts +40 -0
  87. package/dist/3d.js +44 -0
  88. package/dist/Capsule-BFVpZfvc.js +44 -0
  89. package/dist/Clip-CAN7t03k.js +204 -0
  90. package/dist/Color-vuv9UnoY.js +34 -0
  91. package/dist/DeformedMesh-CPi0P_vc.js +280 -0
  92. package/dist/Document-DCVEZSvM.js +415 -0
  93. package/dist/Errors-B2ekO9bZ.js +30 -0
  94. package/dist/Features-BsjmePtc.js +557 -0
  95. package/dist/GLTFResourceIO-CYJyCUTt.js +124 -0
  96. package/dist/GPUParticleState-CQlNpoDa.js +545 -0
  97. package/dist/Geometry-DytO490z.js +227 -0
  98. package/dist/Inflate-DWw0V-Up.js +42 -0
  99. package/dist/InstancedMesh-DPrgrw5z.js +527 -0
  100. package/dist/Limits-Bw5XQdFr.js +20 -0
  101. package/dist/LineHelper-Ad0z9uDi.js +131 -0
  102. package/dist/LoaderIO-BwrM84OM.js +114 -0
  103. package/dist/Material-BpfLPmK9.js +777 -0
  104. package/dist/Mesh-BaRxAAJq.js +209 -0
  105. package/dist/Node-QfgAE2_v.js +877 -0
  106. package/dist/NovaAssetRegistry-p2QlCwvT.js +1168 -0
  107. package/dist/NovaNode-CBZ-Ol-W.js +2016 -0
  108. package/dist/NovaRenderCommandWriter-CWQRa42y.js +1949 -0
  109. package/dist/NovaTextSelectionService-CipuujCT.js +18526 -0
  110. package/dist/NovaWebGLProgram-BO250QNF.js +97 -0
  111. package/dist/Options-CajE7LLJ.js +15 -0
  112. package/dist/PolygonMesh-D4PnnfIo.js +657 -0
  113. package/dist/Ready-BzyhRtjD.js +21 -0
  114. package/dist/Scene-CDfNgf9I.js +911 -0
  115. package/dist/Shader-b6_HDndT.js +48 -0
  116. package/dist/SplatShader-wJ6GJ3vo.js +130 -0
  117. package/dist/Texture-dTKMlTpK.js +267 -0
  118. package/dist/TextureLoader-CfDzdy2m.js +411 -0
  119. package/dist/Textures-CGL4Kf-8.js +651 -0
  120. package/dist/ToneMapping-D9IWvN0u.js +46 -0
  121. package/dist/WebGPURenderer-DjD0IxVC.js +4921 -0
  122. package/dist/ZipReader-C-MSEsSr.js +84 -0
  123. package/dist/core.js +218 -24024
  124. package/dist/domain/types/base.types.d.ts +18 -9
  125. package/dist/domain/types/component.types.d.ts +5 -5
  126. package/dist/domain/types/cursor.types.d.ts +1 -1
  127. package/dist/domain/types/diagnostics.types.d.ts +2 -0
  128. package/dist/domain/types/export.types.d.ts +2 -2
  129. package/dist/domain/types/hit-test.types.d.ts +1 -1
  130. package/dist/domain/types/motion.types.d.ts +2 -2
  131. package/dist/domain/types/renderer.types.d.ts +88 -4
  132. package/dist/domain/types/rendering/index.d.ts +29 -4
  133. package/dist/domain/types/sound.types.d.ts +1 -1
  134. package/dist/domain/types/theme.types.d.ts +1 -1
  135. package/dist/domain/utils/bounds.d.ts +1 -1
  136. package/dist/domain/utils/nova-text.d.ts +9 -0
  137. package/dist/domain/utils/schemaBounds.d.ts +2 -2
  138. package/dist/export-svg-document-ChaNXMaG.js +668 -0
  139. package/dist/features/3d/Errors.d.ts +57 -0
  140. package/dist/features/3d/Nova3DApp.d.ts +429 -0
  141. package/dist/features/3d/animation/Animator.d.ts +260 -0
  142. package/dist/features/3d/animation/Clip.d.ts +74 -0
  143. package/dist/features/3d/animation/Graph.d.ts +158 -0
  144. package/dist/features/3d/animation/Mask.d.ts +40 -0
  145. package/dist/features/3d/audio/Audio.d.ts +114 -0
  146. package/dist/features/3d/audio/Sound.d.ts +133 -0
  147. package/dist/features/3d/character/CharacterController.d.ts +61 -0
  148. package/dist/features/3d/collision/Capsule.d.ts +25 -0
  149. package/dist/features/3d/collision/Octree.d.ts +94 -0
  150. package/dist/features/3d/controls/CameraMotionControls.d.ts +154 -0
  151. package/dist/features/3d/controls/CameraOrientation.d.ts +47 -0
  152. package/dist/features/3d/controls/OrbitControls.d.ts +73 -0
  153. package/dist/features/3d/controls/PointerGesture.d.ts +25 -0
  154. package/dist/features/3d/controls/PointerLock.d.ts +36 -0
  155. package/dist/features/3d/controls/Snapping.d.ts +32 -0
  156. package/dist/features/3d/controls/TransformGizmo.d.ts +79 -0
  157. package/dist/features/3d/deformation/DeformationGPU.d.ts +52 -0
  158. package/dist/features/3d/deformation/DeformationShader.d.ts +2 -0
  159. package/dist/features/3d/deformation/DeformedMesh.d.ts +36 -0
  160. package/dist/features/3d/deformation/GeometryDeformation.d.ts +25 -0
  161. package/dist/features/3d/documents/Document.d.ts +59 -0
  162. package/dist/features/3d/documents/DocumentCommands.d.ts +45 -0
  163. package/dist/features/3d/documents/DocumentSchema.d.ts +18 -0
  164. package/dist/features/3d/documents/DocumentTransform.d.ts +4 -0
  165. package/dist/features/3d/documents/DocumentTypes.d.ts +182 -0
  166. package/dist/features/3d/documents/DocumentValidation.d.ts +18 -0
  167. package/dist/features/3d/documents/Projection.d.ts +65 -0
  168. package/dist/features/3d/effects/CubeLUT.d.ts +24 -0
  169. package/dist/features/3d/effects/Effects.d.ts +32 -0
  170. package/dist/features/3d/effects/EffectsGPU.d.ts +80 -0
  171. package/dist/features/3d/effects/EffectsPlan.d.ts +268 -0
  172. package/dist/features/3d/effects/EffectsShaders.d.ts +35 -0
  173. package/dist/features/3d/export/GLTFExporter.d.ts +49 -0
  174. package/dist/features/3d/export/ThreeMFExporter.d.ts +19 -0
  175. package/dist/features/3d/export/ZipWriter.d.ts +9 -0
  176. package/dist/features/3d/fbx/FBXLoader.d.ts +26 -0
  177. package/dist/features/3d/fbx/FBXParser.d.ts +35 -0
  178. package/dist/features/3d/fbx/FBXScene.d.ts +20 -0
  179. package/dist/features/3d/gltf/GLTFLoader.d.ts +16 -0
  180. package/dist/features/3d/gltf/GLTFTypes.d.ts +64 -0
  181. package/dist/features/3d/gltf/services/GLTFBinary.d.ts +21 -0
  182. package/dist/features/3d/gltf/services/GLTFGeometry.d.ts +14 -0
  183. package/dist/features/3d/gltf/services/GLTFResourceIO.d.ts +64 -0
  184. package/dist/features/3d/helpers/LineHelper.d.ts +51 -0
  185. package/dist/features/3d/helpers/StaticHelpers.d.ts +47 -0
  186. package/dist/features/3d/helpers/TrackedHelpers.d.ts +84 -0
  187. package/dist/features/3d/ik/ChainIK.d.ts +44 -0
  188. package/dist/features/3d/ik/IKChain.d.ts +92 -0
  189. package/dist/features/3d/ik/IKMath.d.ts +49 -0
  190. package/dist/features/3d/ik/IKSolver.d.ts +97 -0
  191. package/dist/features/3d/ik/LookAtIK.d.ts +58 -0
  192. package/dist/features/3d/ik/TwoBoneIK.d.ts +57 -0
  193. package/dist/features/3d/import/ImportAnimation.d.ts +20 -0
  194. package/dist/features/3d/import/ImportMath.d.ts +42 -0
  195. package/dist/features/3d/import/ImportedModel.d.ts +135 -0
  196. package/dist/features/3d/import/Inflate.d.ts +5 -0
  197. package/dist/features/3d/import/ModelAsset.d.ts +149 -0
  198. package/dist/features/3d/import/PolygonMesh.d.ts +54 -0
  199. package/dist/features/3d/lights/AreaLightTables.d.ts +8 -0
  200. package/dist/features/3d/lights/AreaLights.d.ts +11 -0
  201. package/dist/features/3d/loaders/EXRCompression.d.ts +13 -0
  202. package/dist/features/3d/loaders/EXRLoader.d.ts +39 -0
  203. package/dist/features/3d/loaders/HDRLoader.d.ts +26 -0
  204. package/dist/features/3d/loaders/Limits.d.ts +70 -0
  205. package/dist/features/3d/loaders/LoaderBuffers.d.ts +42 -0
  206. package/dist/features/3d/loaders/LoaderIO.d.ts +81 -0
  207. package/dist/features/3d/loaders/LoaderModel.d.ts +80 -0
  208. package/dist/features/3d/loaders/LoaderText.d.ts +27 -0
  209. package/dist/features/3d/loaders/MTLLoader.d.ts +105 -0
  210. package/dist/features/3d/loaders/OBJLoader.d.ts +70 -0
  211. package/dist/features/3d/loaders/PLYLoader.d.ts +47 -0
  212. package/dist/features/3d/loaders/STLLoader.d.ts +27 -0
  213. package/dist/features/3d/model/Camera.d.ts +33 -0
  214. package/dist/features/3d/model/Environment.d.ts +31 -0
  215. package/dist/features/3d/model/Geometry.d.ts +59 -0
  216. package/dist/features/3d/model/InstancedMesh.d.ts +134 -0
  217. package/dist/features/3d/model/LOD.d.ts +31 -0
  218. package/dist/features/3d/model/Light.d.ts +200 -0
  219. package/dist/features/3d/model/Material.d.ts +308 -0
  220. package/dist/features/3d/model/MaterialExtensions.d.ts +200 -0
  221. package/dist/features/3d/model/Mesh.d.ts +92 -0
  222. package/dist/features/3d/model/Node.d.ts +87 -0
  223. package/dist/features/3d/model/ReflectionProbe.d.ts +45 -0
  224. package/dist/features/3d/model/RenderTarget.d.ts +41 -0
  225. package/dist/features/3d/model/Scene.d.ts +173 -0
  226. package/dist/features/3d/model/Texture.d.ts +143 -0
  227. package/dist/features/3d/nodes/Nodes.d.ts +8 -0
  228. package/dist/features/3d/nodes/ShaderNode.d.ts +240 -0
  229. package/dist/features/3d/particles/GPUParticleSchedule.d.ts +67 -0
  230. package/dist/features/3d/particles/GPUParticleShaders.d.ts +19 -0
  231. package/dist/features/3d/particles/GPUParticleState.d.ts +106 -0
  232. package/dist/features/3d/particles/GPUParticleSystem.d.ts +192 -0
  233. package/dist/features/3d/particles/ParticleCurves.d.ts +34 -0
  234. package/dist/features/3d/particles/ParticleOptions.d.ts +78 -0
  235. package/dist/features/3d/particles/ParticleSystem.d.ts +368 -0
  236. package/dist/features/3d/physics/PhysicsBackend.d.ts +352 -0
  237. package/dist/features/3d/physics/PhysicsDebug.d.ts +24 -0
  238. package/dist/features/3d/physics/PhysicsWorld.d.ts +352 -0
  239. package/dist/features/3d/physics/basic/BasicCollision.d.ts +75 -0
  240. package/dist/features/3d/physics/basic/BasicPhysics.d.ts +24 -0
  241. package/dist/features/3d/physics/basic/BasicShapes.d.ts +103 -0
  242. package/dist/features/3d/physics/rapier/ContactBuffer.d.ts +32 -0
  243. package/dist/features/3d/physics/rapier/RapierBackend.d.ts +17 -0
  244. package/dist/features/3d/physics/rapier/RapierShapes.d.ts +4 -0
  245. package/dist/features/3d/physics/rapier/RapierWorld.d.ts +198 -0
  246. package/dist/features/3d/physics/rapier/Validation.d.ts +8 -0
  247. package/dist/features/3d/services/Background.d.ts +22 -0
  248. package/dist/features/3d/services/BasicShader.d.ts +55 -0
  249. package/dist/features/3d/services/ClusteredLights.d.ts +69 -0
  250. package/dist/features/3d/services/DrawOrder.d.ts +37 -0
  251. package/dist/features/3d/services/EffectsProcessor.d.ts +38 -0
  252. package/dist/features/3d/services/EnvironmentBRDF.d.ts +35 -0
  253. package/dist/features/3d/services/EnvironmentMaps.d.ts +55 -0
  254. package/dist/features/3d/services/FogShader.d.ts +6 -0
  255. package/dist/features/3d/services/Frustum.d.ts +7 -0
  256. package/dist/features/3d/services/GLState.d.ts +86 -0
  257. package/dist/features/3d/services/GPUPicker.d.ts +31 -0
  258. package/dist/features/3d/services/InstanceShader.d.ts +3 -0
  259. package/dist/features/3d/services/LineProgram.d.ts +32 -0
  260. package/dist/features/3d/services/PBRProgram.d.ts +115 -0
  261. package/dist/features/3d/services/Renderer.d.ts +50 -0
  262. package/dist/features/3d/services/Shader.d.ts +22 -0
  263. package/dist/features/3d/services/ShaderProgram.d.ts +38 -0
  264. package/dist/features/3d/services/ShadowMaps.d.ts +97 -0
  265. package/dist/features/3d/services/SpatialIndex.d.ts +16 -0
  266. package/dist/features/3d/services/TextureLoader.d.ts +40 -0
  267. package/dist/features/3d/services/TextureMipmaps.d.ts +42 -0
  268. package/dist/features/3d/services/ToneMapping.d.ts +12 -0
  269. package/dist/features/3d/services/WebGLRenderer.d.ts +261 -0
  270. package/dist/features/3d/splats/SplatData.d.ts +136 -0
  271. package/dist/features/3d/splats/SplatLoaders.d.ts +64 -0
  272. package/dist/features/3d/splats/SplatShader.d.ts +14 -0
  273. package/dist/features/3d/splats/SplatSort.d.ts +69 -0
  274. package/dist/features/3d/splats/Splats.d.ts +116 -0
  275. package/dist/features/3d/text/FontAtlas.d.ts +246 -0
  276. package/dist/features/3d/text/SDF.d.ts +28 -0
  277. package/dist/features/3d/text/Text.d.ts +179 -0
  278. package/dist/features/3d/text/TextLayout.d.ts +73 -0
  279. package/dist/features/3d/text/TextShader.d.ts +12 -0
  280. package/dist/features/3d/tiles/BoundingVolume.d.ts +43 -0
  281. package/dist/features/3d/tiles/Geodesy.d.ts +106 -0
  282. package/dist/features/3d/tiles/GlobeControls.d.ts +147 -0
  283. package/dist/features/3d/tiles/TileContent.d.ts +35 -0
  284. package/dist/features/3d/tiles/TileFormats.d.ts +77 -0
  285. package/dist/features/3d/tiles/Tiles3D.d.ts +236 -0
  286. package/dist/features/3d/tiles/Tileset.d.ts +81 -0
  287. package/dist/features/3d/tools/BatchedMesh.d.ts +74 -0
  288. package/dist/features/3d/tools/CanvasSurface.d.ts +81 -0
  289. package/dist/features/3d/tools/Color.d.ts +11 -0
  290. package/dist/features/3d/tools/MergeGeometries.d.ts +22 -0
  291. package/dist/features/3d/tools/Options.d.ts +15 -0
  292. package/dist/features/3d/tools/Polyhedra.d.ts +30 -0
  293. package/dist/features/3d/tools/PrimitiveBuffers.d.ts +42 -0
  294. package/dist/features/3d/tools/Primitives.d.ts +164 -0
  295. package/dist/features/3d/tools/Ready.d.ts +12 -0
  296. package/dist/features/3d/tools/SpatialMath.d.ts +57 -0
  297. package/dist/features/3d/tools/SphericalHarmonics.d.ts +9 -0
  298. package/dist/features/3d/tools/math/mat3.d.ts +7 -0
  299. package/dist/features/3d/tools/math/mat4.d.ts +19 -0
  300. package/dist/features/3d/tools/math/quat.d.ts +6 -0
  301. package/dist/features/3d/tools/math/vec3.d.ts +16 -0
  302. package/dist/features/3d/tools/math/vec4.d.ts +5 -0
  303. package/dist/features/3d/types.d.ts +359 -0
  304. package/dist/features/3d/usdz/USDAParser.d.ts +50 -0
  305. package/dist/features/3d/usdz/USDScene.d.ts +20 -0
  306. package/dist/features/3d/usdz/USDZLoader.d.ts +27 -0
  307. package/dist/features/3d/usdz/ZipReader.d.ts +16 -0
  308. package/dist/features/3d/webgpu/Backend.d.ts +40 -0
  309. package/dist/features/3d/webgpu/BasicShader.d.ts +10 -0
  310. package/dist/features/3d/webgpu/Constants.d.ts +32 -0
  311. package/dist/features/3d/webgpu/Deformation.d.ts +71 -0
  312. package/dist/features/3d/webgpu/Environment.d.ts +66 -0
  313. package/dist/features/3d/webgpu/Features.d.ts +68 -0
  314. package/dist/features/3d/webgpu/Layouts.d.ts +27 -0
  315. package/dist/features/3d/webgpu/Lines.d.ts +40 -0
  316. package/dist/features/3d/webgpu/LitExtras.d.ts +46 -0
  317. package/dist/features/3d/webgpu/LitFeatures.d.ts +41 -0
  318. package/dist/features/3d/webgpu/LitScene.d.ts +60 -0
  319. package/dist/features/3d/webgpu/LitShader.d.ts +68 -0
  320. package/dist/features/3d/webgpu/Particles.d.ts +114 -0
  321. package/dist/features/3d/webgpu/Picking.d.ts +59 -0
  322. package/dist/features/3d/webgpu/PipelineKey.d.ts +33 -0
  323. package/dist/features/3d/webgpu/Points.d.ts +41 -0
  324. package/dist/features/3d/webgpu/Probes.d.ts +45 -0
  325. package/dist/features/3d/webgpu/ShaderChunks.d.ts +18 -0
  326. package/dist/features/3d/webgpu/ShaderMaterial.d.ts +57 -0
  327. package/dist/features/3d/webgpu/ShaderMaterialSource.d.ts +5 -0
  328. package/dist/features/3d/webgpu/Shadows.d.ts +49 -0
  329. package/dist/features/3d/webgpu/Splats.d.ts +47 -0
  330. package/dist/features/3d/webgpu/Textures.d.ts +52 -0
  331. package/dist/features/3d/webgpu/Transmission.d.ts +30 -0
  332. package/dist/features/3d/webgpu/UniformLayout.d.ts +30 -0
  333. package/dist/features/3d/webgpu/UtilityShaders.d.ts +38 -0
  334. package/dist/features/3d/webgpu/WebGPURenderer.d.ts +327 -0
  335. package/dist/features/3d/webgpu/effects/EffectsShaders.d.ts +74 -0
  336. package/dist/features/3d/webgpu/effects/WebGPUEffects.d.ts +140 -0
  337. package/dist/features/3d/xr/XR.d.ts +100 -0
  338. package/dist/gltf-By-n0qEg.js +960 -0
  339. package/dist/index.d.ts +86 -81
  340. package/dist/model/document-actions/document-commands.d.ts +18 -0
  341. package/dist/model/documents/svg/create-svg-document-renderer.d.ts +32 -0
  342. package/dist/model/documents/svg/export-svg-document.d.ts +5 -0
  343. package/dist/model/documents/svg/import-svg-document.d.ts +6 -0
  344. package/dist/model/documents/svg/svg-document.types.d.ts +111 -0
  345. package/dist/model/documents/svg/svg-values.d.ts +16 -0
  346. package/dist/model/documents/svg/svg-xml.d.ts +18 -0
  347. package/dist/model/input/NovaInputProxy_Adapter.d.ts +2 -1
  348. package/dist/model/input/NovaInputValidationController.d.ts +1 -1
  349. package/dist/model/input/NovaTextInputController.d.ts +1 -1
  350. package/dist/model/input/NovaTextLayoutEngine.d.ts +2 -6
  351. package/dist/model/input/index.d.ts +7 -7
  352. package/dist/model/input/nova-input.types.d.ts +1 -1
  353. package/dist/model/lighting/LightingRenderer2D.d.ts +58 -0
  354. package/dist/model/lighting/NovaLighting2D.d.ts +56 -0
  355. package/dist/model/lighting/lighting-shaders.d.ts +3 -0
  356. package/dist/model/lighting/lighting-state.d.ts +27 -0
  357. package/dist/model/lighting/lighting.types.d.ts +107 -0
  358. package/dist/model/lottie/LottieNode.d.ts +4 -0
  359. package/dist/model/lottie/lottie.types.d.ts +83 -0
  360. package/dist/model/lottie/prepare-lottie.d.ts +3 -0
  361. package/dist/model/lottie/sample-position.d.ts +9 -0
  362. package/dist/model/motion/NovaMotionEngine.d.ts +3 -3
  363. package/dist/model/motion/nova-motion-easing.d.ts +1 -1
  364. package/dist/model/motion/nova-motion-interpolation.d.ts +1 -1
  365. package/dist/model/motion/nova-motion-presets.d.ts +2 -2
  366. package/dist/model/motion/nova-motion-timeline.d.ts +1 -1
  367. package/dist/model/platform/NovaCanvas.d.ts +7 -6
  368. package/dist/model/primitives/NovaPrimitiveUnsupportedError.d.ts +13 -0
  369. package/dist/model/primitives/definePrimitive.d.ts +5 -0
  370. package/dist/model/primitives/primitive.types.d.ts +28 -0
  371. package/dist/model/render/backends/canvas2d/NovaCanvas2DTargetManager.d.ts +3 -3
  372. package/dist/model/render/backends/canvas2d/NovaRenderer2D.d.ts +61 -15
  373. package/dist/model/render/backends/canvas2d/nova-canvas-blend.d.ts +5 -0
  374. package/dist/model/render/backends/nova-render-backend-factory.d.ts +6 -6
  375. package/dist/model/render/backends/nova-render-backend.d.ts +8 -2
  376. package/dist/model/render/backends/webgl/NovaRendererWebGL.d.ts +32 -11
  377. package/dist/model/render/backends/webgl/NovaStreamCacheIdleLedger.d.ts +12 -1
  378. package/dist/model/render/backends/webgl/NovaWebGLBatcher.d.ts +1 -1
  379. package/dist/model/render/backends/webgl/NovaWebGLCircleImagePass.d.ts +23 -0
  380. package/dist/model/render/backends/webgl/NovaWebGLCompositionPass.d.ts +9 -0
  381. package/dist/model/render/backends/webgl/NovaWebGLDevice.d.ts +3 -1
  382. package/dist/model/render/backends/webgl/NovaWebGLDiagnostics.d.ts +1 -1
  383. package/dist/model/render/backends/webgl/NovaWebGLFrameRenderer.d.ts +162 -53
  384. package/dist/model/render/backends/webgl/NovaWebGLPathClipPass.d.ts +13 -0
  385. package/dist/model/render/backends/webgl/NovaWebGLPathUnion.d.ts +23 -0
  386. package/dist/model/render/compiler/NovaRenderBuilder.d.ts +24 -10
  387. package/dist/model/render/compiler/NovaRenderCommandWriter.d.ts +10 -5
  388. package/dist/model/render/compiler/NovaRenderCompiler.d.ts +7 -6
  389. package/dist/model/render/compiler/NovaRenderFrameBuilder.d.ts +4 -3
  390. package/dist/model/render/effects/blur.d.ts +8 -0
  391. package/dist/model/render/effects/color-matrix.d.ts +8 -0
  392. package/dist/model/render/effects/drop-shadow.d.ts +18 -0
  393. package/dist/model/render/effects/nova-effect-registry.d.ts +66 -0
  394. package/dist/model/render/effects/nova-gaussian-kernel.d.ts +7 -0
  395. package/dist/model/render/effects/nova-gaussian-textures.d.ts +11 -0
  396. package/dist/model/render/effects/shader-effect.d.ts +64 -0
  397. package/dist/model/render/geometry/nova-alpha-mask.d.ts +5 -0
  398. package/dist/model/render/geometry/nova-composition.d.ts +9 -0
  399. package/dist/model/render/geometry/nova-node-clip.d.ts +17 -0
  400. package/dist/model/render/geometry/nova-path-geometry.d.ts +24 -0
  401. package/dist/model/render/geometry/nova-path-tessellation.d.ts +7 -0
  402. package/dist/model/render/geometry/nova-polygon-triangulation.d.ts +1 -1
  403. package/dist/model/render/graph/NovaRectBatchBuffer.d.ts +58 -0
  404. package/dist/model/render/graph/NovaRenderGraph.d.ts +40 -6
  405. package/dist/model/render/graph/NovaRenderHitIndex.d.ts +1 -1
  406. package/dist/model/render/graph/nova-auto-rect.d.ts +1 -1
  407. package/dist/model/render/graph/nova-linear-rect-repack.d.ts +4 -4
  408. package/dist/model/render/graph/nova-linear-rect-transition.d.ts +2 -2
  409. package/dist/model/render/graph/nova-render-culling.d.ts +2 -2
  410. package/dist/model/render/graph/nova-render-dirty-items.d.ts +1 -1
  411. package/dist/model/render/graph/nova-render-group.d.ts +1 -1
  412. package/dist/model/render/graph/nova-render-item.d.ts +2 -2
  413. package/dist/model/render/graph/nova-render-layer.d.ts +1 -1
  414. package/dist/model/render/graph/nova-render-payload-snapshot.d.ts +3 -1
  415. package/dist/model/render/graph/nova-render-program.d.ts +5 -3
  416. package/dist/model/render/graph/nova-render-sequence.d.ts +1 -1
  417. package/dist/model/render/graph/nova-render-stream.d.ts +2 -2
  418. package/dist/model/render/ktx2/BasisSession.d.ts +45 -0
  419. package/dist/model/render/ktx2/KTX2Container.d.ts +26 -0
  420. package/dist/model/render/ktx2/KTX2Loader.d.ts +55 -0
  421. package/dist/model/render/meshes/MeshNode.d.ts +13 -0
  422. package/dist/model/render/meshes/NovaMeshWebGLDevice.d.ts +27 -0
  423. package/dist/model/render/meshes/geometry.d.ts +7 -0
  424. package/dist/model/render/meshes/mesh.d.ts +3 -0
  425. package/dist/model/render/meshes/mesh.types.d.ts +116 -0
  426. package/dist/model/render/meshes/nova-mesh-registry.d.ts +55 -0
  427. package/dist/model/render/orchestration/NovaRenderOrchestrator.d.ts +25 -3
  428. package/dist/model/render/policy/nova-render-policy.d.ts +1 -1
  429. package/dist/model/render/resources/NovaGlyphAtlasManager.d.ts +2 -2
  430. package/dist/model/render/resources/NovaTextAtlasManager.d.ts +3 -3
  431. package/dist/model/render/resources/NovaTextLayoutEngine.d.ts +1 -1
  432. package/dist/model/render/resources/nova-bitmap-upload.d.ts +10 -0
  433. package/dist/model/render/schema/NovaRenderContext.d.ts +6 -4
  434. package/dist/model/render/schema/nova-style-compiler.d.ts +5 -2
  435. package/dist/model/render/targets/NovaNodeRenderTextureSource.d.ts +29 -0
  436. package/dist/model/render/targets/NovaRenderTargetManager.d.ts +1 -1
  437. package/dist/model/render/targets/NovaRenderTexture.d.ts +57 -0
  438. package/dist/model/render/targets/nova-render-target-refs.d.ts +5 -0
  439. package/dist/model/render/targets/nova-render-target-resource.d.ts +1 -1
  440. package/dist/model/render/targets/nova-render-texture-runtime.d.ts +71 -0
  441. package/dist/model/render/textures/nova-compressed-image.d.ts +20 -0
  442. package/dist/model/render/utils/nova-icon-rendering.d.ts +3 -1
  443. package/dist/model/render/utils/nova-image-geometry.d.ts +11 -0
  444. package/dist/model/render/utils/nova-markdown-layout.d.ts +19 -0
  445. package/dist/model/render/utils/nova-text-paint.d.ts +26 -0
  446. package/dist/model/render/utils/nova-wrapped-text-layout.d.ts +19 -0
  447. package/dist/model/runtime/app/Nova.d.ts +35 -35
  448. package/dist/model/runtime/app/NovaApp.d.ts +58 -30
  449. package/dist/model/runtime/app/NovaRaphRuntime.d.ts +2 -2
  450. package/dist/model/runtime/app/createNovaRaphRuntime.d.ts +3 -3
  451. package/dist/model/runtime/assets/NovaAssetRegistry.d.ts +89 -2
  452. package/dist/model/runtime/assets/NovaVideoTexture.d.ts +38 -0
  453. package/dist/model/runtime/assets/nova-render-texture-image-identity.d.ts +4 -0
  454. package/dist/model/runtime/commands/NovaCommandBus.d.ts +1 -1
  455. package/dist/model/runtime/components/NovaComponentNode.d.ts +6 -6
  456. package/dist/model/runtime/components/NovaComponentRegistry.d.ts +1 -1
  457. package/dist/model/runtime/components/NovaSchemaRegistry.d.ts +7 -6
  458. package/dist/model/runtime/components/nova-component-metadata.d.ts +1 -1
  459. package/dist/model/runtime/components/nova-component.decorator.d.ts +2 -2
  460. package/dist/model/runtime/components/nova-defined-component.d.ts +3 -3
  461. package/dist/model/runtime/context/nova-context.d.ts +1 -1
  462. package/dist/model/runtime/cursor/NovaCursorManager.d.ts +3 -3
  463. package/dist/model/runtime/diagnostics/NovaDiagnostics_Module.d.ts +3 -3
  464. package/dist/model/runtime/interaction/NovaEvents.d.ts +16 -6
  465. package/dist/model/runtime/interaction/NovaHitIndex.d.ts +1 -1
  466. package/dist/model/runtime/interaction/NovaSpatialIndex.d.ts +2 -2
  467. package/dist/model/runtime/scene/NovaScene.d.ts +3 -3
  468. package/dist/model/runtime/scene/nova-scene-components.d.ts +6 -6
  469. package/dist/model/runtime/state/nova-store-decorators.d.ts +1 -1
  470. package/dist/model/runtime/state/nova-store-runtime.d.ts +1 -1
  471. package/dist/model/runtime/state/nova-store-tracking.d.ts +7 -3
  472. package/dist/model/runtime/sync/NovaSyncScope.d.ts +11 -2
  473. package/dist/model/runtime/sync/nova-sync-context.d.ts +2 -2
  474. package/dist/model/runtime/sync/nova-sync-ports.d.ts +2 -2
  475. package/dist/model/runtime/sync/nova-sync.types.d.ts +15 -3
  476. package/dist/model/runtime/template/NovaTemplateRuntime.d.ts +6 -6
  477. package/dist/model/runtime/tree/NovaContainer.d.ts +4 -4
  478. package/dist/model/runtime/tree/NovaNode.d.ts +58 -18
  479. package/dist/model/runtime/tree/NovaRaphNode.d.ts +8 -2
  480. package/dist/model/runtime/tree/NovaSurface.d.ts +32 -10
  481. package/dist/model/runtime/tree/nova-node-capture-invalidation.d.ts +11 -0
  482. package/dist/model/semantic/NovaSemanticService.d.ts +1 -1
  483. package/dist/model/semantic/browser/createAccessibilityBridge.d.ts +29 -0
  484. package/dist/model/sound/NovaSoundEngine.d.ts +3 -2
  485. package/dist/model/text-selection/NovaTextSelectionService.d.ts +2 -2
  486. package/dist/model/text-selection/index.d.ts +2 -2
  487. package/dist/model/text-selection/nova-text-selection.types.d.ts +1 -1
  488. package/dist/model/theme/NovaGlobalThemeRegistry.d.ts +2 -2
  489. package/dist/model/theme/NovaThemeService.d.ts +5 -3
  490. package/dist/model/theme/createTokenTheme.d.ts +15 -0
  491. package/dist/model/tools/transform-tools.d.ts +43 -0
  492. package/dist/nodes--Ds4IS2h.js +621 -0
  493. package/dist/nova-color-parser-BCN_rFRN.js +250 -0
  494. package/dist/nova-compressed-image-CE2Ya9Xa.js +46 -0
  495. package/dist/nova-mesh-registry-B7Xz5mhU.js +24 -0
  496. package/dist/nova-render-texture-image-identity-DQ09XFKs.js +15 -0
  497. package/dist/nova-text-paint-CcntsRjI.js +48 -0
  498. package/dist/tokens.d.ts +2 -0
  499. package/dist/tokens.js +50 -0
  500. package/dist/vec4-BTNv1fUp.js +20 -0
  501. package/package.json +229 -4
@@ -0,0 +1,634 @@
1
+ import { N as b, p as Re, w as je, a as qe } from "../Errors-B2ekO9bZ.js";
2
+ import { G as $e } from "../GLTFResourceIO-CYJyCUTt.js";
3
+ import { B as Je, b as Ee, l as Ge, a as Le, s as Xe, t as Ye, d as ze, j as Ke, i as He, m as _e, g as Qe, o as et, f as le, w as tt, h as Ue, e as rt, r as Pe, u as ge, v as nt } from "../PolygonMesh-D4PnnfIo.js";
4
+ import { l as st, i as ot, b as at } from "../LoaderIO-BwrM84OM.js";
5
+ import { c as it } from "../Clip-CAN7t03k.js";
6
+ import { i as ct, r as lt, a as Ne } from "../ZipReader-C-MSEsSr.js";
7
+ const ut = /^(?:bool|u?char|u?int(?:64)?|half[234]?|float[234]?|double[234]?|point3[hfd]|normal3[hfd]|vector3[hfd]|color[34][hfd]|texCoord[23][hfd]|quat[hfd]|matrix[234]d|frame4d|timecode)$/, Ae = 128;
8
+ function Ze(r) {
9
+ return /^#usda\s+1\./.test(r);
10
+ }
11
+ function ft(r, s) {
12
+ if (!Ze(r))
13
+ throw new b("format", '[Nova3D] USDA layer must start with "#usda 1.0".');
14
+ let e = r.indexOf(`
15
+ `);
16
+ e = e < 0 ? r.length : e + 1;
17
+ let S = 0;
18
+ const y = r.length, i = (o) => {
19
+ throw new b(Re(o), `[Nova3D] USDA ${o} at offset ${e}.`);
20
+ }, N = () => {
21
+ if (++S > s.maxRecords)
22
+ throw new b("budget", "[Nova3D] USD record budget exceeded.");
23
+ }, Z = () => {
24
+ for (; e < y; ) {
25
+ const o = r.charCodeAt(e);
26
+ if (o === 32 || o === 9 || o === 10 || o === 13 || o === 59)
27
+ e++;
28
+ else if (o === 35)
29
+ for (; e < y && r.charCodeAt(e) !== 10; )
30
+ e++;
31
+ else
32
+ break;
33
+ }
34
+ }, v = () => (Z(), r[e] ?? ""), x = (o) => {
35
+ v() !== o && i(`expected ${JSON.stringify(o)}`), e++;
36
+ }, A = () => {
37
+ Z();
38
+ const o = e;
39
+ for (; e < y && /[\w:.[\]!-]/.test(r[e]); )
40
+ e++;
41
+ return o === e && i("expected an identifier"), r.slice(o, e);
42
+ }, $ = () => {
43
+ Z();
44
+ const o = r[e];
45
+ if (r.startsWith(o.repeat(3), e)) {
46
+ const d = r.indexOf(o.repeat(3), e + 3);
47
+ d < 0 && i("unterminated string");
48
+ const u = r.slice(e + 3, d);
49
+ return e = d + 3, u;
50
+ }
51
+ let l = "";
52
+ for (e++; e < y && r[e] !== o; )
53
+ if (r[e] === "\\" && e + 1 < y) {
54
+ const d = r[e + 1];
55
+ l += d === "n" ? `
56
+ ` : d === "t" ? " " : d, e += 2;
57
+ } else
58
+ l += r[e++];
59
+ return r[e] !== o && i("unterminated string"), e++, l;
60
+ }, E = () => {
61
+ Z();
62
+ const o = e;
63
+ for (; e < y && /[\w.+-]/.test(r[e]); )
64
+ e++;
65
+ const l = r.slice(o, e), d = l === "inf" ? 1 / 0 : l === "-inf" ? -1 / 0 : l === "nan" ? Number.NaN : Number(l);
66
+ return (!l || Number.isNaN(d) && l !== "nan") && i("expected a number"), d;
67
+ }, ne = () => {
68
+ x("[");
69
+ let o = new Float64Array(64), l = 0, d = 0;
70
+ for (; ; ) {
71
+ Z();
72
+ const u = r[e];
73
+ if (u === void 0 && i("unterminated array"), u === "]" && d === 0) {
74
+ e++;
75
+ break;
76
+ }
77
+ if (u === "(") {
78
+ d++, e++;
79
+ continue;
80
+ }
81
+ if (u === ")") {
82
+ d--, e++, d < 0 && i("unbalanced tuple");
83
+ continue;
84
+ }
85
+ if (u === ",") {
86
+ e++;
87
+ continue;
88
+ }
89
+ if (l === o.length) {
90
+ if (l * 16 > s.maxArrayBytes)
91
+ throw new b("budget", "[Nova3D] USD array exceeds its byte limit.");
92
+ const g = new Float64Array(l * 2);
93
+ g.set(o), o = g;
94
+ }
95
+ if (r.startsWith("true", e) || r.startsWith("false", e)) {
96
+ o[l++] = r[e] === "t" ? 1 : 0, e += r[e] === "t" ? 4 : 5;
97
+ continue;
98
+ }
99
+ o[l++] = E();
100
+ }
101
+ return d !== 0 && i("unbalanced tuple"), o.slice(0, l);
102
+ }, I = (o = 0) => {
103
+ o > Ae && i("value nesting is too deep");
104
+ const l = v();
105
+ if (l === '"' || l === "'")
106
+ return $();
107
+ if (l === "@") {
108
+ const u = r.startsWith("@@@", e), g = r.indexOf(u ? "@@@" : "@", e + (u ? 3 : 1));
109
+ g < 0 && i("unterminated asset path");
110
+ const k = r.slice(e + (u ? 3 : 1), g);
111
+ return e = g + (u ? 3 : 1), { asset: k };
112
+ }
113
+ if (l === "<") {
114
+ const u = r.indexOf(">", e);
115
+ u < 0 && i("unterminated path");
116
+ const g = r.slice(e + 1, u);
117
+ return e = u + 1, { path: g };
118
+ }
119
+ if (l === "[" || l === "(") {
120
+ const u = l === "[" ? "]" : ")";
121
+ e++;
122
+ const g = [];
123
+ for (; v() !== u; )
124
+ e >= y && i("unterminated list"), g.push(I(o + 1)), v() === "," && e++;
125
+ return e++, g.length && g.every((k) => typeof k == "number") ? Float64Array.from(g) : g;
126
+ }
127
+ if (l === "{") {
128
+ if (e++, Z(), /[-\d.]/.test(r[e] ?? "")) {
129
+ const g = [];
130
+ for (; v() !== "}"; ) {
131
+ const k = E();
132
+ if (x(":"), g.push({ time: k, value: I(o + 1) }), v() === "," && e++, g.length > s.maxRecords)
133
+ throw new b("budget", "[Nova3D] USD record budget exceeded.");
134
+ }
135
+ return e++, { samples: g };
136
+ }
137
+ const u = {};
138
+ for (; v() !== "}"; ) {
139
+ e >= y && i("unterminated dictionary"), A();
140
+ const g = v() === '"' || v() === "'" ? $() : A();
141
+ x("="), u[g] = I(o + 1);
142
+ }
143
+ return e++, { dictionary: u };
144
+ }
145
+ if (/[-\d.]/.test(l))
146
+ return E();
147
+ const d = A();
148
+ return d === "None" ? null : d === "true" || d === "false" ? d === "true" : d === "inf" || d === "nan" ? d === "inf" ? 1 / 0 : Number.NaN : d;
149
+ }, G = () => {
150
+ const o = {};
151
+ for (x("("); v() !== ")"; ) {
152
+ if (e >= y && i("unterminated metadata"), v() === '"' || v() === "'") {
153
+ o.doc = $();
154
+ continue;
155
+ }
156
+ let l = A();
157
+ ["prepend", "append", "delete", "add", "reorder"].includes(l) && (l = A()), v() === "=" && (e++, o[l] = I());
158
+ }
159
+ return e++, o;
160
+ }, te = (o) => (Array.isArray(o) ? o : [o]).flatMap((d) => d && typeof d == "object" && "path" in d ? [d.path] : []);
161
+ let L;
162
+ const _ = (o, l, d) => {
163
+ d > Ae && i("prim nesting is too deep"), N();
164
+ const u = v() === '"' ? "" : A();
165
+ v() !== '"' && i("prim requires a quoted name");
166
+ const g = $();
167
+ /^[A-Z_]\w*$/i.test(g) || i("invalid prim name");
168
+ const k = `${l}/${g}`, J = { specifier: o, type: u, name: g, path: k, metadata: v() === "(" ? G() : {}, properties: /* @__PURE__ */ new Map(), children: [] };
169
+ return x("{"), L(J, d), J;
170
+ };
171
+ L = (o, l) => {
172
+ for (; ; ) {
173
+ const d = v();
174
+ if (d === "}") {
175
+ e++;
176
+ return;
177
+ }
178
+ d || i("unterminated prim");
179
+ let u = A();
180
+ if (u === "def" || u === "over" || u === "class") {
181
+ o.children.push(_(u, o.path, l + 1));
182
+ continue;
183
+ }
184
+ if (u === "variantSet") {
185
+ for ($(), x("="), x("{"); v() !== "}"; )
186
+ $(), v() === "(" && G(), x("{"), L({ specifier: "over", type: "", name: "", path: o.path, metadata: {}, properties: /* @__PURE__ */ new Map(), children: [] }, l + 1);
187
+ e++;
188
+ continue;
189
+ }
190
+ for (["prepend", "append", "delete", "add", "reorder"].includes(u) && (u = A()), N(); u === "custom" || u === "uniform" || u === "varying" || u === "config"; )
191
+ u = A();
192
+ if (u === "rel") {
193
+ const B = A(), C = { name: B, type: "rel", metadata: {}, targets: [] };
194
+ v() === "=" && (e++, C.targets = te(I())), v() === "(" && (C.metadata = G()), o.properties.set(B, C);
195
+ continue;
196
+ }
197
+ const g = u;
198
+ let k = A(), J = "";
199
+ for (const B of [".connect", ".timeSamples"])
200
+ k.endsWith(B) && (J = B, k = k.slice(0, -B.length));
201
+ const F = o.properties.get(k) ?? { name: k, type: g, metadata: {} };
202
+ if (o.properties.set(k, F), v() === "=") {
203
+ e++;
204
+ const B = g.replace(/\[\]$/, "");
205
+ if (J === ".connect")
206
+ F.connect = te(I());
207
+ else if (J === ".timeSamples") {
208
+ let C = I();
209
+ C && typeof C == "object" && "dictionary" in C && !Object.keys(C.dictionary).length && (C = { samples: [] }), (!C || typeof C != "object" || !("samples" in C)) && i("timeSamples require a dictionary of samples"), F.timeSamples = C;
210
+ } else g.endsWith("[]") && ut.test(B) && v() === "[" ? F.value = ne() : F.value = I();
211
+ }
212
+ v() === "(" && Object.assign(F.metadata, G());
213
+ }
214
+ };
215
+ const se = { metadata: v() === "(" ? G() : {}, prims: [] };
216
+ for (; v(); ) {
217
+ const o = A();
218
+ o !== "def" && o !== "over" && o !== "class" && i(`unexpected ${JSON.stringify(o)}`), se.prims.push(_(o, "", 0));
219
+ }
220
+ return se;
221
+ }
222
+ const Me = new TextDecoder("utf-8"), ke = "PXR-USDC", dt = /* @__PURE__ */ new Set(["Material", "Shader", "NodeGraph", "GeomSubset"]);
223
+ function Ce(r) {
224
+ for (let s = 0; s < ke.length; s++)
225
+ if (r[s] !== ke.charCodeAt(s))
226
+ return !1;
227
+ return !0;
228
+ }
229
+ function P(r) {
230
+ if (typeof r == "number")
231
+ return [r];
232
+ if (typeof r == "boolean")
233
+ return [r ? 1 : 0];
234
+ if (r instanceof Float64Array)
235
+ return Array.from(r);
236
+ if (Array.isArray(r) && r.every((s) => s instanceof Float64Array || typeof s == "number"))
237
+ return r.flatMap((s) => typeof s == "number" ? [s] : Array.from(s));
238
+ }
239
+ function q(r) {
240
+ return typeof r == "string" ? r : void 0;
241
+ }
242
+ function ue(r, s) {
243
+ const e = r instanceof Float64Array ? r : P(r);
244
+ if (!e)
245
+ return;
246
+ const S = new Int32Array(e.length);
247
+ for (let y = 0; y < e.length; y++) {
248
+ const i = e[y];
249
+ if (!Number.isInteger(i) || i < -2147483648 || i > 2147483647)
250
+ throw new b("format", `[Nova3D] USD ${s} must contain 32-bit integers.`);
251
+ S[y] = i;
252
+ }
253
+ return S;
254
+ }
255
+ function Oe(r, s) {
256
+ switch (q(r?.metadata.interpolation)) {
257
+ case "faceVarying":
258
+ return "polygon-vertex";
259
+ case "vertex":
260
+ case "varying":
261
+ return "vertex";
262
+ case "uniform":
263
+ return "polygon";
264
+ case "constant":
265
+ return "all";
266
+ default:
267
+ return s;
268
+ }
269
+ }
270
+ function pt(r, s) {
271
+ const e = (s.startsWith("/") ? s.slice(1) : `${r}${s}`).split("/"), S = [];
272
+ for (const y of e)
273
+ y === ".." ? S.pop() : y && y !== "." && S.push(y);
274
+ return S.join("/");
275
+ }
276
+ async function mt(r, s) {
277
+ const e = new Je(s.maxDecompressedBytes, "USDZ decompressed");
278
+ let S, y, i = "";
279
+ if (ct(r)) {
280
+ const v = lt(r, Math.min(s.maxRecords, 65535));
281
+ S = new Map(v.map(($) => [$.name, $]));
282
+ const x = v.find(($) => /\.usd[ac]?$/i.test($.name));
283
+ if (!x)
284
+ throw new b("format", "[Nova3D] USDZ archive has no USD layer.");
285
+ const A = await Ne(r, x, e, s.signal);
286
+ if (Ce(A))
287
+ throw new b("unsupported", "[Nova3D] Binary USDC (crate) layers are not supported; convert the USDZ to USDA (usdcat) or glTF.");
288
+ y = Me.decode(A), i = x.name.includes("/") ? x.name.slice(0, x.name.lastIndexOf("/") + 1) : "";
289
+ } else {
290
+ if (Ce(r))
291
+ throw new b("unsupported", "[Nova3D] Binary USDC (crate) layers are not supported; convert the USDZ to USDA (usdcat) or glTF.");
292
+ if (y = Me.decode(r), !Ze(y))
293
+ throw new b("format", "[Nova3D] Data is neither a USDZ archive nor a USDA layer.");
294
+ }
295
+ s.signal?.throwIfAborted();
296
+ const N = ft(y, { maxRecords: s.maxRecords, maxArrayBytes: s.maxDecompressedBytes });
297
+ return await ht(N, s, async (v) => {
298
+ if (!S)
299
+ return { uri: v, baseUrl: s.baseUrl };
300
+ const x = S.get(pt(i, v));
301
+ return x ? { bytes: await Ne(r, x, e, s.signal) } : null;
302
+ });
303
+ }
304
+ async function ht(r, s, e) {
305
+ const S = [], y = /* @__PURE__ */ new Set(), i = (n, a) => {
306
+ y.has(a) || (y.add(a), S.push(je(n, a)));
307
+ }, N = r.metadata;
308
+ N.subLayers !== void 0 && i("unsupported", "USD subLayers are not composed.");
309
+ const Z = q(N.upAxis) ?? "Y";
310
+ if (Z !== "Y" && Z !== "Z")
311
+ throw new b("format", "[Nova3D] USD upAxis must be Y or Z.");
312
+ const v = typeof N.metersPerUnit == "number" && N.metersPerUnit > 0 && Number.isFinite(N.metersPerUnit) ? N.metersPerUnit : 0.01, x = Ee([1, 0, 0], s.convertAxes && Z === "Z" ? [0, 0, 1] : [0, 1, 0], s.convertAxes && Z === "Z" ? [0, -1, 0] : [0, 0, 1], s.convertUnits ? v : 1), A = (n) => Ke(x.matrix, x.inverse, n), $ = typeof N.timeCodesPerSecond == "number" && N.timeCodesPerSecond > 0 ? N.timeCodesPerSecond : typeof N.framesPerSecond == "number" && N.framesPerSecond > 0 ? N.framesPerSecond : 24, E = /* @__PURE__ */ new Map(), ne = /* @__PURE__ */ new Map(), I = r.prims.map((n) => [n, void 0]);
313
+ for (; I.length; ) {
314
+ const [n, a] = I.pop();
315
+ if (E.has(n.path))
316
+ throw new b("format", "[Nova3D] USD prim paths must be unique.");
317
+ E.set(n.path, n), ne.set(n, a);
318
+ for (const t of n.children)
319
+ I.push([t, n]);
320
+ (n.metadata.references !== void 0 || n.metadata.payload !== void 0 || n.metadata.inherits !== void 0) && i("unsupported", "USD references, payloads and inherits are not composed.");
321
+ }
322
+ const G = (n) => E.get(n.split(".")[0]), te = (n) => n?.timeSamples?.samples.map((a) => a.time) ?? [], L = (n, a) => {
323
+ if (!n)
324
+ return;
325
+ const t = n.timeSamples?.samples.filter((O) => P(O.value) !== void 0) ?? [];
326
+ if (!t.length || a === void 0 && n.value !== void 0)
327
+ return P(n.value);
328
+ const c = a ?? t[0].time;
329
+ if (c <= t[0].time)
330
+ return P(t[0].value);
331
+ const h = t[t.length - 1];
332
+ if (c >= h.time)
333
+ return P(h.value);
334
+ let p = 0;
335
+ for (; t[p + 1].time <= c; )
336
+ p++;
337
+ const m = P(t[p].value), U = P(t[p + 1].value), w = (c - t[p].time) / (t[p + 1].time - t[p].time);
338
+ return m.map((O, D) => O + ((U[D] ?? O) - O) * w);
339
+ }, _ = (n) => {
340
+ const a = n.properties.get("xformOpOrder")?.value;
341
+ return Array.isArray(a) ? a.flatMap((t) => {
342
+ if (typeof t != "string")
343
+ return [];
344
+ if (t === "!resetXformStack!")
345
+ return i("unsupported", "USD !resetXformStack! is not supported."), [];
346
+ const c = t.startsWith("!invert!"), h = c ? t.slice(8) : t, p = n.properties.get(h);
347
+ if (!p)
348
+ throw new b("format", `[Nova3D] USD xformOpOrder names a missing op ${JSON.stringify(h)}.`);
349
+ const [, m = "", U = ""] = h.split(":");
350
+ return [{ property: p, kind: m, suffix: U, invert: c }];
351
+ }) : [];
352
+ }, se = (n, a) => {
353
+ if (!a)
354
+ throw new b("format", "[Nova3D] USD xformOp has no value.");
355
+ const t = (c, h = 0) => {
356
+ const p = a[c] ?? h;
357
+ if (!Number.isFinite(p))
358
+ throw new b("format", "[Nova3D] USD xformOp values must be finite.");
359
+ return p;
360
+ };
361
+ switch (n) {
362
+ case "translate":
363
+ return rt(t(0), t(1), t(2));
364
+ case "scale":
365
+ return a.length === 1 ? Ue(t(0), t(0), t(0)) : Ue(t(0, 1), t(1, 1), t(2, 1));
366
+ case "rotateX":
367
+ return le(t(0), 0, 0, "X");
368
+ case "rotateY":
369
+ return le(0, t(0), 0, "Y");
370
+ case "rotateZ":
371
+ return le(0, 0, t(0), "Z");
372
+ case "orient": {
373
+ const c = Math.hypot(t(0), t(1), t(2), t(3));
374
+ if (!(c > 0))
375
+ throw new b("format", "[Nova3D] USD orient quaternion is zero.");
376
+ return tt([t(1) / c, t(2) / c, t(3) / c, t(0) / c]);
377
+ }
378
+ case "transform":
379
+ if (a.length !== 16)
380
+ throw new b("format", "[Nova3D] USD xformOp:transform requires a 4x4 matrix.");
381
+ return Float64Array.from(a, (c, h) => t(h));
382
+ default: {
383
+ const c = /^rotate([XYZ]{3})$/.exec(n);
384
+ if (c && new Set(c[1]).size === 3)
385
+ return le(t(0), t(1), t(2), c[1]);
386
+ throw new b("unsupported", `[Nova3D] USD xformOp ${JSON.stringify(n)} is not supported.`);
387
+ }
388
+ }
389
+ }, o = (n, a) => {
390
+ let t = He();
391
+ for (const c of _(n)) {
392
+ const h = se(c.kind, L(c.property, a));
393
+ t = _e(t, c.invert ? Qe(h) : h);
394
+ }
395
+ return t;
396
+ }, l = [], d = [], u = /* @__PURE__ */ new Map();
397
+ let g = !1;
398
+ const k = () => {
399
+ g || (g = !0, i("approximated", "A USD transform has shear; it was approximated by translation, rotation and scale."));
400
+ }, J = (n, a) => {
401
+ if (n.specifier !== "def" || dt.has(n.type) || n.metadata.active === !1 || q(n.properties.get("visibility")?.value) === "invisible")
402
+ return;
403
+ if (l.length >= s.maxNodes)
404
+ throw new b("budget", "[Nova3D] USD node budget exceeded.");
405
+ (n.type === "Skeleton" || n.type === "SkelRoot") && i("unsupported", "UsdSkel skinning is not supported; meshes render in their rest pose.");
406
+ const t = ze(A(o(n)));
407
+ t.shear && k();
408
+ const c = l.length;
409
+ l.push({ name: n.name, transform: t.transform, children: [] }), u.set(n, c), a >= 0 ? l[a].children.push(c) : d.push(c);
410
+ for (const h of n.children)
411
+ J(h, c);
412
+ };
413
+ for (const n of r.prims)
414
+ J(n, -1);
415
+ const F = [], B = /* @__PURE__ */ new Map(), C = [], we = /* @__PURE__ */ new Map(), Te = (n) => {
416
+ let a = we.get(n);
417
+ return a || (a = e(n).then((t) => t ? (C.push({ ...t, label: JSON.stringify(n) }), C.length - 1) : (i("skipped", `USD texture ${JSON.stringify(n)} is not in the archive.`), null)), we.set(n, a)), a;
418
+ }, T = (n, a, t = 0) => {
419
+ const c = n.properties.get(`inputs:${a}`);
420
+ if (!c)
421
+ return {};
422
+ const h = c.connect?.[0];
423
+ if (h && t < 16) {
424
+ const p = G(h), m = h.slice(h.indexOf(".") + 1);
425
+ if (p && m.startsWith("outputs:"))
426
+ return { source: p, output: m.slice(8) };
427
+ if (p && m.startsWith("inputs:"))
428
+ return T(p, m.slice(7), t + 1);
429
+ }
430
+ return { value: c.value };
431
+ }, Q = (n) => q(n.properties.get("info:id")?.value) ?? "", Fe = { r: 0, g: 1, b: 2, a: 3 }, Y = async (n, a, t) => {
432
+ const c = T(n, a);
433
+ if (!c.source)
434
+ return;
435
+ const h = c.source;
436
+ if (Q(h) !== "UsdUVTexture")
437
+ return i("unsupported", `USD input ${a} is connected to an unsupported shader ${JSON.stringify(Q(h))}.`), null;
438
+ const p = T(h, "file").value;
439
+ if (!p || typeof p != "object" || !("asset" in p) || !p.asset)
440
+ return null;
441
+ const m = (D) => {
442
+ const M = q(T(h, D).value);
443
+ return M === "mirror" ? "mirror" : M === "clamp" || M === "black" ? "clamp" : "repeat";
444
+ };
445
+ let U = null, w = T(h, "st").source;
446
+ if (w && Q(w) === "UsdTransform2d") {
447
+ const D = P(T(w, "scale").value) ?? [1, 1], M = P(T(w, "translation").value) ?? [0, 0];
448
+ (P(T(w, "rotation").value)?.[0] ?? 0) !== 0 && i("ignored", "USD UsdTransform2d rotation is not supported and was ignored."), U = { offset: [M[0], 1 - D[1] - M[1]], scale: [D[0], D[1]] }, w = T(w, "in").source;
449
+ }
450
+ if (w && Q(w).startsWith("UsdPrimvarReader")) {
451
+ const D = q(T(w, "varname").value);
452
+ D && t.add(D);
453
+ }
454
+ const O = await Te(p.asset);
455
+ return O === null ? null : { source: O, channel: Fe[c.output ?? "r"] ?? 0, wrapS: m("wrapS"), wrapT: m("wrapT"), transform: U };
456
+ }, De = /* @__PURE__ */ new Map(), Be = async (n, a, t) => {
457
+ const c = `${n ?? ""}|${a}|${n ? "" : t?.join(",") ?? ""}`, h = B.get(c);
458
+ if (h !== void 0)
459
+ return h;
460
+ const p = F.length;
461
+ B.set(c, p);
462
+ const m = et();
463
+ F.push(m), m.side = a ? "double" : "front";
464
+ const U = /* @__PURE__ */ new Set();
465
+ De.set(p, U);
466
+ const w = n ? E.get(n) : void 0;
467
+ if (!w)
468
+ return n && i("skipped", `USD material ${JSON.stringify(n)} was not found.`), t && t.length >= 3 && (m.baseColor = [t[0], t[1], t[2], 1]), p;
469
+ const O = w.properties.get("outputs:surface")?.connect?.[0];
470
+ let D = O ? G(O) : void 0;
471
+ if (D ??= w.children.find((j) => j.type === "Shader" && Q(j) === "UsdPreviewSurface"), !D || Q(D) !== "UsdPreviewSurface")
472
+ return i("approximated", "Only UsdPreviewSurface materials are supported; a default material was used."), p;
473
+ m.type = "pbr";
474
+ const M = (j, K) => {
475
+ const f = P(T(D, j).value);
476
+ return f && Number.isFinite(f[0]) ? f[0] : K;
477
+ }, X = (j, K) => {
478
+ const f = P(T(D, j).value);
479
+ return f && f.length >= 3 && f.slice(0, 3).every(Number.isFinite) ? f.slice(0, 3) : [...K];
480
+ };
481
+ M("useSpecularWorkflow", 0) !== 0 && i("approximated", "USD specular workflow is approximated by the metallic workflow.");
482
+ const V = X("diffuseColor", [0.18, 0.18, 0.18]), W = Math.min(1, Math.max(0, M("opacity", 1))), ee = M("opacityThreshold", 0);
483
+ m.baseColor = [V[0], V[1], V[2], W], m.emissive = X("emissiveColor", [0, 0, 0]), m.metallic = M("metallic", 0), m.roughness = M("roughness", 0.5);
484
+ const z = await Y(D, "diffuseColor", U);
485
+ z && (m.baseColorMap = z, m.baseColor = [1, 1, 1, W]);
486
+ const R = await Y(D, "opacity", U);
487
+ R && (z && R.source === z.source && R.channel === 3 ? m.baseColor[3] = 1 : i("unsupported", "USD opacity maps other than the diffuse texture alpha are not supported."));
488
+ const he = R != null;
489
+ m.alphaMode = ee > 0 ? "mask" : W < 1 || he ? "blend" : "opaque", m.alphaCutoff = ee > 0 ? ee : 0.5;
490
+ const ie = await Y(D, "emissiveColor", U);
491
+ ie && (m.emissiveMap = ie, m.emissive = [1, 1, 1]), m.normalMap = await Y(D, "normal", U) ?? void 0, m.occlusionMap = await Y(D, "occlusion", U) ?? void 0;
492
+ const re = await Y(D, "metallic", U);
493
+ re && (m.metallicMap = re, m.metallic = 1);
494
+ const ce = await Y(D, "roughness", U);
495
+ return ce && (m.roughnessMap = ce, m.roughness = 1), p;
496
+ }, Ve = (n) => {
497
+ let a = n;
498
+ for (; a; ) {
499
+ const t = (a.properties.get("material:binding") ?? a.properties.get("material:binding:preview"))?.targets?.[0];
500
+ if (t)
501
+ return t;
502
+ a = ne.get(a);
503
+ }
504
+ }, fe = [], de = [];
505
+ let Se = s.maxVertices, be = 0;
506
+ for (const [n, a] of u) {
507
+ if (n.type !== "Mesh") {
508
+ ["Cube", "Sphere", "Cylinder", "Cone", "Capsule", "Plane", "Points", "BasisCurves", "NurbsPatch"].includes(n.type) && i("unsupported", `USD ${n.type} prims are not supported.`);
509
+ continue;
510
+ }
511
+ s.signal?.throwIfAborted();
512
+ const t = (f) => n.properties.get(f), c = L(t("points")), h = ue(t("faceVertexCounts")?.value, "faceVertexCounts"), p = ue(t("faceVertexIndices")?.value, "faceVertexIndices");
513
+ if (!c || !h || !p) {
514
+ i("skipped", `USD mesh ${JSON.stringify(n.path)} has no points or faces and was skipped.`);
515
+ continue;
516
+ }
517
+ const m = q(t("subdivisionScheme")?.value);
518
+ m && m !== "none" && i("approximated", "USD subdivision surfaces render as their control mesh.");
519
+ const U = t("doubleSided")?.value === !0 || t("doubleSided")?.value === 1, w = t("primvars:displayColor"), O = P(w?.value), D = Oe(w, "all"), M = n.children.filter((f) => f.type === "GeomSubset" && q(f.properties.get("familyName")?.value) === "materialBind");
520
+ let X;
521
+ const V = [Ve(n)];
522
+ M.length && (X = new Int32Array(h.length), M.forEach((f, ve) => {
523
+ const ye = ue(f.properties.get("indices")?.value, "GeomSubset indices") ?? new Int32Array(0);
524
+ for (const H of ye) {
525
+ if (H < 0 || H >= h.length)
526
+ throw new b("format", "[Nova3D] USD GeomSubset face index is out of range.");
527
+ X[H] = ve + 1;
528
+ }
529
+ V.push(f.properties.get("material:binding")?.targets?.[0] ?? V[0]);
530
+ }));
531
+ const W = [];
532
+ for (const f of V)
533
+ W.push(await Be(f, U, f ? void 0 : D === "all" ? O : void 0));
534
+ const z = [...new Set(W.flatMap((f) => [...De.get(f) ?? []])), "st", "st0", "UVMap", "uv"].find((f) => t(`primvars:${f}`)?.value !== void 0) ?? [...n.properties.values()].find((f) => /^primvars:[^:]+$/.test(f.name) && /^(?:texCoord2[fdh]|float2)\[\]$/.test(f.type))?.name.slice(9), R = (f, ve, ye) => {
535
+ const H = t(f), xe = H?.value instanceof Float64Array ? H.value : void 0;
536
+ if (xe)
537
+ return { mapping: Oe(H, ve), values: xe, size: ye, indices: ue(t(`${f}:indices`)?.value, `${f}:indices`) };
538
+ }, he = R("primvars:normals", "vertex", 3) ?? R("normals", "vertex", 3), ie = z ? R(`primvars:${z}`, "vertex", 2) : void 0, re = D !== "all" && O && !V.some((f) => f) ? R("primvars:displayColor", "vertex", 3) : void 0, ce = q(t("orientation")?.value) === "leftHanded", j = Ge({ points: Float64Array.from(c), counts: h, indices: p, normals: he, uvs: ie, colors: re, groups: X, groupCount: V.length, matrix: x.matrix, flipWinding: x.mirrored !== ce, flipV: !0, maxVertices: Se });
539
+ if (Se -= j.vertexCount, j.skipped && i("skipped", "USD faces with fewer than three corners were skipped."), re)
540
+ for (const f of W)
541
+ F[f].baseColor = [1, 1, 1, 1];
542
+ const K = j.groups.map((f) => (fe.push({ positions: f.positions, normals: f.normals, uvs: f.uvs, colors: f.colors, colorSpace: "linear", indices: f.indices }), { geometry: fe.length - 1, material: W[f.group] }));
543
+ if (be += K.length, be > s.maxPrimitives)
544
+ throw new b("budget", "[Nova3D] USD primitive budget exceeded.");
545
+ K.length && (l[a].mesh = de.length, de.push({ primitives: K, weights: [] }));
546
+ }
547
+ const oe = [];
548
+ let pe = s.maxAnimationKeys, ae = typeof N.startTimeCode == "number" ? N.startTimeCode : 1 / 0;
549
+ for (const n of u.keys())
550
+ for (const a of _(n))
551
+ for (const t of te(a.property))
552
+ ae = Math.min(ae, t);
553
+ let me = 0;
554
+ for (const [n, a] of u) {
555
+ const c = _(n).filter((w) => (w.property.timeSamples?.samples.length ?? 0) > 0);
556
+ if (!c.length)
557
+ continue;
558
+ const h = c.map((w) => Float64Array.from(te(w.property)).sort());
559
+ let p = Le(h, pe);
560
+ const m = c.filter((w) => w.kind.startsWith("rotate"));
561
+ p = Xe(p, (w, O) => {
562
+ let D = 0;
563
+ for (const M of m) {
564
+ const X = L(M.property, w) ?? [], V = L(M.property, O) ?? [];
565
+ X.forEach((W, ee) => {
566
+ D = Math.max(D, Math.abs((V[ee] ?? W) - W));
567
+ });
568
+ }
569
+ return D / 30;
570
+ }, pe), pe -= p.length;
571
+ const U = p.map((w) => (w - ae) / $);
572
+ oe.push(...Ye(String(a), U, (w) => A(o(n, w * $ + ae)), l[a].transform, k)), me = Math.max(me, U[U.length - 1]);
573
+ }
574
+ if (oe.length > 1024)
575
+ throw new b("format", "[Nova3D] USD animation exceeds 1024 tracks.");
576
+ const We = oe.length ? [it({ name: q(N.defaultPrim) ?? "default", duration: me, tracks: oe })] : [];
577
+ return { nodes: l, roots: d, geometries: fe, meshes: de, materials: F, textures: C, skins: [], clips: We, warnings: S };
578
+ }
579
+ function vt(r, s) {
580
+ if (typeof r == "string") {
581
+ if (r.length > s)
582
+ throw new b("budget", "[Nova3D] USDZ file exceeds its byte limit.");
583
+ return new TextEncoder().encode(r);
584
+ }
585
+ if (!ot(r))
586
+ throw new b("invalid-option", "[Nova3D] parseUSDZ accepts bytes or USDA text.");
587
+ if (r.byteLength > s)
588
+ throw new b("budget", "[Nova3D] USDZ file exceeds its byte limit.");
589
+ return at(r);
590
+ }
591
+ async function Ie(r, s, e) {
592
+ try {
593
+ return await yt(r, s, e);
594
+ } catch (S) {
595
+ throw qe(S);
596
+ }
597
+ }
598
+ async function yt(r, s, e) {
599
+ const S = ge(e, s.limits), y = await mt(r, {
600
+ maxRecords: S.maxRecords,
601
+ maxDecompressedBytes: S.maxDecompressedBytes,
602
+ maxNodes: S.maxNodes,
603
+ maxVertices: S.maxVertices,
604
+ maxPrimitives: S.maxParts,
605
+ maxAnimationKeys: S.maxAnimationKeys,
606
+ convertUnits: s.convertUnits ?? !0,
607
+ convertAxes: s.convertAxes ?? !0,
608
+ baseUrl: s.baseUrl,
609
+ signal: e.signal
610
+ });
611
+ return e.check(), nt(e, y);
612
+ }
613
+ async function Ut(r, s = {}) {
614
+ const e = new $e(Pe(s, "USDZ", !0));
615
+ try {
616
+ const S = ge(e, s.limits);
617
+ return await Ie(vt(r, S.maxInputBytes), s, e);
618
+ } finally {
619
+ e.dispose();
620
+ }
621
+ }
622
+ async function Nt(r, s = {}) {
623
+ const e = new $e(Pe(s, "USDZ", !1));
624
+ try {
625
+ const S = ge(e, s.limits), y = st(r).href, i = await e.read(y, "container", void 0, S.maxInputBytes);
626
+ return await Ie(i, { ...s, baseUrl: y }, e);
627
+ } finally {
628
+ e.dispose();
629
+ }
630
+ }
631
+ export {
632
+ Nt as loadUSDZ,
633
+ Ut as parseUSDZ
634
+ };
@@ -0,0 +1,2 @@
1
+ export { createXR, Nova3DXR } from '../features/3d/xr/XR.js';
2
+ export type { XRController3D, XRMode3D, XROptions3D, XRSelectEvent3D, XRStartOptions3D } from '../features/3d/xr/XR.js';