@lightningjs/renderer 3.0.0-beta2 → 3.0.0-beta4

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 (387) hide show
  1. package/COPYING +1 -0
  2. package/LICENSE +202 -202
  3. package/NOTICE +3 -3
  4. package/README.md +147 -147
  5. package/dist/exports/index.d.ts +1 -0
  6. package/dist/exports/index.js +1 -0
  7. package/dist/exports/index.js.map +1 -1
  8. package/dist/src/core/CoreNode.d.ts +3 -2
  9. package/dist/src/core/CoreNode.js +13 -7
  10. package/dist/src/core/CoreNode.js.map +1 -1
  11. package/dist/src/core/CoreShaderManager.d.ts +3 -5
  12. package/dist/src/core/CoreShaderManager.js.map +1 -1
  13. package/dist/src/core/CoreTextNode.d.ts +2 -0
  14. package/dist/src/core/CoreTextNode.js +7 -0
  15. package/dist/src/core/CoreTextNode.js.map +1 -1
  16. package/dist/src/core/CoreTextureManager.d.ts +2 -0
  17. package/dist/src/core/CoreTextureManager.js +7 -5
  18. package/dist/src/core/CoreTextureManager.js.map +1 -1
  19. package/dist/src/core/Stage.d.ts +5 -0
  20. package/dist/src/core/Stage.js +10 -5
  21. package/dist/src/core/Stage.js.map +1 -1
  22. package/dist/src/core/lib/validateImageBitmap.d.ts +2 -1
  23. package/dist/src/core/lib/validateImageBitmap.js +4 -4
  24. package/dist/src/core/lib/validateImageBitmap.js.map +1 -1
  25. package/dist/src/core/platforms/Platform.d.ts +37 -0
  26. package/dist/src/{main-api/IRenderDriver.js → core/platforms/Platform.js} +4 -2
  27. package/dist/src/core/platforms/Platform.js.map +1 -0
  28. package/dist/src/core/platforms/web/WebPlatform.d.ts +9 -0
  29. package/dist/src/core/platforms/web/WebPlatform.js +58 -0
  30. package/dist/src/core/platforms/web/WebPlatform.js.map +1 -0
  31. package/dist/src/core/renderers/CoreRenderer.d.ts +3 -1
  32. package/dist/src/core/renderers/CoreRenderer.js.map +1 -1
  33. package/dist/src/core/renderers/CoreShaderNode.d.ts +1 -1
  34. package/dist/src/core/renderers/CoreShaderNode.js.map +1 -1
  35. package/dist/src/core/renderers/canvas/CanvasRenderer.js.map +1 -1
  36. package/dist/src/core/renderers/webgl/WebGlRenderer.d.ts +3 -1
  37. package/dist/src/core/renderers/webgl/WebGlRenderer.js +86 -60
  38. package/dist/src/core/renderers/webgl/WebGlRenderer.js.map +1 -1
  39. package/dist/src/core/renderers/webgl/internal/ShaderUtils.js +35 -35
  40. package/dist/src/core/renderers/webgl/shaders/DefaultShader.js +45 -45
  41. package/dist/src/core/renderers/webgl/shaders/DefaultShaderBatched.js +61 -61
  42. package/dist/src/core/renderers/webgl/shaders/DynamicShader.js +93 -93
  43. package/dist/src/core/renderers/webgl/shaders/RoundedRectangle.js +63 -63
  44. package/dist/src/core/renderers/webgl/shaders/SdfShader.js +62 -62
  45. package/dist/src/core/renderers/webgl/shaders/effects/BorderBottomEffect.js +15 -15
  46. package/dist/src/core/renderers/webgl/shaders/effects/BorderEffect.js +6 -6
  47. package/dist/src/core/renderers/webgl/shaders/effects/BorderLeftEffect.js +15 -15
  48. package/dist/src/core/renderers/webgl/shaders/effects/BorderRightEffect.js +15 -15
  49. package/dist/src/core/renderers/webgl/shaders/effects/BorderTopEffect.js +15 -15
  50. package/dist/src/core/renderers/webgl/shaders/effects/FadeOutEffect.js +42 -42
  51. package/dist/src/core/renderers/webgl/shaders/effects/GlitchEffect.js +44 -44
  52. package/dist/src/core/renderers/webgl/shaders/effects/GrayscaleEffect.js +3 -3
  53. package/dist/src/core/renderers/webgl/shaders/effects/HolePunchEffect.js +22 -22
  54. package/dist/src/core/renderers/webgl/shaders/effects/LinearGradientEffect.js +28 -28
  55. package/dist/src/core/renderers/webgl/shaders/effects/RadialGradientEffect.js +10 -10
  56. package/dist/src/core/renderers/webgl/shaders/effects/RadialProgressEffect.js +37 -37
  57. package/dist/src/core/renderers/webgl/shaders/effects/RadiusEffect.js +19 -19
  58. package/dist/src/core/shaders/webgl/Border.js +59 -59
  59. package/dist/src/core/shaders/webgl/Default.js +47 -47
  60. package/dist/src/core/shaders/webgl/DefaultBatched.js +61 -61
  61. package/dist/src/core/shaders/webgl/HolePunch.js +32 -32
  62. package/dist/src/core/shaders/webgl/LinearGradient.js +36 -36
  63. package/dist/src/core/shaders/webgl/RadialGradient.js +33 -33
  64. package/dist/src/core/shaders/webgl/Rounded.js +71 -71
  65. package/dist/src/core/shaders/webgl/RoundedWithBorder.js +66 -66
  66. package/dist/src/core/shaders/webgl/RoundedWithBorderAndShadow.js +79 -79
  67. package/dist/src/core/shaders/webgl/RoundedWithShadow.js +54 -54
  68. package/dist/src/core/shaders/webgl/SdfShader.js +62 -62
  69. package/dist/src/core/shaders/webgl/Shadow.js +83 -83
  70. package/dist/src/core/temp.js +77 -0
  71. package/dist/src/core/temp.js.map +1 -0
  72. package/dist/src/core/text-rendering/renderers/CanvasTextRenderer.js +5 -0
  73. package/dist/src/core/text-rendering/renderers/CanvasTextRenderer.js.map +1 -1
  74. package/dist/src/core/text-rendering/renderers/LightningTextTextureRenderer.d.ts +1 -1
  75. package/dist/src/core/text-rendering/renderers/LightningTextTextureRenderer.js +50 -2
  76. package/dist/src/core/text-rendering/renderers/LightningTextTextureRenderer.js.map +1 -1
  77. package/dist/src/core/text-rendering/renderers/SdfTextRenderer/SdfTextRenderer.js +6 -2
  78. package/dist/src/core/text-rendering/renderers/SdfTextRenderer/SdfTextRenderer.js.map +1 -1
  79. package/dist/src/core/text-rendering/renderers/SdfTextRenderer/internal/layoutText.d.ts +1 -1
  80. package/dist/src/core/text-rendering/renderers/SdfTextRenderer/internal/layoutText.js +66 -8
  81. package/dist/src/core/text-rendering/renderers/SdfTextRenderer/internal/layoutText.js.map +1 -1
  82. package/dist/src/core/text-rendering/renderers/TextRenderer.d.ts +13 -0
  83. package/dist/src/core/text-rendering/renderers/TextRenderer.js +3 -0
  84. package/dist/src/core/text-rendering/renderers/TextRenderer.js.map +1 -1
  85. package/dist/src/core/textures/ImageTexture.d.ts +1 -0
  86. package/dist/src/core/textures/ImageTexture.js +5 -3
  87. package/dist/src/core/textures/ImageTexture.js.map +1 -1
  88. package/dist/src/core/textures/Texture.d.ts +9 -2
  89. package/dist/src/core/textures/Texture.js +18 -6
  90. package/dist/src/core/textures/Texture.js.map +1 -1
  91. package/dist/src/main-api/INode.d.ts +2 -2
  92. package/dist/src/main-api/Renderer.d.ts +13 -1
  93. package/dist/src/main-api/Renderer.js +14 -2
  94. package/dist/src/main-api/Renderer.js.map +1 -1
  95. package/dist/tsconfig.dist.tsbuildinfo +1 -1
  96. package/exports/canvas-shaders.ts +28 -28
  97. package/exports/canvas.ts +45 -45
  98. package/exports/index.ts +90 -89
  99. package/exports/inspector.ts +24 -24
  100. package/exports/utils.ts +44 -44
  101. package/exports/webgl-shaders.ts +28 -28
  102. package/exports/webgl.ts +50 -50
  103. package/package.json +2 -3
  104. package/scripts/please-use-pnpm.js +13 -13
  105. package/src/common/CommonTypes.ts +146 -146
  106. package/src/common/EventEmitter.ts +77 -77
  107. package/src/common/IAnimationController.ts +92 -92
  108. package/src/common/IEventEmitter.ts +28 -28
  109. package/src/core/CoreNode.test.ts +203 -203
  110. package/src/core/CoreNode.ts +2494 -2486
  111. package/src/core/CoreShaderManager.ts +188 -193
  112. package/src/core/CoreTextNode.ts +448 -439
  113. package/src/core/CoreTextureManager.ts +601 -597
  114. package/src/core/Stage.ts +754 -738
  115. package/src/core/TextureMemoryManager.ts +395 -395
  116. package/src/core/animations/AnimationManager.ts +38 -38
  117. package/src/core/animations/CoreAnimation.ts +284 -284
  118. package/src/core/animations/CoreAnimationController.ts +157 -157
  119. package/src/core/lib/ContextSpy.ts +41 -41
  120. package/src/core/lib/ImageWorker.ts +280 -280
  121. package/src/core/lib/Matrix3d.ts +244 -244
  122. package/src/core/lib/RenderCoords.ts +71 -71
  123. package/src/core/lib/WebGlContextWrapper.ts +1374 -1374
  124. package/src/core/lib/textureCompression.ts +152 -152
  125. package/src/core/lib/textureSvg.ts +78 -78
  126. package/src/core/lib/utils.ts +386 -386
  127. package/src/core/lib/validateImageBitmap.ts +87 -76
  128. package/src/core/platform.ts +64 -64
  129. package/src/core/platforms/Platform.ts +77 -0
  130. package/src/core/platforms/web/WebPlatform.ts +84 -0
  131. package/src/core/renderers/CoreContextTexture.ts +43 -43
  132. package/src/core/renderers/CoreRenderOp.ts +22 -22
  133. package/src/core/renderers/CoreRenderer.ts +109 -107
  134. package/src/core/renderers/CoreShaderNode.ts +165 -167
  135. package/src/core/renderers/CoreShaderProgram.ts +23 -23
  136. package/src/core/renderers/canvas/CanvasRenderer.ts +298 -298
  137. package/src/core/renderers/canvas/CanvasShaderNode.ts +99 -99
  138. package/src/core/renderers/canvas/CanvasTexture.ts +156 -156
  139. package/src/core/renderers/canvas/internal/C2DShaderUtils.ts +220 -220
  140. package/src/core/renderers/canvas/internal/ColorUtils.ts +85 -85
  141. package/src/core/renderers/webgl/WebGlCtxRenderTexture.ts +86 -86
  142. package/src/core/renderers/webgl/WebGlCtxSubTexture.ts +50 -50
  143. package/src/core/renderers/webgl/WebGlCtxTexture.ts +301 -301
  144. package/src/core/renderers/webgl/WebGlRenderOp.ts +161 -161
  145. package/src/core/renderers/webgl/WebGlRenderer.ts +750 -720
  146. package/src/core/renderers/webgl/WebGlShaderNode.ts +437 -437
  147. package/src/core/renderers/webgl/WebGlShaderProgram.ts +318 -318
  148. package/src/core/renderers/webgl/internal/BufferCollection.ts +54 -54
  149. package/src/core/renderers/webgl/internal/RendererUtils.ts +155 -155
  150. package/src/core/renderers/webgl/internal/ShaderUtils.ts +281 -281
  151. package/src/core/renderers/webgl/internal/WebGlUtils.ts +35 -35
  152. package/src/core/shaders/canvas/Border.ts +78 -78
  153. package/src/core/shaders/canvas/HolePunch.ts +62 -62
  154. package/src/core/shaders/canvas/LinearGradient.ts +69 -69
  155. package/src/core/shaders/canvas/RadialGradient.ts +113 -113
  156. package/src/core/shaders/canvas/Rounded.ts +55 -55
  157. package/src/core/shaders/canvas/RoundedWithBorder.ts +68 -68
  158. package/src/core/shaders/canvas/RoundedWithBorderAndShadow.ts +88 -88
  159. package/src/core/shaders/canvas/RoundedWithShadow.ts +69 -69
  160. package/src/core/shaders/canvas/Shadow.ts +52 -52
  161. package/src/core/shaders/canvas/utils/render.ts +151 -151
  162. package/src/core/shaders/templates/BorderTemplate.ts +115 -115
  163. package/src/core/shaders/templates/HolePunchTemplate.ts +82 -82
  164. package/src/core/shaders/templates/LinearGradientTemplate.ts +71 -71
  165. package/src/core/shaders/templates/RadialGradientTemplate.ts +81 -81
  166. package/src/core/shaders/templates/RoundedTemplate.ts +98 -98
  167. package/src/core/shaders/templates/RoundedWithBorderAndShadowTemplate.ts +38 -38
  168. package/src/core/shaders/templates/RoundedWithBorderTemplate.ts +35 -35
  169. package/src/core/shaders/templates/RoundedWithShadowTemplate.ts +35 -35
  170. package/src/core/shaders/templates/ShadowTemplate.ts +106 -106
  171. package/src/core/shaders/templates/shaderUtils.ts +47 -47
  172. package/src/core/shaders/webgl/Border.ts +96 -96
  173. package/src/core/shaders/webgl/Default.ts +89 -89
  174. package/src/core/shaders/webgl/DefaultBatched.ts +129 -129
  175. package/src/core/shaders/webgl/HolePunch.ts +78 -78
  176. package/src/core/shaders/webgl/LinearGradient.ts +81 -81
  177. package/src/core/shaders/webgl/RadialGradient.ts +84 -84
  178. package/src/core/shaders/webgl/Rounded.ts +117 -117
  179. package/src/core/shaders/webgl/RoundedWithBorder.ts +114 -114
  180. package/src/core/shaders/webgl/RoundedWithBorderAndShadow.ts +133 -133
  181. package/src/core/shaders/webgl/RoundedWithShadow.ts +98 -98
  182. package/src/core/shaders/webgl/SdfShader.ts +134 -134
  183. package/src/core/shaders/webgl/Shadow.ts +115 -115
  184. package/src/core/text-rendering/TextRenderingUtils.ts +36 -36
  185. package/src/core/text-rendering/TextTextureRendererUtils.ts +263 -263
  186. package/src/core/text-rendering/TrFontManager.ts +183 -183
  187. package/src/core/text-rendering/font-face-types/SdfTrFontFace/SdfTrFontFace.ts +176 -176
  188. package/src/core/text-rendering/font-face-types/SdfTrFontFace/internal/FontShaper.ts +139 -139
  189. package/src/core/text-rendering/font-face-types/SdfTrFontFace/internal/SdfFontShaper.test.ts +173 -173
  190. package/src/core/text-rendering/font-face-types/SdfTrFontFace/internal/SdfFontShaper.ts +171 -171
  191. package/src/core/text-rendering/font-face-types/TrFontFace.ts +187 -187
  192. package/src/core/text-rendering/font-face-types/WebTrFontFace.ts +94 -94
  193. package/src/core/text-rendering/font-face-types/utils.ts +39 -39
  194. package/src/core/text-rendering/renderers/CanvasTextRenderer.ts +514 -509
  195. package/src/core/text-rendering/renderers/LightningTextTextureRenderer.ts +863 -815
  196. package/src/core/text-rendering/renderers/SdfTextRenderer/SdfTextRenderer.ts +846 -840
  197. package/src/core/text-rendering/renderers/SdfTextRenderer/internal/PeekableGenerator.test.ts +48 -48
  198. package/src/core/text-rendering/renderers/SdfTextRenderer/internal/PeekableGenerator.ts +66 -66
  199. package/src/core/text-rendering/renderers/SdfTextRenderer/internal/SpecialCodepoints.ts +52 -52
  200. package/src/core/text-rendering/renderers/SdfTextRenderer/internal/constants.ts +32 -32
  201. package/src/core/text-rendering/renderers/SdfTextRenderer/internal/getStartConditions.ts +117 -117
  202. package/src/core/text-rendering/renderers/SdfTextRenderer/internal/getUnicodeCodepoints.test.ts +133 -133
  203. package/src/core/text-rendering/renderers/SdfTextRenderer/internal/getUnicodeCodepoints.ts +38 -38
  204. package/src/core/text-rendering/renderers/SdfTextRenderer/internal/layoutText.ts +497 -408
  205. package/src/core/text-rendering/renderers/SdfTextRenderer/internal/measureText.test.ts +49 -49
  206. package/src/core/text-rendering/renderers/SdfTextRenderer/internal/measureText.ts +52 -52
  207. package/src/core/text-rendering/renderers/SdfTextRenderer/internal/setRenderWindow.test.ts +205 -205
  208. package/src/core/text-rendering/renderers/SdfTextRenderer/internal/setRenderWindow.ts +93 -93
  209. package/src/core/text-rendering/renderers/SdfTextRenderer/internal/util.ts +40 -40
  210. package/src/core/text-rendering/renderers/TextRenderer.ts +567 -550
  211. package/src/core/textures/ColorTexture.ts +102 -102
  212. package/src/core/textures/ImageTexture.ts +410 -399
  213. package/src/core/textures/NoiseTexture.ts +104 -104
  214. package/src/core/textures/RenderTexture.ts +85 -85
  215. package/src/core/textures/SubTexture.ts +205 -205
  216. package/src/core/textures/Texture.ts +358 -337
  217. package/src/core/utils.ts +227 -227
  218. package/src/env.d.ts +7 -7
  219. package/src/main-api/INode.ts +100 -99
  220. package/src/main-api/Inspector.ts +522 -522
  221. package/src/main-api/Renderer.ts +675 -649
  222. package/src/main-api/utils.ts +45 -45
  223. package/src/utils.ts +267 -267
  224. package/dist/exports/core-api.d.ts +0 -74
  225. package/dist/exports/core-api.js +0 -96
  226. package/dist/exports/core-api.js.map +0 -1
  227. package/dist/exports/main-api.d.ts +0 -30
  228. package/dist/exports/main-api.js +0 -45
  229. package/dist/exports/main-api.js.map +0 -1
  230. package/dist/src/core/CoreExtension.d.ts +0 -12
  231. package/dist/src/core/CoreExtension.js +0 -29
  232. package/dist/src/core/CoreExtension.js.map +0 -1
  233. package/dist/src/core/CoreStuff.js +0 -138
  234. package/dist/src/core/CoreStuff.js.map +0 -1
  235. package/dist/src/core/CoreTexturizer.d.ts +0 -14
  236. package/dist/src/core/CoreTexturizer.js +0 -47
  237. package/dist/src/core/CoreTexturizer.js.map +0 -1
  238. package/dist/src/core/LngNode.d.ts +0 -736
  239. package/dist/src/core/LngNode.js +0 -1174
  240. package/dist/src/core/LngNode.js.map +0 -1
  241. package/dist/src/core/Matrix2DContext.d.ts +0 -15
  242. package/dist/src/core/Matrix2DContext.js +0 -45
  243. package/dist/src/core/Matrix2DContext.js.map +0 -1
  244. package/dist/src/core/ShaderNode.d.ts +0 -10
  245. package/dist/src/core/ShaderNode.js +0 -30
  246. package/dist/src/core/ShaderNode.js.map +0 -1
  247. package/dist/src/core/TextNode.d.ts +0 -103
  248. package/dist/src/core/TextNode.js +0 -331
  249. package/dist/src/core/TextNode.js.map +0 -1
  250. package/dist/src/core/lib/Coords.d.ts +0 -14
  251. package/dist/src/core/lib/Coords.js +0 -55
  252. package/dist/src/core/lib/Coords.js.map +0 -1
  253. package/dist/src/core/lib/glm/common.d.ts +0 -162
  254. package/dist/src/core/lib/glm/common.js +0 -81
  255. package/dist/src/core/lib/glm/common.js.map +0 -1
  256. package/dist/src/core/lib/glm/index.d.ts +0 -11
  257. package/dist/src/core/lib/glm/index.js +0 -30
  258. package/dist/src/core/lib/glm/index.js.map +0 -1
  259. package/dist/src/core/lib/glm/mat2.d.ts +0 -219
  260. package/dist/src/core/lib/glm/mat2.js +0 -396
  261. package/dist/src/core/lib/glm/mat2.js.map +0 -1
  262. package/dist/src/core/lib/glm/mat2d.d.ts +0 -237
  263. package/dist/src/core/lib/glm/mat2d.js +0 -442
  264. package/dist/src/core/lib/glm/mat2d.js.map +0 -1
  265. package/dist/src/core/lib/glm/mat3.d.ts +0 -283
  266. package/dist/src/core/lib/glm/mat3.js +0 -680
  267. package/dist/src/core/lib/glm/mat3.js.map +0 -1
  268. package/dist/src/core/lib/glm/mat4.d.ts +0 -550
  269. package/dist/src/core/lib/glm/mat4.js +0 -1802
  270. package/dist/src/core/lib/glm/mat4.js.map +0 -1
  271. package/dist/src/core/lib/glm/quat.d.ts +0 -363
  272. package/dist/src/core/lib/glm/quat.js +0 -693
  273. package/dist/src/core/lib/glm/quat.js.map +0 -1
  274. package/dist/src/core/lib/glm/quat2.d.ts +0 -356
  275. package/dist/src/core/lib/glm/quat2.js +0 -754
  276. package/dist/src/core/lib/glm/quat2.js.map +0 -1
  277. package/dist/src/core/lib/glm/vec2.d.ts +0 -365
  278. package/dist/src/core/lib/glm/vec2.js +0 -569
  279. package/dist/src/core/lib/glm/vec2.js.map +0 -1
  280. package/dist/src/core/lib/glm/vec3.d.ts +0 -406
  281. package/dist/src/core/lib/glm/vec3.js +0 -720
  282. package/dist/src/core/lib/glm/vec3.js.map +0 -1
  283. package/dist/src/core/lib/glm/vec4.d.ts +0 -330
  284. package/dist/src/core/lib/glm/vec4.js +0 -608
  285. package/dist/src/core/lib/glm/vec4.js.map +0 -1
  286. package/dist/src/core/renderers/CoreShaderManager.d.ts +0 -19
  287. package/dist/src/core/renderers/CoreShaderManager.js +0 -33
  288. package/dist/src/core/renderers/CoreShaderManager.js.map +0 -1
  289. package/dist/src/core/renderers/webgl/WebGlCoreShaderManager.d.ts +0 -27
  290. package/dist/src/core/renderers/webgl/WebGlCoreShaderManager.js +0 -82
  291. package/dist/src/core/renderers/webgl/WebGlCoreShaderManager.js.map +0 -1
  292. package/dist/src/core/renderers/webgl/WebGlCoreShaderProgram.d.ts +0 -11
  293. package/dist/src/core/renderers/webgl/WebGlCoreShaderProgram.js +0 -34
  294. package/dist/src/core/renderers/webgl/WebGlCoreShaderProgram.js.map +0 -1
  295. package/dist/src/core/scene/Scene.d.ts +0 -59
  296. package/dist/src/core/scene/Scene.js +0 -106
  297. package/dist/src/core/scene/Scene.js.map +0 -1
  298. package/dist/src/core/text-rendering/renderers/SdfTextRenderer/internal/makeRenderWindow.d.ts +0 -20
  299. package/dist/src/core/text-rendering/renderers/SdfTextRenderer/internal/makeRenderWindow.js +0 -55
  300. package/dist/src/core/text-rendering/renderers/SdfTextRenderer/internal/makeRenderWindow.js.map +0 -1
  301. package/dist/src/main-api/ICoreDriver.d.ts +0 -27
  302. package/dist/src/main-api/ICoreDriver.js +0 -20
  303. package/dist/src/main-api/ICoreDriver.js.map +0 -1
  304. package/dist/src/main-api/IRenderDriver.d.ts +0 -20
  305. package/dist/src/main-api/IRenderDriver.js.map +0 -1
  306. package/dist/src/main-api/IShaderController.d.ts +0 -14
  307. package/dist/src/main-api/IShaderController.js +0 -30
  308. package/dist/src/main-api/IShaderController.js.map +0 -1
  309. package/dist/src/main-api/IShaderNode.d.ts +0 -17
  310. package/dist/src/main-api/IShaderNode.js +0 -19
  311. package/dist/src/main-api/IShaderNode.js.map +0 -1
  312. package/dist/src/main-api/RendererMain.d.ts +0 -375
  313. package/dist/src/main-api/RendererMain.js +0 -365
  314. package/dist/src/main-api/RendererMain.js.map +0 -1
  315. package/dist/src/main-api/texture-usage-trackers/FinalizationRegistryTextureUsageTracker.d.ts +0 -9
  316. package/dist/src/main-api/texture-usage-trackers/FinalizationRegistryTextureUsageTracker.js +0 -38
  317. package/dist/src/main-api/texture-usage-trackers/FinalizationRegistryTextureUsageTracker.js.map +0 -1
  318. package/dist/src/main-api/texture-usage-trackers/ManualCountTextureUsageTracker.d.ts +0 -56
  319. package/dist/src/main-api/texture-usage-trackers/ManualCountTextureUsageTracker.js +0 -101
  320. package/dist/src/main-api/texture-usage-trackers/ManualCountTextureUsageTracker.js.map +0 -1
  321. package/dist/src/main-api/texture-usage-trackers/TextureUsageTracker.d.ts +0 -32
  322. package/dist/src/main-api/texture-usage-trackers/TextureUsageTracker.js +0 -28
  323. package/dist/src/main-api/texture-usage-trackers/TextureUsageTracker.js.map +0 -1
  324. package/dist/src/render-drivers/main/MainCoreDriver.d.ts +0 -24
  325. package/dist/src/render-drivers/main/MainCoreDriver.js +0 -118
  326. package/dist/src/render-drivers/main/MainCoreDriver.js.map +0 -1
  327. package/dist/src/render-drivers/main/MainOnlyNode.d.ts +0 -99
  328. package/dist/src/render-drivers/main/MainOnlyNode.js +0 -396
  329. package/dist/src/render-drivers/main/MainOnlyNode.js.map +0 -1
  330. package/dist/src/render-drivers/main/MainOnlyShaderController.d.ts +0 -6
  331. package/dist/src/render-drivers/main/MainOnlyShaderController.js +0 -15
  332. package/dist/src/render-drivers/main/MainOnlyShaderController.js.map +0 -1
  333. package/dist/src/render-drivers/main/MainOnlyShaderNode.d.ts +0 -7
  334. package/dist/src/render-drivers/main/MainOnlyShaderNode.js +0 -34
  335. package/dist/src/render-drivers/main/MainOnlyShaderNode.js.map +0 -1
  336. package/dist/src/render-drivers/main/MainOnlyTextNode.d.ts +0 -47
  337. package/dist/src/render-drivers/main/MainOnlyTextNode.js +0 -205
  338. package/dist/src/render-drivers/main/MainOnlyTextNode.js.map +0 -1
  339. package/dist/src/render-drivers/main/MainRenderDriver.d.ts +0 -17
  340. package/dist/src/render-drivers/main/MainRenderDriver.js +0 -88
  341. package/dist/src/render-drivers/main/MainRenderDriver.js.map +0 -1
  342. package/dist/src/render-drivers/threadx/NodeStruct.d.ts +0 -90
  343. package/dist/src/render-drivers/threadx/NodeStruct.js +0 -281
  344. package/dist/src/render-drivers/threadx/NodeStruct.js.map +0 -1
  345. package/dist/src/render-drivers/threadx/SharedNode.d.ts +0 -39
  346. package/dist/src/render-drivers/threadx/SharedNode.js +0 -60
  347. package/dist/src/render-drivers/threadx/SharedNode.js.map +0 -1
  348. package/dist/src/render-drivers/threadx/TextNodeStruct.d.ts +0 -44
  349. package/dist/src/render-drivers/threadx/TextNodeStruct.js +0 -201
  350. package/dist/src/render-drivers/threadx/TextNodeStruct.js.map +0 -1
  351. package/dist/src/render-drivers/threadx/ThreadXCoreDriver.d.ts +0 -28
  352. package/dist/src/render-drivers/threadx/ThreadXCoreDriver.js +0 -234
  353. package/dist/src/render-drivers/threadx/ThreadXCoreDriver.js.map +0 -1
  354. package/dist/src/render-drivers/threadx/ThreadXMainAnimationController.d.ts +0 -20
  355. package/dist/src/render-drivers/threadx/ThreadXMainAnimationController.js +0 -84
  356. package/dist/src/render-drivers/threadx/ThreadXMainAnimationController.js.map +0 -1
  357. package/dist/src/render-drivers/threadx/ThreadXMainNode.d.ts +0 -44
  358. package/dist/src/render-drivers/threadx/ThreadXMainNode.js +0 -154
  359. package/dist/src/render-drivers/threadx/ThreadXMainNode.js.map +0 -1
  360. package/dist/src/render-drivers/threadx/ThreadXMainShaderController.d.ts +0 -6
  361. package/dist/src/render-drivers/threadx/ThreadXMainShaderController.js +0 -16
  362. package/dist/src/render-drivers/threadx/ThreadXMainShaderController.js.map +0 -1
  363. package/dist/src/render-drivers/threadx/ThreadXMainShaderNode.d.ts +0 -7
  364. package/dist/src/render-drivers/threadx/ThreadXMainShaderNode.js +0 -15
  365. package/dist/src/render-drivers/threadx/ThreadXMainShaderNode.js.map +0 -1
  366. package/dist/src/render-drivers/threadx/ThreadXMainTextNode.d.ts +0 -28
  367. package/dist/src/render-drivers/threadx/ThreadXMainTextNode.js +0 -55
  368. package/dist/src/render-drivers/threadx/ThreadXMainTextNode.js.map +0 -1
  369. package/dist/src/render-drivers/threadx/ThreadXRenderDriver.d.ts +0 -21
  370. package/dist/src/render-drivers/threadx/ThreadXRenderDriver.js +0 -198
  371. package/dist/src/render-drivers/threadx/ThreadXRenderDriver.js.map +0 -1
  372. package/dist/src/render-drivers/threadx/ThreadXRendererMessage.d.ts +0 -70
  373. package/dist/src/render-drivers/threadx/ThreadXRendererMessage.js +0 -32
  374. package/dist/src/render-drivers/threadx/ThreadXRendererMessage.js.map +0 -1
  375. package/dist/src/render-drivers/threadx/worker/ThreadXRendererNode.d.ts +0 -19
  376. package/dist/src/render-drivers/threadx/worker/ThreadXRendererNode.js +0 -177
  377. package/dist/src/render-drivers/threadx/worker/ThreadXRendererNode.js.map +0 -1
  378. package/dist/src/render-drivers/threadx/worker/ThreadXRendererTextNode.d.ts +0 -27
  379. package/dist/src/render-drivers/threadx/worker/ThreadXRendererTextNode.js +0 -108
  380. package/dist/src/render-drivers/threadx/worker/ThreadXRendererTextNode.js.map +0 -1
  381. package/dist/src/render-drivers/threadx/worker/renderer.d.ts +0 -1
  382. package/dist/src/render-drivers/threadx/worker/renderer.js +0 -145
  383. package/dist/src/render-drivers/threadx/worker/renderer.js.map +0 -1
  384. package/dist/src/render-drivers/utils.d.ts +0 -12
  385. package/dist/src/render-drivers/utils.js +0 -69
  386. package/dist/src/render-drivers/utils.js.map +0 -1
  387. /package/dist/src/core/{CoreStuff.d.ts → temp.d.ts} +0 -0
@@ -1,608 +0,0 @@
1
- /*
2
- * If not stated otherwise in this file or this component's LICENSE file the
3
- * following copyright and licenses apply:
4
- *
5
- * Copyright 2023 Comcast Cable Communications Management, LLC.
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the License);
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */
19
- import { EPSILON, getMatrixArrayType, RANDOM, } from './common.js';
20
- /**
21
- * Creates a new, empty Vec4
22
- *
23
- * @returns {Vec4} a new 4D vector
24
- */
25
- export function create() {
26
- const out = getMatrixArrayType(4);
27
- if (!(out instanceof Float32Array)) {
28
- out[0] = 0;
29
- out[1] = 0;
30
- out[2] = 0;
31
- out[3] = 0;
32
- }
33
- return out;
34
- }
35
- /**
36
- * Creates a new Vec4 initialized with values from an existing vector
37
- *
38
- * @param {Vec4} a vector to clone
39
- * @returns {Vec4} a new 4D vector
40
- */
41
- export function clone(a) {
42
- const out = getMatrixArrayType(4);
43
- out[0] = a[0];
44
- out[1] = a[1];
45
- out[2] = a[2];
46
- out[3] = a[3];
47
- return out;
48
- }
49
- /**
50
- * Creates a new Vec4 initialized with the given values
51
- *
52
- * @param {Number} x X component
53
- * @param {Number} y Y component
54
- * @param {Number} z Z component
55
- * @param {Number} w W component
56
- * @returns {Vec4} a new 4D vector
57
- */
58
- export function fromValues(x, y, z, w) {
59
- const out = getMatrixArrayType(4);
60
- out[0] = x;
61
- out[1] = y;
62
- out[2] = z;
63
- out[3] = w;
64
- return out;
65
- }
66
- /**
67
- * Copy the values from one Vec4 to another
68
- *
69
- * @param {Vec4} out the receiving vector
70
- * @param {Vec4} a the source vector
71
- * @returns {Vec4} out
72
- */
73
- export function copy(out, a) {
74
- out[0] = a[0];
75
- out[1] = a[1];
76
- out[2] = a[2];
77
- out[3] = a[3];
78
- return out;
79
- }
80
- /**
81
- * Set the components of a Vec4 to the given values
82
- *
83
- * @param {Vec4} out the receiving vector
84
- * @param {Number} x X component
85
- * @param {Number} y Y component
86
- * @param {Number} z Z component
87
- * @param {Number} w W component
88
- * @returns {Vec4} out
89
- */
90
- export function set(out, x, y, z, w) {
91
- out[0] = x;
92
- out[1] = y;
93
- out[2] = z;
94
- out[3] = w;
95
- return out;
96
- }
97
- /**
98
- * Adds two Vec4's
99
- *
100
- * @param {Vec4} out the receiving vector
101
- * @param {Vec4} a the first operand
102
- * @param {Vec4} b the second operand
103
- * @returns {Vec4} out
104
- */
105
- export function add(out, a, b) {
106
- out[0] = a[0] + b[0];
107
- out[1] = a[1] + b[1];
108
- out[2] = a[2] + b[2];
109
- out[3] = a[3] + b[3];
110
- return out;
111
- }
112
- /**
113
- * Subtracts vector b from vector a
114
- *
115
- * @param {Vec4} out the receiving vector
116
- * @param {Vec4} a the first operand
117
- * @param {Vec4} b the second operand
118
- * @returns {Vec4} out
119
- */
120
- export function subtract(out, a, b) {
121
- out[0] = a[0] - b[0];
122
- out[1] = a[1] - b[1];
123
- out[2] = a[2] - b[2];
124
- out[3] = a[3] - b[3];
125
- return out;
126
- }
127
- /**
128
- * Multiplies two Vec4's
129
- *
130
- * @param {Vec4} out the receiving vector
131
- * @param {Vec4} a the first operand
132
- * @param {Vec4} b the second operand
133
- * @returns {Vec4} out
134
- */
135
- export function multiply(out, a, b) {
136
- out[0] = a[0] * b[0];
137
- out[1] = a[1] * b[1];
138
- out[2] = a[2] * b[2];
139
- out[3] = a[3] * b[3];
140
- return out;
141
- }
142
- /**
143
- * Divides two Vec4's
144
- *
145
- * @param {Vec4} out the receiving vector
146
- * @param {Vec4} a the first operand
147
- * @param {Vec4} b the second operand
148
- * @returns {Vec4} out
149
- */
150
- export function divide(out, a, b) {
151
- out[0] = a[0] / b[0];
152
- out[1] = a[1] / b[1];
153
- out[2] = a[2] / b[2];
154
- out[3] = a[3] / b[3];
155
- return out;
156
- }
157
- /**
158
- * Math.ceil the components of a Vec4
159
- *
160
- * @param {Vec4} out the receiving vector
161
- * @param {Vec4} a vector to ceil
162
- * @returns {Vec4} out
163
- */
164
- export function ceil(out, a) {
165
- out[0] = Math.ceil(a[0]);
166
- out[1] = Math.ceil(a[1]);
167
- out[2] = Math.ceil(a[2]);
168
- out[3] = Math.ceil(a[3]);
169
- return out;
170
- }
171
- /**
172
- * Math.floor the components of a Vec4
173
- *
174
- * @param {Vec4} out the receiving vector
175
- * @param {Vec4} a vector to floor
176
- * @returns {Vec4} out
177
- */
178
- export function floor(out, a) {
179
- out[0] = Math.floor(a[0]);
180
- out[1] = Math.floor(a[1]);
181
- out[2] = Math.floor(a[2]);
182
- out[3] = Math.floor(a[3]);
183
- return out;
184
- }
185
- /**
186
- * Returns the minimum of two Vec4's
187
- *
188
- * @param {Vec4} out the receiving vector
189
- * @param {Vec4} a the first operand
190
- * @param {Vec4} b the second operand
191
- * @returns {Vec4} out
192
- */
193
- export function min(out, a, b) {
194
- out[0] = Math.min(a[0], b[0]);
195
- out[1] = Math.min(a[1], b[1]);
196
- out[2] = Math.min(a[2], b[2]);
197
- out[3] = Math.min(a[3], b[3]);
198
- return out;
199
- }
200
- /**
201
- * Returns the maximum of two Vec4's
202
- *
203
- * @param {Vec4} out the receiving vector
204
- * @param {Vec4} a the first operand
205
- * @param {Vec4} b the second operand
206
- * @returns {Vec4} out
207
- */
208
- export function max(out, a, b) {
209
- out[0] = Math.max(a[0], b[0]);
210
- out[1] = Math.max(a[1], b[1]);
211
- out[2] = Math.max(a[2], b[2]);
212
- out[3] = Math.max(a[3], b[3]);
213
- return out;
214
- }
215
- /**
216
- * Math.round the components of a Vec4
217
- *
218
- * @param {Vec4} out the receiving vector
219
- * @param {Vec4} a vector to round
220
- * @returns {Vec4} out
221
- */
222
- export function round(out, a) {
223
- out[0] = Math.round(a[0]);
224
- out[1] = Math.round(a[1]);
225
- out[2] = Math.round(a[2]);
226
- out[3] = Math.round(a[3]);
227
- return out;
228
- }
229
- /**
230
- * Scales a Vec4 by a scalar number
231
- *
232
- * @param {Vec4} out the receiving vector
233
- * @param {Vec4} a the vector to scale
234
- * @param {Number} b amount to scale the vector by
235
- * @returns {Vec4} out
236
- */
237
- export function scale(out, a, b) {
238
- out[0] = a[0] * b;
239
- out[1] = a[1] * b;
240
- out[2] = a[2] * b;
241
- out[3] = a[3] * b;
242
- return out;
243
- }
244
- /**
245
- * Adds two Vec4's after scaling the second operand by a scalar value
246
- *
247
- * @param {Vec4} out the receiving vector
248
- * @param {Vec4} a the first operand
249
- * @param {Vec4} b the second operand
250
- * @param {Number} scale the amount to scale b by before adding
251
- * @returns {Vec4} out
252
- */
253
- export function scaleAndAdd(out, a, b, scale) {
254
- out[0] = a[0] + b[0] * scale;
255
- out[1] = a[1] + b[1] * scale;
256
- out[2] = a[2] + b[2] * scale;
257
- out[3] = a[3] + b[3] * scale;
258
- return out;
259
- }
260
- /**
261
- * Calculates the euclidian distance between two Vec4's
262
- *
263
- * @param {Vec4} a the first operand
264
- * @param {Vec4} b the second operand
265
- * @returns {Number} distance between a and b
266
- */
267
- export function distance(a, b) {
268
- const x = b[0] - a[0];
269
- const y = b[1] - a[1];
270
- const z = b[2] - a[2];
271
- const w = b[3] - a[3];
272
- return Math.hypot(x, y, z, w);
273
- }
274
- /**
275
- * Calculates the squared euclidian distance between two Vec4's
276
- *
277
- * @param {Vec4} a the first operand
278
- * @param {Vec4} b the second operand
279
- * @returns {Number} squared distance between a and b
280
- */
281
- export function squaredDistance(a, b) {
282
- const x = b[0] - a[0];
283
- const y = b[1] - a[1];
284
- const z = b[2] - a[2];
285
- const w = b[3] - a[3];
286
- return x * x + y * y + z * z + w * w;
287
- }
288
- /**
289
- * Calculates the length of a Vec4
290
- *
291
- * @param {Vec4} a vector to calculate length of
292
- * @returns {Number} length of a
293
- */
294
- export function length(a) {
295
- const x = a[0];
296
- const y = a[1];
297
- const z = a[2];
298
- const w = a[3];
299
- return Math.hypot(x, y, z, w);
300
- }
301
- /**
302
- * Calculates the squared length of a Vec4
303
- *
304
- * @param {Vec4} a vector to calculate squared length of
305
- * @returns {Number} squared length of a
306
- */
307
- export function squaredLength(a) {
308
- const x = a[0];
309
- const y = a[1];
310
- const z = a[2];
311
- const w = a[3];
312
- return x * x + y * y + z * z + w * w;
313
- }
314
- /**
315
- * Negates the components of a Vec4
316
- *
317
- * @param {Vec4} out the receiving vector
318
- * @param {Vec4} a vector to negate
319
- * @returns {Vec4} out
320
- */
321
- export function negate(out, a) {
322
- out[0] = -a[0];
323
- out[1] = -a[1];
324
- out[2] = -a[2];
325
- out[3] = -a[3];
326
- return out;
327
- }
328
- /**
329
- * Returns the inverse of the components of a Vec4
330
- *
331
- * @param {Vec4} out the receiving vector
332
- * @param {Vec4} a vector to invert
333
- * @returns {Vec4} out
334
- */
335
- export function inverse(out, a) {
336
- out[0] = 1.0 / a[0];
337
- out[1] = 1.0 / a[1];
338
- out[2] = 1.0 / a[2];
339
- out[3] = 1.0 / a[3];
340
- return out;
341
- }
342
- /**
343
- * Normalize a Vec4
344
- *
345
- * @param {Vec4} out the receiving vector
346
- * @param {Vec4} a vector to normalize
347
- * @returns {Vec4} out
348
- */
349
- export function normalize(out, a) {
350
- const x = a[0];
351
- const y = a[1];
352
- const z = a[2];
353
- const w = a[3];
354
- let len = x * x + y * y + z * z + w * w;
355
- if (len > 0) {
356
- len = 1 / Math.sqrt(len);
357
- }
358
- out[0] = x * len;
359
- out[1] = y * len;
360
- out[2] = z * len;
361
- out[3] = w * len;
362
- return out;
363
- }
364
- /**
365
- * Calculates the dot product of two Vec4's
366
- *
367
- * @param {Vec4} a the first operand
368
- * @param {Vec4} b the second operand
369
- * @returns {Number} dot product of a and b
370
- */
371
- export function dot(a, b) {
372
- return a[0] * b[0] + a[1] * b[1] + a[2] * b[2] + a[3] * b[3];
373
- }
374
- /**
375
- * Returns the cross-product of three vectors in a 4-dimensional space
376
- *
377
- * @param {Vec4} out the receiving vector
378
- * @param {Vec4} u the first vector
379
- * @param {Vec4} v the second vector
380
- * @param {Vec4} w the third vector
381
- * @returns {Vec4} result
382
- */
383
- export function cross(out, u, v, w) {
384
- const A = v[0] * w[1] - v[1] * w[0], B = v[0] * w[2] - v[2] * w[0], C = v[0] * w[3] - v[3] * w[0], D = v[1] * w[2] - v[2] * w[1], E = v[1] * w[3] - v[3] * w[1], F = v[2] * w[3] - v[3] * w[2];
385
- const G = u[0];
386
- const H = u[1];
387
- const I = u[2];
388
- const J = u[3];
389
- out[0] = H * F - I * E + J * D;
390
- out[1] = -(G * F) + I * C - J * B;
391
- out[2] = G * E - H * C + J * A;
392
- out[3] = -(G * D) + H * B - I * A;
393
- return out;
394
- }
395
- /**
396
- * Performs a linear interpolation between two Vec4's
397
- *
398
- * @param {Vec4} out the receiving vector
399
- * @param {Vec4} a the first operand
400
- * @param {Vec4} b the second operand
401
- * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
402
- * @returns {Vec4} out
403
- */
404
- export function lerp(out, a, b, t) {
405
- const ax = a[0];
406
- const ay = a[1];
407
- const az = a[2];
408
- const aw = a[3];
409
- out[0] = ax + t * (b[0] - ax);
410
- out[1] = ay + t * (b[1] - ay);
411
- out[2] = az + t * (b[2] - az);
412
- out[3] = aw + t * (b[3] - aw);
413
- return out;
414
- }
415
- /**
416
- * Generates a random vector with the given scale
417
- *
418
- * @param {Vec4} out the receiving vector
419
- * @param {Number} [scale] Length of the resulting vector. If omitted, a unit vector will be returned
420
- * @returns {Vec4} out
421
- */
422
- export function random(out, scale) {
423
- scale = scale ?? 1.0; // Marsaglia, George. Choosing a Point from the Surface of a
424
- // Sphere. Ann. Math. Statist. 43 (1972), no. 2, 645--646.
425
- // http://projecteuclid.org/euclid.aoms/1177692644;
426
- let v1, v2, v3, v4;
427
- let s1, s2;
428
- do {
429
- v1 = RANDOM() * 2 - 1;
430
- v2 = RANDOM() * 2 - 1;
431
- s1 = v1 * v1 + v2 * v2;
432
- } while (s1 >= 1);
433
- do {
434
- v3 = RANDOM() * 2 - 1;
435
- v4 = RANDOM() * 2 - 1;
436
- s2 = v3 * v3 + v4 * v4;
437
- } while (s2 >= 1);
438
- const d = Math.sqrt((1 - s1) / s2);
439
- out[0] = scale * v1;
440
- out[1] = scale * v2;
441
- out[2] = scale * v3 * d;
442
- out[3] = scale * v4 * d;
443
- return out;
444
- }
445
- /**
446
- * Transforms the Vec4 with a Mat4.
447
- *
448
- * @param {Vec4} out the receiving vector
449
- * @param {Vec4} a the vector to transform
450
- * @param {ReadonlyMat4} m matrix to transform with
451
- * @returns {Vec4} out
452
- */
453
- export function transformMat4(out, a, m) {
454
- const x = a[0], y = a[1], z = a[2], w = a[3];
455
- out[0] = m[0] * x + m[4] * y + m[8] * z + m[12] * w;
456
- out[1] = m[1] * x + m[5] * y + m[9] * z + m[13] * w;
457
- out[2] = m[2] * x + m[6] * y + m[10] * z + m[14] * w;
458
- out[3] = m[3] * x + m[7] * y + m[11] * z + m[15] * w;
459
- return out;
460
- }
461
- /**
462
- * Transforms the Vec4 with a quat
463
- *
464
- * @param {Vec4} out the receiving vector
465
- * @param {Vec4} a the vector to transform
466
- * @param {Quat} q quaternion to transform with
467
- * @returns {Vec4} out
468
- */
469
- export function transformQuat(out, a, q) {
470
- const x = a[0], y = a[1], z = a[2];
471
- const qx = q[0], qy = q[1], qz = q[2], qw = q[3]; // calculate quat * vec
472
- const ix = qw * x + qy * z - qz * y;
473
- const iy = qw * y + qz * x - qx * z;
474
- const iz = qw * z + qx * y - qy * x;
475
- const iw = -qx * x - qy * y - qz * z; // calculate result * inverse quat
476
- out[0] = ix * qw + iw * -qx + iy * -qz - iz * -qy;
477
- out[1] = iy * qw + iw * -qy + iz * -qx - ix * -qz;
478
- out[2] = iz * qw + iw * -qz + ix * -qy - iy * -qx;
479
- out[3] = a[3];
480
- return out;
481
- }
482
- /**
483
- * Set the components of a Vec4 to zero
484
- *
485
- * @param {Vec4} out the receiving vector
486
- * @returns {Vec4} out
487
- */
488
- export function zero(out) {
489
- out[0] = 0.0;
490
- out[1] = 0.0;
491
- out[2] = 0.0;
492
- out[3] = 0.0;
493
- return out;
494
- }
495
- /**
496
- * Returns a string representation of a vector
497
- *
498
- * @param {Vec4} a vector to represent as a string
499
- * @returns {String} string representation of the vector
500
- */
501
- export function str(a) {
502
- return `Vec4(${a[0]}, ${a[1]}, ${a[2]}, ${a[3]})`;
503
- }
504
- /**
505
- * Returns whether or not the vectors have exactly the same elements in the same position (when compared with ===)
506
- *
507
- * @param {Vec4} a The first vector.
508
- * @param {Vec4} b The second vector.
509
- * @returns {Boolean} True if the vectors are equal, false otherwise.
510
- */
511
- export function exactEquals(a, b) {
512
- return a[0] === b[0] && a[1] === b[1] && a[2] === b[2] && a[3] === b[3];
513
- }
514
- /**
515
- * Returns whether or not the vectors have approximately the same elements in the same position.
516
- *
517
- * @param {Vec4} a The first vector.
518
- * @param {Vec4} b The second vector.
519
- * @returns {Boolean} True if the vectors are equal, false otherwise.
520
- */
521
- export function equals(a, b) {
522
- const a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3];
523
- const b0 = b[0], b1 = b[1], b2 = b[2], b3 = b[3];
524
- return (Math.abs(a0 - b0) <= EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) &&
525
- Math.abs(a1 - b1) <= EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)) &&
526
- Math.abs(a2 - b2) <= EPSILON * Math.max(1.0, Math.abs(a2), Math.abs(b2)) &&
527
- Math.abs(a3 - b3) <= EPSILON * Math.max(1.0, Math.abs(a3), Math.abs(b3)));
528
- }
529
- /**
530
- * Alias for {@link Vec4.subtract}
531
- * @function
532
- */
533
- export const sub = subtract;
534
- /**
535
- * Alias for {@link Vec4.multiply}
536
- * @function
537
- */
538
- export const mul = multiply;
539
- /**
540
- * Alias for {@link Vec4.divide}
541
- * @function
542
- */
543
- export const div = divide;
544
- /**
545
- * Alias for {@link Vec4.distance}
546
- * @function
547
- */
548
- export const dist = distance;
549
- /**
550
- * Alias for {@link Vec4.squaredDistance}
551
- * @function
552
- */
553
- export const sqrDist = squaredDistance;
554
- /**
555
- * Alias for {@link Vec4.length}
556
- * @function
557
- */
558
- export const len = length;
559
- /**
560
- * Alias for {@link Vec4.squaredLength}
561
- * @function
562
- */
563
- export const sqrLen = squaredLength;
564
- /**
565
- * Perform some operation over an array of Vec4s.
566
- *
567
- * @param {Array} a the array of vectors to iterate over
568
- * @param {Number} stride Number of elements between the start of each Vec4. If 0 assumes tightly packed
569
- * @param {Number} offset Number of elements to skip at the beginning of the array
570
- * @param {Number} count Number of Vec4s to iterate over. If 0 iterates over entire array
571
- * @param {Function} fn Function to call for each vector in the array
572
- * @param {Object} [arg] additional argument to pass to fn
573
- * @returns {Array} a
574
- * @function
575
- */
576
- export const forEach = (function () {
577
- const vec = [];
578
- return function (a, stride, offset, count, fn, arg) {
579
- let i, l;
580
- if (!stride) {
581
- stride = 4;
582
- }
583
- if (!offset) {
584
- offset = 0;
585
- }
586
- if (count) {
587
- l = Math.min(count * stride + offset, a.length);
588
- }
589
- else {
590
- l = a.length;
591
- }
592
- for (i = offset; i < l; i += stride) {
593
- /* eslint-disable @typescript-eslint/no-non-null-assertion */
594
- vec[0] = a[i];
595
- vec[1] = a[i + 1];
596
- vec[2] = a[i + 2];
597
- vec[3] = a[i + 3];
598
- /* eslint-enable @typescript-eslint/no-non-null-assertion */
599
- fn(vec, vec, arg);
600
- a[i] = vec[0];
601
- a[i + 1] = vec[1];
602
- a[i + 2] = vec[2];
603
- a[i + 3] = vec[3];
604
- }
605
- return a;
606
- };
607
- })();
608
- //# sourceMappingURL=vec4.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vec4.js","sourceRoot":"","sources":["../../../../../src/core/lib/glm/vec4.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EACL,OAAO,EACP,kBAAkB,EAClB,MAAM,GAGP,MAAM,aAAa,CAAC;AAMrB;;;;GAIG;AAEH,MAAM,UAAU,MAAM;IACpB,MAAM,GAAG,GAAG,kBAAkB,CAAC,CAAC,CAAS,CAAC;IAE1C,IAAI,CAAC,CAAC,GAAG,YAAY,YAAY,CAAC,EAAE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J,CAAC,CAAC,EAAE,CAAC"}
@@ -1,19 +0,0 @@
1
- import type { CoreRenderer } from "./CoreRenderer.js";
2
- type ExtractProps<Type> = Type extends {
3
- props: infer Props;
4
- } ? Props : never;
5
- interface Shader {
6
- props?: Record<string, any>;
7
- }
8
- export interface WebGlShader extends Shader {
9
- props?: Record<string, any>;
10
- vertex?: string;
11
- update?: () => void;
12
- fragment: string;
13
- }
14
- export declare abstract class CoreShaderManager<Renderer extends CoreRenderer, shType extends Shader> {
15
- renderer: Renderer;
16
- constructor(renderer: Renderer);
17
- loadShader<Type extends shType>(type: Type | (new () => Type), props?: ExtractProps<Type>): void;
18
- }
19
- export {};
@@ -1,33 +0,0 @@
1
- import { WebGlCoreRenderer } from "./webgl/WebGlCoreRenderer.js";
2
- export class CoreShaderManager {
3
- renderer;
4
- constructor(renderer) {
5
- this.renderer = renderer;
6
- }
7
- loadShader(type, props) {
8
- console.log('Type', type, props);
9
- }
10
- }
11
- class WebGlShaderManager extends CoreShaderManager {
12
- }
13
- /*const renderer = new WebGlCoreRenderer({
14
-
15
- })
16
-
17
- const shaderManager = new WebGlShaderManager(renderer)
18
-
19
- class TestShader implements WebGlShader {
20
- props = {
21
- colors: [] as string[]
22
- }
23
- fragment = 'banaan'
24
- }
25
-
26
- const TestShader2 : WebGlShader = {
27
- fragment: 'kiwi'
28
- }
29
-
30
- shaderManager.loadShader(TestShader, {
31
- colors: ['ja']
32
- })*/
33
- //# sourceMappingURL=CoreShaderManager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CoreShaderManager.js","sourceRoot":"","sources":["../../../../src/core/renderers/CoreShaderManager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAiBjE,MAAM,OAAgB,iBAAiB;IACrC,QAAQ,CAAW;IACnB,YAAY,QAAkB;QAC5B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;IAC1B,CAAC;IACD,UAAU,CAAsB,IAA6B,EAAE,KAA0B;QACvF,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;IAClC,CAAC;CACF;AAGD,MAAM,kBAAmB,SAAQ,iBAAiD;CAMjF;AAGD;;;;;;;;;;;;;;;;;;;IAmBI"}