@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,569 +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 Vec2
22
- *
23
- * @returns {Vec2} a new 2D vector
24
- */
25
- export function create() {
26
- const out = getMatrixArrayType(2);
27
- if (!(out instanceof Float32Array)) {
28
- out[0] = 0;
29
- out[1] = 0;
30
- }
31
- return out;
32
- }
33
- /**
34
- * Creates a new Vec2 initialized with values from an existing vector
35
- *
36
- * @param {Vec2} a vector to clone
37
- * @returns {Vec2} a new 2D vector
38
- */
39
- export function clone(a) {
40
- const out = getMatrixArrayType(2);
41
- out[0] = a[0];
42
- out[1] = a[1];
43
- return out;
44
- }
45
- /**
46
- * Creates a new Vec2 initialized with the given values
47
- *
48
- * @param {Number} x X component
49
- * @param {Number} y Y component
50
- * @returns {Vec2} a new 2D vector
51
- */
52
- export function fromValues(x, y) {
53
- const out = getMatrixArrayType(2);
54
- out[0] = x;
55
- out[1] = y;
56
- return out;
57
- }
58
- /**
59
- * Copy the values from one Vec2 to another
60
- *
61
- * @param {Vec2} out the receiving vector
62
- * @param {Vec2} a the source vector
63
- * @returns {Vec2} out
64
- */
65
- export function copy(out, a) {
66
- out[0] = a[0];
67
- out[1] = a[1];
68
- return out;
69
- }
70
- /**
71
- * Set the components of a Vec2 to the given values
72
- *
73
- * @param {Vec2} out the receiving vector
74
- * @param {Number} x X component
75
- * @param {Number} y Y component
76
- * @returns {Vec2} out
77
- */
78
- export function set(out, x, y) {
79
- out[0] = x;
80
- out[1] = y;
81
- return out;
82
- }
83
- /**
84
- * Adds two Vec2's
85
- *
86
- * @param {Vec2} out the receiving vector
87
- * @param {Vec2} a the first operand
88
- * @param {Vec2} b the second operand
89
- * @returns {Vec2} out
90
- */
91
- export function add(out, a, b) {
92
- out[0] = a[0] + b[0];
93
- out[1] = a[1] + b[1];
94
- return out;
95
- }
96
- /**
97
- * Subtracts vector b from vector a
98
- *
99
- * @param {Vec2} out the receiving vector
100
- * @param {Vec2} a the first operand
101
- * @param {Vec2} b the second operand
102
- * @returns {Vec2} out
103
- */
104
- export function subtract(out, a, b) {
105
- out[0] = a[0] - b[0];
106
- out[1] = a[1] - b[1];
107
- return out;
108
- }
109
- /**
110
- * Multiplies two Vec2's
111
- *
112
- * @param {Vec2} out the receiving vector
113
- * @param {Vec2} a the first operand
114
- * @param {Vec2} b the second operand
115
- * @returns {Vec2} out
116
- */
117
- export function multiply(out, a, b) {
118
- out[0] = a[0] * b[0];
119
- out[1] = a[1] * b[1];
120
- return out;
121
- }
122
- /**
123
- * Divides two Vec2's
124
- *
125
- * @param {Vec2} out the receiving vector
126
- * @param {Vec2} a the first operand
127
- * @param {Vec2} b the second operand
128
- * @returns {Vec2} out
129
- */
130
- export function divide(out, a, b) {
131
- out[0] = a[0] / b[0];
132
- out[1] = a[1] / b[1];
133
- return out;
134
- }
135
- /**
136
- * Math.ceil the components of a Vec2
137
- *
138
- * @param {Vec2} out the receiving vector
139
- * @param {Vec2} a vector to ceil
140
- * @returns {Vec2} out
141
- */
142
- export function ceil(out, a) {
143
- out[0] = Math.ceil(a[0]);
144
- out[1] = Math.ceil(a[1]);
145
- return out;
146
- }
147
- /**
148
- * Math.floor the components of a Vec2
149
- *
150
- * @param {Vec2} out the receiving vector
151
- * @param {Vec2} a vector to floor
152
- * @returns {Vec2} out
153
- */
154
- export function floor(out, a) {
155
- out[0] = Math.floor(a[0]);
156
- out[1] = Math.floor(a[1]);
157
- return out;
158
- }
159
- /**
160
- * Returns the minimum of two Vec2's
161
- *
162
- * @param {Vec2} out the receiving vector
163
- * @param {Vec2} a the first operand
164
- * @param {Vec2} b the second operand
165
- * @returns {Vec2} out
166
- */
167
- export function min(out, a, b) {
168
- out[0] = Math.min(a[0], b[0]);
169
- out[1] = Math.min(a[1], b[1]);
170
- return out;
171
- }
172
- /**
173
- * Returns the maximum of two Vec2's
174
- *
175
- * @param {Vec2} out the receiving vector
176
- * @param {Vec2} a the first operand
177
- * @param {Vec2} b the second operand
178
- * @returns {Vec2} out
179
- */
180
- export function max(out, a, b) {
181
- out[0] = Math.max(a[0], b[0]);
182
- out[1] = Math.max(a[1], b[1]);
183
- return out;
184
- }
185
- /**
186
- * Math.round the components of a Vec2
187
- *
188
- * @param {Vec2} out the receiving vector
189
- * @param {Vec2} a vector to round
190
- * @returns {Vec2} out
191
- */
192
- export function round(out, a) {
193
- out[0] = Math.round(a[0]);
194
- out[1] = Math.round(a[1]);
195
- return out;
196
- }
197
- /**
198
- * Scales a Vec2 by a scalar number
199
- *
200
- * @param {Vec2} out the receiving vector
201
- * @param {Vec2} a the vector to scale
202
- * @param {Number} b amount to scale the vector by
203
- * @returns {Vec2} out
204
- */
205
- export function scale(out, a, b) {
206
- out[0] = a[0] * b;
207
- out[1] = a[1] * b;
208
- return out;
209
- }
210
- /**
211
- * Adds two Vec2's after scaling the second operand by a scalar value
212
- *
213
- * @param {Vec2} out the receiving vector
214
- * @param {Vec2} a the first operand
215
- * @param {Vec2} b the second operand
216
- * @param {Number} scale the amount to scale b by before adding
217
- * @returns {Vec2} out
218
- */
219
- export function scaleAndAdd(out, a, b, scale) {
220
- out[0] = a[0] + b[0] * scale;
221
- out[1] = a[1] + b[1] * scale;
222
- return out;
223
- }
224
- /**
225
- * Calculates the euclidian distance between two Vec2's
226
- *
227
- * @param {Vec2} a the first operand
228
- * @param {Vec2} b the second operand
229
- * @returns {Number} distance between a and b
230
- */
231
- export function distance(a, b) {
232
- const x = b[0] - a[0], y = b[1] - a[1];
233
- return Math.hypot(x, y);
234
- }
235
- /**
236
- * Calculates the squared euclidian distance between two Vec2's
237
- *
238
- * @param {Vec2} a the first operand
239
- * @param {Vec2} b the second operand
240
- * @returns {Number} squared distance between a and b
241
- */
242
- export function squaredDistance(a, b) {
243
- const x = b[0] - a[0], y = b[1] - a[1];
244
- return x * x + y * y;
245
- }
246
- /**
247
- * Calculates the length of a Vec2
248
- *
249
- * @param {Vec2} a vector to calculate length of
250
- * @returns {Number} length of a
251
- */
252
- export function length(a) {
253
- const x = a[0], y = a[1];
254
- return Math.hypot(x, y);
255
- }
256
- /**
257
- * Calculates the squared length of a Vec2
258
- *
259
- * @param {Vec2} a vector to calculate squared length of
260
- * @returns {Number} squared length of a
261
- */
262
- export function squaredLength(a) {
263
- const x = a[0], y = a[1];
264
- return x * x + y * y;
265
- }
266
- /**
267
- * Negates the components of a Vec2
268
- *
269
- * @param {Vec2} out the receiving vector
270
- * @param {Vec2} a vector to negate
271
- * @returns {Vec2} out
272
- */
273
- export function negate(out, a) {
274
- out[0] = -a[0];
275
- out[1] = -a[1];
276
- return out;
277
- }
278
- /**
279
- * Returns the inverse of the components of a Vec2
280
- *
281
- * @param {Vec2} out the receiving vector
282
- * @param {Vec2} a vector to invert
283
- * @returns {Vec2} out
284
- */
285
- export function inverse(out, a) {
286
- out[0] = 1.0 / a[0];
287
- out[1] = 1.0 / a[1];
288
- return out;
289
- }
290
- /**
291
- * Normalize a Vec2
292
- *
293
- * @param {Vec2} out the receiving vector
294
- * @param {Vec2} a vector to normalize
295
- * @returns {Vec2} out
296
- */
297
- export function normalize(out, a) {
298
- const x = a[0], y = a[1];
299
- let len = x * x + y * y;
300
- if (len > 0) {
301
- //TODO: evaluate use of glm_invsqrt here?
302
- len = 1 / Math.sqrt(len);
303
- }
304
- out[0] = a[0] * len;
305
- out[1] = a[1] * len;
306
- return out;
307
- }
308
- /**
309
- * Calculates the dot product of two Vec2's
310
- *
311
- * @param {Vec2} a the first operand
312
- * @param {Vec2} b the second operand
313
- * @returns {Number} dot product of a and b
314
- */
315
- export function dot(a, b) {
316
- return a[0] * b[0] + a[1] * b[1];
317
- }
318
- /**
319
- * Computes the cross product of two Vec2's
320
- * Note that the cross product must by definition produce a 3D vector
321
- *
322
- * @param {Vec3} out the receiving vector
323
- * @param {Vec2} a the first operand
324
- * @param {Vec2} b the second operand
325
- * @returns {Vec3} out
326
- */
327
- export function cross(out, a, b) {
328
- const z = a[0] * b[1] - a[1] * b[0];
329
- out[0] = out[1] = 0;
330
- out[2] = z;
331
- return out;
332
- }
333
- /**
334
- * Performs a linear interpolation between two Vec2's
335
- *
336
- * @param {Vec2} out the receiving vector
337
- * @param {Vec2} a the first operand
338
- * @param {Vec2} b the second operand
339
- * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
340
- * @returns {Vec2} out
341
- */
342
- export function lerp(out, a, b, t) {
343
- const ax = a[0], ay = a[1];
344
- out[0] = ax + t * (b[0] - ax);
345
- out[1] = ay + t * (b[1] - ay);
346
- return out;
347
- }
348
- /**
349
- * Generates a random vector with the given scale
350
- *
351
- * @param {Vec2} out the receiving vector
352
- * @param {Number} [scale] Length of the resulting vector. If omitted, a unit vector will be returned
353
- * @returns {Vec2} out
354
- */
355
- export function random(out, scale) {
356
- scale = scale ?? 1.0;
357
- const r = RANDOM() * 2.0 * Math.PI;
358
- out[0] = Math.cos(r) * scale;
359
- out[1] = Math.sin(r) * scale;
360
- return out;
361
- }
362
- /**
363
- * Transforms the Vec2 with a mat2
364
- *
365
- * @param {Vec2} out the receiving vector
366
- * @param {Vec2} a the vector to transform
367
- * @param {ReadOnlyMat2} m matrix to transform with
368
- * @returns {Vec2} out
369
- */
370
- export function transformMat2(out, a, m) {
371
- const x = a[0], y = a[1];
372
- out[0] = m[0] * x + m[2] * y;
373
- out[1] = m[1] * x + m[3] * y;
374
- return out;
375
- }
376
- /**
377
- * Transforms the Vec2 with a mat2d
378
- *
379
- * @param {Vec2} out the receiving vector
380
- * @param {Vec2} a the vector to transform
381
- * @param {Mat2d} m matrix to transform with
382
- * @returns {Vec2} out
383
- */
384
- export function transformMat2d(out, a, m) {
385
- const x = a[0], y = a[1];
386
- out[0] = m[0] * x + m[2] * y + m[4];
387
- out[1] = m[1] * x + m[3] * y + m[5];
388
- return out;
389
- }
390
- /**
391
- * Transforms the Vec2 with a mat3
392
- * 3rd vector component is implicitly '1'
393
- *
394
- * @param {Vec2} out the receiving vector
395
- * @param {Vec2} a the vector to transform
396
- * @param {Mat3} m matrix to transform with
397
- * @returns {Vec2} out
398
- */
399
- export function transformMat3(out, a, m) {
400
- const x = a[0], y = a[1];
401
- out[0] = m[0] * x + m[3] * y + m[6];
402
- out[1] = m[1] * x + m[4] * y + m[7];
403
- return out;
404
- }
405
- /**
406
- * Transforms the Vec2 with a mat4
407
- * 3rd vector component is implicitly '0'
408
- * 4th vector component is implicitly '1'
409
- *
410
- * @param {Vec2} out the receiving vector
411
- * @param {Vec2} a the vector to transform
412
- * @param {Mat4} m matrix to transform with
413
- * @returns {Vec2} out
414
- */
415
- export function transformMat4(out, a, m) {
416
- const x = a[0];
417
- const y = a[1];
418
- out[0] = m[0] * x + m[4] * y + m[12];
419
- out[1] = m[1] * x + m[5] * y + m[13];
420
- return out;
421
- }
422
- /**
423
- * Rotate a 2D vector
424
- * @param {Vec2} out The receiving Vec2
425
- * @param {Vec2} a The Vec2 point to rotate
426
- * @param {Vec2} b The origin of the rotation
427
- * @param {Number} rad The angle of rotation in radians
428
- * @returns {Vec2} out
429
- */
430
- export function rotate(out, a, b, rad) {
431
- //Translate point to the origin
432
- const p0 = a[0] - b[0], p1 = a[1] - b[1], sinC = Math.sin(rad), cosC = Math.cos(rad); //perform rotation and translate to correct position
433
- out[0] = p0 * cosC - p1 * sinC + b[0];
434
- out[1] = p0 * sinC + p1 * cosC + b[1];
435
- return out;
436
- }
437
- /**
438
- * Get the angle between two 2D vectors
439
- * @param {Vec2} a The first operand
440
- * @param {Vec2} b The second operand
441
- * @returns {Number} The angle in radians
442
- */
443
- export function angle(a, b) {
444
- const x1 = a[0], y1 = a[1], x2 = b[0], y2 = b[1],
445
- // mag is the product of the magnitudes of a and b
446
- mag = Math.sqrt((x1 * x1 + y1 * y1) * (x2 * x2 + y2 * y2)),
447
- // mag &&.. short circuits if mag == 0
448
- cosine = mag && (x1 * x2 + y1 * y2) / mag; // Math.min(Math.max(cosine, -1), 1) clamps the cosine between -1 and 1
449
- return Math.acos(Math.min(Math.max(cosine, -1), 1));
450
- }
451
- /**
452
- * Set the components of a Vec2 to zero
453
- *
454
- * @param {Vec2} out the receiving vector
455
- * @returns {Vec2} out
456
- */
457
- export function zero(out) {
458
- out[0] = 0.0;
459
- out[1] = 0.0;
460
- return out;
461
- }
462
- /**
463
- * Returns a string representation of a vector
464
- *
465
- * @param {Vec2} a vector to represent as a string
466
- * @returns {String} string representation of the vector
467
- */
468
- export function str(a) {
469
- return `Vec2(${a[0]}, ${a[1]})`;
470
- }
471
- /**
472
- * Returns whether or not the vectors exactly have the same elements in the same position (when compared with ===)
473
- *
474
- * @param {Vec2} a The first vector.
475
- * @param {Vec2} b The second vector.
476
- * @returns {Boolean} True if the vectors are equal, false otherwise.
477
- */
478
- export function exactEquals(a, b) {
479
- return a[0] === b[0] && a[1] === b[1];
480
- }
481
- /**
482
- * Returns whether or not the vectors have approximately the same elements in the same position.
483
- *
484
- * @param {Vec2} a The first vector.
485
- * @param {Vec2} b The second vector.
486
- * @returns {Boolean} True if the vectors are equal, false otherwise.
487
- */
488
- export function equals(a, b) {
489
- const a0 = a[0], a1 = a[1];
490
- const b0 = b[0], b1 = b[1];
491
- return (Math.abs(a0 - b0) <= EPSILON * Math.max(1.0, Math.abs(a0), Math.abs(b0)) &&
492
- Math.abs(a1 - b1) <= EPSILON * Math.max(1.0, Math.abs(a1), Math.abs(b1)));
493
- }
494
- /**
495
- * Alias for {@link length}
496
- * @function
497
- */
498
- export const len = length;
499
- /**
500
- * Alias for {@link subtract}
501
- * @function
502
- */
503
- export const sub = subtract;
504
- /**
505
- * Alias for {@link multiply}
506
- * @function
507
- */
508
- export const mul = multiply;
509
- /**
510
- * Alias for {@link divide}
511
- * @function
512
- */
513
- export const div = divide;
514
- /**
515
- * Alias for {@link distance}
516
- * @function
517
- */
518
- export const dist = distance;
519
- /**
520
- * Alias for {@link vsquaredDistance}
521
- * @function
522
- */
523
- export const sqrDist = squaredDistance;
524
- /**
525
- * Alias for {@link squaredLength}
526
- * @function
527
- */
528
- export const sqrLen = squaredLength;
529
- /**
530
- * Perform some operation over an array of Vec2s.
531
- *
532
- * @param {Array} a the array of vectors to iterate over
533
- * @param {Number} stride Number of elements between the start of each Vec2. If 0 assumes tightly packed
534
- * @param {Number} offset Number of elements to skip at the beginning of the array
535
- * @param {Number} count Number of Vec2s to iterate over. If 0 iterates over entire array
536
- * @param {Function} fn Function to call for each vector in the array
537
- * @param {Object} [arg] additional argument to pass to fn
538
- * @returns {Array} a
539
- * @function
540
- */
541
- export const forEach = (function () {
542
- const vec = [];
543
- return function (a, stride, offset, count, fn, arg) {
544
- let i, l;
545
- if (!stride) {
546
- stride = 2;
547
- }
548
- if (!offset) {
549
- offset = 0;
550
- }
551
- if (count) {
552
- l = Math.min(count * stride + offset, a.length);
553
- }
554
- else {
555
- l = a.length;
556
- }
557
- for (i = offset; i < l; i += stride) {
558
- /* eslint-disable @typescript-eslint/no-non-null-assertion */
559
- vec[0] = a[i];
560
- vec[1] = a[i + 1];
561
- /* eslint-enable @typescript-eslint/no-non-null-assertion */
562
- fn(vec, vec, arg);
563
- a[i] = vec[0];
564
- a[i + 1] = vec[1];
565
- }
566
- return a;
567
- };
568
- })();
569
- //# sourceMappingURL=vec2.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vec2.js","sourceRoot":"","sources":["../../../../../src/core/lib/glm/vec2.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EACL,OAAO,EACP,kBAAkB,EAClB,MAAM,GAGP,MAAM,aAAa,CAAC;AAUrB;;;;GAIG;AAEH,MAAM,UAAU,MAAM;IACpB,MAAM,GAAG,GAAG,kBAAkB,CAAC,CAAC,CAAS,CAAC;IAE1C,IAAI,CAAC,CAAC,GAAG,Y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