@luma.gl/engine 10.0.0-alpha.4 → 10.0.0-alpha.5

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 (605) hide show
  1. package/README.md +9 -0
  2. package/dist/animation/animation-clip.cjs +36 -0
  3. package/dist/animation/animation-interpolation.cjs +115 -0
  4. package/dist/animation/animation-mixer.cjs +302 -0
  5. package/dist/animation/animation-track.cjs +55 -0
  6. package/dist/animation/animator.cjs +75 -0
  7. package/dist/animation/deform-positions.cjs +69 -0
  8. package/dist/animation/deform-positions.d.ts +13 -0
  9. package/dist/animation/deform-positions.d.ts.map +1 -0
  10. package/dist/animation/deform-positions.js +49 -0
  11. package/dist/animation/deform-positions.js.map +1 -0
  12. package/dist/animation/key-frames.cjs +81 -0
  13. package/dist/animation/morph-targets.cjs +162 -0
  14. package/dist/animation/node-animation-binding.cjs +67 -0
  15. package/dist/animation/node-animation-binding.d.ts +9 -0
  16. package/dist/animation/node-animation-binding.d.ts.map +1 -0
  17. package/dist/animation/node-animation-binding.js +45 -0
  18. package/dist/animation/node-animation-binding.js.map +1 -0
  19. package/dist/animation/property-animation-binding.cjs +159 -0
  20. package/dist/animation/property-animation-binding.d.ts +29 -0
  21. package/dist/animation/property-animation-binding.d.ts.map +1 -0
  22. package/dist/animation/property-animation-binding.js +138 -0
  23. package/dist/animation/property-animation-binding.js.map +1 -0
  24. package/dist/animation/scenegraph-animator.cjs +122 -0
  25. package/dist/animation/scenegraph-animator.d.ts +37 -0
  26. package/dist/animation/scenegraph-animator.d.ts.map +1 -0
  27. package/dist/animation/scenegraph-animator.js +99 -0
  28. package/dist/animation/scenegraph-animator.js.map +1 -0
  29. package/dist/animation/skin.cjs +49 -0
  30. package/dist/animation/texture-transform.cjs +41 -0
  31. package/dist/animation/texture-transform.d.ts +8 -0
  32. package/dist/animation/texture-transform.d.ts.map +1 -0
  33. package/dist/animation/texture-transform.js +17 -0
  34. package/dist/animation/texture-transform.js.map +1 -0
  35. package/dist/animation/timeline.cjs +129 -0
  36. package/dist/animation-loop/animation-loop-template.cjs +33 -0
  37. package/dist/animation-loop/animation-loop.cjs +498 -0
  38. package/dist/animation-loop/animation-loop.d.ts +2 -1
  39. package/dist/animation-loop/animation-loop.d.ts.map +1 -1
  40. package/dist/animation-loop/animation-loop.js +9 -3
  41. package/dist/animation-loop/animation-loop.js.map +1 -1
  42. package/dist/animation-loop/animation-props.cjs +15 -0
  43. package/dist/animation-loop/make-animation-loop.cjs +104 -0
  44. package/dist/animation-loop/request-animation-frame.cjs +43 -0
  45. package/dist/application-utils/load-file.cjs +77 -0
  46. package/dist/application-utils/random.cjs +38 -0
  47. package/dist/audio/audio-controller.cjs +429 -0
  48. package/dist/audio/audio-controller.d.ts +146 -0
  49. package/dist/audio/audio-controller.d.ts.map +1 -0
  50. package/dist/audio/audio-controller.js +445 -0
  51. package/dist/audio/audio-controller.js.map +1 -0
  52. package/dist/audio/audio-environment.cjs +157 -0
  53. package/dist/audio/audio-environment.d.ts +49 -0
  54. package/dist/audio/audio-environment.d.ts.map +1 -0
  55. package/dist/audio/audio-environment.js +148 -0
  56. package/dist/audio/audio-environment.js.map +1 -0
  57. package/dist/audio/audio-graph.cjs +182 -0
  58. package/dist/audio/audio-graph.d.ts +58 -0
  59. package/dist/audio/audio-graph.d.ts.map +1 -0
  60. package/dist/audio/audio-graph.js +181 -0
  61. package/dist/audio/audio-graph.js.map +1 -0
  62. package/dist/compute/buffer-transform.cjs +146 -0
  63. package/dist/compute/buffer-transform.d.ts +15 -5
  64. package/dist/compute/buffer-transform.d.ts.map +1 -1
  65. package/dist/compute/buffer-transform.js +56 -12
  66. package/dist/compute/buffer-transform.js.map +1 -1
  67. package/dist/compute/computation.cjs +331 -0
  68. package/dist/compute/computation.d.ts +2 -4
  69. package/dist/compute/computation.d.ts.map +1 -1
  70. package/dist/compute/computation.js +3 -14
  71. package/dist/compute/computation.js.map +1 -1
  72. package/dist/compute/swap.cjs +132 -0
  73. package/dist/compute/texture-transform.cjs +142 -0
  74. package/dist/compute/texture-transform.d.ts +11 -7
  75. package/dist/compute/texture-transform.d.ts.map +1 -1
  76. package/dist/compute/texture-transform.js +16 -6
  77. package/dist/compute/texture-transform.js.map +1 -1
  78. package/dist/controls/orbit-controls.cjs +283 -0
  79. package/dist/controls/orbit-controls.d.ts +2 -0
  80. package/dist/controls/orbit-controls.d.ts.map +1 -1
  81. package/dist/controls/orbit-controls.js +2 -1
  82. package/dist/controls/orbit-controls.js.map +1 -1
  83. package/dist/debug/copy-texture-to-image.cjs +84 -0
  84. package/dist/debug/debug-framebuffer.cjs +113 -0
  85. package/dist/debug/debug-shader-layout.cjs +45 -0
  86. package/dist/debug/pixel-data-utils.cjs +54 -0
  87. package/dist/dist.dev.js +11756 -5632
  88. package/dist/dist.min.js +39 -35
  89. package/dist/dynamic-buffer/dynamic-buffer.cjs +39 -0
  90. package/dist/dynamic-buffer/dynamic-buffer.d.ts +1 -170
  91. package/dist/dynamic-buffer/dynamic-buffer.d.ts.map +1 -1
  92. package/dist/dynamic-buffer/dynamic-buffer.js +2 -312
  93. package/dist/dynamic-buffer/dynamic-buffer.js.map +1 -1
  94. package/dist/dynamic-texture/dynamic-texture.cjs +27 -0
  95. package/dist/dynamic-texture/dynamic-texture.d.ts +1 -114
  96. package/dist/dynamic-texture/dynamic-texture.d.ts.map +1 -1
  97. package/dist/dynamic-texture/dynamic-texture.js +2 -584
  98. package/dist/dynamic-texture/dynamic-texture.js.map +1 -1
  99. package/dist/dynamic-texture/texture-binding-source.cjs +31 -0
  100. package/dist/dynamic-texture/texture-binding-source.d.ts +1 -54
  101. package/dist/dynamic-texture/texture-binding-source.d.ts.map +1 -1
  102. package/dist/dynamic-texture/texture-binding-source.js +2 -51
  103. package/dist/dynamic-texture/texture-binding-source.js.map +1 -1
  104. package/dist/dynamic-texture/texture-data.cjs +53 -0
  105. package/dist/dynamic-texture/texture-data.d.ts +1 -145
  106. package/dist/dynamic-texture/texture-data.d.ts.map +1 -1
  107. package/dist/dynamic-texture/texture-data.js +2 -209
  108. package/dist/dynamic-texture/texture-data.js.map +1 -1
  109. package/dist/dynamic-texture/video-texture.cjs +269 -0
  110. package/dist/dynamic-texture/video-texture.d.ts +1 -1
  111. package/dist/dynamic-texture/video-texture.d.ts.map +1 -1
  112. package/dist/experimental/controls/comparison-splitter.cjs +231 -0
  113. package/dist/experimental/controls/comparison-splitter.d.ts +54 -0
  114. package/dist/experimental/controls/comparison-splitter.d.ts.map +1 -0
  115. package/dist/experimental/controls/comparison-splitter.js +215 -0
  116. package/dist/experimental/controls/comparison-splitter.js.map +1 -0
  117. package/dist/experimental/controls/flat-controller.cjs +301 -0
  118. package/dist/experimental/controls/flat-controller.d.ts +80 -0
  119. package/dist/experimental/controls/flat-controller.d.ts.map +1 -0
  120. package/dist/experimental/controls/flat-controller.js +295 -0
  121. package/dist/experimental/controls/flat-controller.js.map +1 -0
  122. package/dist/experimental/controls/index.cjs +35 -0
  123. package/dist/experimental/controls/index.cjs.map +6 -0
  124. package/dist/experimental/controls/index.d.ts +7 -0
  125. package/dist/experimental/controls/index.d.ts.map +1 -0
  126. package/dist/experimental/controls/index.js +7 -0
  127. package/dist/experimental/controls/index.js.map +1 -0
  128. package/dist/experimental/controls/orbit-controls.cjs +27 -0
  129. package/dist/experimental/controls/orbit-controls.d.ts +3 -0
  130. package/dist/experimental/controls/orbit-controls.d.ts.map +1 -0
  131. package/dist/experimental/controls/orbit-controls.js +5 -0
  132. package/dist/experimental/controls/orbit-controls.js.map +1 -0
  133. package/dist/experimental/materials/emissive-material.cjs +126 -0
  134. package/dist/experimental/materials/emissive-material.d.ts +38 -0
  135. package/dist/experimental/materials/emissive-material.d.ts.map +1 -0
  136. package/dist/experimental/materials/emissive-material.js +100 -0
  137. package/dist/experimental/materials/emissive-material.js.map +1 -0
  138. package/dist/experimental/materials/glass-material.cjs +570 -0
  139. package/dist/experimental/materials/glass-material.d.ts +107 -0
  140. package/dist/experimental/materials/glass-material.d.ts.map +1 -0
  141. package/dist/experimental/materials/glass-material.js +544 -0
  142. package/dist/experimental/materials/glass-material.js.map +1 -0
  143. package/dist/experimental/materials/glass-transmission.cjs +954 -0
  144. package/dist/experimental/materials/glass-transmission.d.ts +193 -0
  145. package/dist/experimental/materials/glass-transmission.d.ts.map +1 -0
  146. package/dist/experimental/materials/glass-transmission.js +928 -0
  147. package/dist/experimental/materials/glass-transmission.js.map +1 -0
  148. package/dist/experimental/materials/index.cjs +61 -0
  149. package/dist/experimental/materials/index.cjs.map +6 -0
  150. package/dist/experimental/materials/index.d.ts +14 -0
  151. package/dist/experimental/materials/index.d.ts.map +1 -0
  152. package/dist/experimental/materials/index.js +11 -0
  153. package/dist/experimental/materials/index.js.map +1 -0
  154. package/dist/experimental/materials/optical-caustics.cjs +201 -0
  155. package/dist/experimental/materials/optical-caustics.d.ts +69 -0
  156. package/dist/experimental/materials/optical-caustics.d.ts.map +1 -0
  157. package/dist/experimental/materials/optical-caustics.js +180 -0
  158. package/dist/experimental/materials/optical-caustics.js.map +1 -0
  159. package/dist/experimental/materials/optical-lighting.cjs +169 -0
  160. package/dist/experimental/materials/optical-lighting.d.ts +7 -0
  161. package/dist/experimental/materials/optical-lighting.d.ts.map +1 -0
  162. package/dist/experimental/materials/optical-lighting.js +144 -0
  163. package/dist/experimental/materials/optical-lighting.js.map +1 -0
  164. package/dist/experimental/materials/optical-point-lights.cjs +258 -0
  165. package/dist/experimental/materials/optical-point-lights.d.ts +68 -0
  166. package/dist/experimental/materials/optical-point-lights.d.ts.map +1 -0
  167. package/dist/experimental/materials/optical-point-lights.js +237 -0
  168. package/dist/experimental/materials/optical-point-lights.js.map +1 -0
  169. package/dist/experimental/materials/reflective-material.cjs +216 -0
  170. package/dist/experimental/materials/reflective-material.d.ts +46 -0
  171. package/dist/experimental/materials/reflective-material.d.ts.map +1 -0
  172. package/dist/experimental/materials/reflective-material.js +190 -0
  173. package/dist/experimental/materials/reflective-material.js.map +1 -0
  174. package/dist/experimental/textures/html-texture.cjs +221 -0
  175. package/dist/experimental/textures/html-texture.d.ts +85 -0
  176. package/dist/experimental/textures/html-texture.d.ts.map +1 -0
  177. package/dist/experimental/textures/html-texture.js +206 -0
  178. package/dist/experimental/textures/html-texture.js.map +1 -0
  179. package/dist/experimental/textures/index.cjs +33 -0
  180. package/dist/experimental/textures/index.cjs.map +6 -0
  181. package/dist/experimental/textures/index.d.ts +5 -0
  182. package/dist/experimental/textures/index.d.ts.map +1 -0
  183. package/dist/experimental/textures/index.js +7 -0
  184. package/dist/experimental/textures/index.js.map +1 -0
  185. package/dist/experimental/textures/packed-pixels.cjs +248 -0
  186. package/dist/experimental/textures/packed-pixels.d.ts +17 -0
  187. package/dist/experimental/textures/packed-pixels.d.ts.map +1 -0
  188. package/dist/experimental/textures/packed-pixels.js +237 -0
  189. package/dist/experimental/textures/packed-pixels.js.map +1 -0
  190. package/dist/experimental/textures/rgba-decoder.cjs +60 -0
  191. package/dist/experimental/textures/rgba-decoder.d.ts +29 -0
  192. package/dist/experimental/textures/rgba-decoder.d.ts.map +1 -0
  193. package/dist/experimental/textures/rgba-decoder.js +43 -0
  194. package/dist/experimental/textures/rgba-decoder.js.map +1 -0
  195. package/dist/experimental/webxr/index.cjs +38 -0
  196. package/dist/experimental/webxr/index.cjs.map +6 -0
  197. package/dist/experimental/webxr/index.d.ts +9 -0
  198. package/dist/experimental/webxr/index.d.ts.map +1 -0
  199. package/dist/experimental/webxr/index.js +8 -0
  200. package/dist/experimental/webxr/index.js.map +1 -0
  201. package/dist/experimental/webxr/webxr-animation-frame-provider.cjs +38 -0
  202. package/dist/experimental/webxr/webxr-animation-frame-provider.d.ts +9 -0
  203. package/dist/experimental/webxr/webxr-animation-frame-provider.d.ts.map +1 -0
  204. package/dist/experimental/webxr/webxr-animation-frame-provider.js +17 -0
  205. package/dist/experimental/webxr/webxr-animation-frame-provider.js.map +1 -0
  206. package/dist/experimental/webxr/webxr-camera-texture.cjs +157 -0
  207. package/dist/experimental/webxr/webxr-camera-texture.d.ts +48 -0
  208. package/dist/experimental/webxr/webxr-camera-texture.d.ts.map +1 -0
  209. package/dist/experimental/webxr/webxr-camera-texture.js +144 -0
  210. package/dist/experimental/webxr/webxr-camera-texture.js.map +1 -0
  211. package/dist/experimental/webxr/webxr-input.cjs +93 -0
  212. package/dist/experimental/webxr/webxr-input.d.ts +24 -0
  213. package/dist/experimental/webxr/webxr-input.d.ts.map +1 -0
  214. package/dist/experimental/webxr/webxr-input.js +70 -0
  215. package/dist/experimental/webxr/webxr-input.js.map +1 -0
  216. package/dist/experimental/webxr/webxr-manager.cjs +356 -0
  217. package/dist/experimental/webxr/webxr-manager.d.ts +91 -0
  218. package/dist/experimental/webxr/webxr-manager.d.ts.map +1 -0
  219. package/dist/experimental/webxr/webxr-manager.js +354 -0
  220. package/dist/experimental/webxr/webxr-manager.js.map +1 -0
  221. package/dist/experimental/webxr/webxr-types.cjs +15 -0
  222. package/dist/experimental/webxr/webxr-types.d.ts +152 -0
  223. package/dist/experimental/webxr/webxr-types.d.ts.map +1 -0
  224. package/dist/experimental/webxr/webxr-types.js +5 -0
  225. package/dist/experimental/webxr/webxr-types.js.map +1 -0
  226. package/dist/geometry/edge-geometry.cjs +171 -0
  227. package/dist/geometry/geometry-primitives.cjs +189 -0
  228. package/dist/geometry/geometry-primitives.d.ts +6 -0
  229. package/dist/geometry/geometry-primitives.d.ts.map +1 -1
  230. package/dist/geometry/geometry-primitives.js +8 -0
  231. package/dist/geometry/geometry-primitives.js.map +1 -1
  232. package/dist/geometry/geometry-table.cjs +15 -0
  233. package/dist/geometry/geometry-utils.cjs +147 -0
  234. package/dist/geometry/geometry.cjs +90 -0
  235. package/dist/geometry/gpu-geometry.cjs +130 -0
  236. package/dist/geometry/gpu-vector-geometry-adapter.cjs +88 -0
  237. package/dist/geometry/gpu-vector-geometry-adapter.d.ts +5 -0
  238. package/dist/geometry/gpu-vector-geometry-adapter.d.ts.map +1 -0
  239. package/dist/geometry/gpu-vector-geometry-adapter.js +73 -0
  240. package/dist/geometry/gpu-vector-geometry-adapter.js.map +1 -0
  241. package/dist/geometry/gpu-vector-geometry.cjs +40 -0
  242. package/dist/geometry/gpu-vector-geometry.d.ts +21 -0
  243. package/dist/geometry/gpu-vector-geometry.d.ts.map +1 -0
  244. package/dist/geometry/gpu-vector-geometry.js +19 -0
  245. package/dist/geometry/gpu-vector-geometry.js.map +1 -0
  246. package/dist/geometry/mesh-simplification.cjs +385 -0
  247. package/dist/geometry/ring-geometry.cjs +104 -0
  248. package/dist/geometry/ring-geometry.d.ts +17 -0
  249. package/dist/geometry/ring-geometry.d.ts.map +1 -0
  250. package/dist/geometry/ring-geometry.js +94 -0
  251. package/dist/geometry/ring-geometry.js.map +1 -0
  252. package/dist/geometry/stroke-geometry.cjs +171 -0
  253. package/dist/graph/models/index.cjs +66 -0
  254. package/dist/graph/models/index.cjs.map +6 -0
  255. package/dist/graph/models/index.d.ts +7 -0
  256. package/dist/graph/models/index.d.ts.map +1 -0
  257. package/dist/graph/models/index.js +10 -0
  258. package/dist/graph/models/index.js.map +1 -0
  259. package/dist/graph/models/path/path-attribute-model.cjs +421 -0
  260. package/dist/graph/models/path/path-attribute-model.d.ts +142 -0
  261. package/dist/graph/models/path/path-attribute-model.d.ts.map +1 -0
  262. package/dist/graph/models/path/path-attribute-model.js +409 -0
  263. package/dist/graph/models/path/path-attribute-model.js.map +1 -0
  264. package/dist/graph/models/path/path-storage-model.cjs +711 -0
  265. package/dist/graph/models/path/path-storage-model.d.ts +174 -0
  266. package/dist/graph/models/path/path-storage-model.d.ts.map +1 -0
  267. package/dist/graph/models/path/path-storage-model.js +720 -0
  268. package/dist/graph/models/path/path-storage-model.js.map +1 -0
  269. package/dist/graph/models/path/path-trips-storage-model.cjs +271 -0
  270. package/dist/graph/models/path/path-trips-storage-model.d.ts +58 -0
  271. package/dist/graph/models/path/path-trips-storage-model.d.ts.map +1 -0
  272. package/dist/graph/models/path/path-trips-storage-model.js +248 -0
  273. package/dist/graph/models/path/path-trips-storage-model.js.map +1 -0
  274. package/dist/graph/models/polygon/polygon-attribute-model.cjs +117 -0
  275. package/dist/graph/models/polygon/polygon-attribute-model.d.ts +53 -0
  276. package/dist/graph/models/polygon/polygon-attribute-model.d.ts.map +1 -0
  277. package/dist/graph/models/polygon/polygon-attribute-model.js +101 -0
  278. package/dist/graph/models/polygon/polygon-attribute-model.js.map +1 -0
  279. package/dist/graph/models/polygon/polygon-shaders.cjs +283 -0
  280. package/dist/graph/models/polygon/polygon-shaders.d.ts +77 -0
  281. package/dist/graph/models/polygon/polygon-shaders.d.ts.map +1 -0
  282. package/dist/graph/models/polygon/polygon-shaders.js +242 -0
  283. package/dist/graph/models/polygon/polygon-shaders.js.map +1 -0
  284. package/dist/graph/models/polygon/polygon-storage-model.cjs +111 -0
  285. package/dist/graph/models/polygon/polygon-storage-model.d.ts +53 -0
  286. package/dist/graph/models/polygon/polygon-storage-model.d.ts.map +1 -0
  287. package/dist/graph/models/polygon/polygon-storage-model.js +92 -0
  288. package/dist/graph/models/polygon/polygon-storage-model.js.map +1 -0
  289. package/dist/graph/physics/index.cjs +50 -0
  290. package/dist/graph/physics/index.cjs.map +6 -0
  291. package/dist/graph/physics/index.d.ts +12 -0
  292. package/dist/graph/physics/index.d.ts.map +1 -0
  293. package/dist/graph/physics/index.js +12 -0
  294. package/dist/graph/physics/index.js.map +1 -0
  295. package/dist/graph/physics/physics-scenegraph.cjs +92 -0
  296. package/dist/graph/physics/physics-scenegraph.d.ts +35 -0
  297. package/dist/graph/physics/physics-scenegraph.d.ts.map +1 -0
  298. package/dist/graph/physics/physics-scenegraph.js +80 -0
  299. package/dist/graph/physics/physics-scenegraph.js.map +1 -0
  300. package/dist/graph/physics/scenegraph-behaviors.cjs +164 -0
  301. package/dist/graph/physics/scenegraph-behaviors.d.ts +37 -0
  302. package/dist/graph/physics/scenegraph-behaviors.d.ts.map +1 -0
  303. package/dist/graph/physics/scenegraph-behaviors.js +145 -0
  304. package/dist/graph/physics/scenegraph-behaviors.js.map +1 -0
  305. package/dist/graph/physics/scenegraph-instance.cjs +246 -0
  306. package/dist/graph/physics/scenegraph-instance.d.ts +59 -0
  307. package/dist/graph/physics/scenegraph-instance.d.ts.map +1 -0
  308. package/dist/graph/physics/scenegraph-instance.js +241 -0
  309. package/dist/graph/physics/scenegraph-instance.js.map +1 -0
  310. package/dist/graph/physics/scenegraph-joints.cjs +51 -0
  311. package/dist/graph/physics/scenegraph-joints.d.ts +5 -0
  312. package/dist/graph/physics/scenegraph-joints.d.ts.map +1 -0
  313. package/dist/graph/physics/scenegraph-joints.js +31 -0
  314. package/dist/graph/physics/scenegraph-joints.js.map +1 -0
  315. package/dist/graph/physics/scenegraph-motion.cjs +177 -0
  316. package/dist/graph/physics/scenegraph-motion.d.ts +37 -0
  317. package/dist/graph/physics/scenegraph-motion.d.ts.map +1 -0
  318. package/dist/graph/physics/scenegraph-motion.js +168 -0
  319. package/dist/graph/physics/scenegraph-motion.js.map +1 -0
  320. package/dist/graph/physics/scenegraph-properties.cjs +170 -0
  321. package/dist/graph/physics/scenegraph-properties.d.ts +37 -0
  322. package/dist/graph/physics/scenegraph-properties.d.ts.map +1 -0
  323. package/dist/graph/physics/scenegraph-properties.js +186 -0
  324. package/dist/graph/physics/scenegraph-properties.js.map +1 -0
  325. package/dist/graph/physics/scenegraph-publication.cjs +112 -0
  326. package/dist/graph/physics/scenegraph-publication.d.ts +23 -0
  327. package/dist/graph/physics/scenegraph-publication.d.ts.map +1 -0
  328. package/dist/graph/physics/scenegraph-publication.js +99 -0
  329. package/dist/graph/physics/scenegraph-publication.js.map +1 -0
  330. package/dist/graph/physics/scenegraph-session.cjs +256 -0
  331. package/dist/graph/physics/scenegraph-session.d.ts +68 -0
  332. package/dist/graph/physics/scenegraph-session.d.ts.map +1 -0
  333. package/dist/graph/physics/scenegraph-session.js +249 -0
  334. package/dist/graph/physics/scenegraph-session.js.map +1 -0
  335. package/dist/graph/tables/gpu-table-geometry.cjs +84 -0
  336. package/dist/graph/tables/gpu-table-geometry.d.ts +32 -0
  337. package/dist/graph/tables/gpu-table-geometry.d.ts.map +1 -0
  338. package/dist/graph/tables/gpu-table-geometry.js +67 -0
  339. package/dist/graph/tables/gpu-table-geometry.js.map +1 -0
  340. package/dist/graph/tables/gpu-table-model.cjs +459 -0
  341. package/dist/graph/tables/gpu-table-model.d.ts +67 -0
  342. package/dist/graph/tables/gpu-table-model.d.ts.map +1 -0
  343. package/dist/graph/tables/gpu-table-model.js +457 -0
  344. package/dist/graph/tables/gpu-table-model.js.map +1 -0
  345. package/dist/graph/tables/gpu-table-transform.cjs +341 -0
  346. package/dist/graph/tables/gpu-table-transform.d.ts +61 -0
  347. package/dist/graph/tables/gpu-table-transform.d.ts.map +1 -0
  348. package/dist/graph/tables/gpu-table-transform.js +333 -0
  349. package/dist/graph/tables/gpu-table-transform.js.map +1 -0
  350. package/dist/graph/tables/index.cjs +33 -0
  351. package/dist/graph/tables/index.cjs.map +6 -0
  352. package/dist/graph/tables/index.d.ts +4 -0
  353. package/dist/graph/tables/index.d.ts.map +1 -0
  354. package/dist/graph/tables/index.js +7 -0
  355. package/dist/graph/tables/index.js.map +1 -0
  356. package/dist/index.cjs +303 -9569
  357. package/dist/index.cjs.map +3 -3
  358. package/dist/index.d.ts +32 -5
  359. package/dist/index.d.ts.map +1 -1
  360. package/dist/index.js +26 -3
  361. package/dist/index.js.map +1 -1
  362. package/dist/interactivity/interactivity.cjs +570 -0
  363. package/dist/interactivity/interactivity.d.ts +107 -0
  364. package/dist/interactivity/interactivity.d.ts.map +1 -0
  365. package/dist/interactivity/interactivity.js +575 -0
  366. package/dist/interactivity/interactivity.js.map +1 -0
  367. package/dist/interactivity/physics.cjs +15 -0
  368. package/dist/interactivity/physics.d.ts +12 -0
  369. package/dist/interactivity/physics.d.ts.map +1 -0
  370. package/dist/interactivity/physics.js +5 -0
  371. package/dist/interactivity/physics.js.map +1 -0
  372. package/dist/material/material-factory.cjs +99 -0
  373. package/dist/material/material-factory.d.ts +1 -1
  374. package/dist/material/material-factory.d.ts.map +1 -1
  375. package/dist/material/material.cjs +239 -0
  376. package/dist/material/material.d.ts +2 -2
  377. package/dist/material/material.d.ts.map +1 -1
  378. package/dist/material/material.js +2 -2
  379. package/dist/material/material.js.map +1 -1
  380. package/dist/model/gpu-vector-bindings.cjs +226 -0
  381. package/dist/model/gpu-vector-bindings.d.ts +36 -0
  382. package/dist/model/gpu-vector-bindings.d.ts.map +1 -0
  383. package/dist/model/gpu-vector-bindings.js +217 -0
  384. package/dist/model/gpu-vector-bindings.js.map +1 -0
  385. package/dist/model/gpu-vector-draw-batches.cjs +82 -0
  386. package/dist/model/gpu-vector-draw-batches.d.ts +5 -0
  387. package/dist/model/gpu-vector-draw-batches.d.ts.map +1 -0
  388. package/dist/model/gpu-vector-draw-batches.js +73 -0
  389. package/dist/model/gpu-vector-draw-batches.js.map +1 -0
  390. package/dist/model/gpu-vector-model-batches.cjs +94 -0
  391. package/dist/model/gpu-vector-model-batches.d.ts +41 -0
  392. package/dist/model/gpu-vector-model-batches.d.ts.map +1 -0
  393. package/dist/model/gpu-vector-model-batches.js +77 -0
  394. package/dist/model/gpu-vector-model-batches.js.map +1 -0
  395. package/dist/model/gpu-vector-model.cjs +1264 -0
  396. package/dist/model/gpu-vector-model.d.ts +352 -0
  397. package/dist/model/gpu-vector-model.d.ts.map +1 -0
  398. package/dist/model/gpu-vector-model.js +1375 -0
  399. package/dist/model/gpu-vector-model.js.map +1 -0
  400. package/dist/model/model.cjs +134 -0
  401. package/dist/model/model.d.ts +21 -305
  402. package/dist/model/model.d.ts.map +1 -1
  403. package/dist/model/model.js +68 -1092
  404. package/dist/model/model.js.map +1 -1
  405. package/dist/model/split-uniforms-and-bindings.cjs +44 -0
  406. package/dist/model/split-uniforms-and-bindings.d.ts +1 -1
  407. package/dist/model/split-uniforms-and-bindings.d.ts.map +1 -1
  408. package/dist/model/split-uniforms-and-bindings.js +5 -2
  409. package/dist/model/split-uniforms-and-bindings.js.map +1 -1
  410. package/dist/models/billboard-texture-model.cjs +167 -0
  411. package/dist/models/billboard-texture-model.d.ts +1 -1
  412. package/dist/models/billboard-texture-model.d.ts.map +1 -1
  413. package/dist/models/billboard-texture-model.js +1 -1
  414. package/dist/models/billboard-texture-model.js.map +1 -1
  415. package/dist/models/billboard-texture-module.cjs +61 -0
  416. package/dist/models/clip-space.cjs +103 -0
  417. package/dist/models/directional-light-model.cjs +45 -0
  418. package/dist/models/light-model-utils.cjs +426 -0
  419. package/dist/models/point-light-model.cjs +44 -0
  420. package/dist/models/spot-light-model.cjs +45 -0
  421. package/dist/modules/picking/color-picking.cjs +209 -0
  422. package/dist/modules/picking/color-picking.d.ts +1 -1
  423. package/dist/modules/picking/index-color-picking.cjs +230 -0
  424. package/dist/modules/picking/index-color-picking.d.ts +1 -1
  425. package/dist/modules/picking/index-picking.cjs +201 -0
  426. package/dist/modules/picking/index-picking.d.ts +1 -1
  427. package/dist/modules/picking/legacy-color-picking.cjs +28 -0
  428. package/dist/modules/picking/legacy-color-picking.d.ts +1 -1
  429. package/dist/modules/picking/legacy-picking-manager.cjs +92 -0
  430. package/dist/modules/picking/picking-manager.cjs +360 -0
  431. package/dist/modules/picking/picking-uniforms.cjs +140 -0
  432. package/dist/modules/picking/picking-uniforms.d.ts +1 -1
  433. package/dist/modules/picking/picking-uniforms.d.ts.map +1 -1
  434. package/dist/modules/picking/picking.cjs +43 -0
  435. package/dist/modules/picking/picking.d.ts +1 -1
  436. package/dist/passes/get-fragment-shader.cjs +119 -0
  437. package/dist/passes/shader-pass-renderer.cjs +722 -0
  438. package/dist/passes/shader-pass-renderer.d.ts +2 -2
  439. package/dist/passes/shader-pass-renderer.d.ts.map +1 -1
  440. package/dist/passes/shader-pass-renderer.js +1 -1
  441. package/dist/passes/shader-pass-renderer.js.map +1 -1
  442. package/dist/passes/texture-transform-module.cjs +78 -0
  443. package/dist/scenegraph/controllers/area-light-controller.cjs +143 -0
  444. package/dist/scenegraph/controllers/area-light-controller.d.ts +31 -0
  445. package/dist/scenegraph/controllers/area-light-controller.d.ts.map +1 -0
  446. package/dist/scenegraph/controllers/area-light-controller.js +130 -0
  447. package/dist/scenegraph/controllers/area-light-controller.js.map +1 -0
  448. package/dist/scenegraph/controllers/billboard-controller.cjs +156 -0
  449. package/dist/scenegraph/controllers/billboard-controller.d.ts +45 -0
  450. package/dist/scenegraph/controllers/billboard-controller.d.ts.map +1 -0
  451. package/dist/scenegraph/controllers/billboard-controller.js +156 -0
  452. package/dist/scenegraph/controllers/billboard-controller.js.map +1 -0
  453. package/dist/scenegraph/controllers/joint-controller.cjs +71 -0
  454. package/dist/scenegraph/controllers/joint-controller.d.ts +30 -0
  455. package/dist/scenegraph/controllers/joint-controller.d.ts.map +1 -0
  456. package/dist/scenegraph/controllers/joint-controller.js +53 -0
  457. package/dist/scenegraph/controllers/joint-controller.js.map +1 -0
  458. package/dist/scenegraph/controllers/material-variants.cjs +61 -0
  459. package/dist/scenegraph/controllers/material-variants.d.ts +42 -0
  460. package/dist/scenegraph/controllers/material-variants.d.ts.map +1 -0
  461. package/dist/scenegraph/controllers/material-variants.js +40 -0
  462. package/dist/scenegraph/controllers/material-variants.js.map +1 -0
  463. package/dist/scenegraph/controllers/morph-controller.cjs +61 -0
  464. package/dist/scenegraph/controllers/morph-controller.d.ts +19 -0
  465. package/dist/scenegraph/controllers/morph-controller.d.ts.map +1 -0
  466. package/dist/scenegraph/controllers/morph-controller.js +41 -0
  467. package/dist/scenegraph/controllers/morph-controller.js.map +1 -0
  468. package/dist/scenegraph/controllers/skin-controller.cjs +111 -0
  469. package/dist/scenegraph/controllers/skin-controller.d.ts +36 -0
  470. package/dist/scenegraph/controllers/skin-controller.d.ts.map +1 -0
  471. package/dist/scenegraph/controllers/skin-controller.js +90 -0
  472. package/dist/scenegraph/controllers/skin-controller.js.map +1 -0
  473. package/dist/scenegraph/group-node.cjs +129 -0
  474. package/dist/scenegraph/model-node.cjs +68 -0
  475. package/dist/scenegraph/physics-transforms.cjs +95 -0
  476. package/dist/scenegraph/physics-transforms.d.ts +13 -0
  477. package/dist/scenegraph/physics-transforms.d.ts.map +1 -0
  478. package/dist/scenegraph/physics-transforms.js +72 -0
  479. package/dist/scenegraph/physics-transforms.js.map +1 -0
  480. package/dist/scenegraph/published-transforms.cjs +37 -0
  481. package/dist/scenegraph/published-transforms.d.ts +17 -0
  482. package/dist/scenegraph/published-transforms.d.ts.map +1 -0
  483. package/dist/scenegraph/published-transforms.js +16 -0
  484. package/dist/scenegraph/published-transforms.js.map +1 -0
  485. package/dist/scenegraph/scenegraph-bounds.cjs +51 -0
  486. package/dist/scenegraph/scenegraph-node.cjs +182 -0
  487. package/dist/shader-inputs.cjs +231 -0
  488. package/dist/shader-inputs.d.ts +1 -1
  489. package/dist/shader-inputs.d.ts.map +1 -1
  490. package/dist/utils/buffer-layout-helper.cjs +52 -0
  491. package/dist/utils/buffer-layout-order.cjs +37 -0
  492. package/dist/utils/deep-equal.cjs +65 -0
  493. package/dist/utils/get-platform-info.cjs +21 -0
  494. package/dist/utils/get-platform-info.d.ts +2 -0
  495. package/dist/utils/get-platform-info.d.ts.map +1 -0
  496. package/dist/utils/get-platform-info.js +5 -0
  497. package/dist/utils/get-platform-info.js.map +1 -0
  498. package/dist/utils/gpu-vector-batch-structure.cjs +45 -0
  499. package/dist/utils/gpu-vector-batch-structure.d.ts +12 -0
  500. package/dist/utils/gpu-vector-batch-structure.d.ts.map +1 -0
  501. package/dist/utils/gpu-vector-batch-structure.js +27 -0
  502. package/dist/utils/gpu-vector-batch-structure.js.map +1 -0
  503. package/dist/utils/shader-module-utils.cjs +148 -0
  504. package/dist/utils/uid.cjs +32 -0
  505. package/package.json +45 -7
  506. package/src/animation/deform-positions.ts +62 -0
  507. package/src/animation/node-animation-binding.ts +54 -0
  508. package/src/animation/property-animation-binding.ts +212 -0
  509. package/src/animation/scenegraph-animator.ts +117 -0
  510. package/src/animation/texture-transform.ts +59 -0
  511. package/src/animation-loop/animation-loop.ts +10 -3
  512. package/src/audio/audio-controller.ts +583 -0
  513. package/src/audio/audio-environment.ts +202 -0
  514. package/src/audio/audio-graph.ts +253 -0
  515. package/src/compute/buffer-transform.ts +71 -16
  516. package/src/compute/computation.ts +4 -19
  517. package/src/compute/texture-transform.ts +25 -12
  518. package/src/controls/orbit-controls.ts +4 -1
  519. package/src/dynamic-buffer/dynamic-buffer.ts +15 -449
  520. package/src/dynamic-texture/dynamic-texture.ts +5 -760
  521. package/src/dynamic-texture/texture-binding-source.ts +8 -90
  522. package/src/dynamic-texture/texture-data.ts +31 -340
  523. package/src/dynamic-texture/video-texture.ts +1 -1
  524. package/src/experimental/controls/comparison-splitter.ts +269 -0
  525. package/src/experimental/controls/flat-controller.ts +403 -0
  526. package/src/experimental/controls/index.ts +16 -0
  527. package/src/experimental/controls/orbit-controls.ts +6 -0
  528. package/src/experimental/materials/emissive-material.ts +120 -0
  529. package/src/experimental/materials/glass-material.ts +607 -0
  530. package/src/experimental/materials/glass-transmission.ts +1023 -0
  531. package/src/experimental/materials/index.ts +49 -0
  532. package/src/experimental/materials/optical-caustics.ts +234 -0
  533. package/src/experimental/materials/optical-lighting.ts +148 -0
  534. package/src/experimental/materials/optical-point-lights.ts +288 -0
  535. package/src/experimental/materials/reflective-material.ts +214 -0
  536. package/src/experimental/textures/html-texture.ts +285 -0
  537. package/src/experimental/textures/index.ts +8 -0
  538. package/src/experimental/textures/packed-pixels.ts +351 -0
  539. package/src/experimental/textures/rgba-decoder.ts +79 -0
  540. package/src/experimental/webxr/index.ts +21 -0
  541. package/src/experimental/webxr/webxr-animation-frame-provider.ts +22 -0
  542. package/src/experimental/webxr/webxr-camera-texture.ts +195 -0
  543. package/src/experimental/webxr/webxr-input.ts +117 -0
  544. package/src/experimental/webxr/webxr-manager.ts +524 -0
  545. package/src/experimental/webxr/webxr-types.ts +192 -0
  546. package/src/geometry/geometry-primitives.ts +11 -0
  547. package/src/geometry/gpu-vector-geometry-adapter.ts +78 -0
  548. package/src/geometry/gpu-vector-geometry.ts +33 -0
  549. package/src/geometry/ring-geometry.ts +117 -0
  550. package/src/graph/models/index.ts +45 -0
  551. package/src/graph/models/path/path-attribute-model.ts +563 -0
  552. package/src/graph/models/path/path-storage-model.ts +996 -0
  553. package/src/graph/models/path/path-trips-storage-model.ts +286 -0
  554. package/src/graph/models/polygon/polygon-attribute-model.ts +165 -0
  555. package/src/graph/models/polygon/polygon-shaders.ts +279 -0
  556. package/src/graph/models/polygon/polygon-storage-model.ts +146 -0
  557. package/src/graph/physics/index.ts +24 -0
  558. package/src/graph/physics/physics-scenegraph.ts +112 -0
  559. package/src/graph/physics/scenegraph-behaviors.ts +169 -0
  560. package/src/graph/physics/scenegraph-instance.ts +296 -0
  561. package/src/graph/physics/scenegraph-joints.ts +37 -0
  562. package/src/graph/physics/scenegraph-motion.ts +175 -0
  563. package/src/graph/physics/scenegraph-properties.ts +241 -0
  564. package/src/graph/physics/scenegraph-publication.ts +116 -0
  565. package/src/graph/physics/scenegraph-session.ts +317 -0
  566. package/src/graph/tables/gpu-table-geometry.ts +88 -0
  567. package/src/graph/tables/gpu-table-model.ts +661 -0
  568. package/src/graph/tables/gpu-table-transform.ts +497 -0
  569. package/src/graph/tables/index.ts +18 -0
  570. package/src/index.ts +130 -13
  571. package/src/interactivity/interactivity.ts +670 -0
  572. package/src/interactivity/physics.ts +19 -0
  573. package/src/material/material-factory.ts +1 -1
  574. package/src/material/material.ts +2 -2
  575. package/src/model/gpu-vector-bindings.ts +276 -0
  576. package/src/model/gpu-vector-draw-batches.ts +116 -0
  577. package/src/model/gpu-vector-model-batches.ts +142 -0
  578. package/src/model/gpu-vector-model.ts +1819 -0
  579. package/src/model/model.ts +91 -1444
  580. package/src/model/split-uniforms-and-bindings.ts +6 -3
  581. package/src/models/billboard-texture-model.ts +1 -1
  582. package/src/modules/picking/legacy-picking-manager.ts +1 -1
  583. package/src/modules/picking/picking-uniforms.ts +1 -1
  584. package/src/passes/shader-pass-renderer.ts +2 -2
  585. package/src/scenegraph/controllers/area-light-controller.ts +152 -0
  586. package/src/scenegraph/controllers/billboard-controller.ts +204 -0
  587. package/src/scenegraph/controllers/joint-controller.ts +81 -0
  588. package/src/scenegraph/controllers/material-variants.ts +70 -0
  589. package/src/scenegraph/controllers/morph-controller.ts +61 -0
  590. package/src/scenegraph/controllers/skin-controller.ts +125 -0
  591. package/src/scenegraph/physics-transforms.ts +82 -0
  592. package/src/scenegraph/published-transforms.ts +18 -0
  593. package/src/shader-inputs.ts +1 -1
  594. package/src/utils/get-platform-info.ts +5 -0
  595. package/src/utils/gpu-vector-batch-structure.ts +36 -0
  596. package/dist/compute/kernel.d.ts +0 -54
  597. package/dist/compute/kernel.d.ts.map +0 -1
  598. package/dist/compute/kernel.js +0 -103
  599. package/dist/compute/kernel.js.map +0 -1
  600. package/dist/compute/render-kernel.d.ts +0 -65
  601. package/dist/compute/render-kernel.d.ts.map +0 -1
  602. package/dist/compute/render-kernel.js +0 -129
  603. package/dist/compute/render-kernel.js.map +0 -1
  604. package/src/compute/kernel.ts +0 -146
  605. package/src/compute/render-kernel.ts +0 -192
@@ -0,0 +1,459 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var gpu_table_model_exports = {};
19
+ __export(gpu_table_model_exports, {
20
+ GPUTableModel: () => GPUTableModel
21
+ });
22
+ module.exports = __toCommonJS(gpu_table_model_exports);
23
+ var import_core = require("@luma.gl/core");
24
+ var import_dynamic = require("@luma.gl/core/dynamic");
25
+ var import__ = require("../../index.cjs");
26
+ var import_gpu_tables = require("@luma.gl/graph/gpu-tables");
27
+ var import_gpu_tables2 = require("@luma.gl/graph/gpu-tables");
28
+ var import_gpu_tables3 = require("@luma.gl/graph/gpu-tables");
29
+ var import_gpu_data = require("@luma.gl/gpgpu/gpu-data");
30
+ class GPUTableModel extends import__.Model {
31
+ /** Currently bound table, when table-backed rendering is active. */
32
+ table;
33
+ tableState;
34
+ tableShaderBindings;
35
+ drawingTableBatches = false;
36
+ /** Bytes owned by table-to-shader binding preparation, excluding caller-owned table buffers. */
37
+ get tableBindingByteLength() {
38
+ var _a;
39
+ return ((_a = this.tableShaderBindings) == null ? void 0 : _a.ownedByteLength) ?? 0;
40
+ }
41
+ /** Creates a model whose table-backed attributes and bindings can be rebound by batch. */
42
+ constructor(device, props) {
43
+ const { table, modelProps, state, shaderBindings, tableAttributeByteOffsets } = getGPUTableModelConstructorState(device, props);
44
+ super(device, modelProps);
45
+ this.table = table;
46
+ this.tableState = state;
47
+ this.tableShaderBindings = shaderBindings;
48
+ if (modelProps.attributes && Object.values(tableAttributeByteOffsets ?? {}).some((byteOffset) => byteOffset !== 0)) {
49
+ this.setAttributes(modelProps.attributes, { byteOffsets: tableAttributeByteOffsets });
50
+ }
51
+ this.captureExplicitDrawState();
52
+ if (table) {
53
+ this.setTableDrawState(table);
54
+ }
55
+ }
56
+ destroy() {
57
+ var _a;
58
+ (_a = this.tableShaderBindings) == null ? void 0 : _a.destroy();
59
+ this.tableShaderBindings = void 0;
60
+ super.destroy();
61
+ }
62
+ /** Skips a direct draw while an empty prepared storage range is still bound. */
63
+ draw(renderPass) {
64
+ var _a;
65
+ const firstBatch = (_a = this.tableShaderBindings) == null ? void 0 : _a.batches[0];
66
+ if ((firstBatch == null ? void 0 : firstBatch.numRows) === 0 && Object.entries(firstBatch.bindings).some(([name, binding]) => this.bindings[name] === binding && "size" in binding && binding.size === 0)) {
67
+ return true;
68
+ }
69
+ return super.draw(renderPass);
70
+ }
71
+ /** Replaces the bound GPU table when one is supplied. */
72
+ setProps(props) {
73
+ if (props.table) {
74
+ this.setTable(props.table);
75
+ }
76
+ }
77
+ /** Query redraw status after synchronizing inferred table draw state. */
78
+ needsRedraw() {
79
+ this.syncTableDrawState();
80
+ return super.needsRedraw();
81
+ }
82
+ /** Synchronizes inferred table draw state before opening a render pass. */
83
+ predraw(commandEncoder) {
84
+ this.syncTableDrawState();
85
+ super.predraw(commandEncoder);
86
+ }
87
+ drawBatches(renderPass, options = {}) {
88
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
89
+ if ("vectors" in options) {
90
+ const drawingTableBatches = this.drawingTableBatches;
91
+ this.drawingTableBatches = true;
92
+ try {
93
+ return super.drawBatches(renderPass, options);
94
+ } finally {
95
+ this.drawingTableBatches = drawingTableBatches;
96
+ }
97
+ }
98
+ const table = this.table;
99
+ if (!(table instanceof import_gpu_tables3.GPUTable)) {
100
+ throw new Error("GPUTableModel.drawBatches() requires a GPUTable");
101
+ }
102
+ const tableBufferLayout = ((_a = this.tableShaderBindings) == null ? void 0 : _a.bufferLayout) ?? table.bufferLayout;
103
+ assertMatchingBufferLayouts(tableBufferLayout, this.tableState.explicitBufferLayout, this.bufferLayout, "GPUTableModel.drawBatches() model buffer layout does not match its GPU table");
104
+ let drawSuccess = true;
105
+ this.drawingTableBatches = true;
106
+ try {
107
+ for (const [batchIndex, batch] of table.batches.entries()) {
108
+ if (batch.numRows === 0) {
109
+ continue;
110
+ }
111
+ const preparedBatch = (_b = this.tableShaderBindings) == null ? void 0 : _b.batches[batchIndex];
112
+ if (this.tableShaderBindings && !preparedBatch) {
113
+ throw new Error("GPUTableModel.drawBatches() is missing prepared batch bindings");
114
+ }
115
+ this.setAttributes({
116
+ ...this.tableState.explicitAttributes,
117
+ ...(preparedBatch == null ? void 0 : preparedBatch.attributes) ?? getGPUTableDrawAttributes(batch)
118
+ }, {
119
+ byteOffsets: (preparedBatch == null ? void 0 : preparedBatch.attributeByteOffsets) ?? getGPUTableDrawAttributeByteOffsets(batch)
120
+ });
121
+ this.setBindings({
122
+ ...this.tableState.explicitBindings,
123
+ ...(preparedBatch == null ? void 0 : preparedBatch.bindings) ?? getGPUTableDrawBindings(batch, this.tableState.tableBindingNames)
124
+ });
125
+ if (this.tableShaderBindings) {
126
+ this.setConstantAttributes(this.tableShaderBindings.constantAttributes);
127
+ }
128
+ this.setTableDrawState(batch);
129
+ (_c = options.onBatch) == null ? void 0 : _c.call(options, batch, batchIndex);
130
+ drawSuccess = super.draw(renderPass) && drawSuccess;
131
+ }
132
+ } finally {
133
+ this.drawingTableBatches = false;
134
+ this.setAttributes({
135
+ ...this.tableState.explicitAttributes,
136
+ ...((_e = (_d = this.tableShaderBindings) == null ? void 0 : _d.batches[0]) == null ? void 0 : _e.attributes) ?? getGPUTableDrawAttributes(table)
137
+ }, {
138
+ byteOffsets: ((_g = (_f = this.tableShaderBindings) == null ? void 0 : _f.batches[0]) == null ? void 0 : _g.attributeByteOffsets) ?? getGPUTableDrawAttributeByteOffsets(table)
139
+ });
140
+ this.setBindings({
141
+ ...this.tableState.explicitBindings,
142
+ ...((_i = (_h = this.tableShaderBindings) == null ? void 0 : _h.batches[0]) == null ? void 0 : _i.bindings) ?? getGPUTableDrawBindings(table, this.tableState.tableBindingNames)
143
+ });
144
+ this.setTableDrawState(table);
145
+ }
146
+ return drawSuccess;
147
+ }
148
+ /** Rebinds the model to a replacement table while preserving explicit model state. */
149
+ setTable(nextTable) {
150
+ var _a, _b, _c, _d, _e, _f, _g;
151
+ if (this.tableState.gpuInputSchema) {
152
+ if (!this.tableState.shaderLayout) {
153
+ throw new Error("GPUTableModel gpuInputSchema requires shaderLayout");
154
+ }
155
+ if (this.tableShaderBindings) {
156
+ this.tableShaderBindings.updateBindings(nextTable);
157
+ } else {
158
+ this.tableShaderBindings = new import_gpu_tables.GPUTableShaderBindings(this.device, {
159
+ table: nextTable,
160
+ gpuInputSchema: this.tableState.gpuInputSchema,
161
+ shaderLayout: this.tableState.shaderLayout
162
+ });
163
+ if (this.tableShaderBindings.shaderModule) {
164
+ this.tableShaderBindings.destroy();
165
+ this.tableShaderBindings = void 0;
166
+ throw new Error("GPUTableModel storage gpuInputSchema requires a table during model construction");
167
+ }
168
+ }
169
+ }
170
+ const tableBufferLayout = ((_a = this.tableShaderBindings) == null ? void 0 : _a.bufferLayout) ?? nextTable.bufferLayout;
171
+ const tableAttributes = ((_c = (_b = this.tableShaderBindings) == null ? void 0 : _b.batches[0]) == null ? void 0 : _c.attributes) ?? getGPUTableDrawAttributes(nextTable);
172
+ const tableAttributeByteOffsets = ((_e = (_d = this.tableShaderBindings) == null ? void 0 : _d.batches[0]) == null ? void 0 : _e.attributeByteOffsets) ?? getGPUTableDrawAttributeByteOffsets(nextTable);
173
+ const tableBindings = ((_g = (_f = this.tableShaderBindings) == null ? void 0 : _f.batches[0]) == null ? void 0 : _g.bindings) ?? getGPUTableDrawBindings(nextTable, this.tableState.tableBindingNames);
174
+ assertNoExplicitIndexBuffer(nextTable, this.tableState.explicitIndexBuffer);
175
+ validateGPUTableIndexBatches(nextTable);
176
+ assertNoDuplicateNames(Object.keys(this.tableState.explicitAttributes), getBufferLayoutNames(tableBufferLayout), "attribute");
177
+ assertNoDuplicateNames(getBufferLayoutNames(this.tableState.explicitBufferLayout), getBufferLayoutNames(tableBufferLayout), "buffer layout");
178
+ assertNoDuplicateNames(Object.keys(this.tableState.explicitBindings), Object.keys(tableBindings), "binding");
179
+ this.setBufferLayout([...this.tableState.explicitBufferLayout, ...tableBufferLayout]);
180
+ this.setAttributes({
181
+ ...this.tableState.explicitAttributes,
182
+ ...tableAttributes
183
+ }, { byteOffsets: tableAttributeByteOffsets });
184
+ this.setBindings({
185
+ ...this.tableState.explicitBindings,
186
+ ...tableBindings
187
+ });
188
+ if (this.tableShaderBindings) {
189
+ this.setConstantAttributes(this.tableShaderBindings.constantAttributes);
190
+ }
191
+ this.setTableDrawState(nextTable);
192
+ this.table = nextTable;
193
+ }
194
+ /** Disables table-backed draw state and restores any explicit index buffer. */
195
+ clearTable() {
196
+ this.table = void 0;
197
+ this.restoreExplicitIndexDrawState();
198
+ }
199
+ syncTableDrawState() {
200
+ if (!this.table || this.drawingTableBatches) {
201
+ return;
202
+ }
203
+ this.setTableDrawState(this.table);
204
+ }
205
+ captureExplicitDrawState() {
206
+ if (!this.tableState.explicitIndexBuffer && this.indexBuffer) {
207
+ this.tableState.explicitIndexBuffer = this.indexBuffer;
208
+ }
209
+ if (this.tableState.explicitIndexCount === void 0 && this.indexCount !== void 0) {
210
+ this.tableState.explicitIndexCount = this.indexCount;
211
+ }
212
+ if (this.tableState.explicitVertexCount === 0 && this.vertexCount > 0) {
213
+ this.tableState.explicitVertexCount = this.vertexCount;
214
+ }
215
+ }
216
+ setTableDrawState(source) {
217
+ this.setTableRowCount(source.numRows);
218
+ const indexDrawState = getGPUTableIndexDrawState(source);
219
+ if (indexDrawState) {
220
+ this.setTableIndexDrawState(indexDrawState);
221
+ return;
222
+ }
223
+ this.restoreExplicitIndexDrawState();
224
+ }
225
+ setTableRowCount(rowCount) {
226
+ if (this.tableState.inferInstanceCount && this.instanceCount !== rowCount) {
227
+ this.setInstanceCount(rowCount);
228
+ }
229
+ if (this.tableState.inferVertexCount && this.vertexCount !== rowCount) {
230
+ this.setVertexCount(rowCount);
231
+ }
232
+ }
233
+ setTableIndexDrawState({ indexBuffer, indexCount, firstVertex, firstIndex }) {
234
+ if (this.indexBuffer !== getConcreteIndexBuffer(indexBuffer)) {
235
+ this.setIndexBuffer(indexBuffer);
236
+ }
237
+ if (this.indexCount !== indexCount) {
238
+ this.setIndexCount(indexCount);
239
+ }
240
+ if (this.firstVertex !== firstVertex || this.firstIndex !== firstIndex) {
241
+ this.setDrawOffsets({ firstVertex, firstIndex });
242
+ }
243
+ if (this.vertexCount !== indexCount) {
244
+ this.setVertexCount(indexCount);
245
+ }
246
+ }
247
+ restoreExplicitIndexDrawState() {
248
+ if (this.indexBuffer !== getConcreteIndexBuffer(this.tableState.explicitIndexBuffer)) {
249
+ this.setIndexBuffer(this.tableState.explicitIndexBuffer);
250
+ }
251
+ if (this.indexCount !== this.tableState.explicitIndexCount) {
252
+ this.setIndexCount(this.tableState.explicitIndexCount);
253
+ }
254
+ if (this.firstVertex !== this.tableState.explicitFirstVertex || this.firstIndex !== this.tableState.explicitFirstIndex) {
255
+ this.setDrawOffsets({
256
+ firstVertex: this.tableState.explicitFirstVertex,
257
+ firstIndex: this.tableState.explicitFirstIndex
258
+ });
259
+ }
260
+ if (!this.tableState.inferVertexCount && this.vertexCount !== this.tableState.explicitVertexCount) {
261
+ this.setVertexCount(this.tableState.explicitVertexCount);
262
+ }
263
+ }
264
+ }
265
+ function getGPUTableModelConstructorState(device, props) {
266
+ var _a, _b, _c, _d;
267
+ const { table, tableCount = "instance", gpuInputSchema, ...modelProps } = props;
268
+ const explicitAttributes = modelProps.attributes || {};
269
+ const explicitBindings = modelProps.bindings || {};
270
+ const tableBindingNames = (((_a = modelProps.shaderLayout) == null ? void 0 : _a.bindings) || []).filter((binding) => binding.type === "storage" || binding.type === "read-only-storage").map((binding) => binding.name);
271
+ const explicitBufferLayout = modelProps.bufferLayout || [];
272
+ const explicitIndexBuffer = modelProps.indexBuffer ?? null;
273
+ const explicitIndexCount = modelProps.indexCount;
274
+ const explicitFirstVertex = modelProps.firstVertex ?? 0;
275
+ const explicitFirstIndex = modelProps.firstIndex ?? 0;
276
+ const explicitVertexCount = modelProps.vertexCount ?? 0;
277
+ const inferInstanceCount = Boolean(table) && tableCount === "instance" && modelProps.instanceCount === void 0;
278
+ const inferVertexCount = Boolean(table) && tableCount === "vertex" && modelProps.vertexCount === void 0;
279
+ if (!table) {
280
+ return {
281
+ table,
282
+ modelProps,
283
+ state: {
284
+ explicitAttributes,
285
+ explicitBindings,
286
+ tableBindingNames,
287
+ explicitBufferLayout,
288
+ explicitIndexBuffer,
289
+ explicitIndexCount,
290
+ explicitFirstVertex,
291
+ explicitFirstIndex,
292
+ explicitVertexCount,
293
+ inferInstanceCount,
294
+ inferVertexCount,
295
+ gpuInputSchema,
296
+ shaderLayout: modelProps.shaderLayout
297
+ }
298
+ };
299
+ }
300
+ assertNoExplicitIndexBuffer(table, explicitIndexBuffer);
301
+ validateGPUTableIndexBatches(table);
302
+ let shaderBindings;
303
+ if (gpuInputSchema) {
304
+ if (!modelProps.shaderLayout) {
305
+ throw new Error("GPUTableModel gpuInputSchema requires shaderLayout");
306
+ }
307
+ shaderBindings = new import_gpu_tables.GPUTableShaderBindings(device, {
308
+ table,
309
+ gpuInputSchema,
310
+ shaderLayout: modelProps.shaderLayout
311
+ });
312
+ } else if (Object.keys(table.gpuConstants).length > 0) {
313
+ throw new Error("GPUTableModel constant columns require gpuInputSchema");
314
+ }
315
+ const tableBufferLayout = (shaderBindings == null ? void 0 : shaderBindings.bufferLayout) ?? table.bufferLayout;
316
+ const tableAttributes = ((_b = shaderBindings == null ? void 0 : shaderBindings.batches[0]) == null ? void 0 : _b.attributes) ?? getGPUTableDrawAttributes(table);
317
+ const tableAttributeByteOffsets = ((_c = shaderBindings == null ? void 0 : shaderBindings.batches[0]) == null ? void 0 : _c.attributeByteOffsets) ?? getGPUTableDrawAttributeByteOffsets(table);
318
+ const tableBindings = ((_d = shaderBindings == null ? void 0 : shaderBindings.batches[0]) == null ? void 0 : _d.bindings) ?? getGPUTableDrawBindings(table, tableBindingNames);
319
+ assertNoDuplicateNames(Object.keys(explicitAttributes), getBufferLayoutNames(tableBufferLayout), "attribute");
320
+ assertNoDuplicateNames(getBufferLayoutNames(explicitBufferLayout), getBufferLayoutNames(tableBufferLayout), "buffer layout");
321
+ assertNoDuplicateNames(Object.keys(explicitBindings), Object.keys(tableBindings), "binding");
322
+ return {
323
+ table,
324
+ shaderBindings,
325
+ tableAttributeByteOffsets,
326
+ state: {
327
+ explicitAttributes,
328
+ explicitBindings,
329
+ tableBindingNames,
330
+ explicitBufferLayout,
331
+ explicitIndexBuffer,
332
+ explicitIndexCount,
333
+ explicitFirstVertex,
334
+ explicitFirstIndex,
335
+ explicitVertexCount,
336
+ inferInstanceCount,
337
+ inferVertexCount,
338
+ gpuInputSchema,
339
+ shaderLayout: modelProps.shaderLayout
340
+ },
341
+ modelProps: {
342
+ ...modelProps,
343
+ modules: (shaderBindings == null ? void 0 : shaderBindings.shaderModule) ? [...modelProps.modules ?? [], shaderBindings.shaderModule] : modelProps.modules,
344
+ bufferLayout: [...explicitBufferLayout, ...tableBufferLayout],
345
+ attributes: { ...explicitAttributes, ...tableAttributes },
346
+ constantAttributes: {
347
+ ...modelProps.constantAttributes || {},
348
+ ...(shaderBindings == null ? void 0 : shaderBindings.constantAttributes) || {}
349
+ },
350
+ bindings: {
351
+ ...explicitBindings,
352
+ ...tableBindings
353
+ },
354
+ ...inferInstanceCount ? { instanceCount: table.numRows } : {},
355
+ ...inferVertexCount ? { vertexCount: table.numRows } : {}
356
+ }
357
+ };
358
+ }
359
+ function getGPUTableDrawBindings(source, bindingNames) {
360
+ const batch = source instanceof import_gpu_tables3.GPUTable ? source.batches[0] : source;
361
+ if (!batch) {
362
+ return {};
363
+ }
364
+ const bindings = {};
365
+ for (const bindingName of bindingNames) {
366
+ const data = batch.gpuData[bindingName];
367
+ if (data) {
368
+ bindings[bindingName] = data.buffer;
369
+ }
370
+ }
371
+ return bindings;
372
+ }
373
+ function getGPUTableDrawAttributes(source) {
374
+ const attributeSource = source instanceof import_gpu_tables3.GPUTable ? source.batches[0] : source;
375
+ if (!attributeSource) {
376
+ return {};
377
+ }
378
+ return (0, import_gpu_data.getGPUDataBuffersForLayout)(attributeSource.bufferLayout, attributeSource.gpuData);
379
+ }
380
+ function getGPUTableDrawAttributeByteOffsets(source) {
381
+ const attributeSource = source instanceof import_gpu_tables3.GPUTable ? source.batches[0] : source;
382
+ if (!attributeSource) {
383
+ return {};
384
+ }
385
+ return (0, import_gpu_data.getGPUDataByteOffsetsForLayout)(attributeSource.bufferLayout, attributeSource.gpuData);
386
+ }
387
+ function getBufferLayoutNames(bufferLayout) {
388
+ return bufferLayout.map((layout) => layout.name);
389
+ }
390
+ function assertNoDuplicateNames(explicitNames, tableNames, nameType) {
391
+ const explicitNameSet = new Set(explicitNames);
392
+ for (const tableName of tableNames) {
393
+ if (explicitNameSet.has(tableName)) {
394
+ throw new Error(`GPUTableModel ${nameType} "${tableName}" duplicates an explicit ${nameType}`);
395
+ }
396
+ }
397
+ }
398
+ function assertNoExplicitIndexBuffer(table, explicitIndexBuffer) {
399
+ if (explicitIndexBuffer && table.gpuVectors[import_gpu_tables2.GPU_TABLE_INDEX_COLUMN_NAME]) {
400
+ throw new Error("GPUTableModel indices column duplicates an explicit indexBuffer");
401
+ }
402
+ }
403
+ function validateGPUTableIndexBatches(table) {
404
+ const tableHasIndices = Boolean(table.gpuVectors[import_gpu_tables2.GPU_TABLE_INDEX_COLUMN_NAME]);
405
+ for (const batch of table.batches) {
406
+ const batchHasIndices = Boolean(batch.gpuData[import_gpu_tables2.GPU_TABLE_INDEX_COLUMN_NAME]);
407
+ if (batchHasIndices !== tableHasIndices) {
408
+ throw new Error("GPUTableModel indexed tables require every batch to include indices");
409
+ }
410
+ getGPUTableIndexDrawState(batch);
411
+ }
412
+ }
413
+ function getGPUTableIndexDrawState(source) {
414
+ var _a;
415
+ const indexData = source instanceof import_gpu_tables3.GPUTable ? (_a = source.gpuVectors[import_gpu_tables2.GPU_TABLE_INDEX_COLUMN_NAME]) == null ? void 0 : _a.data[0] : source.gpuData[import_gpu_tables2.GPU_TABLE_INDEX_COLUMN_NAME];
416
+ if (!indexData) {
417
+ return null;
418
+ }
419
+ if (source instanceof import_gpu_tables3.GPUTable && source.batches.length > 1) {
420
+ return null;
421
+ }
422
+ if (indexData.format !== "vertex-list<uint32>") {
423
+ throw new Error("GPUTableModel indices column requires vertex-list<uint32> format");
424
+ }
425
+ if (source instanceof import_gpu_tables3.GPUTable && source.gpuVectors[import_gpu_tables2.GPU_TABLE_INDEX_COLUMN_NAME].data.length !== 1) {
426
+ throw new Error("GPUTableModel indices column requires exactly one GPUData chunk");
427
+ }
428
+ const indexBuffer = indexData.buffer;
429
+ const concreteIndexBuffer = getConcreteIndexBuffer(indexBuffer);
430
+ if (!concreteIndexBuffer || !(concreteIndexBuffer.usage & import_core.Buffer.INDEX)) {
431
+ throw new Error("GPUTableModel indices column requires Buffer.INDEX usage");
432
+ }
433
+ const indexByteStride = concreteIndexBuffer.indexType === "uint32" ? 4 : 2;
434
+ if (indexData.byteOffset % indexByteStride !== 0) {
435
+ throw new Error("GPUTableModel indices column byteOffset must align with its index type");
436
+ }
437
+ return {
438
+ indexBuffer,
439
+ indexCount: indexData.valueLength,
440
+ firstVertex: indexData.byteOffset,
441
+ firstIndex: indexData.byteOffset / indexByteStride
442
+ };
443
+ }
444
+ function getConcreteIndexBuffer(indexBuffer) {
445
+ return indexBuffer instanceof import_dynamic.DynamicBuffer ? indexBuffer.buffer : indexBuffer;
446
+ }
447
+ function assertMatchingBufferLayouts(tableBufferLayout, explicitBufferLayout, candidateBufferLayout, errorMessage) {
448
+ const expectedBufferLayout = [...explicitBufferLayout, ...tableBufferLayout];
449
+ if (!deepEqualBufferLayouts(expectedBufferLayout, candidateBufferLayout)) {
450
+ throw new Error(errorMessage);
451
+ }
452
+ }
453
+ function deepEqualBufferLayouts(expectedBufferLayout, candidateBufferLayout) {
454
+ return JSON.stringify(expectedBufferLayout) === JSON.stringify(candidateBufferLayout);
455
+ }
456
+ // Annotate the CommonJS export names for ESM import in node:
457
+ 0 && (module.exports = {
458
+ GPUTableModel
459
+ });
@@ -0,0 +1,67 @@
1
+ import { Device, type CommandEncoder, type RenderPass } from '@luma.gl/core';
2
+ import { type GPUVectorModelInputs, type GPUVectorModelDrawBatchesOptions } from "../../model/gpu-vector-model.js";
3
+ import { Model, type ModelProps } from "../../index.js";
4
+ import type { GPUInputSchema } from '@luma.gl/graph/gpu-tables';
5
+ import type { GPURecordBatch } from '@luma.gl/graph/gpu-tables';
6
+ import { GPUTable } from '@luma.gl/graph/gpu-tables';
7
+ /** Controls which Model draw count mirrors the current GPU table row count. */
8
+ export type GPUTableModelCount = 'instance' | 'vertex' | 'none';
9
+ /** Props for rendering one GPU table through a luma.gl Model. */
10
+ export type GPUTableModelProps = ModelProps & {
11
+ /** GPU table supplying model-ready attributes, bindings, and preserved batches. */
12
+ table?: GPUTable;
13
+ /** Controls whether table rows infer `instanceCount`, `vertexCount`, or neither. */
14
+ tableCount?: GPUTableModelCount;
15
+ /** Optional logical-column contract used to resolve constants and renamed shader inputs. */
16
+ gpuInputSchema?: GPUInputSchema;
17
+ };
18
+ export type GPUTableModelDrawBatchesOptions = {
19
+ /** Called immediately before drawing each non-empty preserved GPU record batch. */
20
+ onBatch?: (batch: GPURecordBatch, batchIndex: number) => void;
21
+ };
22
+ /**
23
+ * A luma.gl Model whose GPU attributes and bindings are sourced from a `GPUTable`.
24
+ *
25
+ * The table stays caller-owned. The model rebinds preserved table batches on
26
+ * demand and mirrors table row counts into draw counts when requested.
27
+ */
28
+ export declare class GPUTableModel extends Model {
29
+ /** Currently bound table, when table-backed rendering is active. */
30
+ table?: GPUTable;
31
+ private readonly tableState;
32
+ private tableShaderBindings?;
33
+ private drawingTableBatches;
34
+ /** Bytes owned by table-to-shader binding preparation, excluding caller-owned table buffers. */
35
+ get tableBindingByteLength(): number;
36
+ /** Creates a model whose table-backed attributes and bindings can be rebound by batch. */
37
+ constructor(device: Device, props: GPUTableModelProps);
38
+ destroy(): void;
39
+ /** Skips a direct draw while an empty prepared storage range is still bound. */
40
+ draw(renderPass: RenderPass): boolean;
41
+ /** Replaces the bound GPU table when one is supplied. */
42
+ setProps(props: Partial<GPUTableModelProps>): void;
43
+ /** Query redraw status after synchronizing inferred table draw state. */
44
+ needsRedraw(): false | string;
45
+ /** Synchronizes inferred table draw state before opening a render pass. */
46
+ predraw(commandEncoder: CommandEncoder): void;
47
+ /**
48
+ * Draws each preserved GPU record batch by rebinding batch-local buffers.
49
+ *
50
+ * Batches with zero rows are skipped, because their empty storage chunks would produce
51
+ * zero-size bindings that WebGPU rejects. The table and its batches are not modified.
52
+ * The table-level attributes and bindings are restored before returning.
53
+ */
54
+ drawBatches<Inputs extends GPUVectorModelInputs = GPUVectorModelInputs>(renderPass: RenderPass, options: GPUVectorModelDrawBatchesOptions<Inputs>): boolean;
55
+ drawBatches(renderPass: RenderPass, options?: GPUTableModelDrawBatchesOptions): boolean;
56
+ /** Rebinds the model to a replacement table while preserving explicit model state. */
57
+ protected setTable(nextTable: GPUTable): void;
58
+ /** Disables table-backed draw state and restores any explicit index buffer. */
59
+ protected clearTable(): void;
60
+ private syncTableDrawState;
61
+ private captureExplicitDrawState;
62
+ private setTableDrawState;
63
+ private setTableRowCount;
64
+ private setTableIndexDrawState;
65
+ private restoreExplicitIndexDrawState;
66
+ }
67
+ //# sourceMappingURL=gpu-table-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gpu-table-model.d.ts","sourceRoot":"","sources":["../../../src/graph/tables/gpu-table-model.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,MAAM,EAEN,KAAK,cAAc,EACnB,KAAK,UAAU,EAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,gCAAgC,EACtC,wCAAqC;AAEtC,OAAO,EAAC,KAAK,EAAE,KAAK,UAAU,EAAC,uBAAoB;AACnD,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,2BAA2B,CAAC;AAE9D,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EAAC,QAAQ,EAAC,MAAM,2BAA2B,CAAC;AAGnD,+EAA+E;AAC/E,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEhE,iEAAiE;AACjE,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG;IAC5C,mFAAmF;IACnF,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,oFAAoF;IACpF,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,4FAA4F;IAC5F,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,mFAAmF;IACnF,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/D,CAAC;AAmCF;;;;;GAKG;AACH,qBAAa,aAAc,SAAQ,KAAK;IACtC,oEAAoE;IACpE,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAqB;IAChD,OAAO,CAAC,mBAAmB,CAAC,CAAyB;IACrD,OAAO,CAAC,mBAAmB,CAAS;IAEpC,gGAAgG;IAChG,IAAI,sBAAsB,IAAI,MAAM,CAEnC;IAED,0FAA0F;gBAC9E,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,kBAAkB;IAoB5C,OAAO,IAAI,IAAI;IAMxB,gFAAgF;IACvE,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,OAAO;IAc9C,yDAAyD;IACzD,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC,kBAAkB,CAAC,GAAG,IAAI;IAMlD,yEAAyE;IAChE,WAAW,IAAI,KAAK,GAAG,MAAM;IAKtC,2EAA2E;IAClE,OAAO,CAAC,cAAc,EAAE,cAAc,GAAG,IAAI;IAKtD;;;;;;OAMG;IACM,WAAW,CAAC,MAAM,SAAS,oBAAoB,GAAG,oBAAoB,EAC7E,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,gCAAgC,CAAC,MAAM,CAAC,GAChD,OAAO;IACD,WAAW,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,+BAA+B,GAAG,OAAO;IAoFhG,sFAAsF;IACtF,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAE,QAAQ,GAAG,IAAI;IAmE7C,+EAA+E;IAC/E,SAAS,CAAC,UAAU,IAAI,IAAI;IAK5B,OAAO,CAAC,kBAAkB;IAO1B,OAAO,CAAC,wBAAwB;IAYhC,OAAO,CAAC,iBAAiB;IAUzB,OAAO,CAAC,gBAAgB;IASxB,OAAO,CAAC,sBAAsB;IAoB9B,OAAO,CAAC,6BAA6B;CAuBtC"}