@carbonenginejs/runtime-resource 0.1.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 (372) hide show
  1. package/FORMAT-PROVENANCE.md +135 -0
  2. package/LICENSE +21 -0
  3. package/NOTICE +29 -0
  4. package/README.md +241 -0
  5. package/dist/CjsMotherLode.js +56 -0
  6. package/dist/CjsMotherLode.js.map +1 -0
  7. package/dist/CjsResMan.js +740 -0
  8. package/dist/CjsResMan.js.map +1 -0
  9. package/dist/CjsResManQueue.js +214 -0
  10. package/dist/CjsResManQueue.js.map +1 -0
  11. package/dist/CjsResource.js +366 -0
  12. package/dist/CjsResource.js.map +1 -0
  13. package/dist/CjsResourceSource.js +59 -0
  14. package/dist/CjsResourceSource.js.map +1 -0
  15. package/dist/_virtual/_rollupPluginBabelHelpers.js +153 -0
  16. package/dist/_virtual/_rollupPluginBabelHelpers.js.map +1 -0
  17. package/dist/format/CjsFormat.js +178 -0
  18. package/dist/format/CjsFormat.js.map +1 -0
  19. package/dist/format/CjsResourceProbe.js +269 -0
  20. package/dist/format/CjsResourceProbe.js.map +1 -0
  21. package/dist/format/payloadContract.js +173 -0
  22. package/dist/format/payloadContract.js.map +1 -0
  23. package/dist/formats/black/CjsBlackFormat.js +272 -0
  24. package/dist/formats/black/CjsBlackFormat.js.map +1 -0
  25. package/dist/formats/black/core/CjsBlackBinaryReader.js +153 -0
  26. package/dist/formats/black/core/CjsBlackBinaryReader.js.map +1 -0
  27. package/dist/formats/black/core/CjsBlackPropertyReaders.js +382 -0
  28. package/dist/formats/black/core/CjsBlackPropertyReaders.js.map +1 -0
  29. package/dist/formats/black/core/CjsBlackReader.js +760 -0
  30. package/dist/formats/black/core/CjsBlackReader.js.map +1 -0
  31. package/dist/formats/black/core/CjsBlackSchemaRegistry.js +433 -0
  32. package/dist/formats/black/core/CjsBlackSchemaRegistry.js.map +1 -0
  33. package/dist/formats/black/core/black-schema-v1-2026-07-11.json.js +4 -0
  34. package/dist/formats/black/core/black-schema-v1-2026-07-11.json.js.map +1 -0
  35. package/dist/formats/black/core/blackConstants.js +7 -0
  36. package/dist/formats/black/core/blackConstants.js.map +1 -0
  37. package/dist/formats/black/core/blackDefinitions.js +10 -0
  38. package/dist/formats/black/core/blackDefinitions.js.map +1 -0
  39. package/dist/formats/black/core/blackEnums.js +6 -0
  40. package/dist/formats/black/core/blackEnums.js.map +1 -0
  41. package/dist/formats/black/core/blackSchema.js +3 -0
  42. package/dist/formats/black/core/blackSchema.js.map +1 -0
  43. package/dist/formats/black/core/blackVersion.js +22 -0
  44. package/dist/formats/black/core/blackVersion.js.map +1 -0
  45. package/dist/formats/black/core/helpers.js +182 -0
  46. package/dist/formats/black/core/helpers.js.map +1 -0
  47. package/dist/formats/black/core/schema.js +4 -0
  48. package/dist/formats/black/core/schema.js.map +1 -0
  49. package/dist/formats/black/index.js +2 -0
  50. package/dist/formats/black/index.js.map +1 -0
  51. package/dist/formats/bnk/CjsBnkFormat.js +245 -0
  52. package/dist/formats/bnk/CjsBnkFormat.js.map +1 -0
  53. package/dist/formats/bnk/core/helpers.js +354 -0
  54. package/dist/formats/bnk/core/helpers.js.map +1 -0
  55. package/dist/formats/bnk/core/soundbanksInfo.js +246 -0
  56. package/dist/formats/bnk/core/soundbanksInfo.js.map +1 -0
  57. package/dist/formats/bnk/index.js +3 -0
  58. package/dist/formats/bnk/index.js.map +1 -0
  59. package/dist/formats/cmf/CjsCmfFormat.js +491 -0
  60. package/dist/formats/cmf/CjsCmfFormat.js.map +1 -0
  61. package/dist/formats/cmf/core/binary.js +118 -0
  62. package/dist/formats/cmf/core/binary.js.map +1 -0
  63. package/dist/formats/cmf/core/buffers.js +233 -0
  64. package/dist/formats/cmf/core/buffers.js.map +1 -0
  65. package/dist/formats/cmf/core/constants.js +47 -0
  66. package/dist/formats/cmf/core/constants.js.map +1 -0
  67. package/dist/formats/cmf/core/gr2Anim.js +453 -0
  68. package/dist/formats/cmf/core/gr2Anim.js.map +1 -0
  69. package/dist/formats/cmf/core/helpers.js +287 -0
  70. package/dist/formats/cmf/core/helpers.js.map +1 -0
  71. package/dist/formats/cmf/core/pack.js +276 -0
  72. package/dist/formats/cmf/core/pack.js.map +1 -0
  73. package/dist/formats/cmf/core/schema.js +364 -0
  74. package/dist/formats/cmf/core/schema.js.map +1 -0
  75. package/dist/formats/cmf/core/shared.js +268 -0
  76. package/dist/formats/cmf/core/shared.js.map +1 -0
  77. package/dist/formats/cmf/core/writer.js +517 -0
  78. package/dist/formats/cmf/core/writer.js.map +1 -0
  79. package/dist/formats/cmf/index.js +2 -0
  80. package/dist/formats/cmf/index.js.map +1 -0
  81. package/dist/formats/dds/CjsDdsFormat.js +187 -0
  82. package/dist/formats/dds/CjsDdsFormat.js.map +1 -0
  83. package/dist/formats/dds/core/helpers.js +812 -0
  84. package/dist/formats/dds/core/helpers.js.map +1 -0
  85. package/dist/formats/dds/index.js +2 -0
  86. package/dist/formats/dds/index.js.map +1 -0
  87. package/dist/formats/fbx/CjsFbxFormat.js +260 -0
  88. package/dist/formats/fbx/CjsFbxFormat.js.map +1 -0
  89. package/dist/formats/fbx/core/helpers.js +3901 -0
  90. package/dist/formats/fbx/core/helpers.js.map +1 -0
  91. package/dist/formats/fbx/index.js +2 -0
  92. package/dist/formats/fbx/index.js.map +1 -0
  93. package/dist/formats/flac/CjsFlacFormat.js +81 -0
  94. package/dist/formats/flac/CjsFlacFormat.js.map +1 -0
  95. package/dist/formats/flac/core/helpers.js +295 -0
  96. package/dist/formats/flac/core/helpers.js.map +1 -0
  97. package/dist/formats/flac/index.js +2 -0
  98. package/dist/formats/flac/index.js.map +1 -0
  99. package/dist/formats/gif/CjsGifFormat.js +81 -0
  100. package/dist/formats/gif/CjsGifFormat.js.map +1 -0
  101. package/dist/formats/gif/core/helpers.js +360 -0
  102. package/dist/formats/gif/core/helpers.js.map +1 -0
  103. package/dist/formats/gif/index.js +2 -0
  104. package/dist/formats/gif/index.js.map +1 -0
  105. package/dist/formats/gltf/CjsGltfFormat.js +284 -0
  106. package/dist/formats/gltf/CjsGltfFormat.js.map +1 -0
  107. package/dist/formats/gltf/core/helpers.js +292 -0
  108. package/dist/formats/gltf/core/helpers.js.map +1 -0
  109. package/dist/formats/gltf/core/json.js +79 -0
  110. package/dist/formats/gltf/core/json.js.map +1 -0
  111. package/dist/formats/gltf/core/parser.js +666 -0
  112. package/dist/formats/gltf/core/parser.js.map +1 -0
  113. package/dist/formats/gltf/core/targets.js +163 -0
  114. package/dist/formats/gltf/core/targets.js.map +1 -0
  115. package/dist/formats/gltf/index.js +2 -0
  116. package/dist/formats/gltf/index.js.map +1 -0
  117. package/dist/formats/index.js +23 -0
  118. package/dist/formats/index.js.map +1 -0
  119. package/dist/formats/jpeg/CjsJpegFormat.js +200 -0
  120. package/dist/formats/jpeg/CjsJpegFormat.js.map +1 -0
  121. package/dist/formats/jpeg/core/helpers.js +350 -0
  122. package/dist/formats/jpeg/core/helpers.js.map +1 -0
  123. package/dist/formats/jpeg/core/jpeg.js +377 -0
  124. package/dist/formats/jpeg/core/jpeg.js.map +1 -0
  125. package/dist/formats/jpeg/index.js +2 -0
  126. package/dist/formats/jpeg/index.js.map +1 -0
  127. package/dist/formats/mp3/CjsMp3Format.js +186 -0
  128. package/dist/formats/mp3/CjsMp3Format.js.map +1 -0
  129. package/dist/formats/mp3/core/helpers.js +338 -0
  130. package/dist/formats/mp3/core/helpers.js.map +1 -0
  131. package/dist/formats/mp3/index.js +2 -0
  132. package/dist/formats/mp3/index.js.map +1 -0
  133. package/dist/formats/mp4/CjsMp4Format.js +185 -0
  134. package/dist/formats/mp4/CjsMp4Format.js.map +1 -0
  135. package/dist/formats/mp4/core/helpers.js +449 -0
  136. package/dist/formats/mp4/core/helpers.js.map +1 -0
  137. package/dist/formats/mp4/index.js +2 -0
  138. package/dist/formats/mp4/index.js.map +1 -0
  139. package/dist/formats/obj/CjsObjFormat.js +247 -0
  140. package/dist/formats/obj/CjsObjFormat.js.map +1 -0
  141. package/dist/formats/obj/core/helpers.js +573 -0
  142. package/dist/formats/obj/core/helpers.js.map +1 -0
  143. package/dist/formats/obj/core/json.js +64 -0
  144. package/dist/formats/obj/core/json.js.map +1 -0
  145. package/dist/formats/obj/core/parser.js +321 -0
  146. package/dist/formats/obj/core/parser.js.map +1 -0
  147. package/dist/formats/obj/index.js +2 -0
  148. package/dist/formats/obj/index.js.map +1 -0
  149. package/dist/formats/ogg/CjsOggFormat.js +82 -0
  150. package/dist/formats/ogg/CjsOggFormat.js.map +1 -0
  151. package/dist/formats/ogg/core/helpers.js +387 -0
  152. package/dist/formats/ogg/core/helpers.js.map +1 -0
  153. package/dist/formats/ogg/core/imdct.js +178 -0
  154. package/dist/formats/ogg/core/imdct.js.map +1 -0
  155. package/dist/formats/ogg/core/vorbis.js +999 -0
  156. package/dist/formats/ogg/core/vorbis.js.map +1 -0
  157. package/dist/formats/ogg/index.js +2 -0
  158. package/dist/formats/ogg/index.js.map +1 -0
  159. package/dist/formats/png/CjsPngFormat.js +189 -0
  160. package/dist/formats/png/CjsPngFormat.js.map +1 -0
  161. package/dist/formats/png/core/helpers.js +583 -0
  162. package/dist/formats/png/core/helpers.js.map +1 -0
  163. package/dist/formats/png/index.js +2 -0
  164. package/dist/formats/png/index.js.map +1 -0
  165. package/dist/formats/red/CjsRedFormat.js +247 -0
  166. package/dist/formats/red/CjsRedFormat.js.map +1 -0
  167. package/dist/formats/red/core/CjsRedReader.js +201 -0
  168. package/dist/formats/red/core/CjsRedReader.js.map +1 -0
  169. package/dist/formats/red/core/blackDefinitions.js +3 -0
  170. package/dist/formats/red/core/blackDefinitions.js.map +1 -0
  171. package/dist/formats/red/core/helpers.js +136 -0
  172. package/dist/formats/red/core/helpers.js.map +1 -0
  173. package/dist/formats/red/core/redGraph.js +68 -0
  174. package/dist/formats/red/core/redGraph.js.map +1 -0
  175. package/dist/formats/red/core/schema.js +4 -0
  176. package/dist/formats/red/core/schema.js.map +1 -0
  177. package/dist/formats/red/index.js +2 -0
  178. package/dist/formats/red/index.js.map +1 -0
  179. package/dist/formats/stl/CjsStlFormat.js +304 -0
  180. package/dist/formats/stl/CjsStlFormat.js.map +1 -0
  181. package/dist/formats/stl/core/helpers.js +257 -0
  182. package/dist/formats/stl/core/helpers.js.map +1 -0
  183. package/dist/formats/stl/core/json.js +51 -0
  184. package/dist/formats/stl/core/json.js.map +1 -0
  185. package/dist/formats/stl/core/stl.js +544 -0
  186. package/dist/formats/stl/core/stl.js.map +1 -0
  187. package/dist/formats/stl/core/targets.js +163 -0
  188. package/dist/formats/stl/core/targets.js.map +1 -0
  189. package/dist/formats/stl/index.js +2 -0
  190. package/dist/formats/stl/index.js.map +1 -0
  191. package/dist/formats/tga/CjsTgaFormat.js +186 -0
  192. package/dist/formats/tga/CjsTgaFormat.js.map +1 -0
  193. package/dist/formats/tga/core/helpers.js +446 -0
  194. package/dist/formats/tga/core/helpers.js.map +1 -0
  195. package/dist/formats/tga/index.js +2 -0
  196. package/dist/formats/tga/index.js.map +1 -0
  197. package/dist/formats/wav/CjsWavFormat.js +186 -0
  198. package/dist/formats/wav/CjsWavFormat.js.map +1 -0
  199. package/dist/formats/wav/core/helpers.js +328 -0
  200. package/dist/formats/wav/core/helpers.js.map +1 -0
  201. package/dist/formats/wav/index.js +2 -0
  202. package/dist/formats/wav/index.js.map +1 -0
  203. package/dist/formats/webm/CjsWebmFormat.js +185 -0
  204. package/dist/formats/webm/CjsWebmFormat.js.map +1 -0
  205. package/dist/formats/webm/core/helpers.js +537 -0
  206. package/dist/formats/webm/core/helpers.js.map +1 -0
  207. package/dist/formats/webm/index.js +2 -0
  208. package/dist/formats/webm/index.js.map +1 -0
  209. package/dist/formats/webp/CjsWebpFormat.js +80 -0
  210. package/dist/formats/webp/CjsWebpFormat.js.map +1 -0
  211. package/dist/formats/webp/core/helpers.js +214 -0
  212. package/dist/formats/webp/core/helpers.js.map +1 -0
  213. package/dist/formats/webp/index.js +2 -0
  214. package/dist/formats/webp/index.js.map +1 -0
  215. package/dist/formats/wem/CjsWemFormat.js +197 -0
  216. package/dist/formats/wem/CjsWemFormat.js.map +1 -0
  217. package/dist/formats/wem/core/bitStream.js +259 -0
  218. package/dist/formats/wem/core/bitStream.js.map +1 -0
  219. package/dist/formats/wem/core/codebookLibrary.js +164 -0
  220. package/dist/formats/wem/core/codebookLibrary.js.map +1 -0
  221. package/dist/formats/wem/core/helpers.js +336 -0
  222. package/dist/formats/wem/core/helpers.js.map +1 -0
  223. package/dist/formats/wem/core/packedCodebooksAotuv603.js +30 -0
  224. package/dist/formats/wem/core/packedCodebooksAotuv603.js.map +1 -0
  225. package/dist/formats/wem/core/wemToOgg.js +485 -0
  226. package/dist/formats/wem/core/wemToOgg.js.map +1 -0
  227. package/dist/formats/wem/index.js +2 -0
  228. package/dist/formats/wem/index.js.map +1 -0
  229. package/dist/formats/yaml/CjsYamlFormat.js +77 -0
  230. package/dist/formats/yaml/CjsYamlFormat.js.map +1 -0
  231. package/dist/formats/yaml/core/CjsYamlReader.js +304 -0
  232. package/dist/formats/yaml/core/CjsYamlReader.js.map +1 -0
  233. package/dist/formats/yaml/core/helpers.js +160 -0
  234. package/dist/formats/yaml/core/helpers.js.map +1 -0
  235. package/dist/formats/yaml/index.js +2 -0
  236. package/dist/formats/yaml/index.js.map +1 -0
  237. package/dist/generated/resources/AudioGeometryResData.js +47 -0
  238. package/dist/generated/resources/AudioGeometryResData.js.map +1 -0
  239. package/dist/generated/resources/CmfVertexReader.js +46 -0
  240. package/dist/generated/resources/CmfVertexReader.js.map +1 -0
  241. package/dist/generated/resources/GStateBindingCallbackData.js +31 -0
  242. package/dist/generated/resources/GStateBindingCallbackData.js.map +1 -0
  243. package/dist/generated/resources/MeshDecalData.js +37 -0
  244. package/dist/generated/resources/MeshDecalData.js.map +1 -0
  245. package/dist/generated/resources/MeshDecalLodData.js +34 -0
  246. package/dist/generated/resources/MeshDecalLodData.js.map +1 -0
  247. package/dist/generated/resources/Tr2AsyncSave.js +46 -0
  248. package/dist/generated/resources/Tr2AsyncSave.js.map +1 -0
  249. package/dist/generated/resources/Tr2CmfContents.js +37 -0
  250. package/dist/generated/resources/Tr2CmfContents.js.map +1 -0
  251. package/dist/generated/resources/Tr2GrannyIntersectionResult.js +58 -0
  252. package/dist/generated/resources/Tr2GrannyIntersectionResult.js.map +1 -0
  253. package/dist/generated/resources/Tr2LoadPrepareFence.js +37 -0
  254. package/dist/generated/resources/Tr2LoadPrepareFence.js.map +1 -0
  255. package/dist/generated/resources/Tr2MaterialArea.js +34 -0
  256. package/dist/generated/resources/Tr2MaterialArea.js.map +1 -0
  257. package/dist/generated/resources/Tr2MaterialMesh.js +31 -0
  258. package/dist/generated/resources/Tr2MaterialMesh.js.map +1 -0
  259. package/dist/generated/resources/Tr2MaterialRes.js +34 -0
  260. package/dist/generated/resources/Tr2MaterialRes.js.map +1 -0
  261. package/dist/generated/resources/Tr2ShaderPermutation.js +43 -0
  262. package/dist/generated/resources/Tr2ShaderPermutation.js.map +1 -0
  263. package/dist/generated/resources/Tr2TextureLodManager.js +60 -0
  264. package/dist/generated/resources/Tr2TextureLodManager.js.map +1 -0
  265. package/dist/generated/resources/Tr2TextureLodUpdateRequest.js +37 -0
  266. package/dist/generated/resources/Tr2TextureLodUpdateRequest.js.map +1 -0
  267. package/dist/generated/resources/Tr2TexturePackChannel.js +37 -0
  268. package/dist/generated/resources/Tr2TexturePackChannel.js.map +1 -0
  269. package/dist/generated/resources/Tr2TexturePipeline.js +44 -0
  270. package/dist/generated/resources/Tr2TexturePipeline.js.map +1 -0
  271. package/dist/generated/resources/Tr2TexturePipelineParams.js +34 -0
  272. package/dist/generated/resources/Tr2TexturePipelineParams.js.map +1 -0
  273. package/dist/generated/resources/Tr2TexturePipelineStepCompress.js +40 -0
  274. package/dist/generated/resources/Tr2TexturePipelineStepCompress.js.map +1 -0
  275. package/dist/generated/resources/Tr2TexturePipelineStepLimitSize.js +34 -0
  276. package/dist/generated/resources/Tr2TexturePipelineStepLimitSize.js.map +1 -0
  277. package/dist/generated/resources/Tr2TexturePipelineStepLoad.js +31 -0
  278. package/dist/generated/resources/Tr2TexturePipelineStepLoad.js.map +1 -0
  279. package/dist/generated/resources/Tr2TexturePipelineStepPack.js +43 -0
  280. package/dist/generated/resources/Tr2TexturePipelineStepPack.js.map +1 -0
  281. package/dist/generated/resources/TriGeometryResAreaData.js +59 -0
  282. package/dist/generated/resources/TriGeometryResAreaData.js.map +1 -0
  283. package/dist/generated/resources/TriGeometryResJointData.js +38 -0
  284. package/dist/generated/resources/TriGeometryResJointData.js.map +1 -0
  285. package/dist/generated/resources/TriGeometryResLodData.js +88 -0
  286. package/dist/generated/resources/TriGeometryResLodData.js.map +1 -0
  287. package/dist/generated/resources/TriGeometryResMeshData.js +63 -0
  288. package/dist/generated/resources/TriGeometryResMeshData.js.map +1 -0
  289. package/dist/generated/resources/TriGeometryResSkeletonData.js +34 -0
  290. package/dist/generated/resources/TriGeometryResSkeletonData.js.map +1 -0
  291. package/dist/generated/resources/TriJointBinding.js +38 -0
  292. package/dist/generated/resources/TriJointBinding.js.map +1 -0
  293. package/dist/generated/resources/TriMorphTargetGeometryConstants.js +46 -0
  294. package/dist/generated/resources/TriMorphTargetGeometryConstants.js.map +1 -0
  295. package/dist/generated/resources/TriRtGeometryConstants.js +88 -0
  296. package/dist/generated/resources/TriRtGeometryConstants.js.map +1 -0
  297. package/dist/generated/resources/enums.js +18 -0
  298. package/dist/generated/resources/enums.js.map +1 -0
  299. package/dist/generated/resources/index.js +32 -0
  300. package/dist/generated/resources/index.js.map +1 -0
  301. package/dist/index.js +52 -0
  302. package/dist/index.js.map +1 -0
  303. package/dist/resourcePath.js +18 -0
  304. package/dist/resourcePath.js.map +1 -0
  305. package/dist/resourceStates.js +9 -0
  306. package/dist/resourceStates.js.map +1 -0
  307. package/dist/resources/Tr2EffectRes.js +71 -0
  308. package/dist/resources/Tr2EffectRes.js.map +1 -0
  309. package/dist/resources/Tr2GrannyStateRes.js +44 -0
  310. package/dist/resources/Tr2GrannyStateRes.js.map +1 -0
  311. package/dist/resources/Tr2ImageRes.js +114 -0
  312. package/dist/resources/Tr2ImageRes.js.map +1 -0
  313. package/dist/resources/Tr2LightProfileRes.js +40 -0
  314. package/dist/resources/Tr2LightProfileRes.js.map +1 -0
  315. package/dist/resources/TriGeometryRes.js +216 -0
  316. package/dist/resources/TriGeometryRes.js.map +1 -0
  317. package/dist/resources/TriGrannyRes.js +43 -0
  318. package/dist/resources/TriGrannyRes.js.map +1 -0
  319. package/dist/resources/TriTextureRes.js +304 -0
  320. package/dist/resources/TriTextureRes.js.map +1 -0
  321. package/dist/resources/resourceBoundary.js +47 -0
  322. package/dist/resources/resourceBoundary.js.map +1 -0
  323. package/dist/texture/CjsTextureArrayRes.js +406 -0
  324. package/dist/texture/CjsTextureArrayRes.js.map +1 -0
  325. package/dist/texture/CjsTextureParameterProxy.js +133 -0
  326. package/dist/texture/CjsTextureParameterProxy.js.map +1 -0
  327. package/format-notices/black/LICENSE +21 -0
  328. package/format-notices/black/NOTICE +47 -0
  329. package/format-notices/bnk/LICENSE +21 -0
  330. package/format-notices/bnk/NOTICE +17 -0
  331. package/format-notices/cmf/LICENSE +21 -0
  332. package/format-notices/cmf/NOTICE +36 -0
  333. package/format-notices/dds/LICENSE +21 -0
  334. package/format-notices/dds/NOTICE +14 -0
  335. package/format-notices/fbx/LICENSE +21 -0
  336. package/format-notices/fbx/NOTICE +14 -0
  337. package/format-notices/flac/LICENSE +21 -0
  338. package/format-notices/flac/NOTICE +14 -0
  339. package/format-notices/gif/LICENSE +21 -0
  340. package/format-notices/gif/NOTICE +14 -0
  341. package/format-notices/gltf/LICENSE +21 -0
  342. package/format-notices/gltf/NOTICE +27 -0
  343. package/format-notices/jpeg/LICENSE +21 -0
  344. package/format-notices/jpeg/NOTICE +14 -0
  345. package/format-notices/mp3/LICENSE +21 -0
  346. package/format-notices/mp3/NOTICE +14 -0
  347. package/format-notices/mp4/LICENSE +21 -0
  348. package/format-notices/mp4/NOTICE +14 -0
  349. package/format-notices/obj/LICENSE +21 -0
  350. package/format-notices/obj/NOTICE +26 -0
  351. package/format-notices/ogg/LICENSE +21 -0
  352. package/format-notices/ogg/NOTICE +28 -0
  353. package/format-notices/png/LICENSE +21 -0
  354. package/format-notices/png/NOTICE +14 -0
  355. package/format-notices/red/LICENSE +21 -0
  356. package/format-notices/red/NOTICE +31 -0
  357. package/format-notices/stl/LICENSE +21 -0
  358. package/format-notices/stl/NOTICE +21 -0
  359. package/format-notices/tga/LICENSE +21 -0
  360. package/format-notices/tga/NOTICE +14 -0
  361. package/format-notices/wav/LICENSE +21 -0
  362. package/format-notices/wav/NOTICE +14 -0
  363. package/format-notices/webm/LICENSE +21 -0
  364. package/format-notices/webm/NOTICE +14 -0
  365. package/format-notices/webp/LICENSE +21 -0
  366. package/format-notices/webp/NOTICE +14 -0
  367. package/format-notices/wem/LICENSE +57 -0
  368. package/format-notices/wem/NOTICE +33 -0
  369. package/format-notices/yaml/LICENSE +21 -0
  370. package/format-notices/yaml/NOTICE +44 -0
  371. package/package.json +51 -0
  372. package/resource-lifecycle.md +487 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TriGeometryResJointData.js","sources":["../../../../src/generated/resources/TriGeometryResJointData.js"],"sourcesContent":["// Source: trinity/trinity/Resources/TriGeometryRes.h\n// Generated by format-carbon carbon-class --emit. Verify against resources/TriGeometryResJointData.json.\nimport { type } from \"@carbonenginejs/core-types/schema\";\nimport { CjsModel } from \"@carbonenginejs/core-types/model\";\nimport { mat4 } from \"@carbonenginejs/core-math/mat4\";\n\n/** TriGeometryResJointData (resources) - generated from schema shapeHash 9b31acb5.... */\n@type.define({ className: \"TriGeometryResJointData\", family: \"resources\" })\nexport class TriGeometryResJointData extends CjsModel\n{\n\n /** m_name (std::string) */\n @type.string\n name = \"\";\n\n /** m_parentJoint (unsigned int) */\n @type.uint32\n parentJoint = 0;\n\n /** m_inverseWorldTransform (Matrix) */\n @type.mat4\n inverseWorldTransform = mat4.create();\n\n}\n"],"names":["_TriGeometryResJointD","TriGeometryResJointData","CjsModel","e","_init_name","_init_extra_name","_init_parentJoint","_init_extra_parentJoint","_init_inverseWorldTransform","_init_extra_inverseWorldTransform","c","_initClass","_applyDecs","type","define","className","family","string","uint32","mat4","constructor","args","name","parentJoint","inverseWorldTransform","create"],"mappings":";;;;;;;AAMA;AAAA,IAAAA;AACA,MAAAC,uBAAA,SAC6CC,QAAQ,CACrD;AAAA,EAAA;AAAA,IAAA,CAAA;MAAAC,CAAA,EAAA,CAAAC,UAAA,EAAAC,gBAAA,EAAAC,iBAAA,EAAAC,uBAAA,EAAAC,2BAAA,EAAAC,iCAAA,CAAA;MAAAC,CAAA,EAAA,CAAAV,qBAAA,EAAAW,UAAA;AAAA,KAAA,GAAAC,cAAA,CAAA,IAAA,EAAA,CAFCC,IAAI,CAACC,MAAM,CAAC;AAAEC,MAAAA,SAAS,EAAE,yBAAyB;AAAEC,MAAAA,MAAM,EAAE;KAAa,CAAC,MAKxEH,IAAI,EAAJA,IAAI,CAACI,MAAM,kBAIXJ,IAAI,EAAJA,IAAI,CAACK,MAAM,yBAIXL,IAAI,EAAJA,IAAI,CAACM,IAAI,6CAZiCjB,QAAQ,CAAA;AAAA;AAAAkB,EAAAA,WAAAA,CAAA,GAAAC,IAAA,EAAA;AAAA,IAAA,KAAA,CAAA,GAAAA,IAAA,CAAA;IAAAZ,iCAAA,CAAA,IAAA,CAAA;AAAA,EAAA;AAGnD;EAEAa,IAAI,GAAAlB,UAAA,CAAA,IAAA,EAAG,EAAE,CAAA;;AAET;AAEAmB,EAAAA,WAAW,IAAAlB,gBAAA,CAAA,IAAA,CAAA,EAAAC,iBAAA,OAAG,CAAC,CAAA;;AAEf;EAEAkB,qBAAqB,IAAAjB,uBAAA,CAAA,IAAA,CAAA,EAAAC,2BAAA,OAAGW,IAAI,CAACM,MAAM,EAAE,CAAA;AAAC,EAAA;IAAAd,UAAA,EAAA;AAAA;AAExC;;;;"}
@@ -0,0 +1,88 @@
1
+ import { applyDecs2311 as _applyDecs2311 } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
+ import { type } from '@carbonenginejs/core-types/schema';
3
+ import { CjsModel } from '@carbonenginejs/core-types/model';
4
+
5
+ let _initClass, _init_mesh, _init_extra_mesh, _init_grannyMeshIndex, _init_extra_grannyMeshIndex, _init_name, _init_extra_name, _init_originalLodIndex, _init_extra_originalLodIndex, _init_maxScreenSize, _init_extra_maxScreenSize, _init_vertexCount, _init_extra_vertexCount, _init_primitiveCount, _init_extra_primitiveCount, _init_uvDensities, _init_extra_uvDensities, _init_areas, _init_extra_areas, _init_allocationsValid, _init_extra_allocationsValid, _init_vertexAllocation, _init_extra_vertexAllocation, _init_indexAllocation, _init_extra_indexAllocation, _init_morphTargetAllocation, _init_extra_morphTargetAllocation, _init_morphTargetNames, _init_extra_morphTargetNames, _init_morphTargetDeformationAmounts, _init_extra_morphTargetDeformationAmounts, _init_isBakedMorphTarget, _init_extra_isBakedMorphTarget, _init_morphVertexDeclaration, _init_extra_morphVertexDeclaration, _init_bytesPerMorphTargetVertex, _init_extra_bytesPerMorphTargetVertex, _init_reversedIndicesValid, _init_extra_reversedIndicesValid, _init_reversedIndexAllocation, _init_extra_reversedIndexAllocation;
6
+
7
+ /** TriGeometryResLodData (resources) - generated from schema shapeHash 92d97df7.... */
8
+ let _TriGeometryResLodDat;
9
+ class TriGeometryResLodData extends CjsModel {
10
+ static {
11
+ ({
12
+ e: [_init_mesh, _init_extra_mesh, _init_grannyMeshIndex, _init_extra_grannyMeshIndex, _init_name, _init_extra_name, _init_originalLodIndex, _init_extra_originalLodIndex, _init_maxScreenSize, _init_extra_maxScreenSize, _init_vertexCount, _init_extra_vertexCount, _init_primitiveCount, _init_extra_primitiveCount, _init_uvDensities, _init_extra_uvDensities, _init_areas, _init_extra_areas, _init_allocationsValid, _init_extra_allocationsValid, _init_vertexAllocation, _init_extra_vertexAllocation, _init_indexAllocation, _init_extra_indexAllocation, _init_morphTargetAllocation, _init_extra_morphTargetAllocation, _init_morphTargetNames, _init_extra_morphTargetNames, _init_morphTargetDeformationAmounts, _init_extra_morphTargetDeformationAmounts, _init_isBakedMorphTarget, _init_extra_isBakedMorphTarget, _init_morphVertexDeclaration, _init_extra_morphVertexDeclaration, _init_bytesPerMorphTargetVertex, _init_extra_bytesPerMorphTargetVertex, _init_reversedIndicesValid, _init_extra_reversedIndicesValid, _init_reversedIndexAllocation, _init_extra_reversedIndexAllocation],
13
+ c: [_TriGeometryResLodDat, _initClass]
14
+ } = _applyDecs2311(this, [type.define({
15
+ className: "TriGeometryResLodData",
16
+ family: "resources"
17
+ })], [[type.objectRef("TriGeometryResMeshData"), 0, "mesh"], [[type, type.int32], 16, "grannyMeshIndex"], [[type, type.string], 16, "name"], [[type, type.int32], 16, "originalLodIndex"], [[type, type.float32], 16, "maxScreenSize"], [[type, type.uint32], 16, "vertexCount"], [[type, type.uint32], 16, "primitiveCount"], [type.list("float"), 0, "uvDensities"], [[type, type.unknown], 16, "areas"], [[type, type.boolean], 16, "allocationsValid"], [type.rawStruct("Tr2SuballocatedBuffer::Allocation"), 0, "vertexAllocation"], [type.rawStruct("Tr2SuballocatedBuffer::Allocation"), 0, "indexAllocation"], [type.rawStruct("Tr2SuballocatedBuffer::Allocation"), 0, "morphTargetAllocation"], [type.list("std::string"), 0, "morphTargetNames"], [type.list("float"), 0, "morphTargetDeformationAmounts"], [type.list("bool"), 0, "isBakedMorphTarget"], [[type, type.uint32], 16, "morphVertexDeclaration"], [[type, type.uint32], 16, "bytesPerMorphTargetVertex"], [[type, type.boolean], 16, "reversedIndicesValid"], [type.rawStruct("Tr2SuballocatedBuffer::Allocation"), 0, "reversedIndexAllocation"]], 0, void 0, CjsModel));
18
+ }
19
+ constructor(...args) {
20
+ super(...args);
21
+ _init_extra_reversedIndexAllocation(this);
22
+ }
23
+ /** m_mesh (TriGeometryResMeshData*) */
24
+ mesh = _init_mesh(this, null);
25
+
26
+ /** m_grannyMeshIndex (int32_t) */
27
+ grannyMeshIndex = (_init_extra_mesh(this), _init_grannyMeshIndex(this, 0));
28
+
29
+ /** m_name (std::string) */
30
+ name = (_init_extra_grannyMeshIndex(this), _init_name(this, ""));
31
+
32
+ /** m_originalLodIndex (int32_t) */
33
+ originalLodIndex = (_init_extra_name(this), _init_originalLodIndex(this, 0));
34
+
35
+ /** m_maxScreenSize (float) */
36
+ maxScreenSize = (_init_extra_originalLodIndex(this), _init_maxScreenSize(this, 0));
37
+
38
+ /** m_vertexCount (unsigned int) */
39
+ vertexCount = (_init_extra_maxScreenSize(this), _init_vertexCount(this, 0));
40
+
41
+ /** m_primitiveCount (unsigned int) */
42
+ primitiveCount = (_init_extra_vertexCount(this), _init_primitiveCount(this, 0));
43
+
44
+ /** m_uvDensities (std::vector<float>) */
45
+ uvDensities = (_init_extra_primitiveCount(this), _init_uvDensities(this, []));
46
+
47
+ /** m_areas (TrackableStdVector<TriGeometryResAreaData>) */
48
+ areas = (_init_extra_uvDensities(this), _init_areas(this, null));
49
+
50
+ /** m_allocationsValid (bool) */
51
+ allocationsValid = (_init_extra_areas(this), _init_allocationsValid(this, false));
52
+
53
+ /** m_vertexAllocation (Tr2SuballocatedBuffer::Allocation) */
54
+ vertexAllocation = (_init_extra_allocationsValid(this), _init_vertexAllocation(this, null));
55
+
56
+ /** m_indexAllocation (Tr2SuballocatedBuffer::Allocation) */
57
+ indexAllocation = (_init_extra_vertexAllocation(this), _init_indexAllocation(this, null));
58
+
59
+ /** m_morphTargetAllocation (Tr2SuballocatedBuffer::Allocation) */
60
+ morphTargetAllocation = (_init_extra_indexAllocation(this), _init_morphTargetAllocation(this, null));
61
+
62
+ /** m_morphTargetNames (std::vector<std::string>) */
63
+ morphTargetNames = (_init_extra_morphTargetAllocation(this), _init_morphTargetNames(this, []));
64
+
65
+ /** m_morphTargetDeformationAmounts (std::vector<float>) */
66
+ morphTargetDeformationAmounts = (_init_extra_morphTargetNames(this), _init_morphTargetDeformationAmounts(this, []));
67
+
68
+ /** m_isBakedMorphTarget (std::vector<bool>) */
69
+ isBakedMorphTarget = (_init_extra_morphTargetDeformationAmounts(this), _init_isBakedMorphTarget(this, []));
70
+
71
+ /** m_morphVertexDeclaration (unsigned int) */
72
+ morphVertexDeclaration = (_init_extra_isBakedMorphTarget(this), _init_morphVertexDeclaration(this, 0));
73
+
74
+ /** m_bytesPerMorphTargetVertex (unsigned int) */
75
+ bytesPerMorphTargetVertex = (_init_extra_morphVertexDeclaration(this), _init_bytesPerMorphTargetVertex(this, 0));
76
+
77
+ /** m_reversedIndicesValid (bool) */
78
+ reversedIndicesValid = (_init_extra_bytesPerMorphTargetVertex(this), _init_reversedIndicesValid(this, false));
79
+
80
+ /** m_reversedIndexAllocation (Tr2SuballocatedBuffer::Allocation) */
81
+ reversedIndexAllocation = (_init_extra_reversedIndicesValid(this), _init_reversedIndexAllocation(this, null));
82
+ static {
83
+ _initClass();
84
+ }
85
+ }
86
+
87
+ export { _TriGeometryResLodDat as TriGeometryResLodData };
88
+ //# sourceMappingURL=TriGeometryResLodData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TriGeometryResLodData.js","sources":["../../../../src/generated/resources/TriGeometryResLodData.js"],"sourcesContent":["// Source: trinity/trinity/Resources/TriGeometryRes.h\n// Generated by format-carbon carbon-class --emit. Verify against resources/TriGeometryResLodData.json.\nimport { type } from \"@carbonenginejs/core-types/schema\";\nimport { CjsModel } from \"@carbonenginejs/core-types/model\";\n\n/** TriGeometryResLodData (resources) - generated from schema shapeHash 92d97df7.... */\n@type.define({ className: \"TriGeometryResLodData\", family: \"resources\" })\nexport class TriGeometryResLodData extends CjsModel\n{\n\n /** m_mesh (TriGeometryResMeshData*) */\n @type.objectRef(\"TriGeometryResMeshData\")\n mesh = null;\n\n /** m_grannyMeshIndex (int32_t) */\n @type.int32\n grannyMeshIndex = 0;\n\n /** m_name (std::string) */\n @type.string\n name = \"\";\n\n /** m_originalLodIndex (int32_t) */\n @type.int32\n originalLodIndex = 0;\n\n /** m_maxScreenSize (float) */\n @type.float32\n maxScreenSize = 0;\n\n /** m_vertexCount (unsigned int) */\n @type.uint32\n vertexCount = 0;\n\n /** m_primitiveCount (unsigned int) */\n @type.uint32\n primitiveCount = 0;\n\n /** m_uvDensities (std::vector<float>) */\n @type.list(\"float\")\n uvDensities = [];\n\n /** m_areas (TrackableStdVector<TriGeometryResAreaData>) */\n @type.unknown\n areas = null;\n\n /** m_allocationsValid (bool) */\n @type.boolean\n allocationsValid = false;\n\n /** m_vertexAllocation (Tr2SuballocatedBuffer::Allocation) */\n @type.rawStruct(\"Tr2SuballocatedBuffer::Allocation\")\n vertexAllocation = null;\n\n /** m_indexAllocation (Tr2SuballocatedBuffer::Allocation) */\n @type.rawStruct(\"Tr2SuballocatedBuffer::Allocation\")\n indexAllocation = null;\n\n /** m_morphTargetAllocation (Tr2SuballocatedBuffer::Allocation) */\n @type.rawStruct(\"Tr2SuballocatedBuffer::Allocation\")\n morphTargetAllocation = null;\n\n /** m_morphTargetNames (std::vector<std::string>) */\n @type.list(\"std::string\")\n morphTargetNames = [];\n\n /** m_morphTargetDeformationAmounts (std::vector<float>) */\n @type.list(\"float\")\n morphTargetDeformationAmounts = [];\n\n /** m_isBakedMorphTarget (std::vector<bool>) */\n @type.list(\"bool\")\n isBakedMorphTarget = [];\n\n /** m_morphVertexDeclaration (unsigned int) */\n @type.uint32\n morphVertexDeclaration = 0;\n\n /** m_bytesPerMorphTargetVertex (unsigned int) */\n @type.uint32\n bytesPerMorphTargetVertex = 0;\n\n /** m_reversedIndicesValid (bool) */\n @type.boolean\n reversedIndicesValid = false;\n\n /** m_reversedIndexAllocation (Tr2SuballocatedBuffer::Allocation) */\n @type.rawStruct(\"Tr2SuballocatedBuffer::Allocation\")\n reversedIndexAllocation = null;\n\n}\n"],"names":["_TriGeometryResLodDat","TriGeometryResLodData","CjsModel","e","_init_mesh","_init_extra_mesh","_init_grannyMeshIndex","_init_extra_grannyMeshIndex","_init_name","_init_extra_name","_init_originalLodIndex","_init_extra_originalLodIndex","_init_maxScreenSize","_init_extra_maxScreenSize","_init_vertexCount","_init_extra_vertexCount","_init_primitiveCount","_init_extra_primitiveCount","_init_uvDensities","_init_extra_uvDensities","_init_areas","_init_extra_areas","_init_allocationsValid","_init_extra_allocationsValid","_init_vertexAllocation","_init_extra_vertexAllocation","_init_indexAllocation","_init_extra_indexAllocation","_init_morphTargetAllocation","_init_extra_morphTargetAllocation","_init_morphTargetNames","_init_extra_morphTargetNames","_init_morphTargetDeformationAmounts","_init_extra_morphTargetDeformationAmounts","_init_isBakedMorphTarget","_init_extra_isBakedMorphTarget","_init_morphVertexDeclaration","_init_extra_morphVertexDeclaration","_init_bytesPerMorphTargetVertex","_init_extra_bytesPerMorphTargetVertex","_init_reversedIndicesValid","_init_extra_reversedIndicesValid","_init_reversedIndexAllocation","_init_extra_reversedIndexAllocation","c","_initClass","_applyDecs","type","define","className","family","objectRef","int32","string","float32","uint32","list","unknown","boolean","rawStruct","constructor","args","mesh","grannyMeshIndex","name","originalLodIndex","maxScreenSize","vertexCount","primitiveCount","uvDensities","areas","allocationsValid","vertexAllocation","indexAllocation","morphTargetAllocation","morphTargetNames","morphTargetDeformationAmounts","isBakedMorphTarget","morphVertexDeclaration","bytesPerMorphTargetVertex","reversedIndicesValid","reversedIndexAllocation"],"mappings":";;;;;;AAKA;AAAA,IAAAA;AACA,MAAAC,qBAAA,SAC2CC,QAAQ,CACnD;AAAA,EAAA;AAAA,IAAA,CAAA;AAAAC,MAAAA,CAAA,GAAAC,UAAA,EAAAC,gBAAA,EAAAC,qBAAA,EAAAC,2BAAA,EAAAC,UAAA,EAAAC,gBAAA,EAAAC,sBAAA,EAAAC,4BAAA,EAAAC,mBAAA,EAAAC,yBAAA,EAAAC,iBAAA,EAAAC,uBAAA,EAAAC,oBAAA,EAAAC,0BAAA,EAAAC,iBAAA,EAAAC,uBAAA,EAAAC,WAAA,EAAAC,iBAAA,EAAAC,sBAAA,EAAAC,4BAAA,EAAAC,sBAAA,EAAAC,4BAAA,EA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A,IAAA,CAAA,EAAAC,mCAAA,OAAG,EAAE,CAAA;;AAElC;AAEA6C,EAAAA,kBAAkB,IAAA5C,yCAAA,CAAA,IAAA,CAAA,EAAAC,wBAAA,OAAG,EAAE,CAAA;;AAEvB;AAEA4C,EAAAA,sBAAsB,IAAA3C,8BAAA,CAAA,IAAA,CAAA,EAAAC,4BAAA,OAAG,CAAC,CAAA;;AAE1B;AAEA2C,EAAAA,yBAAyB,IAAA1C,kCAAA,CAAA,IAAA,CAAA,EAAAC,+BAAA,OAAG,CAAC,CAAA;;AAE7B;AAEA0C,EAAAA,oBAAoB,IAAAzC,qCAAA,CAAA,IAAA,CAAA,EAAAC,0BAAA,OAAG,KAAK,CAAA;;AAE5B;AAEAyC,EAAAA,uBAAuB,IAAAxC,gCAAA,CAAA,IAAA,CAAA,EAAAC,6BAAA,OAAG,IAAI,CAAA;AAAC,EAAA;IAAAG,UAAA,EAAA;AAAA;AAEjC;;;;"}
@@ -0,0 +1,63 @@
1
+ import { applyDecs2311 as _applyDecs2311 } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
+ import { type } from '@carbonenginejs/core-types/schema';
3
+ import { CjsModel } from '@carbonenginejs/core-types/model';
4
+ import { vec3 } from '@carbonenginejs/core-math/vec3';
5
+ import { vec4 } from '@carbonenginejs/core-math/vec4';
6
+
7
+ let _initClass, _init_name, _init_extra_name, _init_vertexDeclarationHandle, _init_extra_vertexDeclarationHandle, _init_bytesPerVertex, _init_extra_bytesPerVertex, _init_minBounds, _init_extra_minBounds, _init_maxBounds, _init_extra_maxBounds, _init_boundingSphere, _init_extra_boundingSphere, _init_jointBindings, _init_extra_jointBindings, _init_audioGeometry, _init_extra_audioGeometry, _init_decals, _init_extra_decals, _init_lodMask, _init_extra_lodMask, _init_lods, _init_extra_lods;
8
+
9
+ /** TriGeometryResMeshData (resources) - generated from schema shapeHash 3d7f49cc.... */
10
+ let _TriGeometryResMeshDa;
11
+ class TriGeometryResMeshData extends CjsModel {
12
+ static {
13
+ ({
14
+ e: [_init_name, _init_extra_name, _init_vertexDeclarationHandle, _init_extra_vertexDeclarationHandle, _init_bytesPerVertex, _init_extra_bytesPerVertex, _init_minBounds, _init_extra_minBounds, _init_maxBounds, _init_extra_maxBounds, _init_boundingSphere, _init_extra_boundingSphere, _init_jointBindings, _init_extra_jointBindings, _init_audioGeometry, _init_extra_audioGeometry, _init_decals, _init_extra_decals, _init_lodMask, _init_extra_lodMask, _init_lods, _init_extra_lods],
15
+ c: [_TriGeometryResMeshDa, _initClass]
16
+ } = _applyDecs2311(this, [type.define({
17
+ className: "TriGeometryResMeshData",
18
+ family: "resources"
19
+ })], [[[type, type.string], 16, "name"], [[type, type.uint32], 16, "vertexDeclarationHandle"], [[type, type.uint32], 16, "bytesPerVertex"], [[type, type.vec3], 16, "minBounds"], [[type, type.vec3], 16, "maxBounds"], [[type, type.vec4], 16, "boundingSphere"], [[type, type.unknown], 16, "jointBindings"], [type.rawStruct("AudioGeometryResData"), 0, "audioGeometry"], [type.list("MeshDecalData"), 0, "decals"], [[type, type.uint32], 16, "lodMask"], [type.rawStruct("TrackableStdVector<std::unique_ptr<TriGeometryResLodData>>"), 0, "lods"]], 0, void 0, CjsModel));
20
+ }
21
+ constructor(...args) {
22
+ super(...args);
23
+ _init_extra_lods(this);
24
+ }
25
+ /** m_name (std::string) */
26
+ name = _init_name(this, "");
27
+
28
+ /** m_vertexDeclarationHandle (unsigned int) */
29
+ vertexDeclarationHandle = (_init_extra_name(this), _init_vertexDeclarationHandle(this, 0));
30
+
31
+ /** m_bytesPerVertex (unsigned int) */
32
+ bytesPerVertex = (_init_extra_vertexDeclarationHandle(this), _init_bytesPerVertex(this, -1));
33
+
34
+ /** m_minBounds (Vector3) */
35
+ minBounds = (_init_extra_bytesPerVertex(this), _init_minBounds(this, vec3.create()));
36
+
37
+ /** m_maxBounds (Vector3) */
38
+ maxBounds = (_init_extra_minBounds(this), _init_maxBounds(this, vec3.create()));
39
+
40
+ /** m_boundingSphere (Vector4) */
41
+ boundingSphere = (_init_extra_maxBounds(this), _init_boundingSphere(this, vec4.create()));
42
+
43
+ /** m_jointBindings (TrackableStdVector<TriJointBinding>) */
44
+ jointBindings = (_init_extra_boundingSphere(this), _init_jointBindings(this, null));
45
+
46
+ /** m_audioGeometry (std::unique_ptr<AudioGeometryResData>) */
47
+ audioGeometry = (_init_extra_jointBindings(this), _init_audioGeometry(this, null));
48
+
49
+ /** m_decals (std::vector<std::shared_ptr<MeshDecalData>>) */
50
+ decals = (_init_extra_audioGeometry(this), _init_decals(this, []));
51
+
52
+ /** m_lodMask (uint32_t) */
53
+ lodMask = (_init_extra_decals(this), _init_lodMask(this, 0));
54
+
55
+ /** m_lods (TrackableStdVector<std::unique_ptr<TriGeometryResLodData>>) */
56
+ lods = (_init_extra_lodMask(this), _init_lods(this, null));
57
+ static {
58
+ _initClass();
59
+ }
60
+ }
61
+
62
+ export { _TriGeometryResMeshDa as TriGeometryResMeshData };
63
+ //# sourceMappingURL=TriGeometryResMeshData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TriGeometryResMeshData.js","sources":["../../../../src/generated/resources/TriGeometryResMeshData.js"],"sourcesContent":["// Source: trinity/trinity/Resources/TriGeometryRes.h\n// Generated by format-carbon carbon-class --emit. Verify against resources/TriGeometryResMeshData.json.\nimport { type } from \"@carbonenginejs/core-types/schema\";\nimport { CjsModel } from \"@carbonenginejs/core-types/model\";\nimport { vec3 } from \"@carbonenginejs/core-math/vec3\";\nimport { vec4 } from \"@carbonenginejs/core-math/vec4\";\n\n/** TriGeometryResMeshData (resources) - generated from schema shapeHash 3d7f49cc.... */\n@type.define({ className: \"TriGeometryResMeshData\", family: \"resources\" })\nexport class TriGeometryResMeshData extends CjsModel\n{\n\n /** m_name (std::string) */\n @type.string\n name = \"\";\n\n /** m_vertexDeclarationHandle (unsigned int) */\n @type.uint32\n vertexDeclarationHandle = 0;\n\n /** m_bytesPerVertex (unsigned int) */\n @type.uint32\n bytesPerVertex = -1;\n\n /** m_minBounds (Vector3) */\n @type.vec3\n minBounds = vec3.create();\n\n /** m_maxBounds (Vector3) */\n @type.vec3\n maxBounds = vec3.create();\n\n /** m_boundingSphere (Vector4) */\n @type.vec4\n boundingSphere = vec4.create();\n\n /** m_jointBindings (TrackableStdVector<TriJointBinding>) */\n @type.unknown\n jointBindings = null;\n\n /** m_audioGeometry (std::unique_ptr<AudioGeometryResData>) */\n @type.rawStruct(\"AudioGeometryResData\")\n audioGeometry = null;\n\n /** m_decals (std::vector<std::shared_ptr<MeshDecalData>>) */\n @type.list(\"MeshDecalData\")\n decals = [];\n\n /** m_lodMask (uint32_t) */\n @type.uint32\n lodMask = 0;\n\n /** m_lods (TrackableStdVector<std::unique_ptr<TriGeometryResLodData>>) */\n @type.rawStruct(\"TrackableStdVector<std::unique_ptr<TriGeometryResLodData>>\")\n lods = null;\n\n}\n"],"names":["_TriGeometryResMeshDa","TriGeometryResMeshData","CjsModel","e","_init_name","_init_extra_name","_init_vertexDeclarationHandle","_init_extra_vertexDeclarationHandle","_init_bytesPerVertex","_init_extra_bytesPerVertex","_init_minBounds","_init_extra_minBounds","_init_maxBounds","_init_extra_maxBounds","_init_boundingSphere","_init_extra_boundingSphere","_init_jointBindings","_init_extra_jointBindings","_init_audioGeometry","_init_extra_audioGeometry","_init_decals","_init_extra_decals","_init_lodMask","_init_extra_lodMask","_init_lods","_init_extra_lods","c","_initClass","_applyDecs","type","define","className","family","string","uint32","vec3","vec4","unknown","rawStruct","list","constructor","args","name","vertexDeclarationHandle","bytesPerVertex","minBounds","create","maxBounds","boundingSphere","jointBindings","audioGeometry","decals","lodMask","lods"],"mappings":";;;;;;;;AAOA;AAAA,IAAAA;AACA,MAAAC,sBAAA,SAC4CC,QAAQ,CACpD;AAAA,EAAA;AAAA,IAAA,CAAA;AAAAC,MAAAA,CAAA,GAAAC,UAAA,EAAAC,gBAAA,EAAAC,6BAAA,EAAAC,mCAAA,EAAAC,oBAAA,EAAAC,0BAAA,EAAAC,eAAA,EAA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A9B,mBAAA,CAAA,IAAA,CAAA,EAAAC,UAAA,OAAG,IAAI,CAAA;AAAC,EAAA;IAAAG,UAAA,EAAA;AAAA;AAEd;;;;"}
@@ -0,0 +1,34 @@
1
+ import { applyDecs2311 as _applyDecs2311 } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
+ import { type } from '@carbonenginejs/core-types/schema';
3
+ import { CjsModel } from '@carbonenginejs/core-types/model';
4
+
5
+ let _initClass, _init_name, _init_extra_name, _init_joints, _init_extra_joints;
6
+
7
+ /** TriGeometryResSkeletonData (resources) - generated from schema shapeHash 9cfcfdf1.... */
8
+ let _TriGeometryResSkelet;
9
+ class TriGeometryResSkeletonData extends CjsModel {
10
+ static {
11
+ ({
12
+ e: [_init_name, _init_extra_name, _init_joints, _init_extra_joints],
13
+ c: [_TriGeometryResSkelet, _initClass]
14
+ } = _applyDecs2311(this, [type.define({
15
+ className: "TriGeometryResSkeletonData",
16
+ family: "resources"
17
+ })], [[[type, type.string], 16, "name"], [[type, type.unknown], 16, "joints"]], 0, void 0, CjsModel));
18
+ }
19
+ constructor(...args) {
20
+ super(...args);
21
+ _init_extra_joints(this);
22
+ }
23
+ /** m_name (std::string) */
24
+ name = _init_name(this, "");
25
+
26
+ /** m_joints (TrackableStdVector<TriGeometryResJointData>) */
27
+ joints = (_init_extra_name(this), _init_joints(this, null));
28
+ static {
29
+ _initClass();
30
+ }
31
+ }
32
+
33
+ export { _TriGeometryResSkelet as TriGeometryResSkeletonData };
34
+ //# sourceMappingURL=TriGeometryResSkeletonData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TriGeometryResSkeletonData.js","sources":["../../../../src/generated/resources/TriGeometryResSkeletonData.js"],"sourcesContent":["// Source: trinity/trinity/Resources/TriGeometryRes.h\n// Generated by format-carbon carbon-class --emit. Verify against resources/TriGeometryResSkeletonData.json.\nimport { type } from \"@carbonenginejs/core-types/schema\";\nimport { CjsModel } from \"@carbonenginejs/core-types/model\";\n\n/** TriGeometryResSkeletonData (resources) - generated from schema shapeHash 9cfcfdf1.... */\n@type.define({ className: \"TriGeometryResSkeletonData\", family: \"resources\" })\nexport class TriGeometryResSkeletonData extends CjsModel\n{\n\n /** m_name (std::string) */\n @type.string\n name = \"\";\n\n /** m_joints (TrackableStdVector<TriGeometryResJointData>) */\n @type.unknown\n joints = null;\n\n}\n"],"names":["_TriGeometryResSkelet","TriGeometryResSkeletonData","CjsModel","e","_init_name","_init_extra_name","_init_joints","_init_extra_joints","c","_initClass","_applyDecs","type","define","className","family","string","unknown","constructor","args","name","joints"],"mappings":";;;;;;AAKA;AAAA,IAAAA;AACA,MAAAC,0BAAA,SACgDC,QAAQ,CACxD;AAAA,EAAA;AAAA,IAAA,CAAA;AAAAC,MAAAA,CAAA,GAAAC,UAAA,EAAAC,gBAAA,EAAAC,YAAA,EAAAC,kBAAA,CAAA;MAAAC,CAAA,EAAA,CAAAR,qBAAA,EAAAS,UAAA;AAAA,KAAA,GAAAC,cAAA,CAAA,IAAA,EAAA,CAFCC,IAAI,CAACC,MAAM,CAAC;AAAEC,MAAAA,SAAS,EAAE,4BAA4B;AAAEC,MAAAA,MAAM,EAAE;AAAY,KAAC,CAAC,CAAA,EAAA,CAAA,CAAA,CAK3EH,IAAI,EAAJA,IAAI,CAACI,MAAM,CAAA,EAAA,EAAA,EAAA,MAAA,CAAA,EAAA,CAAA,CAIXJ,IAAI,EAAJA,IAAI,CAACK,OAAO,8BARiCd,QAAQ,CAAA;AAAA;AAAAe,EAAAA,WAAAA,CAAA,GAAAC,IAAA,EAAA;AAAA,IAAA,KAAA,CAAA,GAAAA,IAAA,CAAA;IAAAX,kBAAA,CAAA,IAAA,CAAA;AAAA,EAAA;AAGtD;EAEAY,IAAI,GAAAf,UAAA,CAAA,IAAA,EAAG,EAAE,CAAA;;AAET;AAEAgB,EAAAA,MAAM,IAAAf,gBAAA,CAAA,IAAA,CAAA,EAAAC,YAAA,OAAG,IAAI,CAAA;AAAC,EAAA;IAAAG,UAAA,EAAA;AAAA;AAEhB;;;;"}
@@ -0,0 +1,38 @@
1
+ import { applyDecs2311 as _applyDecs2311 } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
+ import { type } from '@carbonenginejs/core-types/schema';
3
+ import { CjsModel } from '@carbonenginejs/core-types/model';
4
+ import { vec3 } from '@carbonenginejs/core-math/vec3';
5
+
6
+ let _initClass, _init_name, _init_extra_name, _init_obbMin, _init_extra_obbMin, _init_obbMax, _init_extra_obbMax;
7
+
8
+ /** TriJointBinding (resources) - generated from schema shapeHash 8459bced.... */
9
+ let _TriJointBinding;
10
+ class TriJointBinding extends CjsModel {
11
+ static {
12
+ ({
13
+ e: [_init_name, _init_extra_name, _init_obbMin, _init_extra_obbMin, _init_obbMax, _init_extra_obbMax],
14
+ c: [_TriJointBinding, _initClass]
15
+ } = _applyDecs2311(this, [type.define({
16
+ className: "TriJointBinding",
17
+ family: "resources"
18
+ })], [[[type, type.string], 16, "name"], [[type, type.vec3], 16, "obbMin"], [[type, type.vec3], 16, "obbMax"]], 0, void 0, CjsModel));
19
+ }
20
+ constructor(...args) {
21
+ super(...args);
22
+ _init_extra_obbMax(this);
23
+ }
24
+ /** m_name (std::string) */
25
+ name = _init_name(this, "");
26
+
27
+ /** m_obbMin (Vector3) */
28
+ obbMin = (_init_extra_name(this), _init_obbMin(this, vec3.create()));
29
+
30
+ /** m_obbMax (Vector3) */
31
+ obbMax = (_init_extra_obbMin(this), _init_obbMax(this, vec3.create()));
32
+ static {
33
+ _initClass();
34
+ }
35
+ }
36
+
37
+ export { _TriJointBinding as TriJointBinding };
38
+ //# sourceMappingURL=TriJointBinding.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TriJointBinding.js","sources":["../../../../src/generated/resources/TriJointBinding.js"],"sourcesContent":["// Source: trinity/trinity/Resources/TriGeometryRes.h\n// Generated by format-carbon carbon-class --emit. Verify against resources/TriJointBinding.json.\nimport { type } from \"@carbonenginejs/core-types/schema\";\nimport { CjsModel } from \"@carbonenginejs/core-types/model\";\nimport { vec3 } from \"@carbonenginejs/core-math/vec3\";\n\n/** TriJointBinding (resources) - generated from schema shapeHash 8459bced.... */\n@type.define({ className: \"TriJointBinding\", family: \"resources\" })\nexport class TriJointBinding extends CjsModel\n{\n\n /** m_name (std::string) */\n @type.string\n name = \"\";\n\n /** m_obbMin (Vector3) */\n @type.vec3\n obbMin = vec3.create();\n\n /** m_obbMax (Vector3) */\n @type.vec3\n obbMax = vec3.create();\n\n}\n"],"names":["_TriJointBinding","TriJointBinding","CjsModel","e","_init_name","_init_extra_name","_init_obbMin","_init_extra_obbMin","_init_obbMax","_init_extra_obbMax","c","_initClass","_applyDecs","type","define","className","family","string","vec3","constructor","args","name","obbMin","create","obbMax"],"mappings":";;;;;;;AAMA;AAAA,IAAAA;AACA,MAAAC,eAAA,SACqCC,QAAQ,CAC7C;AAAA,EAAA;AAAA,IAAA,CAAA;MAAAC,CAAA,EAAA,CAAAC,UAAA,EAAAC,gBAAA,EAAAC,YAAA,EAAAC,kBAAA,EAAAC,YAAA,EAAAC,kBAAA,CAAA;MAAAC,CAAA,EAAA,CAAAV,gBAAA,EAAAW,UAAA;AAAA,KAAA,GAAAC,cAAA,CAAA,IAAA,EAAA,CAFCC,IAAI,CAACC,MAAM,CAAC;AAAEC,MAAAA,SAAS,EAAE,iBAAiB;AAAEC,MAAAA,MAAM,EAAE;KAAa,CAAC,MAKhEH,IAAI,EAAJA,IAAI,CAACI,MAAM,kBAIXJ,IAAI,EAAJA,IAAI,CAACK,IAAI,oBAITL,IAAI,EAAJA,IAAI,CAACK,IAAI,8BAZyBhB,QAAQ,CAAA;AAAA;AAAAiB,EAAAA,WAAAA,CAAA,GAAAC,IAAA,EAAA;AAAA,IAAA,KAAA,CAAA,GAAAA,IAAA,CAAA;IAAAX,kBAAA,CAAA,IAAA,CAAA;AAAA,EAAA;AAG3C;EAEAY,IAAI,GAAAjB,UAAA,CAAA,IAAA,EAAG,EAAE,CAAA;;AAET;EAEAkB,MAAM,IAAAjB,gBAAA,CAAA,IAAA,CAAA,EAAAC,YAAA,OAAGY,IAAI,CAACK,MAAM,EAAE,CAAA;;AAEtB;EAEAC,MAAM,IAAAjB,kBAAA,CAAA,IAAA,CAAA,EAAAC,YAAA,OAAGU,IAAI,CAACK,MAAM,EAAE,CAAA;AAAC,EAAA;IAAAZ,UAAA,EAAA;AAAA;AAEzB;;;;"}
@@ -0,0 +1,46 @@
1
+ import { applyDecs2311 as _applyDecs2311 } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
+ import { type } from '@carbonenginejs/core-types/schema';
3
+ import { CjsModel } from '@carbonenginejs/core-types/model';
4
+
5
+ let _initClass, _init_vertexBufferStride, _init_extra_vertexBufferStride, _init_positionOffset, _init_extra_positionOffset, _init_positionType, _init_extra_positionType, _init_tangentOffset, _init_extra_tangentOffset, _init_tangentType, _init_extra_tangentType, _init_vertexCount, _init_extra_vertexCount;
6
+
7
+ /** TriMorphTargetGeometryConstants (resources) - generated from schema shapeHash d650628c.... */
8
+ let _TriMorphTargetGeomet;
9
+ class TriMorphTargetGeometryConstants extends CjsModel {
10
+ static {
11
+ ({
12
+ e: [_init_vertexBufferStride, _init_extra_vertexBufferStride, _init_positionOffset, _init_extra_positionOffset, _init_positionType, _init_extra_positionType, _init_tangentOffset, _init_extra_tangentOffset, _init_tangentType, _init_extra_tangentType, _init_vertexCount, _init_extra_vertexCount],
13
+ c: [_TriMorphTargetGeomet, _initClass]
14
+ } = _applyDecs2311(this, [type.define({
15
+ className: "TriMorphTargetGeometryConstants",
16
+ family: "resources"
17
+ })], [[[type, type.uint32], 16, "vertexBufferStride"], [[type, type.uint32], 16, "positionOffset"], [[type, type.uint32], 16, "positionType"], [[type, type.uint32], 16, "tangentOffset"], [[type, type.uint32], 16, "tangentType"], [[type, type.uint32], 16, "vertexCount"]], 0, void 0, CjsModel));
18
+ }
19
+ constructor(...args) {
20
+ super(...args);
21
+ _init_extra_vertexCount(this);
22
+ }
23
+ /** vertexBufferStride (uint32_t) */
24
+ vertexBufferStride = _init_vertexBufferStride(this, 0);
25
+
26
+ /** positionOffset (uint32_t) */
27
+ positionOffset = (_init_extra_vertexBufferStride(this), _init_positionOffset(this, 0));
28
+
29
+ /** positionType (uint32_t) */
30
+ positionType = (_init_extra_positionOffset(this), _init_positionType(this, 0));
31
+
32
+ /** tangentOffset (uint32_t) */
33
+ tangentOffset = (_init_extra_positionType(this), _init_tangentOffset(this, 0));
34
+
35
+ /** tangentType (uint32_t) */
36
+ tangentType = (_init_extra_tangentOffset(this), _init_tangentType(this, 0));
37
+
38
+ /** vertexCount (uint32_t) */
39
+ vertexCount = (_init_extra_tangentType(this), _init_vertexCount(this, 0));
40
+ static {
41
+ _initClass();
42
+ }
43
+ }
44
+
45
+ export { _TriMorphTargetGeomet as TriMorphTargetGeometryConstants };
46
+ //# sourceMappingURL=TriMorphTargetGeometryConstants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TriMorphTargetGeometryConstants.js","sources":["../../../../src/generated/resources/TriMorphTargetGeometryConstants.js"],"sourcesContent":["// Source: trinity/trinity/Resources/TriGeometryRes.h\n// Generated by format-carbon carbon-class --emit. Verify against resources/TriMorphTargetGeometryConstants.json.\nimport { type } from \"@carbonenginejs/core-types/schema\";\nimport { CjsModel } from \"@carbonenginejs/core-types/model\";\n\n/** TriMorphTargetGeometryConstants (resources) - generated from schema shapeHash d650628c.... */\n@type.define({ className: \"TriMorphTargetGeometryConstants\", family: \"resources\" })\nexport class TriMorphTargetGeometryConstants extends CjsModel\n{\n\n /** vertexBufferStride (uint32_t) */\n @type.uint32\n vertexBufferStride = 0;\n\n /** positionOffset (uint32_t) */\n @type.uint32\n positionOffset = 0;\n\n /** positionType (uint32_t) */\n @type.uint32\n positionType = 0;\n\n /** tangentOffset (uint32_t) */\n @type.uint32\n tangentOffset = 0;\n\n /** tangentType (uint32_t) */\n @type.uint32\n tangentType = 0;\n\n /** vertexCount (uint32_t) */\n @type.uint32\n vertexCount = 0;\n\n}\n"],"names":["_TriMorphTargetGeomet","TriMorphTargetGeometryConstants","CjsModel","e","_init_vertexBufferStride","_init_extra_vertexBufferStride","_init_positionOffset","_init_extra_positionOffset","_init_positionType","_init_extra_positionType","_init_tangentOffset","_init_extra_tangentOffset","_init_tangentType","_init_extra_tangentType","_init_vertexCount","_init_extra_vertexCount","c","_initClass","_applyDecs","type","define","className","family","uint32","constructor","args","vertexBufferStride","positionOffset","positionType","tangentOffset","tangentType","vertexCount"],"mappings":";;;;;;AAKA;AAAA,IAAAA;AACA,MAAAC,+BAAA,SACqDC,QAAQ,CAC7D;AAAA,EAAA;AAAA,IAAA,CAAA;MAAAC,CAAA,EAAA,CAAAC,wBAAA,EAAAC,8BAAA,EAAAC,oBAAA,EAAAC,0BAAA,EAAAC,kBAAA,EAAAC,wBAAA,EAAAC,mBAAA,EAAAC,yBAAA,EAAAC,iBAAA,EAAAC,uBAAA,EAAAC,iBAAA,EAAAC,uBAAA,CAAA;MAAAC,CAAA,EAAA,CAAAhB,qBAAA,EAAAiB,UAAA;AAAA,KAAA,GAAAC,cAAA,CAAA,IAAA,EAAA,CAFCC,IAAI,CAACC,MAAM,CAAC;AAAEC,MAAAA,SAAS,EAAE,iCAAiC;AAAEC,MAAAA,MAAM,EAAE;AAAY,KAAC,CAAC,CAAA,EAAA,CAAA,CAAA,CAKhFH,IAAI,EAAJA,IAAI,CAACI,MAAM,CAAA,EAAA,EAAA,EAAA,oBAAA,CAAA,EAAA,CAAA,CAIXJ,IAAI,EAAJA,IAAI,CAACI,MAAM,4BAIXJ,IAAI,EAAJA,IAAI,CAACI,MAAM,CAAA,EAAA,EAAA,EAAA,cAAA,CAAA,EAAA,CAAA,CAIXJ,IAAI,EAAJA,IAAI,CAACI,MAAM,CAAA,EAAA,EAAA,EAAA,eAAA,CAAA,EAAA,CAAA,CAIXJ,IAAI,EAAJA,IAAI,CAACI,MAAM,yBAIXJ,IAAI,EAAJA,IAAI,CAACI,MAAM,mCAxBuCrB,QAAQ,CAAA;AAAA;AAAAsB,EAAAA,WAAAA,CAAA,GAAAC,IAAA,EAAA;AAAA,IAAA,KAAA,CAAA,GAAAA,IAAA,CAAA;IAAAV,uBAAA,CAAA,IAAA,CAAA;AAAA,EAAA;AAG3D;EAEAW,kBAAkB,GAAAtB,wBAAA,CAAA,IAAA,EAAG,CAAC,CAAA;;AAEtB;AAEAuB,EAAAA,cAAc,IAAAtB,8BAAA,CAAA,IAAA,CAAA,EAAAC,oBAAA,OAAG,CAAC,CAAA;;AAElB;AAEAsB,EAAAA,YAAY,IAAArB,0BAAA,CAAA,IAAA,CAAA,EAAAC,kBAAA,OAAG,CAAC,CAAA;;AAEhB;AAEAqB,EAAAA,aAAa,IAAApB,wBAAA,CAAA,IAAA,CAAA,EAAAC,mBAAA,OAAG,CAAC,CAAA;;AAEjB;AAEAoB,EAAAA,WAAW,IAAAnB,yBAAA,CAAA,IAAA,CAAA,EAAAC,iBAAA,OAAG,CAAC,CAAA;;AAEf;AAEAmB,EAAAA,WAAW,IAAAlB,uBAAA,CAAA,IAAA,CAAA,EAAAC,iBAAA,OAAG,CAAC,CAAA;AAAC,EAAA;IAAAG,UAAA,EAAA;AAAA;AAElB;;;;"}
@@ -0,0 +1,88 @@
1
+ import { applyDecs2311 as _applyDecs2311 } from '../../_virtual/_rollupPluginBabelHelpers.js';
2
+ import { type } from '@carbonenginejs/core-types/schema';
3
+ import { CjsModel } from '@carbonenginejs/core-types/model';
4
+
5
+ let _initClass, _init_indexBufferId, _init_extra_indexBufferId, _init_indexBufferStride, _init_extra_indexBufferStride, _init_indexOffset, _init_extra_indexOffset, _init_vertexBufferId, _init_extra_vertexBufferId, _init_vertexBufferStride, _init_extra_vertexBufferStride, _init_positionOffset, _init_extra_positionOffset, _init_positionType, _init_extra_positionType, _init_normalOffset, _init_extra_normalOffset, _init_normalType, _init_extra_normalType, _init_tangentOffset, _init_extra_tangentOffset, _init_tangentType, _init_extra_tangentType, _init_bitangentOffset, _init_extra_bitangentOffset, _init_bitangentType, _init_extra_bitangentType, _init_texCoord0Offset, _init_extra_texCoord0Offset, _init_texCoord0Type, _init_extra_texCoord0Type, _init_texCoord1Offset, _init_extra_texCoord1Offset, _init_texCoord1Type, _init_extra_texCoord1Type, _init_texCoord2Offset, _init_extra_texCoord2Offset, _init_texCoord2Type, _init_extra_texCoord2Type, _init_padding, _init_extra_padding;
6
+
7
+ /** TriRtGeometryConstants (resources) - generated from schema shapeHash cb7de752.... */
8
+ let _TriRtGeometryConstan;
9
+ class TriRtGeometryConstants extends CjsModel {
10
+ static {
11
+ ({
12
+ e: [_init_indexBufferId, _init_extra_indexBufferId, _init_indexBufferStride, _init_extra_indexBufferStride, _init_indexOffset, _init_extra_indexOffset, _init_vertexBufferId, _init_extra_vertexBufferId, _init_vertexBufferStride, _init_extra_vertexBufferStride, _init_positionOffset, _init_extra_positionOffset, _init_positionType, _init_extra_positionType, _init_normalOffset, _init_extra_normalOffset, _init_normalType, _init_extra_normalType, _init_tangentOffset, _init_extra_tangentOffset, _init_tangentType, _init_extra_tangentType, _init_bitangentOffset, _init_extra_bitangentOffset, _init_bitangentType, _init_extra_bitangentType, _init_texCoord0Offset, _init_extra_texCoord0Offset, _init_texCoord0Type, _init_extra_texCoord0Type, _init_texCoord1Offset, _init_extra_texCoord1Offset, _init_texCoord1Type, _init_extra_texCoord1Type, _init_texCoord2Offset, _init_extra_texCoord2Offset, _init_texCoord2Type, _init_extra_texCoord2Type, _init_padding, _init_extra_padding],
13
+ c: [_TriRtGeometryConstan, _initClass]
14
+ } = _applyDecs2311(this, [type.define({
15
+ className: "TriRtGeometryConstants",
16
+ family: "resources"
17
+ })], [[[type, type.uint32], 16, "indexBufferId"], [[type, type.uint32], 16, "indexBufferStride"], [[type, type.uint32], 16, "indexOffset"], [[type, type.uint32], 16, "vertexBufferId"], [[type, type.uint32], 16, "vertexBufferStride"], [[type, type.uint32], 16, "positionOffset"], [[type, type.uint32], 16, "positionType"], [[type, type.uint32], 16, "normalOffset"], [[type, type.uint32], 16, "normalType"], [[type, type.uint32], 16, "tangentOffset"], [[type, type.uint32], 16, "tangentType"], [[type, type.uint32], 16, "bitangentOffset"], [[type, type.uint32], 16, "bitangentType"], [[type, type.uint32], 16, "texCoord0Offset"], [[type, type.uint32], 16, "texCoord0Type"], [[type, type.uint32], 16, "texCoord1Offset"], [[type, type.uint32], 16, "texCoord1Type"], [[type, type.uint32], 16, "texCoord2Offset"], [[type, type.uint32], 16, "texCoord2Type"], [[type, type.uint32], 16, "padding"]], 0, void 0, CjsModel));
18
+ }
19
+ constructor(...args) {
20
+ super(...args);
21
+ _init_extra_padding(this);
22
+ }
23
+ /** indexBufferId (uint32_t) */
24
+ indexBufferId = _init_indexBufferId(this, 0);
25
+
26
+ /** indexBufferStride (uint32_t) */
27
+ indexBufferStride = (_init_extra_indexBufferId(this), _init_indexBufferStride(this, 0));
28
+
29
+ /** indexOffset (uint32_t) */
30
+ indexOffset = (_init_extra_indexBufferStride(this), _init_indexOffset(this, 0));
31
+
32
+ /** vertexBufferId (uint32_t) */
33
+ vertexBufferId = (_init_extra_indexOffset(this), _init_vertexBufferId(this, 0));
34
+
35
+ /** vertexBufferStride (uint32_t) */
36
+ vertexBufferStride = (_init_extra_vertexBufferId(this), _init_vertexBufferStride(this, 0));
37
+
38
+ /** positionOffset (uint32_t) */
39
+ positionOffset = (_init_extra_vertexBufferStride(this), _init_positionOffset(this, 0));
40
+
41
+ /** positionType (uint32_t) */
42
+ positionType = (_init_extra_positionOffset(this), _init_positionType(this, 0));
43
+
44
+ /** normalOffset (uint32_t) */
45
+ normalOffset = (_init_extra_positionType(this), _init_normalOffset(this, 0));
46
+
47
+ /** normalType (uint32_t) */
48
+ normalType = (_init_extra_normalOffset(this), _init_normalType(this, 0));
49
+
50
+ /** tangentOffset (uint32_t) */
51
+ tangentOffset = (_init_extra_normalType(this), _init_tangentOffset(this, 0));
52
+
53
+ /** tangentType (uint32_t) */
54
+ tangentType = (_init_extra_tangentOffset(this), _init_tangentType(this, 0));
55
+
56
+ /** bitangentOffset (uint32_t) */
57
+ bitangentOffset = (_init_extra_tangentType(this), _init_bitangentOffset(this, 0));
58
+
59
+ /** bitangentType (uint32_t) */
60
+ bitangentType = (_init_extra_bitangentOffset(this), _init_bitangentType(this, 0));
61
+
62
+ /** texCoord0Offset (uint32_t) */
63
+ texCoord0Offset = (_init_extra_bitangentType(this), _init_texCoord0Offset(this, 0));
64
+
65
+ /** texCoord0Type (uint32_t) */
66
+ texCoord0Type = (_init_extra_texCoord0Offset(this), _init_texCoord0Type(this, 0));
67
+
68
+ /** texCoord1Offset (uint32_t) */
69
+ texCoord1Offset = (_init_extra_texCoord0Type(this), _init_texCoord1Offset(this, 0));
70
+
71
+ /** texCoord1Type (uint32_t) */
72
+ texCoord1Type = (_init_extra_texCoord1Offset(this), _init_texCoord1Type(this, 0));
73
+
74
+ /** texCoord2Offset (uint32_t) */
75
+ texCoord2Offset = (_init_extra_texCoord1Type(this), _init_texCoord2Offset(this, 0));
76
+
77
+ /** texCoord2Type (uint32_t) */
78
+ texCoord2Type = (_init_extra_texCoord2Offset(this), _init_texCoord2Type(this, 0));
79
+
80
+ /** padding (uint32_t) */
81
+ padding = (_init_extra_texCoord2Type(this), _init_padding(this, 0));
82
+ static {
83
+ _initClass();
84
+ }
85
+ }
86
+
87
+ export { _TriRtGeometryConstan as TriRtGeometryConstants };
88
+ //# sourceMappingURL=TriRtGeometryConstants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TriRtGeometryConstants.js","sources":["../../../../src/generated/resources/TriRtGeometryConstants.js"],"sourcesContent":["// Source: trinity/trinity/Resources/TriGeometryRes.h\n// Generated by format-carbon carbon-class --emit. Verify against resources/TriRtGeometryConstants.json.\nimport { type } from \"@carbonenginejs/core-types/schema\";\nimport { CjsModel } from \"@carbonenginejs/core-types/model\";\n\n/** TriRtGeometryConstants (resources) - generated from schema shapeHash cb7de752.... */\n@type.define({ className: \"TriRtGeometryConstants\", family: \"resources\" })\nexport class TriRtGeometryConstants extends CjsModel\n{\n\n /** indexBufferId (uint32_t) */\n @type.uint32\n indexBufferId = 0;\n\n /** indexBufferStride (uint32_t) */\n @type.uint32\n indexBufferStride = 0;\n\n /** indexOffset (uint32_t) */\n @type.uint32\n indexOffset = 0;\n\n /** vertexBufferId (uint32_t) */\n @type.uint32\n vertexBufferId = 0;\n\n /** vertexBufferStride (uint32_t) */\n @type.uint32\n vertexBufferStride = 0;\n\n /** positionOffset (uint32_t) */\n @type.uint32\n positionOffset = 0;\n\n /** positionType (uint32_t) */\n @type.uint32\n positionType = 0;\n\n /** normalOffset (uint32_t) */\n @type.uint32\n normalOffset = 0;\n\n /** normalType (uint32_t) */\n @type.uint32\n normalType = 0;\n\n /** tangentOffset (uint32_t) */\n @type.uint32\n tangentOffset = 0;\n\n /** tangentType (uint32_t) */\n @type.uint32\n tangentType = 0;\n\n /** bitangentOffset (uint32_t) */\n @type.uint32\n bitangentOffset = 0;\n\n /** bitangentType (uint32_t) */\n @type.uint32\n bitangentType = 0;\n\n /** texCoord0Offset (uint32_t) */\n @type.uint32\n texCoord0Offset = 0;\n\n /** texCoord0Type (uint32_t) */\n @type.uint32\n texCoord0Type = 0;\n\n /** texCoord1Offset (uint32_t) */\n @type.uint32\n texCoord1Offset = 0;\n\n /** texCoord1Type (uint32_t) */\n @type.uint32\n texCoord1Type = 0;\n\n /** texCoord2Offset (uint32_t) */\n @type.uint32\n texCoord2Offset = 0;\n\n /** texCoord2Type (uint32_t) */\n @type.uint32\n texCoord2Type = 0;\n\n /** padding (uint32_t) */\n @type.uint32\n padding = 0;\n\n}\n"],"names":["_TriRtGeometryConstan","TriRtGeometryConstants","CjsModel","e","_init_indexBufferId","_init_extra_indexBufferId","_init_indexBufferStride","_init_extra_indexBufferStride","_init_indexOffset","_init_extra_indexOffset","_init_vertexBufferId","_init_extra_vertexBufferId","_init_vertexBufferStride","_init_extra_vertexBufferStride","_init_positionOffset","_init_extra_positionOffset","_init_positionType","_init_extra_positionType","_init_normalOffset","_init_extra_normalOffset","_init_normalType","_init_extra_normalType","_init_tangentOffset","_init_extra_tangentOffset","_init_tangentType","_init_extra_tangentType","_init_bitangentOffset","_init_extra_bitangentOffset","_init_bitangentType","_init_extra_bitangentType","_init_texCoord0Offset","_init_extra_texCoord0Offset","_init_texCoord0Type","_init_extra_texCoord0Type","_init_texCoord1Offset","_init_extra_texCoord1Offset","_init_texCoord1Type","_init_extra_texCoord1Type","_init_texCoord2Offset","_init_extra_texCoord2Offset","_init_texCoord2Type","_init_extra_texCoord2Type","_init_padding","_init_extra_padding","c","_initClass","_applyDecs","type","define","className","family","uint32","constructor","args","indexBufferId","indexBufferStride","indexOffset","vertexBufferId","vertexBufferStride","positionOffset","positionType","normalOffset","normalType","tangentOffset","tangentType","bitangentOffset","bitangentType","texCoord0Offset","texCoord0Type","texCoord1Offset","texCoord1Type","texCoord2Offset","texCoord2Type","padding"],"mappings":";;;;;;AAKA;AAAA,IAAAA;AACA,MAAAC,sBAAA,SAC4CC,QAAQ,CACpD;AAAA,EAAA;AAAA,IAAA,CAAA;AAAAC,MAAAA,CAAA,GAAAC,mBAAA,EAAAC,yBAAA,EAAAC,uBAAA,EAAAC,6BAAA,EAAAC,iBAAA,EAAAC,uBAAA,EAAAC,oBAAA,EAAAC,0BAAA,EAAAC,wBAAA,EAAAC,8BAAA,EAAAC,oBAAA,EAAAC,0BAAA,EAAAC,kBAAA,EAAAC,wBAAA,EAAAC,kBAAA,EAAAC,wBAAA,EAAAC,gBAAA,EAAAC,sBAAA,EAAAC,mBAAA,EAAAC,yBAAA,EAAAC,iBAAA,EAAAC,uBAAA,EAAAC,qBAAA,EAAAC,2BAAA,EAAAC,mBAAA,EAAAC,yBAAA,EAAAC,qBAAA,EAAAC,2BAAA,EAAAC,mBAAA,EAAAC,yBAAA,EAAAC,qBAAA,EAAAC,2BAAA,EAAAC,mBAAA,EAAAC,yBAAA,EAAAC,qBAAA,EAAAC,2BAAA,EAAAC,mBAAA,EAAAC,yBAAA,EAAAC,aAAA,EAAAC,mBA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,CAAA,EAAAC,mBAAA,OAAG,CAAC,CAAA;;AAEjB;AAEAmC,EAAAA,eAAe,IAAAlC,yBAAA,CAAA,IAAA,CAAA,EAAAC,qBAAA,OAAG,CAAC,CAAA;;AAEnB;AAEAkC,EAAAA,aAAa,IAAAjC,2BAAA,CAAA,IAAA,CAAA,EAAAC,mBAAA,OAAG,CAAC,CAAA;;AAEjB;AAEAiC,EAAAA,OAAO,IAAAhC,yBAAA,CAAA,IAAA,CAAA,EAAAC,aAAA,OAAG,CAAC,CAAA;AAAC,EAAA;IAAAG,UAAA,EAAA;AAAA;AAEd;;;;"}
@@ -0,0 +1,18 @@
1
+ // Generated by format-carbon carbon-class --emit-enums from schema enums.json.
2
+
3
+ const GrannyDeprecationLevel = Object.freeze({
4
+ DO_NOTHING: 0,
5
+ LOG_ERROR: 1,
6
+ LOG_ERROR_AND_ASSERT: 2
7
+ });
8
+ const Tr2Lod = Object.freeze({
9
+ TR2_LOD_UNSPECIFIED: -1,
10
+ TR2_LOD_LOW: 0,
11
+ TR2_LOD_MEDIUM: 1,
12
+ TR2_LOD_HIGH: 2,
13
+ TR2_LOD_ULTRA: 3,
14
+ TR2_LOD_COUNT: 4
15
+ });
16
+
17
+ export { GrannyDeprecationLevel, Tr2Lod };
18
+ //# sourceMappingURL=enums.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.js","sources":["../../../../src/generated/resources/enums.js"],"sourcesContent":["// Generated by format-carbon carbon-class --emit-enums from schema enums.json.\n\nexport const GrannyDeprecationLevel = Object.freeze({\n DO_NOTHING: 0,\n LOG_ERROR: 1,\n LOG_ERROR_AND_ASSERT: 2,\n});\n\nexport const Tr2Lod = Object.freeze({\n TR2_LOD_UNSPECIFIED: -1,\n TR2_LOD_LOW: 0,\n TR2_LOD_MEDIUM: 1,\n TR2_LOD_HIGH: 2,\n TR2_LOD_ULTRA: 3,\n TR2_LOD_COUNT: 4,\n});\n"],"names":["GrannyDeprecationLevel","Object","freeze","DO_NOTHING","LOG_ERROR","LOG_ERROR_AND_ASSERT","Tr2Lod","TR2_LOD_UNSPECIFIED","TR2_LOD_LOW","TR2_LOD_MEDIUM","TR2_LOD_HIGH","TR2_LOD_ULTRA","TR2_LOD_COUNT"],"mappings":"AAAA;;MAEaA,sBAAsB,GAAGC,MAAM,CAACC,MAAM,CAAC;AAClDC,EAAAA,UAAU,EAAE,CAAC;AACbC,EAAAA,SAAS,EAAE,CAAC;AACZC,EAAAA,oBAAoB,EAAE;AACxB,CAAC;MAEYC,MAAM,GAAGL,MAAM,CAACC,MAAM,CAAC;EAClCK,mBAAmB,EAAE,EAAE;AACvBC,EAAAA,WAAW,EAAE,CAAC;AACdC,EAAAA,cAAc,EAAE,CAAC;AACjBC,EAAAA,YAAY,EAAE,CAAC;AACfC,EAAAA,aAAa,EAAE,CAAC;AAChBC,EAAAA,aAAa,EAAE;AACjB,CAAC;;;;"}
@@ -0,0 +1,32 @@
1
+ export { AudioGeometryResData } from './AudioGeometryResData.js';
2
+ export { CmfVertexReader } from './CmfVertexReader.js';
3
+ export { GStateBindingCallbackData } from './GStateBindingCallbackData.js';
4
+ export { MeshDecalData } from './MeshDecalData.js';
5
+ export { MeshDecalLodData } from './MeshDecalLodData.js';
6
+ export { Tr2AsyncSave } from './Tr2AsyncSave.js';
7
+ export { Tr2CmfContents } from './Tr2CmfContents.js';
8
+ export { Tr2GrannyIntersectionResult } from './Tr2GrannyIntersectionResult.js';
9
+ export { Tr2LoadPrepareFence } from './Tr2LoadPrepareFence.js';
10
+ export { Tr2MaterialArea } from './Tr2MaterialArea.js';
11
+ export { Tr2MaterialMesh } from './Tr2MaterialMesh.js';
12
+ export { Tr2MaterialRes } from './Tr2MaterialRes.js';
13
+ export { Tr2ShaderPermutation } from './Tr2ShaderPermutation.js';
14
+ export { Tr2TextureLodManager } from './Tr2TextureLodManager.js';
15
+ export { Tr2TextureLodUpdateRequest } from './Tr2TextureLodUpdateRequest.js';
16
+ export { Tr2TexturePackChannel } from './Tr2TexturePackChannel.js';
17
+ export { Tr2TexturePipeline } from './Tr2TexturePipeline.js';
18
+ export { Tr2TexturePipelineParams } from './Tr2TexturePipelineParams.js';
19
+ export { Tr2TexturePipelineStepCompress } from './Tr2TexturePipelineStepCompress.js';
20
+ export { Tr2TexturePipelineStepLimitSize } from './Tr2TexturePipelineStepLimitSize.js';
21
+ export { Tr2TexturePipelineStepLoad } from './Tr2TexturePipelineStepLoad.js';
22
+ export { Tr2TexturePipelineStepPack } from './Tr2TexturePipelineStepPack.js';
23
+ export { TriGeometryResAreaData } from './TriGeometryResAreaData.js';
24
+ export { TriGeometryResJointData } from './TriGeometryResJointData.js';
25
+ export { TriGeometryResLodData } from './TriGeometryResLodData.js';
26
+ export { TriGeometryResMeshData } from './TriGeometryResMeshData.js';
27
+ export { TriGeometryResSkeletonData } from './TriGeometryResSkeletonData.js';
28
+ export { TriJointBinding } from './TriJointBinding.js';
29
+ export { TriMorphTargetGeometryConstants } from './TriMorphTargetGeometryConstants.js';
30
+ export { TriRtGeometryConstants } from './TriRtGeometryConstants.js';
31
+ export { GrannyDeprecationLevel, Tr2Lod } from './enums.js';
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.js ADDED
@@ -0,0 +1,52 @@
1
+ export { CjsResourceState, isTerminalResourceState } from './resourceStates.js';
2
+ export { getResourceExtension, normalizeResourceExtension, normalizeResourcePath } from './resourcePath.js';
3
+ export { CjsResource } from './CjsResource.js';
4
+ export { TriTextureRes } from './resources/TriTextureRes.js';
5
+ export { TriGeometryRes } from './resources/TriGeometryRes.js';
6
+ export { Tr2EffectRes } from './resources/Tr2EffectRes.js';
7
+ export { Tr2ImageRes } from './resources/Tr2ImageRes.js';
8
+ export { TriGrannyRes } from './resources/TriGrannyRes.js';
9
+ export { Tr2GrannyStateRes } from './resources/Tr2GrannyStateRes.js';
10
+ export { Tr2LightProfileRes } from './resources/Tr2LightProfileRes.js';
11
+ export { CjsTextureArrayRes } from './texture/CjsTextureArrayRes.js';
12
+ export { CjsTextureParameterProxy } from './texture/CjsTextureParameterProxy.js';
13
+ export { AudioGeometryResData } from './generated/resources/AudioGeometryResData.js';
14
+ export { CmfVertexReader } from './generated/resources/CmfVertexReader.js';
15
+ export { GStateBindingCallbackData } from './generated/resources/GStateBindingCallbackData.js';
16
+ export { MeshDecalData } from './generated/resources/MeshDecalData.js';
17
+ export { MeshDecalLodData } from './generated/resources/MeshDecalLodData.js';
18
+ export { Tr2AsyncSave } from './generated/resources/Tr2AsyncSave.js';
19
+ export { Tr2CmfContents } from './generated/resources/Tr2CmfContents.js';
20
+ export { Tr2GrannyIntersectionResult } from './generated/resources/Tr2GrannyIntersectionResult.js';
21
+ export { Tr2LoadPrepareFence } from './generated/resources/Tr2LoadPrepareFence.js';
22
+ export { Tr2MaterialArea } from './generated/resources/Tr2MaterialArea.js';
23
+ export { Tr2MaterialMesh } from './generated/resources/Tr2MaterialMesh.js';
24
+ export { Tr2MaterialRes } from './generated/resources/Tr2MaterialRes.js';
25
+ export { Tr2ShaderPermutation } from './generated/resources/Tr2ShaderPermutation.js';
26
+ export { Tr2TextureLodManager } from './generated/resources/Tr2TextureLodManager.js';
27
+ export { Tr2TextureLodUpdateRequest } from './generated/resources/Tr2TextureLodUpdateRequest.js';
28
+ export { Tr2TexturePackChannel } from './generated/resources/Tr2TexturePackChannel.js';
29
+ export { Tr2TexturePipeline } from './generated/resources/Tr2TexturePipeline.js';
30
+ export { Tr2TexturePipelineParams } from './generated/resources/Tr2TexturePipelineParams.js';
31
+ export { Tr2TexturePipelineStepCompress } from './generated/resources/Tr2TexturePipelineStepCompress.js';
32
+ export { Tr2TexturePipelineStepLimitSize } from './generated/resources/Tr2TexturePipelineStepLimitSize.js';
33
+ export { Tr2TexturePipelineStepLoad } from './generated/resources/Tr2TexturePipelineStepLoad.js';
34
+ export { Tr2TexturePipelineStepPack } from './generated/resources/Tr2TexturePipelineStepPack.js';
35
+ export { TriGeometryResAreaData } from './generated/resources/TriGeometryResAreaData.js';
36
+ export { TriGeometryResJointData } from './generated/resources/TriGeometryResJointData.js';
37
+ export { TriGeometryResLodData } from './generated/resources/TriGeometryResLodData.js';
38
+ export { TriGeometryResMeshData } from './generated/resources/TriGeometryResMeshData.js';
39
+ export { TriGeometryResSkeletonData } from './generated/resources/TriGeometryResSkeletonData.js';
40
+ export { TriJointBinding } from './generated/resources/TriJointBinding.js';
41
+ export { TriMorphTargetGeometryConstants } from './generated/resources/TriMorphTargetGeometryConstants.js';
42
+ export { TriRtGeometryConstants } from './generated/resources/TriRtGeometryConstants.js';
43
+ export { GrannyDeprecationLevel, Tr2Lod } from './generated/resources/enums.js';
44
+ export { CjsResourceProbe } from './format/CjsResourceProbe.js';
45
+ export { ResourcePayloadType, ResourcePayloadValues, validateAudioPayload, validateRgbaPayload, validateTexturePayload, validateVideoPayload } from './format/payloadContract.js';
46
+ export { CjsFormat, ValidateFormatContract } from './format/CjsFormat.js';
47
+ export { CjsEventEmitter } from '@carbonenginejs/core-types/model';
48
+ export { CjsMotherLode } from './CjsMotherLode.js';
49
+ export { CjsFetchResourceSource, CjsMemoryResourceSource } from './CjsResourceSource.js';
50
+ export { CjsResManQueue } from './CjsResManQueue.js';
51
+ export { CjsResMan } from './CjsResMan.js';
52
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,18 @@
1
+ function normalizeResourcePath(value) {
2
+ return String(value ?? "").trim().replace(/\\/g, "/").replace(/\/+/g, "/").toLowerCase();
3
+ }
4
+ function getResourceExtension(value) {
5
+ const path = normalizeResourcePath(value);
6
+ const queryIndex = path.search(/[?#]/u);
7
+ const cleanPath = queryIndex === -1 ? path : path.slice(0, queryIndex);
8
+ const slashIndex = cleanPath.lastIndexOf("/");
9
+ const dotIndex = cleanPath.lastIndexOf(".");
10
+ if (dotIndex === -1 || dotIndex < slashIndex) return "";
11
+ return cleanPath.slice(dotIndex + 1);
12
+ }
13
+ function normalizeResourceExtension(value) {
14
+ return String(value ?? "").trim().replace(/^\./u, "").toLowerCase();
15
+ }
16
+
17
+ export { getResourceExtension, normalizeResourceExtension, normalizeResourcePath };
18
+ //# sourceMappingURL=resourcePath.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resourcePath.js","sources":["../../src/resourcePath.js"],"sourcesContent":["export function normalizeResourcePath(value) {\n return String(value ?? \"\")\n .trim()\n .replace(/\\\\/g, \"/\")\n .replace(/\\/+/g, \"/\")\n .toLowerCase();\n}\n\nexport function getResourceExtension(value) {\n const path = normalizeResourcePath(value);\n const queryIndex = path.search(/[?#]/u);\n const cleanPath = queryIndex === -1 ? path : path.slice(0, queryIndex);\n const slashIndex = cleanPath.lastIndexOf(\"/\");\n const dotIndex = cleanPath.lastIndexOf(\".\");\n\n if (dotIndex === -1 || dotIndex < slashIndex) return \"\";\n return cleanPath.slice(dotIndex + 1);\n}\n\nexport function normalizeResourceExtension(value) {\n return String(value ?? \"\").trim().replace(/^\\./u, \"\").toLowerCase();\n}\n"],"names":["normalizeResourcePath","value","String","trim","replace","toLowerCase","getResourceExtension","path","queryIndex","search","cleanPath","slice","slashIndex","lastIndexOf","dotIndex","normalizeResourceExtension"],"mappings":"AAAO,SAASA,qBAAqBA,CAACC,KAAK,EAAE;EAC3C,OAAOC,MAAM,CAACD,KAAK,IAAI,EAAE,CAAC,CACvBE,IAAI,EAAE,CACNC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CACnBA,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CACpBC,WAAW,EAAE;AAClB;AAEO,SAASC,oBAAoBA,CAACL,KAAK,EAAE;AAC1C,EAAA,MAAMM,IAAI,GAAGP,qBAAqB,CAACC,KAAK,CAAC;AACzC,EAAA,MAAMO,UAAU,GAAGD,IAAI,CAACE,MAAM,CAAC,OAAO,CAAC;AACvC,EAAA,MAAMC,SAAS,GAAGF,UAAU,KAAK,EAAE,GAAGD,IAAI,GAAGA,IAAI,CAACI,KAAK,CAAC,CAAC,EAAEH,UAAU,CAAC;AACtE,EAAA,MAAMI,UAAU,GAAGF,SAAS,CAACG,WAAW,CAAC,GAAG,CAAC;AAC7C,EAAA,MAAMC,QAAQ,GAAGJ,SAAS,CAACG,WAAW,CAAC,GAAG,CAAC;EAE3C,IAAIC,QAAQ,KAAK,EAAE,IAAIA,QAAQ,GAAGF,UAAU,EAAE,OAAO,EAAE;AACvD,EAAA,OAAOF,SAAS,CAACC,KAAK,CAACG,QAAQ,GAAG,CAAC,CAAC;AACtC;AAEO,SAASC,0BAA0BA,CAACd,KAAK,EAAE;EAChD,OAAOC,MAAM,CAACD,KAAK,IAAI,EAAE,CAAC,CAACE,IAAI,EAAE,CAACC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAACC,WAAW,EAAE;AACrE;;;;"}