@adobe/data 0.9.82 → 0.9.84

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 (1313) hide show
  1. package/dist/cache/functions/cached.d.ts +8 -0
  2. package/dist/cache/functions/cached.js +13 -0
  3. package/dist/cache/functions/cached.js.map +1 -0
  4. package/dist/cache/functions/cached.test.d.ts +1 -0
  5. package/dist/cache/functions/cached.test.js +49 -0
  6. package/dist/cache/functions/cached.test.js.map +1 -0
  7. package/dist/cache/functions/index.d.ts +1 -0
  8. package/dist/cache/functions/index.js +1 -0
  9. package/dist/cache/functions/index.js.map +1 -1
  10. package/dist/ecs/archetype/archetype.d.ts +23 -0
  11. package/dist/ecs/archetype/archetype.js.map +1 -1
  12. package/dist/ecs/database/concurrency/concurrency-strategy.d.ts +4 -3
  13. package/dist/ecs/database/create-plugin.d.ts +2 -1
  14. package/dist/ecs/database/create-plugin.js.map +1 -1
  15. package/dist/ecs/database/database.d.ts +27 -14
  16. package/dist/ecs/database/database.index.performance.test.js +32 -25
  17. package/dist/ecs/database/database.index.performance.test.js.map +1 -1
  18. package/dist/ecs/database/database.index.type-test.js +25 -0
  19. package/dist/ecs/database/database.index.type-test.js.map +1 -1
  20. package/dist/ecs/database/database.js +14 -0
  21. package/dist/ecs/database/database.js.map +1 -1
  22. package/dist/ecs/database/database.partition.test.d.ts +1 -0
  23. package/dist/ecs/database/database.partition.test.js +45 -0
  24. package/dist/ecs/database/database.partition.test.js.map +1 -0
  25. package/dist/ecs/database/database.partition.type-test.d.ts +1 -0
  26. package/dist/ecs/database/database.partition.type-test.js +41 -0
  27. package/dist/ecs/database/database.partition.type-test.js.map +1 -0
  28. package/dist/ecs/database/database.reset.test.js +13 -6
  29. package/dist/ecs/database/database.reset.test.js.map +1 -1
  30. package/dist/ecs/database/deep-extends-chain.type-test.d.ts +463 -463
  31. package/dist/ecs/database/facets/archetypes.d.ts +17 -0
  32. package/dist/ecs/database/facets/archetypes.js +18 -0
  33. package/dist/ecs/database/facets/archetypes.js.map +1 -0
  34. package/dist/ecs/database/facets/components.d.ts +17 -0
  35. package/dist/ecs/database/facets/components.js +18 -0
  36. package/dist/ecs/database/facets/components.js.map +1 -0
  37. package/dist/ecs/database/facets/facets.test.d.ts +1 -0
  38. package/dist/ecs/database/facets/facets.test.js +54 -0
  39. package/dist/ecs/database/facets/facets.test.js.map +1 -0
  40. package/dist/ecs/database/facets/resources.d.ts +17 -0
  41. package/dist/ecs/database/facets/resources.js +18 -0
  42. package/dist/ecs/database/facets/resources.js.map +1 -0
  43. package/dist/ecs/database/facets/stamp-scopes.d.ts +46 -0
  44. package/dist/ecs/database/facets/stamp-scopes.js +26 -0
  45. package/dist/ecs/database/facets/stamp-scopes.js.map +1 -0
  46. package/dist/ecs/database/index.d.ts +0 -1
  47. package/dist/ecs/database/index.js +0 -1
  48. package/dist/ecs/database/index.js.map +1 -1
  49. package/dist/ecs/database/observe-select-entities.performance.test.js +12 -4
  50. package/dist/ecs/database/observe-select-entities.performance.test.js.map +1 -1
  51. package/dist/ecs/database/observed/observed-database.d.ts +3 -3
  52. package/dist/ecs/database/reconciling/create-rebase-replay-applier.js +1 -1
  53. package/dist/ecs/database/reconciling/create-rebase-replay-applier.js.map +1 -1
  54. package/dist/ecs/database/reconciling/reconciling-entry.d.ts +3 -2
  55. package/dist/ecs/database/reconciling/reconciling-entry.js.map +1 -1
  56. package/dist/ecs/database/to-system-database.d.ts +17 -0
  57. package/dist/ecs/database/to-system-database.js +5 -0
  58. package/dist/ecs/database/to-system-database.js.map +1 -0
  59. package/dist/ecs/database/to-system-database.test.d.ts +1 -0
  60. package/dist/ecs/database/to-system-database.test.js +22 -0
  61. package/dist/ecs/database/to-system-database.test.js.map +1 -0
  62. package/dist/ecs/database/transactional-store/coalesce-actions.test.js +13 -4
  63. package/dist/ecs/database/transactional-store/coalesce-actions.test.js.map +1 -1
  64. package/dist/ecs/database/transactional-store/create-transactional-store.js.map +1 -1
  65. package/dist/ecs/database/transactional-store/transactional-store.d.ts +5 -16
  66. package/dist/ecs/optional-components.d.ts +1 -0
  67. package/dist/ecs/store/core/core.d.ts +33 -8
  68. package/dist/ecs/store/core/create-core.d.ts +12 -2
  69. package/dist/ecs/store/core/create-core.js +144 -22
  70. package/dist/ecs/store/core/create-core.js.map +1 -1
  71. package/dist/ecs/store/core/create-core.partition.test.d.ts +1 -0
  72. package/dist/ecs/store/core/create-core.partition.test.js +229 -0
  73. package/dist/ecs/store/core/create-core.partition.test.js.map +1 -0
  74. package/dist/ecs/store/core/select-entities.js +87 -21
  75. package/dist/ecs/store/core/select-entities.js.map +1 -1
  76. package/dist/ecs/store/core/select-entities.partition.test.d.ts +1 -0
  77. package/dist/ecs/store/core/select-entities.partition.test.js +93 -0
  78. package/dist/ecs/store/core/select-entities.partition.test.js.map +1 -0
  79. package/dist/ecs/store/entity-select-options.d.ts +5 -1
  80. package/dist/ecs/store/partition.d.ts +63 -0
  81. package/dist/ecs/store/partition.js +3 -0
  82. package/dist/ecs/store/partition.js.map +1 -0
  83. package/dist/ecs/store/partition.type-test.d.ts +1 -0
  84. package/dist/ecs/store/partition.type-test.js +15 -0
  85. package/dist/ecs/store/partition.type-test.js.map +1 -0
  86. package/dist/ecs/store/public/create-store.d.ts +3 -1
  87. package/dist/ecs/store/public/create-store.js +19 -50
  88. package/dist/ecs/store/public/create-store.js.map +1 -1
  89. package/dist/ecs/store/public/create-store.partition.test.d.ts +1 -0
  90. package/dist/ecs/store/public/create-store.partition.test.js +111 -0
  91. package/dist/ecs/store/public/create-store.partition.test.js.map +1 -0
  92. package/dist/ecs/store/public/create-store.partition.type-test.d.ts +1 -0
  93. package/dist/ecs/store/public/create-store.partition.type-test.js +61 -0
  94. package/dist/ecs/store/public/create-store.partition.type-test.js.map +1 -0
  95. package/dist/ecs/store/store.d.ts +22 -10
  96. package/dist/ecs/store/store.js.map +1 -1
  97. package/dist/ecs/store/transaction-functions.d.ts +6 -5
  98. package/dist/equals-unordered.d.ts +13 -0
  99. package/dist/equals-unordered.js +64 -0
  100. package/dist/equals-unordered.js.map +1 -0
  101. package/dist/equals-unordered.test.d.ts +1 -0
  102. package/dist/equals-unordered.test.js +35 -0
  103. package/dist/equals-unordered.test.js.map +1 -0
  104. package/dist/index.d.ts +1 -0
  105. package/dist/index.js +1 -0
  106. package/dist/index.js.map +1 -1
  107. package/dist/math/line2/interpolate.d.ts +3 -0
  108. package/dist/math/line2/interpolate.js +7 -0
  109. package/dist/math/line2/interpolate.js.map +1 -0
  110. package/dist/math/line2/intersects.d.ts +2 -0
  111. package/dist/math/line2/intersects.js +29 -0
  112. package/dist/math/line2/intersects.js.map +1 -0
  113. package/dist/math/line2/public.d.ts +3 -1
  114. package/dist/math/line2/public.js +3 -1
  115. package/dist/math/line2/public.js.map +1 -1
  116. package/dist/math/line2/sub-line.d.ts +2 -0
  117. package/dist/math/line2/sub-line.js +9 -0
  118. package/dist/math/line2/sub-line.js.map +1 -0
  119. package/dist/math/line3/closest-point-on-line.d.ts +10 -0
  120. package/dist/math/line3/closest-point-on-line.js +29 -0
  121. package/dist/math/line3/closest-point-on-line.js.map +1 -0
  122. package/dist/math/line3/direction.d.ts +7 -0
  123. package/dist/math/line3/direction.js +12 -0
  124. package/dist/math/line3/direction.js.map +1 -0
  125. package/dist/math/line3/interpolate.d.ts +3 -0
  126. package/dist/math/line3/interpolate.js +7 -0
  127. package/dist/math/line3/interpolate.js.map +1 -0
  128. package/dist/math/line3/public.d.ts +4 -1
  129. package/dist/math/line3/public.js +4 -1
  130. package/dist/math/line3/public.js.map +1 -1
  131. package/dist/math/line3/sub-line.d.ts +2 -0
  132. package/dist/math/line3/sub-line.js +9 -0
  133. package/dist/math/line3/sub-line.js.map +1 -0
  134. package/dist/math/mat4x4/add.d.ts +2 -0
  135. package/dist/math/mat4x4/add.js +8 -0
  136. package/dist/math/mat4x4/add.js.map +1 -0
  137. package/dist/math/mat4x4/determinant.d.ts +2 -0
  138. package/dist/math/mat4x4/determinant.js +18 -0
  139. package/dist/math/mat4x4/determinant.js.map +1 -0
  140. package/dist/math/mat4x4/identity.d.ts +2 -0
  141. package/dist/math/mat4x4/identity.js +8 -0
  142. package/dist/math/mat4x4/identity.js.map +1 -0
  143. package/dist/math/mat4x4/inverse.d.ts +2 -0
  144. package/dist/math/mat4x4/inverse.js +41 -0
  145. package/dist/math/mat4x4/inverse.js.map +1 -0
  146. package/dist/math/mat4x4/look-at.d.ts +3 -0
  147. package/dist/math/mat4x4/look-at.js +23 -0
  148. package/dist/math/mat4x4/look-at.js.map +1 -0
  149. package/dist/math/mat4x4/multiply-vec3.d.ts +3 -0
  150. package/dist/math/mat4x4/multiply-vec3.js +7 -0
  151. package/dist/math/mat4x4/multiply-vec3.js.map +1 -0
  152. package/dist/math/mat4x4/multiply-vec4.d.ts +3 -0
  153. package/dist/math/mat4x4/multiply-vec4.js +8 -0
  154. package/dist/math/mat4x4/multiply-vec4.js.map +1 -0
  155. package/dist/math/mat4x4/multiply.d.ts +2 -0
  156. package/dist/math/mat4x4/multiply.js +15 -0
  157. package/dist/math/mat4x4/multiply.js.map +1 -0
  158. package/dist/math/mat4x4/orthographic.d.ts +2 -0
  159. package/dist/math/mat4x4/orthographic.js +13 -0
  160. package/dist/math/mat4x4/orthographic.js.map +1 -0
  161. package/dist/math/mat4x4/perspective.d.ts +2 -0
  162. package/dist/math/mat4x4/perspective.js +23 -0
  163. package/dist/math/mat4x4/perspective.js.map +1 -0
  164. package/dist/math/mat4x4/public.d.ts +19 -1
  165. package/dist/math/mat4x4/public.js +19 -1
  166. package/dist/math/mat4x4/public.js.map +1 -1
  167. package/dist/math/mat4x4/rotation-x.d.ts +2 -0
  168. package/dist/math/mat4x4/rotation-x.js +12 -0
  169. package/dist/math/mat4x4/rotation-x.js.map +1 -0
  170. package/dist/math/mat4x4/rotation-y.d.ts +2 -0
  171. package/dist/math/mat4x4/rotation-y.js +12 -0
  172. package/dist/math/mat4x4/rotation-y.js.map +1 -0
  173. package/dist/math/mat4x4/rotation-z.d.ts +2 -0
  174. package/dist/math/mat4x4/rotation-z.js +12 -0
  175. package/dist/math/mat4x4/rotation-z.js.map +1 -0
  176. package/dist/math/mat4x4/scale.d.ts +2 -0
  177. package/dist/math/mat4x4/scale.js +8 -0
  178. package/dist/math/mat4x4/scale.js.map +1 -0
  179. package/dist/math/mat4x4/scaling.d.ts +2 -0
  180. package/dist/math/mat4x4/scaling.js +8 -0
  181. package/dist/math/mat4x4/scaling.js.map +1 -0
  182. package/dist/math/mat4x4/subtract.d.ts +2 -0
  183. package/dist/math/mat4x4/subtract.js +8 -0
  184. package/dist/math/mat4x4/subtract.js.map +1 -0
  185. package/dist/math/mat4x4/translation.d.ts +2 -0
  186. package/dist/math/mat4x4/translation.js +8 -0
  187. package/dist/math/mat4x4/translation.js.map +1 -0
  188. package/dist/math/mat4x4/transpose.d.ts +2 -0
  189. package/dist/math/mat4x4/transpose.js +8 -0
  190. package/dist/math/mat4x4/transpose.js.map +1 -0
  191. package/dist/math/mat4x4/zero.d.ts +2 -0
  192. package/dist/math/mat4x4/zero.js +8 -0
  193. package/dist/math/mat4x4/zero.js.map +1 -0
  194. package/dist/math/plane/contains-point.d.ts +3 -0
  195. package/dist/math/plane/contains-point.js +5 -0
  196. package/dist/math/plane/contains-point.js.map +1 -0
  197. package/dist/math/plane/distance.d.ts +3 -0
  198. package/dist/math/plane/distance.js +4 -0
  199. package/dist/math/plane/distance.js.map +1 -0
  200. package/dist/math/plane/is-point-behind.d.ts +3 -0
  201. package/dist/math/plane/is-point-behind.js +4 -0
  202. package/dist/math/plane/is-point-behind.js.map +1 -0
  203. package/dist/math/plane/is-point-in-front.d.ts +3 -0
  204. package/dist/math/plane/is-point-in-front.js +4 -0
  205. package/dist/math/plane/is-point-in-front.js.map +1 -0
  206. package/dist/math/plane/is.d.ts +2 -0
  207. package/dist/math/plane/is.js +5 -0
  208. package/dist/math/plane/is.js.map +1 -0
  209. package/dist/math/plane/line-intersection.d.ts +9 -0
  210. package/dist/math/plane/line-intersection.js +26 -0
  211. package/dist/math/plane/line-intersection.js.map +1 -0
  212. package/dist/math/plane/public.d.ts +7 -1
  213. package/dist/math/plane/public.js +7 -1
  214. package/dist/math/plane/public.js.map +1 -1
  215. package/dist/math/plane/signed-distance.d.ts +3 -0
  216. package/dist/math/plane/signed-distance.js +4 -0
  217. package/dist/math/plane/signed-distance.js.map +1 -0
  218. package/dist/math/quat/add.d.ts +2 -0
  219. package/dist/math/quat/add.js +8 -0
  220. package/dist/math/quat/add.js.map +1 -0
  221. package/dist/math/quat/align-to.d.ts +12 -0
  222. package/dist/math/quat/align-to.js +43 -0
  223. package/dist/math/quat/align-to.js.map +1 -0
  224. package/dist/math/quat/conjugate.d.ts +2 -0
  225. package/dist/math/quat/conjugate.js +3 -0
  226. package/dist/math/quat/conjugate.js.map +1 -0
  227. package/dist/math/quat/distance.d.ts +2 -0
  228. package/dist/math/quat/distance.js +5 -0
  229. package/dist/math/quat/distance.js.map +1 -0
  230. package/dist/math/quat/dot.d.ts +2 -0
  231. package/dist/math/quat/dot.js +3 -0
  232. package/dist/math/quat/dot.js.map +1 -0
  233. package/dist/math/quat/from-axis-angle.d.ts +3 -0
  234. package/dist/math/quat/from-axis-angle.js +14 -0
  235. package/dist/math/quat/from-axis-angle.js.map +1 -0
  236. package/dist/math/quat/from-euler.d.ts +2 -0
  237. package/dist/math/quat/from-euler.js +16 -0
  238. package/dist/math/quat/from-euler.js.map +1 -0
  239. package/dist/math/quat/identity.d.ts +2 -0
  240. package/dist/math/quat/identity.js +3 -0
  241. package/dist/math/quat/identity.js.map +1 -0
  242. package/dist/math/quat/inverse.d.ts +2 -0
  243. package/dist/math/quat/inverse.js +11 -0
  244. package/dist/math/quat/inverse.js.map +1 -0
  245. package/dist/math/quat/length-squared.d.ts +2 -0
  246. package/dist/math/quat/length-squared.js +3 -0
  247. package/dist/math/quat/length-squared.js.map +1 -0
  248. package/dist/math/quat/length.d.ts +2 -0
  249. package/dist/math/quat/length.js +3 -0
  250. package/dist/math/quat/length.js.map +1 -0
  251. package/dist/math/quat/lerp.d.ts +2 -0
  252. package/dist/math/quat/lerp.js +8 -0
  253. package/dist/math/quat/lerp.js.map +1 -0
  254. package/dist/math/quat/look-at.d.ts +3 -0
  255. package/dist/math/quat/look-at.js +49 -0
  256. package/dist/math/quat/look-at.js.map +1 -0
  257. package/dist/math/quat/multiply.d.ts +2 -0
  258. package/dist/math/quat/multiply.js +8 -0
  259. package/dist/math/quat/multiply.js.map +1 -0
  260. package/dist/math/quat/negate.d.ts +2 -0
  261. package/dist/math/quat/negate.js +3 -0
  262. package/dist/math/quat/negate.js.map +1 -0
  263. package/dist/math/quat/normalize.d.ts +2 -0
  264. package/dist/math/quat/normalize.js +8 -0
  265. package/dist/math/quat/normalize.js.map +1 -0
  266. package/dist/math/quat/public.d.ts +23 -1
  267. package/dist/math/quat/public.js +23 -1
  268. package/dist/math/quat/public.js.map +1 -1
  269. package/dist/math/quat/rotate-vec3.d.ts +3 -0
  270. package/dist/math/quat/rotate-vec3.js +15 -0
  271. package/dist/math/quat/rotate-vec3.js.map +1 -0
  272. package/dist/math/quat/scale.d.ts +2 -0
  273. package/dist/math/quat/scale.js +3 -0
  274. package/dist/math/quat/scale.js.map +1 -0
  275. package/dist/math/quat/schema.js +1 -1
  276. package/dist/math/quat/schema.js.map +1 -1
  277. package/dist/math/quat/slerp.d.ts +2 -0
  278. package/dist/math/quat/slerp.js +22 -0
  279. package/dist/math/quat/slerp.js.map +1 -0
  280. package/dist/math/quat/subtract.d.ts +2 -0
  281. package/dist/math/quat/subtract.js +8 -0
  282. package/dist/math/quat/subtract.js.map +1 -0
  283. package/dist/math/quat/to-axis-angle.d.ts +6 -0
  284. package/dist/math/quat/to-axis-angle.js +13 -0
  285. package/dist/math/quat/to-axis-angle.js.map +1 -0
  286. package/dist/math/quat/to-euler.d.ts +3 -0
  287. package/dist/math/quat/to-euler.js +22 -0
  288. package/dist/math/quat/to-euler.js.map +1 -0
  289. package/dist/math/quat/to-mat4.d.ts +8 -0
  290. package/dist/math/quat/to-mat4.js +25 -0
  291. package/dist/math/quat/to-mat4.js.map +1 -0
  292. package/dist/math/vec2/f32/abs.d.ts +2 -0
  293. package/dist/math/vec2/f32/abs.js +3 -0
  294. package/dist/math/vec2/f32/abs.js.map +1 -0
  295. package/dist/math/vec2/f32/acos.d.ts +2 -0
  296. package/dist/math/vec2/f32/acos.js +3 -0
  297. package/dist/math/vec2/f32/acos.js.map +1 -0
  298. package/dist/math/vec2/f32/acosh.d.ts +2 -0
  299. package/dist/math/vec2/f32/acosh.js +3 -0
  300. package/dist/math/vec2/f32/acosh.js.map +1 -0
  301. package/dist/math/vec2/f32/add.d.ts +2 -0
  302. package/dist/math/vec2/f32/add.js +3 -0
  303. package/dist/math/vec2/f32/add.js.map +1 -0
  304. package/dist/math/vec2/f32/asin.d.ts +2 -0
  305. package/dist/math/vec2/f32/asin.js +3 -0
  306. package/dist/math/vec2/f32/asin.js.map +1 -0
  307. package/dist/math/vec2/f32/asinh.d.ts +2 -0
  308. package/dist/math/vec2/f32/asinh.js +3 -0
  309. package/dist/math/vec2/f32/asinh.js.map +1 -0
  310. package/dist/math/vec2/f32/atan.d.ts +2 -0
  311. package/dist/math/vec2/f32/atan.js +3 -0
  312. package/dist/math/vec2/f32/atan.js.map +1 -0
  313. package/dist/math/vec2/f32/atanh.d.ts +2 -0
  314. package/dist/math/vec2/f32/atanh.js +3 -0
  315. package/dist/math/vec2/f32/atanh.js.map +1 -0
  316. package/dist/math/vec2/f32/ceil.d.ts +2 -0
  317. package/dist/math/vec2/f32/ceil.js +3 -0
  318. package/dist/math/vec2/f32/ceil.js.map +1 -0
  319. package/dist/math/vec2/f32/clamp.d.ts +2 -0
  320. package/dist/math/vec2/f32/clamp.js +5 -0
  321. package/dist/math/vec2/f32/clamp.js.map +1 -0
  322. package/dist/math/vec2/f32/cos.d.ts +2 -0
  323. package/dist/math/vec2/f32/cos.js +3 -0
  324. package/dist/math/vec2/f32/cos.js.map +1 -0
  325. package/dist/math/vec2/f32/cosh.d.ts +2 -0
  326. package/dist/math/vec2/f32/cosh.js +3 -0
  327. package/dist/math/vec2/f32/cosh.js.map +1 -0
  328. package/dist/math/vec2/f32/distance.d.ts +2 -0
  329. package/dist/math/vec2/f32/distance.js +5 -0
  330. package/dist/math/vec2/f32/distance.js.map +1 -0
  331. package/dist/math/vec2/f32/dot.d.ts +2 -0
  332. package/dist/math/vec2/f32/dot.js +3 -0
  333. package/dist/math/vec2/f32/dot.js.map +1 -0
  334. package/dist/math/vec2/f32/equals.d.ts +2 -0
  335. package/dist/math/vec2/f32/equals.js +3 -0
  336. package/dist/math/vec2/f32/equals.js.map +1 -0
  337. package/dist/math/vec2/f32/exp.d.ts +2 -0
  338. package/dist/math/vec2/f32/exp.js +3 -0
  339. package/dist/math/vec2/f32/exp.js.map +1 -0
  340. package/dist/math/vec2/f32/exp2.d.ts +2 -0
  341. package/dist/math/vec2/f32/exp2.js +3 -0
  342. package/dist/math/vec2/f32/exp2.js.map +1 -0
  343. package/dist/math/vec2/f32/faceforward.d.ts +2 -0
  344. package/dist/math/vec2/f32/faceforward.js +5 -0
  345. package/dist/math/vec2/f32/faceforward.js.map +1 -0
  346. package/dist/math/vec2/f32/floor.d.ts +2 -0
  347. package/dist/math/vec2/f32/floor.js +3 -0
  348. package/dist/math/vec2/f32/floor.js.map +1 -0
  349. package/dist/math/vec2/f32/fract.d.ts +2 -0
  350. package/dist/math/vec2/f32/fract.js +3 -0
  351. package/dist/math/vec2/f32/fract.js.map +1 -0
  352. package/dist/math/vec2/f32/length.d.ts +2 -0
  353. package/dist/math/vec2/f32/length.js +3 -0
  354. package/dist/math/vec2/f32/length.js.map +1 -0
  355. package/dist/math/vec2/f32/log.d.ts +2 -0
  356. package/dist/math/vec2/f32/log.js +3 -0
  357. package/dist/math/vec2/f32/log.js.map +1 -0
  358. package/dist/math/vec2/f32/log2.d.ts +2 -0
  359. package/dist/math/vec2/f32/log2.js +3 -0
  360. package/dist/math/vec2/f32/log2.js.map +1 -0
  361. package/dist/math/vec2/f32/max.d.ts +2 -0
  362. package/dist/math/vec2/f32/max.js +3 -0
  363. package/dist/math/vec2/f32/max.js.map +1 -0
  364. package/dist/math/vec2/f32/min.d.ts +2 -0
  365. package/dist/math/vec2/f32/min.js +3 -0
  366. package/dist/math/vec2/f32/min.js.map +1 -0
  367. package/dist/math/vec2/f32/mix.d.ts +2 -0
  368. package/dist/math/vec2/f32/mix.js +6 -0
  369. package/dist/math/vec2/f32/mix.js.map +1 -0
  370. package/dist/math/vec2/f32/mod.d.ts +2 -0
  371. package/dist/math/vec2/f32/mod.js +6 -0
  372. package/dist/math/vec2/f32/mod.js.map +1 -0
  373. package/dist/math/vec2/f32/modf.d.ts +5 -0
  374. package/dist/math/vec2/f32/modf.js +6 -0
  375. package/dist/math/vec2/f32/modf.js.map +1 -0
  376. package/dist/math/vec2/f32/negate.d.ts +2 -0
  377. package/dist/math/vec2/f32/negate.js +3 -0
  378. package/dist/math/vec2/f32/negate.js.map +1 -0
  379. package/dist/math/vec2/f32/normalize.d.ts +2 -0
  380. package/dist/math/vec2/f32/normalize.js +8 -0
  381. package/dist/math/vec2/f32/normalize.js.map +1 -0
  382. package/dist/math/vec2/f32/pow.d.ts +2 -0
  383. package/dist/math/vec2/f32/pow.js +6 -0
  384. package/dist/math/vec2/f32/pow.js.map +1 -0
  385. package/dist/math/vec2/f32/public.d.ts +46 -1
  386. package/dist/math/vec2/f32/public.js +46 -1
  387. package/dist/math/vec2/f32/public.js.map +1 -1
  388. package/dist/math/vec2/f32/reflect.d.ts +2 -0
  389. package/dist/math/vec2/f32/reflect.js +9 -0
  390. package/dist/math/vec2/f32/reflect.js.map +1 -0
  391. package/dist/math/vec2/f32/refract.d.ts +2 -0
  392. package/dist/math/vec2/f32/refract.js +14 -0
  393. package/dist/math/vec2/f32/refract.js.map +1 -0
  394. package/dist/math/vec2/f32/round.d.ts +2 -0
  395. package/dist/math/vec2/f32/round.js +3 -0
  396. package/dist/math/vec2/f32/round.js.map +1 -0
  397. package/dist/math/vec2/f32/scale.d.ts +2 -0
  398. package/dist/math/vec2/f32/scale.js +3 -0
  399. package/dist/math/vec2/f32/scale.js.map +1 -0
  400. package/dist/math/vec2/f32/sign.d.ts +2 -0
  401. package/dist/math/vec2/f32/sign.js +3 -0
  402. package/dist/math/vec2/f32/sign.js.map +1 -0
  403. package/dist/math/vec2/f32/sin.d.ts +2 -0
  404. package/dist/math/vec2/f32/sin.js +3 -0
  405. package/dist/math/vec2/f32/sin.js.map +1 -0
  406. package/dist/math/vec2/f32/sinh.d.ts +2 -0
  407. package/dist/math/vec2/f32/sinh.js +3 -0
  408. package/dist/math/vec2/f32/sinh.js.map +1 -0
  409. package/dist/math/vec2/f32/smoothstep.d.ts +2 -0
  410. package/dist/math/vec2/f32/smoothstep.js +7 -0
  411. package/dist/math/vec2/f32/smoothstep.js.map +1 -0
  412. package/dist/math/vec2/f32/sqrt.d.ts +2 -0
  413. package/dist/math/vec2/f32/sqrt.js +3 -0
  414. package/dist/math/vec2/f32/sqrt.js.map +1 -0
  415. package/dist/math/vec2/f32/step.d.ts +2 -0
  416. package/dist/math/vec2/f32/step.js +6 -0
  417. package/dist/math/vec2/f32/step.js.map +1 -0
  418. package/dist/math/vec2/f32/subtract.d.ts +2 -0
  419. package/dist/math/vec2/f32/subtract.js +3 -0
  420. package/dist/math/vec2/f32/subtract.js.map +1 -0
  421. package/dist/math/vec2/f32/tan.d.ts +2 -0
  422. package/dist/math/vec2/f32/tan.js +3 -0
  423. package/dist/math/vec2/f32/tan.js.map +1 -0
  424. package/dist/math/vec2/f32/tanh.d.ts +2 -0
  425. package/dist/math/vec2/f32/tanh.js +3 -0
  426. package/dist/math/vec2/f32/tanh.js.map +1 -0
  427. package/dist/math/vec2/f32/trunc.d.ts +2 -0
  428. package/dist/math/vec2/f32/trunc.js +3 -0
  429. package/dist/math/vec2/f32/trunc.js.map +1 -0
  430. package/dist/math/vec2/f32/zero.d.ts +2 -0
  431. package/dist/math/vec2/f32/zero.js +3 -0
  432. package/dist/math/vec2/f32/zero.js.map +1 -0
  433. package/dist/math/vec2/i32/abs.d.ts +2 -0
  434. package/dist/math/vec2/i32/abs.js +3 -0
  435. package/dist/math/vec2/i32/abs.js.map +1 -0
  436. package/dist/math/vec2/i32/add.d.ts +2 -0
  437. package/dist/math/vec2/i32/add.js +3 -0
  438. package/dist/math/vec2/i32/add.js.map +1 -0
  439. package/dist/math/vec2/i32/bitwise-and.d.ts +2 -0
  440. package/dist/math/vec2/i32/bitwise-and.js +3 -0
  441. package/dist/math/vec2/i32/bitwise-and.js.map +1 -0
  442. package/dist/math/vec2/i32/bitwise-not.d.ts +2 -0
  443. package/dist/math/vec2/i32/bitwise-not.js +3 -0
  444. package/dist/math/vec2/i32/bitwise-not.js.map +1 -0
  445. package/dist/math/vec2/i32/bitwise-or.d.ts +2 -0
  446. package/dist/math/vec2/i32/bitwise-or.js +3 -0
  447. package/dist/math/vec2/i32/bitwise-or.js.map +1 -0
  448. package/dist/math/vec2/i32/bitwise-xor.d.ts +2 -0
  449. package/dist/math/vec2/i32/bitwise-xor.js +3 -0
  450. package/dist/math/vec2/i32/bitwise-xor.js.map +1 -0
  451. package/dist/math/vec2/i32/clamp.d.ts +2 -0
  452. package/dist/math/vec2/i32/clamp.js +5 -0
  453. package/dist/math/vec2/i32/clamp.js.map +1 -0
  454. package/dist/math/vec2/i32/count-leading-zeros.d.ts +2 -0
  455. package/dist/math/vec2/i32/count-leading-zeros.js +7 -0
  456. package/dist/math/vec2/i32/count-leading-zeros.js.map +1 -0
  457. package/dist/math/vec2/i32/count-one-bits.d.ts +2 -0
  458. package/dist/math/vec2/i32/count-one-bits.js +7 -0
  459. package/dist/math/vec2/i32/count-one-bits.js.map +1 -0
  460. package/dist/math/vec2/i32/count-trailing-zeros.d.ts +2 -0
  461. package/dist/math/vec2/i32/count-trailing-zeros.js +7 -0
  462. package/dist/math/vec2/i32/count-trailing-zeros.js.map +1 -0
  463. package/dist/math/vec2/i32/equals.d.ts +2 -0
  464. package/dist/math/vec2/i32/equals.js +3 -0
  465. package/dist/math/vec2/i32/equals.js.map +1 -0
  466. package/dist/math/vec2/i32/max.d.ts +2 -0
  467. package/dist/math/vec2/i32/max.js +3 -0
  468. package/dist/math/vec2/i32/max.js.map +1 -0
  469. package/dist/math/vec2/i32/min.d.ts +2 -0
  470. package/dist/math/vec2/i32/min.js +3 -0
  471. package/dist/math/vec2/i32/min.js.map +1 -0
  472. package/dist/math/vec2/i32/negate.d.ts +2 -0
  473. package/dist/math/vec2/i32/negate.js +3 -0
  474. package/dist/math/vec2/i32/negate.js.map +1 -0
  475. package/dist/math/vec2/i32/public.d.ts +20 -1
  476. package/dist/math/vec2/i32/public.js +20 -1
  477. package/dist/math/vec2/i32/public.js.map +1 -1
  478. package/dist/math/vec2/i32/reverse-bits.d.ts +2 -0
  479. package/dist/math/vec2/i32/reverse-bits.js +7 -0
  480. package/dist/math/vec2/i32/reverse-bits.js.map +1 -0
  481. package/dist/math/vec2/i32/scale.d.ts +2 -0
  482. package/dist/math/vec2/i32/scale.js +3 -0
  483. package/dist/math/vec2/i32/scale.js.map +1 -0
  484. package/dist/math/vec2/i32/shift-left.d.ts +2 -0
  485. package/dist/math/vec2/i32/shift-left.js +3 -0
  486. package/dist/math/vec2/i32/shift-left.js.map +1 -0
  487. package/dist/math/vec2/i32/shift-right.d.ts +2 -0
  488. package/dist/math/vec2/i32/shift-right.js +7 -0
  489. package/dist/math/vec2/i32/shift-right.js.map +1 -0
  490. package/dist/math/vec2/i32/subtract.d.ts +2 -0
  491. package/dist/math/vec2/i32/subtract.js +3 -0
  492. package/dist/math/vec2/i32/subtract.js.map +1 -0
  493. package/dist/math/vec2/i32/zero.d.ts +2 -0
  494. package/dist/math/vec2/i32/zero.js +3 -0
  495. package/dist/math/vec2/i32/zero.js.map +1 -0
  496. package/dist/math/vec2/public.d.ts +1 -1
  497. package/dist/math/vec2/public.js +1 -1
  498. package/dist/math/vec2/public.js.map +1 -1
  499. package/dist/math/vec2/u32/add.d.ts +2 -0
  500. package/dist/math/vec2/u32/add.js +6 -0
  501. package/dist/math/vec2/u32/add.js.map +1 -0
  502. package/dist/math/vec2/u32/bitwise-and.d.ts +2 -0
  503. package/dist/math/vec2/u32/bitwise-and.js +6 -0
  504. package/dist/math/vec2/u32/bitwise-and.js.map +1 -0
  505. package/dist/math/vec2/u32/bitwise-not.d.ts +2 -0
  506. package/dist/math/vec2/u32/bitwise-not.js +3 -0
  507. package/dist/math/vec2/u32/bitwise-not.js.map +1 -0
  508. package/dist/math/vec2/u32/bitwise-or.d.ts +2 -0
  509. package/dist/math/vec2/u32/bitwise-or.js +6 -0
  510. package/dist/math/vec2/u32/bitwise-or.js.map +1 -0
  511. package/dist/math/vec2/u32/bitwise-xor.d.ts +2 -0
  512. package/dist/math/vec2/u32/bitwise-xor.js +6 -0
  513. package/dist/math/vec2/u32/bitwise-xor.js.map +1 -0
  514. package/dist/math/vec2/u32/clamp.d.ts +2 -0
  515. package/dist/math/vec2/u32/clamp.js +5 -0
  516. package/dist/math/vec2/u32/clamp.js.map +1 -0
  517. package/dist/math/vec2/u32/count-leading-zeros.d.ts +2 -0
  518. package/dist/math/vec2/u32/count-leading-zeros.js +7 -0
  519. package/dist/math/vec2/u32/count-leading-zeros.js.map +1 -0
  520. package/dist/math/vec2/u32/count-one-bits.d.ts +2 -0
  521. package/dist/math/vec2/u32/count-one-bits.js +7 -0
  522. package/dist/math/vec2/u32/count-one-bits.js.map +1 -0
  523. package/dist/math/vec2/u32/count-trailing-zeros.d.ts +2 -0
  524. package/dist/math/vec2/u32/count-trailing-zeros.js +7 -0
  525. package/dist/math/vec2/u32/count-trailing-zeros.js.map +1 -0
  526. package/dist/math/vec2/u32/equals.d.ts +2 -0
  527. package/dist/math/vec2/u32/equals.js +3 -0
  528. package/dist/math/vec2/u32/equals.js.map +1 -0
  529. package/dist/math/vec2/u32/max.d.ts +2 -0
  530. package/dist/math/vec2/u32/max.js +6 -0
  531. package/dist/math/vec2/u32/max.js.map +1 -0
  532. package/dist/math/vec2/u32/min.d.ts +2 -0
  533. package/dist/math/vec2/u32/min.js +6 -0
  534. package/dist/math/vec2/u32/min.js.map +1 -0
  535. package/dist/math/vec2/u32/negate.d.ts +2 -0
  536. package/dist/math/vec2/u32/negate.js +3 -0
  537. package/dist/math/vec2/u32/negate.js.map +1 -0
  538. package/dist/math/vec2/u32/public.d.ts +19 -1
  539. package/dist/math/vec2/u32/public.js +19 -1
  540. package/dist/math/vec2/u32/public.js.map +1 -1
  541. package/dist/math/vec2/u32/reverse-bits.d.ts +2 -0
  542. package/dist/math/vec2/u32/reverse-bits.js +7 -0
  543. package/dist/math/vec2/u32/reverse-bits.js.map +1 -0
  544. package/dist/math/vec2/u32/scale.d.ts +2 -0
  545. package/dist/math/vec2/u32/scale.js +3 -0
  546. package/dist/math/vec2/u32/scale.js.map +1 -0
  547. package/dist/math/vec2/u32/shift-left.d.ts +2 -0
  548. package/dist/math/vec2/u32/shift-left.js +3 -0
  549. package/dist/math/vec2/u32/shift-left.js.map +1 -0
  550. package/dist/math/vec2/u32/shift-right.d.ts +2 -0
  551. package/dist/math/vec2/u32/shift-right.js +7 -0
  552. package/dist/math/vec2/u32/shift-right.js.map +1 -0
  553. package/dist/math/vec2/u32/subtract.d.ts +2 -0
  554. package/dist/math/vec2/u32/subtract.js +6 -0
  555. package/dist/math/vec2/u32/subtract.js.map +1 -0
  556. package/dist/math/vec2/u32/zero.d.ts +2 -0
  557. package/dist/math/vec2/u32/zero.js +3 -0
  558. package/dist/math/vec2/u32/zero.js.map +1 -0
  559. package/dist/math/vec3/f32/abs.d.ts +2 -0
  560. package/dist/math/vec3/f32/abs.js +3 -0
  561. package/dist/math/vec3/f32/abs.js.map +1 -0
  562. package/dist/math/vec3/f32/acos.d.ts +2 -0
  563. package/dist/math/vec3/f32/acos.js +3 -0
  564. package/dist/math/vec3/f32/acos.js.map +1 -0
  565. package/dist/math/vec3/f32/acosh.d.ts +2 -0
  566. package/dist/math/vec3/f32/acosh.js +3 -0
  567. package/dist/math/vec3/f32/acosh.js.map +1 -0
  568. package/dist/math/vec3/f32/add.d.ts +2 -0
  569. package/dist/math/vec3/f32/add.js +7 -0
  570. package/dist/math/vec3/f32/add.js.map +1 -0
  571. package/dist/math/vec3/f32/asin.d.ts +2 -0
  572. package/dist/math/vec3/f32/asin.js +3 -0
  573. package/dist/math/vec3/f32/asin.js.map +1 -0
  574. package/dist/math/vec3/f32/asinh.d.ts +2 -0
  575. package/dist/math/vec3/f32/asinh.js +3 -0
  576. package/dist/math/vec3/f32/asinh.js.map +1 -0
  577. package/dist/math/vec3/f32/atan.d.ts +2 -0
  578. package/dist/math/vec3/f32/atan.js +3 -0
  579. package/dist/math/vec3/f32/atan.js.map +1 -0
  580. package/dist/math/vec3/f32/atanh.d.ts +2 -0
  581. package/dist/math/vec3/f32/atanh.js +3 -0
  582. package/dist/math/vec3/f32/atanh.js.map +1 -0
  583. package/dist/math/vec3/f32/ceil.d.ts +2 -0
  584. package/dist/math/vec3/f32/ceil.js +3 -0
  585. package/dist/math/vec3/f32/ceil.js.map +1 -0
  586. package/dist/math/vec3/f32/clamp.d.ts +2 -0
  587. package/dist/math/vec3/f32/clamp.js +5 -0
  588. package/dist/math/vec3/f32/clamp.js.map +1 -0
  589. package/dist/math/vec3/f32/cos.d.ts +2 -0
  590. package/dist/math/vec3/f32/cos.js +3 -0
  591. package/dist/math/vec3/f32/cos.js.map +1 -0
  592. package/dist/math/vec3/f32/cosh.d.ts +2 -0
  593. package/dist/math/vec3/f32/cosh.js +3 -0
  594. package/dist/math/vec3/f32/cosh.js.map +1 -0
  595. package/dist/math/vec3/f32/cross.d.ts +2 -0
  596. package/dist/math/vec3/f32/cross.js +7 -0
  597. package/dist/math/vec3/f32/cross.js.map +1 -0
  598. package/dist/math/vec3/f32/distance-squared.d.ts +2 -0
  599. package/dist/math/vec3/f32/distance-squared.js +8 -0
  600. package/dist/math/vec3/f32/distance-squared.js.map +1 -0
  601. package/dist/math/vec3/f32/distance.d.ts +2 -0
  602. package/dist/math/vec3/f32/distance.js +5 -0
  603. package/dist/math/vec3/f32/distance.js.map +1 -0
  604. package/dist/math/vec3/f32/dot.d.ts +2 -0
  605. package/dist/math/vec3/f32/dot.js +3 -0
  606. package/dist/math/vec3/f32/dot.js.map +1 -0
  607. package/dist/math/vec3/f32/equals.d.ts +2 -0
  608. package/dist/math/vec3/f32/equals.js +3 -0
  609. package/dist/math/vec3/f32/equals.js.map +1 -0
  610. package/dist/math/vec3/f32/exp.d.ts +2 -0
  611. package/dist/math/vec3/f32/exp.js +3 -0
  612. package/dist/math/vec3/f32/exp.js.map +1 -0
  613. package/dist/math/vec3/f32/exp2.d.ts +2 -0
  614. package/dist/math/vec3/f32/exp2.js +3 -0
  615. package/dist/math/vec3/f32/exp2.js.map +1 -0
  616. package/dist/math/vec3/f32/faceforward.d.ts +2 -0
  617. package/dist/math/vec3/f32/faceforward.js +5 -0
  618. package/dist/math/vec3/f32/faceforward.js.map +1 -0
  619. package/dist/math/vec3/f32/floor.d.ts +2 -0
  620. package/dist/math/vec3/f32/floor.js +3 -0
  621. package/dist/math/vec3/f32/floor.js.map +1 -0
  622. package/dist/math/vec3/f32/fract.d.ts +2 -0
  623. package/dist/math/vec3/f32/fract.js +7 -0
  624. package/dist/math/vec3/f32/fract.js.map +1 -0
  625. package/dist/math/vec3/f32/length-squared.d.ts +2 -0
  626. package/dist/math/vec3/f32/length-squared.js +3 -0
  627. package/dist/math/vec3/f32/length-squared.js.map +1 -0
  628. package/dist/math/vec3/f32/length.d.ts +2 -0
  629. package/dist/math/vec3/f32/length.js +3 -0
  630. package/dist/math/vec3/f32/length.js.map +1 -0
  631. package/dist/math/vec3/f32/log.d.ts +2 -0
  632. package/dist/math/vec3/f32/log.js +3 -0
  633. package/dist/math/vec3/f32/log.js.map +1 -0
  634. package/dist/math/vec3/f32/log2.d.ts +2 -0
  635. package/dist/math/vec3/f32/log2.js +3 -0
  636. package/dist/math/vec3/f32/log2.js.map +1 -0
  637. package/dist/math/vec3/f32/max.d.ts +2 -0
  638. package/dist/math/vec3/f32/max.js +7 -0
  639. package/dist/math/vec3/f32/max.js.map +1 -0
  640. package/dist/math/vec3/f32/min.d.ts +2 -0
  641. package/dist/math/vec3/f32/min.js +7 -0
  642. package/dist/math/vec3/f32/min.js.map +1 -0
  643. package/dist/math/vec3/f32/mix.d.ts +2 -0
  644. package/dist/math/vec3/f32/mix.js +7 -0
  645. package/dist/math/vec3/f32/mix.js.map +1 -0
  646. package/dist/math/vec3/f32/mod.d.ts +2 -0
  647. package/dist/math/vec3/f32/mod.js +7 -0
  648. package/dist/math/vec3/f32/mod.js.map +1 -0
  649. package/dist/math/vec3/f32/modf.d.ts +5 -0
  650. package/dist/math/vec3/f32/modf.js +6 -0
  651. package/dist/math/vec3/f32/modf.js.map +1 -0
  652. package/dist/math/vec3/f32/multiply.d.ts +5 -0
  653. package/dist/math/vec3/f32/multiply.js +10 -0
  654. package/dist/math/vec3/f32/multiply.js.map +1 -0
  655. package/dist/math/vec3/f32/negate.d.ts +2 -0
  656. package/dist/math/vec3/f32/negate.js +3 -0
  657. package/dist/math/vec3/f32/negate.js.map +1 -0
  658. package/dist/math/vec3/f32/normalize.d.ts +2 -0
  659. package/dist/math/vec3/f32/normalize.js +8 -0
  660. package/dist/math/vec3/f32/normalize.js.map +1 -0
  661. package/dist/math/vec3/f32/one.d.ts +2 -0
  662. package/dist/math/vec3/f32/one.js +3 -0
  663. package/dist/math/vec3/f32/one.js.map +1 -0
  664. package/dist/math/vec3/f32/pow.d.ts +2 -0
  665. package/dist/math/vec3/f32/pow.js +7 -0
  666. package/dist/math/vec3/f32/pow.js.map +1 -0
  667. package/dist/math/vec3/f32/public.d.ts +52 -1
  668. package/dist/math/vec3/f32/public.js +52 -1
  669. package/dist/math/vec3/f32/public.js.map +1 -1
  670. package/dist/math/vec3/f32/random.d.ts +2 -0
  671. package/dist/math/vec3/f32/random.js +5 -0
  672. package/dist/math/vec3/f32/random.js.map +1 -0
  673. package/dist/math/vec3/f32/reflect.d.ts +2 -0
  674. package/dist/math/vec3/f32/reflect.js +9 -0
  675. package/dist/math/vec3/f32/reflect.js.map +1 -0
  676. package/dist/math/vec3/f32/refract.d.ts +2 -0
  677. package/dist/math/vec3/f32/refract.js +14 -0
  678. package/dist/math/vec3/f32/refract.js.map +1 -0
  679. package/dist/math/vec3/f32/round.d.ts +2 -0
  680. package/dist/math/vec3/f32/round.js +3 -0
  681. package/dist/math/vec3/f32/round.js.map +1 -0
  682. package/dist/math/vec3/f32/scale.d.ts +2 -0
  683. package/dist/math/vec3/f32/scale.js +3 -0
  684. package/dist/math/vec3/f32/scale.js.map +1 -0
  685. package/dist/math/vec3/f32/sign.d.ts +2 -0
  686. package/dist/math/vec3/f32/sign.js +3 -0
  687. package/dist/math/vec3/f32/sign.js.map +1 -0
  688. package/dist/math/vec3/f32/sin.d.ts +2 -0
  689. package/dist/math/vec3/f32/sin.js +3 -0
  690. package/dist/math/vec3/f32/sin.js.map +1 -0
  691. package/dist/math/vec3/f32/sinh.d.ts +2 -0
  692. package/dist/math/vec3/f32/sinh.js +3 -0
  693. package/dist/math/vec3/f32/sinh.js.map +1 -0
  694. package/dist/math/vec3/f32/smoothstep.d.ts +2 -0
  695. package/dist/math/vec3/f32/smoothstep.js +12 -0
  696. package/dist/math/vec3/f32/smoothstep.js.map +1 -0
  697. package/dist/math/vec3/f32/sqrt.d.ts +2 -0
  698. package/dist/math/vec3/f32/sqrt.js +3 -0
  699. package/dist/math/vec3/f32/sqrt.js.map +1 -0
  700. package/dist/math/vec3/f32/step.d.ts +2 -0
  701. package/dist/math/vec3/f32/step.js +7 -0
  702. package/dist/math/vec3/f32/step.js.map +1 -0
  703. package/dist/math/vec3/f32/subtract.d.ts +2 -0
  704. package/dist/math/vec3/f32/subtract.js +7 -0
  705. package/dist/math/vec3/f32/subtract.js.map +1 -0
  706. package/dist/math/vec3/f32/tan.d.ts +2 -0
  707. package/dist/math/vec3/f32/tan.js +3 -0
  708. package/dist/math/vec3/f32/tan.js.map +1 -0
  709. package/dist/math/vec3/f32/tanh.d.ts +2 -0
  710. package/dist/math/vec3/f32/tanh.js +3 -0
  711. package/dist/math/vec3/f32/tanh.js.map +1 -0
  712. package/dist/math/vec3/f32/trunc.d.ts +2 -0
  713. package/dist/math/vec3/f32/trunc.js +3 -0
  714. package/dist/math/vec3/f32/trunc.js.map +1 -0
  715. package/dist/math/vec3/f32/zero.d.ts +2 -0
  716. package/dist/math/vec3/f32/zero.js +3 -0
  717. package/dist/math/vec3/f32/zero.js.map +1 -0
  718. package/dist/math/vec3/i32/abs.d.ts +2 -0
  719. package/dist/math/vec3/i32/abs.js +3 -0
  720. package/dist/math/vec3/i32/abs.js.map +1 -0
  721. package/dist/math/vec3/i32/add.d.ts +2 -0
  722. package/dist/math/vec3/i32/add.js +7 -0
  723. package/dist/math/vec3/i32/add.js.map +1 -0
  724. package/dist/math/vec3/i32/bitwise-and.d.ts +2 -0
  725. package/dist/math/vec3/i32/bitwise-and.js +7 -0
  726. package/dist/math/vec3/i32/bitwise-and.js.map +1 -0
  727. package/dist/math/vec3/i32/bitwise-not.d.ts +2 -0
  728. package/dist/math/vec3/i32/bitwise-not.js +3 -0
  729. package/dist/math/vec3/i32/bitwise-not.js.map +1 -0
  730. package/dist/math/vec3/i32/bitwise-or.d.ts +2 -0
  731. package/dist/math/vec3/i32/bitwise-or.js +7 -0
  732. package/dist/math/vec3/i32/bitwise-or.js.map +1 -0
  733. package/dist/math/vec3/i32/bitwise-xor.d.ts +2 -0
  734. package/dist/math/vec3/i32/bitwise-xor.js +7 -0
  735. package/dist/math/vec3/i32/bitwise-xor.js.map +1 -0
  736. package/dist/math/vec3/i32/clamp.d.ts +2 -0
  737. package/dist/math/vec3/i32/clamp.js +5 -0
  738. package/dist/math/vec3/i32/clamp.js.map +1 -0
  739. package/dist/math/vec3/i32/count-leading-zeros.d.ts +2 -0
  740. package/dist/math/vec3/i32/count-leading-zeros.js +8 -0
  741. package/dist/math/vec3/i32/count-leading-zeros.js.map +1 -0
  742. package/dist/math/vec3/i32/count-one-bits.d.ts +2 -0
  743. package/dist/math/vec3/i32/count-one-bits.js +8 -0
  744. package/dist/math/vec3/i32/count-one-bits.js.map +1 -0
  745. package/dist/math/vec3/i32/count-trailing-zeros.d.ts +2 -0
  746. package/dist/math/vec3/i32/count-trailing-zeros.js +8 -0
  747. package/dist/math/vec3/i32/count-trailing-zeros.js.map +1 -0
  748. package/dist/math/vec3/i32/equals.d.ts +2 -0
  749. package/dist/math/vec3/i32/equals.js +3 -0
  750. package/dist/math/vec3/i32/equals.js.map +1 -0
  751. package/dist/math/vec3/i32/max.d.ts +2 -0
  752. package/dist/math/vec3/i32/max.js +7 -0
  753. package/dist/math/vec3/i32/max.js.map +1 -0
  754. package/dist/math/vec3/i32/min.d.ts +2 -0
  755. package/dist/math/vec3/i32/min.js +7 -0
  756. package/dist/math/vec3/i32/min.js.map +1 -0
  757. package/dist/math/vec3/i32/multiply.d.ts +2 -0
  758. package/dist/math/vec3/i32/multiply.js +7 -0
  759. package/dist/math/vec3/i32/multiply.js.map +1 -0
  760. package/dist/math/vec3/i32/negate.d.ts +2 -0
  761. package/dist/math/vec3/i32/negate.js +3 -0
  762. package/dist/math/vec3/i32/negate.js.map +1 -0
  763. package/dist/math/vec3/i32/one.d.ts +2 -0
  764. package/dist/math/vec3/i32/one.js +3 -0
  765. package/dist/math/vec3/i32/one.js.map +1 -0
  766. package/dist/math/vec3/i32/public.d.ts +22 -1
  767. package/dist/math/vec3/i32/public.js +22 -1
  768. package/dist/math/vec3/i32/public.js.map +1 -1
  769. package/dist/math/vec3/i32/reverse-bits.d.ts +2 -0
  770. package/dist/math/vec3/i32/reverse-bits.js +8 -0
  771. package/dist/math/vec3/i32/reverse-bits.js.map +1 -0
  772. package/dist/math/vec3/i32/scale.d.ts +2 -0
  773. package/dist/math/vec3/i32/scale.js +3 -0
  774. package/dist/math/vec3/i32/scale.js.map +1 -0
  775. package/dist/math/vec3/i32/shift-left.d.ts +2 -0
  776. package/dist/math/vec3/i32/shift-left.js +3 -0
  777. package/dist/math/vec3/i32/shift-left.js.map +1 -0
  778. package/dist/math/vec3/i32/shift-right.d.ts +2 -0
  779. package/dist/math/vec3/i32/shift-right.js +8 -0
  780. package/dist/math/vec3/i32/shift-right.js.map +1 -0
  781. package/dist/math/vec3/i32/subtract.d.ts +2 -0
  782. package/dist/math/vec3/i32/subtract.js +7 -0
  783. package/dist/math/vec3/i32/subtract.js.map +1 -0
  784. package/dist/math/vec3/i32/zero.d.ts +2 -0
  785. package/dist/math/vec3/i32/zero.js +3 -0
  786. package/dist/math/vec3/i32/zero.js.map +1 -0
  787. package/dist/math/vec3/public.d.ts +1 -1
  788. package/dist/math/vec3/public.js +1 -1
  789. package/dist/math/vec3/public.js.map +1 -1
  790. package/dist/math/vec3/u32/add.d.ts +2 -0
  791. package/dist/math/vec3/u32/add.js +7 -0
  792. package/dist/math/vec3/u32/add.js.map +1 -0
  793. package/dist/math/vec3/u32/bitwise-and.d.ts +2 -0
  794. package/dist/math/vec3/u32/bitwise-and.js +7 -0
  795. package/dist/math/vec3/u32/bitwise-and.js.map +1 -0
  796. package/dist/math/vec3/u32/bitwise-not.d.ts +2 -0
  797. package/dist/math/vec3/u32/bitwise-not.js +3 -0
  798. package/dist/math/vec3/u32/bitwise-not.js.map +1 -0
  799. package/dist/math/vec3/u32/bitwise-or.d.ts +2 -0
  800. package/dist/math/vec3/u32/bitwise-or.js +7 -0
  801. package/dist/math/vec3/u32/bitwise-or.js.map +1 -0
  802. package/dist/math/vec3/u32/bitwise-xor.d.ts +2 -0
  803. package/dist/math/vec3/u32/bitwise-xor.js +7 -0
  804. package/dist/math/vec3/u32/bitwise-xor.js.map +1 -0
  805. package/dist/math/vec3/u32/clamp.d.ts +2 -0
  806. package/dist/math/vec3/u32/clamp.js +5 -0
  807. package/dist/math/vec3/u32/clamp.js.map +1 -0
  808. package/dist/math/vec3/u32/count-leading-zeros.d.ts +2 -0
  809. package/dist/math/vec3/u32/count-leading-zeros.js +8 -0
  810. package/dist/math/vec3/u32/count-leading-zeros.js.map +1 -0
  811. package/dist/math/vec3/u32/count-one-bits.d.ts +2 -0
  812. package/dist/math/vec3/u32/count-one-bits.js +8 -0
  813. package/dist/math/vec3/u32/count-one-bits.js.map +1 -0
  814. package/dist/math/vec3/u32/count-trailing-zeros.d.ts +2 -0
  815. package/dist/math/vec3/u32/count-trailing-zeros.js +8 -0
  816. package/dist/math/vec3/u32/count-trailing-zeros.js.map +1 -0
  817. package/dist/math/vec3/u32/equals.d.ts +2 -0
  818. package/dist/math/vec3/u32/equals.js +3 -0
  819. package/dist/math/vec3/u32/equals.js.map +1 -0
  820. package/dist/math/vec3/u32/max.d.ts +2 -0
  821. package/dist/math/vec3/u32/max.js +7 -0
  822. package/dist/math/vec3/u32/max.js.map +1 -0
  823. package/dist/math/vec3/u32/min.d.ts +2 -0
  824. package/dist/math/vec3/u32/min.js +7 -0
  825. package/dist/math/vec3/u32/min.js.map +1 -0
  826. package/dist/math/vec3/u32/multiply.d.ts +2 -0
  827. package/dist/math/vec3/u32/multiply.js +7 -0
  828. package/dist/math/vec3/u32/multiply.js.map +1 -0
  829. package/dist/math/vec3/u32/negate.d.ts +2 -0
  830. package/dist/math/vec3/u32/negate.js +3 -0
  831. package/dist/math/vec3/u32/negate.js.map +1 -0
  832. package/dist/math/vec3/u32/one.d.ts +2 -0
  833. package/dist/math/vec3/u32/one.js +3 -0
  834. package/dist/math/vec3/u32/one.js.map +1 -0
  835. package/dist/math/vec3/u32/public.d.ts +22 -1
  836. package/dist/math/vec3/u32/public.js +22 -1
  837. package/dist/math/vec3/u32/public.js.map +1 -1
  838. package/dist/math/vec3/u32/reverse-bits.d.ts +2 -0
  839. package/dist/math/vec3/u32/reverse-bits.js +8 -0
  840. package/dist/math/vec3/u32/reverse-bits.js.map +1 -0
  841. package/dist/math/vec3/u32/scale.d.ts +2 -0
  842. package/dist/math/vec3/u32/scale.js +7 -0
  843. package/dist/math/vec3/u32/scale.js.map +1 -0
  844. package/dist/math/vec3/u32/shift-left.d.ts +2 -0
  845. package/dist/math/vec3/u32/shift-left.js +7 -0
  846. package/dist/math/vec3/u32/shift-left.js.map +1 -0
  847. package/dist/math/vec3/u32/shift-right.d.ts +2 -0
  848. package/dist/math/vec3/u32/shift-right.js +8 -0
  849. package/dist/math/vec3/u32/shift-right.js.map +1 -0
  850. package/dist/math/vec3/u32/subtract.d.ts +2 -0
  851. package/dist/math/vec3/u32/subtract.js +7 -0
  852. package/dist/math/vec3/u32/subtract.js.map +1 -0
  853. package/dist/math/vec3/u32/volume.d.ts +2 -0
  854. package/dist/math/vec3/u32/volume.js +3 -0
  855. package/dist/math/vec3/u32/volume.js.map +1 -0
  856. package/dist/math/vec3/u32/zero.d.ts +2 -0
  857. package/dist/math/vec3/u32/zero.js +3 -0
  858. package/dist/math/vec3/u32/zero.js.map +1 -0
  859. package/dist/math/vec4/f32/abs.d.ts +2 -0
  860. package/dist/math/vec4/f32/abs.js +3 -0
  861. package/dist/math/vec4/f32/abs.js.map +1 -0
  862. package/dist/math/vec4/f32/acos.d.ts +2 -0
  863. package/dist/math/vec4/f32/acos.js +3 -0
  864. package/dist/math/vec4/f32/acos.js.map +1 -0
  865. package/dist/math/vec4/f32/acosh.d.ts +2 -0
  866. package/dist/math/vec4/f32/acosh.js +3 -0
  867. package/dist/math/vec4/f32/acosh.js.map +1 -0
  868. package/dist/math/vec4/f32/add.d.ts +2 -0
  869. package/dist/math/vec4/f32/add.js +8 -0
  870. package/dist/math/vec4/f32/add.js.map +1 -0
  871. package/dist/math/vec4/f32/asin.d.ts +2 -0
  872. package/dist/math/vec4/f32/asin.js +3 -0
  873. package/dist/math/vec4/f32/asin.js.map +1 -0
  874. package/dist/math/vec4/f32/asinh.d.ts +2 -0
  875. package/dist/math/vec4/f32/asinh.js +3 -0
  876. package/dist/math/vec4/f32/asinh.js.map +1 -0
  877. package/dist/math/vec4/f32/atan.d.ts +2 -0
  878. package/dist/math/vec4/f32/atan.js +3 -0
  879. package/dist/math/vec4/f32/atan.js.map +1 -0
  880. package/dist/math/vec4/f32/atanh.d.ts +2 -0
  881. package/dist/math/vec4/f32/atanh.js +3 -0
  882. package/dist/math/vec4/f32/atanh.js.map +1 -0
  883. package/dist/math/vec4/f32/ceil.d.ts +2 -0
  884. package/dist/math/vec4/f32/ceil.js +3 -0
  885. package/dist/math/vec4/f32/ceil.js.map +1 -0
  886. package/dist/math/vec4/f32/clamp.d.ts +2 -0
  887. package/dist/math/vec4/f32/clamp.js +5 -0
  888. package/dist/math/vec4/f32/clamp.js.map +1 -0
  889. package/dist/math/vec4/f32/cos.d.ts +2 -0
  890. package/dist/math/vec4/f32/cos.js +3 -0
  891. package/dist/math/vec4/f32/cos.js.map +1 -0
  892. package/dist/math/vec4/f32/cosh.d.ts +2 -0
  893. package/dist/math/vec4/f32/cosh.js +3 -0
  894. package/dist/math/vec4/f32/cosh.js.map +1 -0
  895. package/dist/math/vec4/f32/distance.d.ts +2 -0
  896. package/dist/math/vec4/f32/distance.js +5 -0
  897. package/dist/math/vec4/f32/distance.js.map +1 -0
  898. package/dist/math/vec4/f32/dot.d.ts +2 -0
  899. package/dist/math/vec4/f32/dot.js +3 -0
  900. package/dist/math/vec4/f32/dot.js.map +1 -0
  901. package/dist/math/vec4/f32/exp.d.ts +2 -0
  902. package/dist/math/vec4/f32/exp.js +3 -0
  903. package/dist/math/vec4/f32/exp.js.map +1 -0
  904. package/dist/math/vec4/f32/exp2.d.ts +2 -0
  905. package/dist/math/vec4/f32/exp2.js +3 -0
  906. package/dist/math/vec4/f32/exp2.js.map +1 -0
  907. package/dist/math/vec4/f32/faceforward.d.ts +2 -0
  908. package/dist/math/vec4/f32/faceforward.js +5 -0
  909. package/dist/math/vec4/f32/faceforward.js.map +1 -0
  910. package/dist/math/vec4/f32/floor.d.ts +2 -0
  911. package/dist/math/vec4/f32/floor.js +3 -0
  912. package/dist/math/vec4/f32/floor.js.map +1 -0
  913. package/dist/math/vec4/f32/fract.d.ts +2 -0
  914. package/dist/math/vec4/f32/fract.js +8 -0
  915. package/dist/math/vec4/f32/fract.js.map +1 -0
  916. package/dist/math/vec4/f32/length.d.ts +2 -0
  917. package/dist/math/vec4/f32/length.js +3 -0
  918. package/dist/math/vec4/f32/length.js.map +1 -0
  919. package/dist/math/vec4/f32/log.d.ts +2 -0
  920. package/dist/math/vec4/f32/log.js +3 -0
  921. package/dist/math/vec4/f32/log.js.map +1 -0
  922. package/dist/math/vec4/f32/log2.d.ts +2 -0
  923. package/dist/math/vec4/f32/log2.js +3 -0
  924. package/dist/math/vec4/f32/log2.js.map +1 -0
  925. package/dist/math/vec4/f32/max.d.ts +2 -0
  926. package/dist/math/vec4/f32/max.js +8 -0
  927. package/dist/math/vec4/f32/max.js.map +1 -0
  928. package/dist/math/vec4/f32/min.d.ts +2 -0
  929. package/dist/math/vec4/f32/min.js +8 -0
  930. package/dist/math/vec4/f32/min.js.map +1 -0
  931. package/dist/math/vec4/f32/mix.d.ts +2 -0
  932. package/dist/math/vec4/f32/mix.js +8 -0
  933. package/dist/math/vec4/f32/mix.js.map +1 -0
  934. package/dist/math/vec4/f32/mod.d.ts +2 -0
  935. package/dist/math/vec4/f32/mod.js +8 -0
  936. package/dist/math/vec4/f32/mod.js.map +1 -0
  937. package/dist/math/vec4/f32/modf.d.ts +5 -0
  938. package/dist/math/vec4/f32/modf.js +6 -0
  939. package/dist/math/vec4/f32/modf.js.map +1 -0
  940. package/dist/math/vec4/f32/multiply.d.ts +2 -0
  941. package/dist/math/vec4/f32/multiply.js +8 -0
  942. package/dist/math/vec4/f32/multiply.js.map +1 -0
  943. package/dist/math/vec4/f32/negate.d.ts +2 -0
  944. package/dist/math/vec4/f32/negate.js +3 -0
  945. package/dist/math/vec4/f32/negate.js.map +1 -0
  946. package/dist/math/vec4/f32/normalize.d.ts +2 -0
  947. package/dist/math/vec4/f32/normalize.js +8 -0
  948. package/dist/math/vec4/f32/normalize.js.map +1 -0
  949. package/dist/math/vec4/f32/pow.d.ts +2 -0
  950. package/dist/math/vec4/f32/pow.js +8 -0
  951. package/dist/math/vec4/f32/pow.js.map +1 -0
  952. package/dist/math/vec4/f32/public.d.ts +45 -1
  953. package/dist/math/vec4/f32/public.js +45 -1
  954. package/dist/math/vec4/f32/public.js.map +1 -1
  955. package/dist/math/vec4/f32/reflect.d.ts +2 -0
  956. package/dist/math/vec4/f32/reflect.js +9 -0
  957. package/dist/math/vec4/f32/reflect.js.map +1 -0
  958. package/dist/math/vec4/f32/refract.d.ts +2 -0
  959. package/dist/math/vec4/f32/refract.js +14 -0
  960. package/dist/math/vec4/f32/refract.js.map +1 -0
  961. package/dist/math/vec4/f32/round.d.ts +2 -0
  962. package/dist/math/vec4/f32/round.js +3 -0
  963. package/dist/math/vec4/f32/round.js.map +1 -0
  964. package/dist/math/vec4/f32/scale.d.ts +2 -0
  965. package/dist/math/vec4/f32/scale.js +3 -0
  966. package/dist/math/vec4/f32/scale.js.map +1 -0
  967. package/dist/math/vec4/f32/sign.d.ts +2 -0
  968. package/dist/math/vec4/f32/sign.js +3 -0
  969. package/dist/math/vec4/f32/sign.js.map +1 -0
  970. package/dist/math/vec4/f32/sin.d.ts +2 -0
  971. package/dist/math/vec4/f32/sin.js +3 -0
  972. package/dist/math/vec4/f32/sin.js.map +1 -0
  973. package/dist/math/vec4/f32/sinh.d.ts +2 -0
  974. package/dist/math/vec4/f32/sinh.js +3 -0
  975. package/dist/math/vec4/f32/sinh.js.map +1 -0
  976. package/dist/math/vec4/f32/smoothstep.d.ts +2 -0
  977. package/dist/math/vec4/f32/smoothstep.js +14 -0
  978. package/dist/math/vec4/f32/smoothstep.js.map +1 -0
  979. package/dist/math/vec4/f32/sqrt.d.ts +2 -0
  980. package/dist/math/vec4/f32/sqrt.js +3 -0
  981. package/dist/math/vec4/f32/sqrt.js.map +1 -0
  982. package/dist/math/vec4/f32/step.d.ts +2 -0
  983. package/dist/math/vec4/f32/step.js +8 -0
  984. package/dist/math/vec4/f32/step.js.map +1 -0
  985. package/dist/math/vec4/f32/subtract.d.ts +2 -0
  986. package/dist/math/vec4/f32/subtract.js +8 -0
  987. package/dist/math/vec4/f32/subtract.js.map +1 -0
  988. package/dist/math/vec4/f32/tan.d.ts +2 -0
  989. package/dist/math/vec4/f32/tan.js +3 -0
  990. package/dist/math/vec4/f32/tan.js.map +1 -0
  991. package/dist/math/vec4/f32/tanh.d.ts +2 -0
  992. package/dist/math/vec4/f32/tanh.js +3 -0
  993. package/dist/math/vec4/f32/tanh.js.map +1 -0
  994. package/dist/math/vec4/f32/trunc.d.ts +2 -0
  995. package/dist/math/vec4/f32/trunc.js +3 -0
  996. package/dist/math/vec4/f32/trunc.js.map +1 -0
  997. package/dist/math/vec4/i32/abs.d.ts +2 -0
  998. package/dist/math/vec4/i32/abs.js +3 -0
  999. package/dist/math/vec4/i32/abs.js.map +1 -0
  1000. package/dist/math/vec4/i32/add.d.ts +2 -0
  1001. package/dist/math/vec4/i32/add.js +8 -0
  1002. package/dist/math/vec4/i32/add.js.map +1 -0
  1003. package/dist/math/vec4/i32/bitwise-and.d.ts +2 -0
  1004. package/dist/math/vec4/i32/bitwise-and.js +8 -0
  1005. package/dist/math/vec4/i32/bitwise-and.js.map +1 -0
  1006. package/dist/math/vec4/i32/bitwise-not.d.ts +2 -0
  1007. package/dist/math/vec4/i32/bitwise-not.js +3 -0
  1008. package/dist/math/vec4/i32/bitwise-not.js.map +1 -0
  1009. package/dist/math/vec4/i32/bitwise-or.d.ts +2 -0
  1010. package/dist/math/vec4/i32/bitwise-or.js +8 -0
  1011. package/dist/math/vec4/i32/bitwise-or.js.map +1 -0
  1012. package/dist/math/vec4/i32/bitwise-xor.d.ts +2 -0
  1013. package/dist/math/vec4/i32/bitwise-xor.js +8 -0
  1014. package/dist/math/vec4/i32/bitwise-xor.js.map +1 -0
  1015. package/dist/math/vec4/i32/clamp.d.ts +2 -0
  1016. package/dist/math/vec4/i32/clamp.js +5 -0
  1017. package/dist/math/vec4/i32/clamp.js.map +1 -0
  1018. package/dist/math/vec4/i32/count-leading-zeros.d.ts +2 -0
  1019. package/dist/math/vec4/i32/count-leading-zeros.js +9 -0
  1020. package/dist/math/vec4/i32/count-leading-zeros.js.map +1 -0
  1021. package/dist/math/vec4/i32/count-one-bits.d.ts +2 -0
  1022. package/dist/math/vec4/i32/count-one-bits.js +9 -0
  1023. package/dist/math/vec4/i32/count-one-bits.js.map +1 -0
  1024. package/dist/math/vec4/i32/count-trailing-zeros.d.ts +2 -0
  1025. package/dist/math/vec4/i32/count-trailing-zeros.js +9 -0
  1026. package/dist/math/vec4/i32/count-trailing-zeros.js.map +1 -0
  1027. package/dist/math/vec4/i32/equals.d.ts +2 -0
  1028. package/dist/math/vec4/i32/equals.js +3 -0
  1029. package/dist/math/vec4/i32/equals.js.map +1 -0
  1030. package/dist/math/vec4/i32/max.d.ts +2 -0
  1031. package/dist/math/vec4/i32/max.js +8 -0
  1032. package/dist/math/vec4/i32/max.js.map +1 -0
  1033. package/dist/math/vec4/i32/min.d.ts +2 -0
  1034. package/dist/math/vec4/i32/min.js +8 -0
  1035. package/dist/math/vec4/i32/min.js.map +1 -0
  1036. package/dist/math/vec4/i32/multiply.d.ts +2 -0
  1037. package/dist/math/vec4/i32/multiply.js +8 -0
  1038. package/dist/math/vec4/i32/multiply.js.map +1 -0
  1039. package/dist/math/vec4/i32/negate.d.ts +2 -0
  1040. package/dist/math/vec4/i32/negate.js +3 -0
  1041. package/dist/math/vec4/i32/negate.js.map +1 -0
  1042. package/dist/math/vec4/i32/one.d.ts +2 -0
  1043. package/dist/math/vec4/i32/one.js +3 -0
  1044. package/dist/math/vec4/i32/one.js.map +1 -0
  1045. package/dist/math/vec4/i32/public.d.ts +22 -1
  1046. package/dist/math/vec4/i32/public.js +22 -1
  1047. package/dist/math/vec4/i32/public.js.map +1 -1
  1048. package/dist/math/vec4/i32/reverse-bits.d.ts +2 -0
  1049. package/dist/math/vec4/i32/reverse-bits.js +9 -0
  1050. package/dist/math/vec4/i32/reverse-bits.js.map +1 -0
  1051. package/dist/math/vec4/i32/scale.d.ts +2 -0
  1052. package/dist/math/vec4/i32/scale.js +3 -0
  1053. package/dist/math/vec4/i32/scale.js.map +1 -0
  1054. package/dist/math/vec4/i32/shift-left.d.ts +2 -0
  1055. package/dist/math/vec4/i32/shift-left.js +3 -0
  1056. package/dist/math/vec4/i32/shift-left.js.map +1 -0
  1057. package/dist/math/vec4/i32/shift-right.d.ts +2 -0
  1058. package/dist/math/vec4/i32/shift-right.js +9 -0
  1059. package/dist/math/vec4/i32/shift-right.js.map +1 -0
  1060. package/dist/math/vec4/i32/subtract.d.ts +2 -0
  1061. package/dist/math/vec4/i32/subtract.js +8 -0
  1062. package/dist/math/vec4/i32/subtract.js.map +1 -0
  1063. package/dist/math/vec4/i32/zero.d.ts +2 -0
  1064. package/dist/math/vec4/i32/zero.js +3 -0
  1065. package/dist/math/vec4/i32/zero.js.map +1 -0
  1066. package/dist/math/vec4/public.d.ts +1 -1
  1067. package/dist/math/vec4/public.js +1 -1
  1068. package/dist/math/vec4/public.js.map +1 -1
  1069. package/dist/math/vec4/u32/add.d.ts +2 -0
  1070. package/dist/math/vec4/u32/add.js +8 -0
  1071. package/dist/math/vec4/u32/add.js.map +1 -0
  1072. package/dist/math/vec4/u32/bitwise-and.d.ts +2 -0
  1073. package/dist/math/vec4/u32/bitwise-and.js +8 -0
  1074. package/dist/math/vec4/u32/bitwise-and.js.map +1 -0
  1075. package/dist/math/vec4/u32/bitwise-not.d.ts +2 -0
  1076. package/dist/math/vec4/u32/bitwise-not.js +3 -0
  1077. package/dist/math/vec4/u32/bitwise-not.js.map +1 -0
  1078. package/dist/math/vec4/u32/bitwise-or.d.ts +2 -0
  1079. package/dist/math/vec4/u32/bitwise-or.js +8 -0
  1080. package/dist/math/vec4/u32/bitwise-or.js.map +1 -0
  1081. package/dist/math/vec4/u32/bitwise-xor.d.ts +2 -0
  1082. package/dist/math/vec4/u32/bitwise-xor.js +8 -0
  1083. package/dist/math/vec4/u32/bitwise-xor.js.map +1 -0
  1084. package/dist/math/vec4/u32/clamp.d.ts +2 -0
  1085. package/dist/math/vec4/u32/clamp.js +5 -0
  1086. package/dist/math/vec4/u32/clamp.js.map +1 -0
  1087. package/dist/math/vec4/u32/count-leading-zeros.d.ts +2 -0
  1088. package/dist/math/vec4/u32/count-leading-zeros.js +9 -0
  1089. package/dist/math/vec4/u32/count-leading-zeros.js.map +1 -0
  1090. package/dist/math/vec4/u32/count-one-bits.d.ts +2 -0
  1091. package/dist/math/vec4/u32/count-one-bits.js +9 -0
  1092. package/dist/math/vec4/u32/count-one-bits.js.map +1 -0
  1093. package/dist/math/vec4/u32/count-trailing-zeros.d.ts +2 -0
  1094. package/dist/math/vec4/u32/count-trailing-zeros.js +9 -0
  1095. package/dist/math/vec4/u32/count-trailing-zeros.js.map +1 -0
  1096. package/dist/math/vec4/u32/equals.d.ts +2 -0
  1097. package/dist/math/vec4/u32/equals.js +3 -0
  1098. package/dist/math/vec4/u32/equals.js.map +1 -0
  1099. package/dist/math/vec4/u32/max.d.ts +2 -0
  1100. package/dist/math/vec4/u32/max.js +8 -0
  1101. package/dist/math/vec4/u32/max.js.map +1 -0
  1102. package/dist/math/vec4/u32/min.d.ts +2 -0
  1103. package/dist/math/vec4/u32/min.js +8 -0
  1104. package/dist/math/vec4/u32/min.js.map +1 -0
  1105. package/dist/math/vec4/u32/multiply.d.ts +2 -0
  1106. package/dist/math/vec4/u32/multiply.js +8 -0
  1107. package/dist/math/vec4/u32/multiply.js.map +1 -0
  1108. package/dist/math/vec4/u32/negate.d.ts +2 -0
  1109. package/dist/math/vec4/u32/negate.js +3 -0
  1110. package/dist/math/vec4/u32/negate.js.map +1 -0
  1111. package/dist/math/vec4/u32/one.d.ts +2 -0
  1112. package/dist/math/vec4/u32/one.js +3 -0
  1113. package/dist/math/vec4/u32/one.js.map +1 -0
  1114. package/dist/math/vec4/u32/public.d.ts +21 -1
  1115. package/dist/math/vec4/u32/public.js +21 -1
  1116. package/dist/math/vec4/u32/public.js.map +1 -1
  1117. package/dist/math/vec4/u32/reverse-bits.d.ts +2 -0
  1118. package/dist/math/vec4/u32/reverse-bits.js +9 -0
  1119. package/dist/math/vec4/u32/reverse-bits.js.map +1 -0
  1120. package/dist/math/vec4/u32/scale.d.ts +2 -0
  1121. package/dist/math/vec4/u32/scale.js +8 -0
  1122. package/dist/math/vec4/u32/scale.js.map +1 -0
  1123. package/dist/math/vec4/u32/shift-left.d.ts +2 -0
  1124. package/dist/math/vec4/u32/shift-left.js +8 -0
  1125. package/dist/math/vec4/u32/shift-left.js.map +1 -0
  1126. package/dist/math/vec4/u32/shift-right.d.ts +2 -0
  1127. package/dist/math/vec4/u32/shift-right.js +9 -0
  1128. package/dist/math/vec4/u32/shift-right.js.map +1 -0
  1129. package/dist/math/vec4/u32/subtract.d.ts +2 -0
  1130. package/dist/math/vec4/u32/subtract.js +8 -0
  1131. package/dist/math/vec4/u32/subtract.js.map +1 -0
  1132. package/dist/math/vec4/u32/zero.d.ts +2 -0
  1133. package/dist/math/vec4/u32/zero.js +3 -0
  1134. package/dist/math/vec4/u32/zero.js.map +1 -0
  1135. package/dist/schema/from-archetype.d.ts +7 -4
  1136. package/dist/schema/from-archetype.js +3 -3
  1137. package/dist/schema/from-archetype.js.map +1 -1
  1138. package/dist/schema/from-object-properties.d.ts +15 -0
  1139. package/dist/schema/from-object-properties.js +9 -0
  1140. package/dist/schema/from-object-properties.js.map +1 -0
  1141. package/dist/schema/from-object-properties.test.d.ts +1 -0
  1142. package/dist/schema/from-object-properties.test.js +49 -0
  1143. package/dist/schema/from-object-properties.test.js.map +1 -0
  1144. package/dist/schema/from-object-properties.type-test.d.ts +1 -0
  1145. package/dist/schema/from-object-properties.type-test.js +37 -0
  1146. package/dist/schema/from-object-properties.type-test.js.map +1 -0
  1147. package/dist/schema/from-struct-properties.d.ts +8 -0
  1148. package/dist/schema/from-struct-properties.js +7 -0
  1149. package/dist/schema/from-struct-properties.js.map +1 -0
  1150. package/dist/schema/from-struct-properties.test.d.ts +1 -0
  1151. package/dist/schema/from-struct-properties.test.js +28 -0
  1152. package/dist/schema/from-struct-properties.test.js.map +1 -0
  1153. package/dist/schema/from-struct-properties.type-test.d.ts +1 -0
  1154. package/dist/schema/from-struct-properties.type-test.js +11 -0
  1155. package/dist/schema/from-struct-properties.type-test.js.map +1 -0
  1156. package/dist/schema/guid/guid.performance.test.js +0 -3
  1157. package/dist/schema/guid/guid.performance.test.js.map +1 -1
  1158. package/dist/schema/public.d.ts +2 -1
  1159. package/dist/schema/public.js +2 -1
  1160. package/dist/schema/public.js.map +1 -1
  1161. package/dist/schema/schema.d.ts +2 -0
  1162. package/dist/service/service.d.ts +1 -1
  1163. package/dist/service/ui-service/from-service.d.ts +19 -3
  1164. package/dist/service/ui-service/from-service.transaction.type-test.d.ts +1 -0
  1165. package/dist/service/ui-service/from-service.transaction.type-test.js +14 -0
  1166. package/dist/service/ui-service/from-service.transaction.type-test.js.map +1 -0
  1167. package/dist/service/ui-service/is-valid.d.ts +5 -1
  1168. package/dist/tsconfig.tsbuildinfo +1 -1
  1169. package/dist/types/async-args-provider.d.ts +17 -0
  1170. package/dist/types/async-args-provider.js +3 -0
  1171. package/dist/types/async-args-provider.js.map +1 -0
  1172. package/dist/types/index.d.ts +1 -0
  1173. package/dist/types/index.js +1 -0
  1174. package/dist/types/index.js.map +1 -1
  1175. package/package.json +1 -1
  1176. package/references/data-lit/package.json +6 -2
  1177. package/references/data-lit/src/elements/database-element.ts +36 -1
  1178. package/references/data-lit/src/elements/database-element.type-test.ts +20 -0
  1179. package/references/data-lit/src/index.ts +1 -0
  1180. package/references/data-lit/src/testing/template/from.test.ts +47 -0
  1181. package/references/data-lit/src/testing/template/from.ts +86 -0
  1182. package/references/data-lit/src/testing/template/public.ts +3 -0
  1183. package/references/data-lit/src/testing/template/query.ts +27 -0
  1184. package/references/data-lit/src/testing/template/template.ts +4 -0
  1185. package/references/data-lit-tictactoe/package.json +6 -2
  1186. package/references/data-lit-tictactoe/src/features/main/data/board-cell/blank.ts +5 -0
  1187. package/references/data-lit-tictactoe/src/features/main/data/board-cell/board-cell.ts +5 -0
  1188. package/references/data-lit-tictactoe/src/{types/play-move-args → features/main/data/board-cell}/public.ts +1 -2
  1189. package/references/data-lit-tictactoe/src/{types → features/main/data}/board-state/board-state.ts +2 -2
  1190. package/references/data-lit-tictactoe/src/{types → features/main/data}/board-state/create-initial-board.ts +2 -2
  1191. package/references/data-lit-tictactoe/src/{types → features/main/data}/board-state/current-player.ts +2 -2
  1192. package/references/data-lit-tictactoe/src/{types → features/main/data}/board-state/derive-status.ts +4 -4
  1193. package/references/data-lit-tictactoe/src/features/main/data/board-state/from-marks.ts +11 -0
  1194. package/references/data-lit-tictactoe/src/{types → features/main/data}/board-state/get-move-count.ts +1 -1
  1195. package/references/data-lit-tictactoe/src/{types → features/main/data}/board-state/get-winner.ts +4 -4
  1196. package/references/data-lit-tictactoe/src/features/main/data/board-state/get-winning-line.ts +15 -0
  1197. package/references/data-lit-tictactoe/src/{types → features/main/data}/board-state/is-board-full.ts +1 -1
  1198. package/references/data-lit-tictactoe/src/{types → features/main/data}/board-state/is-game-over.ts +3 -3
  1199. package/references/data-lit-tictactoe/src/features/main/data/board-state/public.ts +13 -0
  1200. package/references/data-lit-tictactoe/src/{types → features/main/data}/board-state/schema.ts +3 -1
  1201. package/references/data-lit-tictactoe/src/{types → features/main/data}/board-state/set-board-cell.ts +3 -3
  1202. package/references/data-lit-tictactoe/src/features/main/data/cell-index/cell-index.ts +6 -0
  1203. package/references/data-lit-tictactoe/src/features/main/data/cell-index/public.ts +2 -0
  1204. package/references/data-lit-tictactoe/src/features/main/data/cell-index/schema.ts +9 -0
  1205. package/references/data-lit-tictactoe/src/features/main/data/game-status/game-status.ts +6 -0
  1206. package/references/data-lit-tictactoe/src/features/main/data/game-status/is-active.ts +6 -0
  1207. package/references/data-lit-tictactoe/src/features/main/data/game-status/public.ts +3 -0
  1208. package/references/data-lit-tictactoe/src/features/main/data/game-status/schema.ts +7 -0
  1209. package/references/data-lit-tictactoe/src/features/main/data/move-reject-reason/move-reject-reason.ts +6 -0
  1210. package/references/data-lit-tictactoe/src/features/main/data/move-reject-reason/public.ts +2 -0
  1211. package/references/data-lit-tictactoe/src/features/main/data/move-reject-reason/schema.ts +7 -0
  1212. package/references/data-lit-tictactoe/src/features/main/data/placed-mark/placed-mark.ts +6 -0
  1213. package/references/data-lit-tictactoe/src/features/main/data/placed-mark/public.ts +2 -0
  1214. package/references/data-lit-tictactoe/src/features/main/data/placed-mark/schema.ts +12 -0
  1215. package/references/data-lit-tictactoe/src/{types → features/main/data}/play-move-args/can-play-move.ts +9 -5
  1216. package/references/data-lit-tictactoe/src/{types → features/main/data}/play-move-args/play-move-args.ts +1 -1
  1217. package/references/data-lit-tictactoe/src/features/main/data/play-move-args/public.ts +3 -0
  1218. package/references/data-lit-tictactoe/src/{types → features/main/data}/player-mark/is.ts +2 -2
  1219. package/references/data-lit-tictactoe/src/{types → features/main/data}/player-mark/mark-color.ts +1 -1
  1220. package/references/data-lit-tictactoe/src/{types → features/main/data}/player-mark/opponent.ts +1 -1
  1221. package/references/data-lit-tictactoe/src/{types → features/main/data}/player-mark/player-mark.ts +2 -2
  1222. package/references/data-lit-tictactoe/src/features/main/data/player-mark/public.ts +7 -0
  1223. package/references/data-lit-tictactoe/src/{types → features/main/data}/player-mark/schema.ts +1 -1
  1224. package/references/data-lit-tictactoe/src/{types → features/main/data}/player-mark/values.ts +2 -2
  1225. package/references/data-lit-tictactoe/src/features/main/data/score/public.ts +2 -0
  1226. package/references/data-lit-tictactoe/src/features/main/data/score/schema.ts +9 -0
  1227. package/references/data-lit-tictactoe/src/features/main/data/score/score.ts +6 -0
  1228. package/references/data-lit-tictactoe/src/features/main/data/state/conformance-case.ts +13 -0
  1229. package/references/data-lit-tictactoe/src/features/main/data/state/expect-state-matches.ts +36 -0
  1230. package/references/data-lit-tictactoe/src/features/main/data/state/play-move.cases.ts +47 -0
  1231. package/references/data-lit-tictactoe/src/features/main/data/state/play-move.test.ts +13 -0
  1232. package/references/data-lit-tictactoe/src/features/main/data/state/play-move.ts +20 -0
  1233. package/references/data-lit-tictactoe/src/features/main/data/state/public.ts +3 -0
  1234. package/references/data-lit-tictactoe/src/features/main/data/state/restart-game.cases.ts +34 -0
  1235. package/references/data-lit-tictactoe/src/features/main/data/state/restart-game.test.ts +13 -0
  1236. package/references/data-lit-tictactoe/src/features/main/data/state/restart-game.ts +18 -0
  1237. package/references/data-lit-tictactoe/src/features/main/data/state/state.ts +15 -0
  1238. package/references/data-lit-tictactoe/src/features/main/data/winning-line/lines.ts +14 -0
  1239. package/references/data-lit-tictactoe/src/features/main/data/winning-line/public.ts +2 -0
  1240. package/references/data-lit-tictactoe/src/{types → features/main/data/winning-line}/winning-line.ts +1 -0
  1241. package/references/data-lit-tictactoe/src/features/main/ecs/computed-database/computed/board.ts +22 -0
  1242. package/references/data-lit-tictactoe/src/features/main/ecs/computed-database/computed/current-player.ts +12 -0
  1243. package/references/data-lit-tictactoe/src/features/main/ecs/computed-database/computed/index.ts +9 -0
  1244. package/references/data-lit-tictactoe/src/features/main/ecs/computed-database/computed/is-game-over.ts +10 -0
  1245. package/references/data-lit-tictactoe/src/features/main/ecs/computed-database/computed/move-count.ts +10 -0
  1246. package/references/data-lit-tictactoe/src/features/main/ecs/computed-database/computed/state.ts +29 -0
  1247. package/references/data-lit-tictactoe/src/features/main/ecs/computed-database/computed/status.ts +10 -0
  1248. package/references/data-lit-tictactoe/src/features/main/ecs/computed-database/computed/winner.ts +10 -0
  1249. package/references/data-lit-tictactoe/src/features/main/ecs/computed-database/computed/winning-line.ts +10 -0
  1250. package/references/data-lit-tictactoe/src/features/main/ecs/computed-database/computed-database.ts +18 -0
  1251. package/references/data-lit-tictactoe/src/features/main/ecs/conformance/create-store.ts +12 -0
  1252. package/references/data-lit-tictactoe/src/features/main/ecs/conformance/expect-conforms.ts +42 -0
  1253. package/references/data-lit-tictactoe/src/features/main/ecs/conformance/from-state.ts +31 -0
  1254. package/references/data-lit-tictactoe/src/features/main/ecs/conformance/projection.test.ts +38 -0
  1255. package/references/data-lit-tictactoe/src/features/main/ecs/conformance/to-state.ts +30 -0
  1256. package/references/data-lit-tictactoe/src/features/main/ecs/core-database/archetypes.ts +17 -0
  1257. package/references/data-lit-tictactoe/src/features/main/ecs/core-database/components.ts +11 -0
  1258. package/references/data-lit-tictactoe/src/features/main/ecs/core-database/core-database.ts +35 -0
  1259. package/references/data-lit-tictactoe/src/features/main/ecs/core-database/resources.ts +13 -0
  1260. package/references/data-lit-tictactoe/src/features/main/ecs/feature-database.ts +7 -0
  1261. package/references/data-lit-tictactoe/src/features/main/ecs/index-database/index-database.ts +16 -0
  1262. package/references/data-lit-tictactoe/src/features/main/ecs/index-database/indexes/by-cell.ts +9 -0
  1263. package/references/data-lit-tictactoe/src/features/main/ecs/index-database/indexes/index.ts +2 -0
  1264. package/references/data-lit-tictactoe/src/features/main/ecs/service-database/service-database.ts +26 -0
  1265. package/references/data-lit-tictactoe/src/{state/agent-plugin.ts → features/main/ecs/service-database/services/create-agent-service.ts} +14 -40
  1266. package/references/data-lit-tictactoe/src/features/main/ecs/service-database/services/create-root-agent-service.ts +26 -0
  1267. package/references/data-lit-tictactoe/src/features/main/ecs/service-database/services/index.ts +3 -0
  1268. package/references/data-lit-tictactoe/src/features/main/ecs/transaction-database/transaction-database.ts +18 -0
  1269. package/references/data-lit-tictactoe/src/features/main/ecs/transaction-database/transactions/index.ts +3 -0
  1270. package/references/data-lit-tictactoe/src/features/main/ecs/transaction-database/transactions/play-move.test.ts +20 -0
  1271. package/references/data-lit-tictactoe/src/features/main/ecs/transaction-database/transactions/play-move.ts +19 -0
  1272. package/references/data-lit-tictactoe/src/features/main/ecs/transaction-database/transactions/read-board.ts +20 -0
  1273. package/references/data-lit-tictactoe/src/features/main/ecs/transaction-database/transactions/restart-game.test.ts +19 -0
  1274. package/references/data-lit-tictactoe/src/features/main/ecs/transaction-database/transactions/restart-game.ts +25 -0
  1275. package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-app/tictactoe-app-element.ts +1 -1
  1276. package/references/data-lit-tictactoe/src/features/main/ui/tictactoe-app/tictactoe-app-presentation.test.ts +15 -0
  1277. package/references/data-lit-tictactoe/src/features/main/ui/tictactoe-app/tictactoe-app.ts +17 -0
  1278. package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-board/tictactoe-board-element.ts +1 -1
  1279. package/references/data-lit-tictactoe/src/features/main/ui/tictactoe-board/tictactoe-board-presentation.test.ts +16 -0
  1280. package/references/data-lit-tictactoe/src/features/main/ui/tictactoe-cell/observe-cell.ts +32 -0
  1281. package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-cell/tictactoe-cell-element.ts +8 -12
  1282. package/references/data-lit-tictactoe/src/features/main/ui/tictactoe-cell/tictactoe-cell-presentation.test.ts +41 -0
  1283. package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-cell/tictactoe-cell-presentation.ts +1 -1
  1284. package/references/data-lit-tictactoe/src/features/main/ui/tictactoe-element.ts +20 -0
  1285. package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-hud/tictactoe-hud-element.ts +8 -20
  1286. package/references/data-lit-tictactoe/src/features/main/ui/tictactoe-hud/tictactoe-hud-presentation.test.ts +45 -0
  1287. package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-hud/tictactoe-hud-presentation.ts +12 -2
  1288. package/references/data-lit-tictactoe/src/index.ts +14 -8
  1289. package/references/data-lit-tictactoe/src/main.ts +6 -6
  1290. package/references/data-react/package.json +3 -2
  1291. package/references/data-react-hello/package.json +2 -1
  1292. package/references/data-react-pixie/package.json +2 -1
  1293. package/references/data-lit-tictactoe/src/elements/tictactoe-app/tictactoe-app.ts +0 -18
  1294. package/references/data-lit-tictactoe/src/state/tictactoe-plugin.ts +0 -64
  1295. package/references/data-lit-tictactoe/src/tictactoe-element.ts +0 -15
  1296. package/references/data-lit-tictactoe/src/types/board-cell.ts +0 -5
  1297. package/references/data-lit-tictactoe/src/types/board-state/get-cell.ts +0 -7
  1298. package/references/data-lit-tictactoe/src/types/board-state/get-winning-line.ts +0 -25
  1299. package/references/data-lit-tictactoe/src/types/board-state/is-cell-playable.ts +0 -13
  1300. package/references/data-lit-tictactoe/src/types/board-state/is-cell-winning.ts +0 -9
  1301. package/references/data-lit-tictactoe/src/types/board-state/public.ts +0 -15
  1302. package/references/data-lit-tictactoe/src/types/game-status.ts +0 -3
  1303. package/references/data-lit-tictactoe/src/types/move-reject-reason.ts +0 -7
  1304. package/references/data-lit-tictactoe/src/types/player-mark/public.ts +0 -7
  1305. /package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-app/tictactoe-app-presentation.ts +0 -0
  1306. /package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-app/tictactoe-app.css.ts +0 -0
  1307. /package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-board/tictactoe-board-presentation.ts +0 -0
  1308. /package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-board/tictactoe-board.css.ts +0 -0
  1309. /package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-board/tictactoe-board.ts +0 -0
  1310. /package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-cell/tictactoe-cell.css.ts +0 -0
  1311. /package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-cell/tictactoe-cell.ts +0 -0
  1312. /package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-hud/tictactoe-hud.css.ts +0 -0
  1313. /package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-hud/tictactoe-hud.ts +0 -0
@@ -0,0 +1,17 @@
1
+ import type { ComponentSchemas } from "../../component-schemas.js";
2
+ /**
3
+ * Declare a feature's archetypes, validating every key against `components` and
4
+ * preserving each archetype's literal key tuple (via a `const` type parameter),
5
+ * so no per-archetype `as const satisfies` is needed. `components` is passed as
6
+ * a value (it is imported anyway) because TypeScript can't infer the tuple type
7
+ * while a component-type argument is also supplied explicitly.
8
+ *
9
+ * ```ts
10
+ * export const archetypes = Database.archetypes(components, {
11
+ * Todo: ["todo", "name", "complete", "order", "dragPosition", "assignees"],
12
+ * });
13
+ * ```
14
+ */
15
+ export declare function archetypes<C extends ComponentSchemas, const A extends {
16
+ readonly [name: string]: readonly (keyof C & string)[];
17
+ }>(_components: C, map: A): A;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Declare a feature's archetypes, validating every key against `components` and
3
+ * preserving each archetype's literal key tuple (via a `const` type parameter),
4
+ * so no per-archetype `as const satisfies` is needed. `components` is passed as
5
+ * a value (it is imported anyway) because TypeScript can't infer the tuple type
6
+ * while a component-type argument is also supplied explicitly.
7
+ *
8
+ * ```ts
9
+ * export const archetypes = Database.archetypes(components, {
10
+ * Todo: ["todo", "name", "complete", "order", "dragPosition", "assignees"],
11
+ * });
12
+ * ```
13
+ */
14
+ export function archetypes(_components, map) {
15
+ // `_components` carries the component type C for key validation; unused at runtime.
16
+ return map;
17
+ }
18
+ //# sourceMappingURL=archetypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"archetypes.js","sourceRoot":"","sources":["../../../../src/ecs/database/facets/archetypes.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,UAAU,CAGxB,WAAc,EAAE,GAAM;IACpB,oFAAoF;IACpF,OAAO,GAAG,CAAC;AACf,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { ComponentSchemas } from "../../component-schemas.js";
2
+ import type { Simplify } from "../../../types/index.js";
3
+ import { type ScopeGroups } from "./stamp-scopes.js";
4
+ /**
5
+ * Build a feature's component facet map from its schema scopes, stamping each
6
+ * scope's flags (see {@link ScopeGroups}). Declare only the scopes you use —
7
+ * a document-only feature is just `{ document: { … } }`. Component entries are
8
+ * any `Schema`; no `default` required (unlike `Database.resources`).
9
+ *
10
+ * ```ts
11
+ * export const components = Database.components({
12
+ * document: { mark: PlayerMark.schema },
13
+ * session: { dragPosition: DragPosition.schema },
14
+ * });
15
+ * ```
16
+ */
17
+ export declare function components<D extends ComponentSchemas = {}, S extends ComponentSchemas = {}, P extends ComponentSchemas = {}, Se extends ComponentSchemas = {}>(groups: ScopeGroups<D, S, P, Se>): Simplify<D & S & P & Se>;
@@ -0,0 +1,18 @@
1
+ import { stampScopes } from "./stamp-scopes.js";
2
+ /**
3
+ * Build a feature's component facet map from its schema scopes, stamping each
4
+ * scope's flags (see {@link ScopeGroups}). Declare only the scopes you use —
5
+ * a document-only feature is just `{ document: { … } }`. Component entries are
6
+ * any `Schema`; no `default` required (unlike `Database.resources`).
7
+ *
8
+ * ```ts
9
+ * export const components = Database.components({
10
+ * document: { mark: PlayerMark.schema },
11
+ * session: { dragPosition: DragPosition.schema },
12
+ * });
13
+ * ```
14
+ */
15
+ export function components(groups) {
16
+ return stampScopes(groups);
17
+ }
18
+ //# sourceMappingURL=components.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components.js","sourceRoot":"","sources":["../../../../src/ecs/database/facets/components.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAoB,MAAM,mBAAmB,CAAC;AAElE;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,UAAU,CAGxB,MAAgC;IAC9B,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC;AAC/B,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,54 @@
1
+ // © 2026 Adobe. MIT License. See /LICENSE for details.
2
+ import { describe, it, expect } from "vitest";
3
+ import { Database } from "../database.js";
4
+ describe("Database.components / resources / archetypes", () => {
5
+ const s = { type: "number" };
6
+ // Typed with a `default` in its type (not just `Schema`) so it qualifies as
7
+ // a ResourceSchema — resources typed as bare `Schema` are rejected by design.
8
+ const r = { type: "boolean", default: false };
9
+ it("components stamps each scope's flags and merges the groups", () => {
10
+ const c = Database.components({
11
+ document: { a: s },
12
+ settings: { b: s },
13
+ presence: { c: s },
14
+ session: { d: s },
15
+ });
16
+ expect(Object.keys(c)).toEqual(["a", "b", "c", "d"]);
17
+ expect(c.a).toMatchObject({ type: "number" }); // document: no flags
18
+ expect(c.b).toMatchObject({ nonShared: true });
19
+ expect(c.b.nonPersistent).toBeUndefined();
20
+ expect(c.c).toMatchObject({ nonPersistent: true });
21
+ expect(c.c.nonShared).toBeUndefined();
22
+ expect(c.d).toMatchObject({ nonPersistent: true, nonShared: true });
23
+ });
24
+ it("omitted scopes default to empty — a document-only feature needs just one key", () => {
25
+ const c = Database.components({ document: { a: s } });
26
+ expect(Object.keys(c)).toEqual(["a"]);
27
+ expect(c.a).toMatchObject({ type: "number" });
28
+ expect(c.a).not.toHaveProperty("nonShared");
29
+ });
30
+ it("does not mutate the input schemas", () => {
31
+ const doc = { a: s };
32
+ Database.components({ document: doc, settings: {}, presence: {}, session: {} });
33
+ expect(doc.a).toBe(s);
34
+ expect(s).not.toHaveProperty("nonShared");
35
+ });
36
+ it("resources requires a default (and applies scope flags)", () => {
37
+ const res = Database.resources({
38
+ document: {},
39
+ settings: { flag: r },
40
+ presence: {},
41
+ session: {},
42
+ });
43
+ expect(res.flag).toMatchObject({ default: false, nonShared: true });
44
+ });
45
+ it("archetypes validates keys against components and preserves tuples", () => {
46
+ const components = Database.components({
47
+ document: { mark: s, index: s },
48
+ settings: {}, presence: {}, session: {},
49
+ });
50
+ const a = Database.archetypes(components, { PlacedMark: ["mark", "index"] });
51
+ expect(a.PlacedMark).toEqual(["mark", "index"]);
52
+ });
53
+ });
54
+ //# sourceMappingURL=facets.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"facets.test.js","sourceRoot":"","sources":["../../../../src/ecs/database/facets/facets.test.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE9C,OAAO,EAAE,QAAQ,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AAO,EAAE,EAAE;SACd,CAAC,CAAC;QACH,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACxE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mEAAmE,EAAE,GAAG,EAAE;QACzE,MAAM,UAAU,GAAG,QAAQ,CAAC,UAAU,CAAC;YACnC,QAAQ,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE;YAC/B,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE;SAC1C,CAAC,CAAC;QACH,MAAM,CAAC,GAAG,QAAQ,CAAC,UAAU,CAAC,UAAU,EAAE,EAAE,UAAU,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;QAC7E,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;IACpD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { ResourceSchemas } from "../../resource-schemas.js";
2
+ import type { Simplify } from "../../../types/index.js";
3
+ import { type ScopeGroups } from "./stamp-scopes.js";
4
+ /**
5
+ * Build a feature's resource facet map from its schema scopes, stamping each
6
+ * scope's flags (see {@link ScopeGroups}). Declare only the scopes you use.
7
+ * Identical to `Database.components` except every entry must be a
8
+ * `ResourceSchema` (a `Schema` with a `default`) — a missing `default` is a
9
+ * compile error here, at the declaration site.
10
+ *
11
+ * ```ts
12
+ * export const resources = Database.resources({
13
+ * settings: { displayCompleted: Boolean.schema },
14
+ * });
15
+ * ```
16
+ */
17
+ export declare function resources<D extends ResourceSchemas = {}, S extends ResourceSchemas = {}, P extends ResourceSchemas = {}, Se extends ResourceSchemas = {}>(groups: ScopeGroups<D, S, P, Se>): Simplify<D & S & P & Se>;
@@ -0,0 +1,18 @@
1
+ import { stampScopes } from "./stamp-scopes.js";
2
+ /**
3
+ * Build a feature's resource facet map from its schema scopes, stamping each
4
+ * scope's flags (see {@link ScopeGroups}). Declare only the scopes you use.
5
+ * Identical to `Database.components` except every entry must be a
6
+ * `ResourceSchema` (a `Schema` with a `default`) — a missing `default` is a
7
+ * compile error here, at the declaration site.
8
+ *
9
+ * ```ts
10
+ * export const resources = Database.resources({
11
+ * settings: { displayCompleted: Boolean.schema },
12
+ * });
13
+ * ```
14
+ */
15
+ export function resources(groups) {
16
+ return stampScopes(groups);
17
+ }
18
+ //# sourceMappingURL=resources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resources.js","sourceRoot":"","sources":["../../../../src/ecs/database/facets/resources.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAoB,MAAM,mBAAmB,CAAC;AAElE;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,SAAS,CAGvB,MAAgC;IAC9B,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC;AAC/B,CAAC"}
@@ -0,0 +1,46 @@
1
+ import type { Schema } from "../../../schema/index.js";
2
+ import type { Simplify } from "../../../types/index.js";
3
+ type SchemaMap = {
4
+ readonly [key: string]: Schema;
5
+ };
6
+ /**
7
+ * The four schema scopes, grouped for a facet builder ({@link stampScopes},
8
+ * `Database.components`, `Database.resources`). Every scope is optional and
9
+ * defaults to empty — declare only the scopes a feature actually uses.
10
+ *
11
+ * State divides on two orthogonal axes — **scope** (shared with peers vs. local
12
+ * to this client) and **lifetime** (durable across reloads vs. ephemeral) — and
13
+ * each group stamps the flag pair for its quadrant.
14
+ */
15
+ export type ScopeGroups<D, S, P, Se> = {
16
+ /**
17
+ * **document** — shared + durable. The collaborative, serialized data model:
18
+ * replicated to every peer and saved to storage. The default home for
19
+ * feature state; carries no scope flags.
20
+ */
21
+ document?: D;
22
+ /**
23
+ * **settings** — local + durable. Per-device state that persists across
24
+ * reloads but is never sent to peers (e.g. a view toggle, theme, panel
25
+ * layout). Stamped `nonShared: true`.
26
+ */
27
+ settings?: S;
28
+ /**
29
+ * **presence** — shared + ephemeral. Live awareness replicated to peers but
30
+ * never saved (e.g. cursors, selections, "typing…"). Dies with the session.
31
+ * Stamped `nonPersistent: true`.
32
+ */
33
+ presence?: P;
34
+ /**
35
+ * **session** — local + ephemeral. Transient UI state that is neither saved
36
+ * nor shared (e.g. a drag offset, hover target, focus). Stamped both
37
+ * `nonPersistent: true` and `nonShared: true`.
38
+ */
39
+ session?: Se;
40
+ };
41
+ /**
42
+ * Merge the provided schema scopes into one flag-tagged map. Omitted scopes are
43
+ * empty. Shared by `Database.components` and `Database.resources`.
44
+ */
45
+ export declare function stampScopes<D extends SchemaMap, S extends SchemaMap, P extends SchemaMap, Se extends SchemaMap>(groups: ScopeGroups<D, S, P, Se>): Simplify<D & S & P & Se>;
46
+ export {};
@@ -0,0 +1,26 @@
1
+ // Copy a map with `flags` merged onto every schema, preserving the map type.
2
+ const stamp = (map, flags) => {
3
+ const out = {};
4
+ for (const [name, schema] of Object.entries(map)) {
5
+ out[name] = { ...schema, ...flags };
6
+ }
7
+ // Invariant: `out` has exactly `map`'s keys and Schema values — same shape as M.
8
+ return out;
9
+ };
10
+ /**
11
+ * Merge the provided schema scopes into one flag-tagged map. Omitted scopes are
12
+ * empty. Shared by `Database.components` and `Database.resources`.
13
+ */
14
+ export function stampScopes(groups) {
15
+ const merged = {
16
+ // document has no flags — pass schemas through by identity so a column
17
+ // shared across features (same data/ schema) still dedupes in combinePlugins.
18
+ ...(groups.document ?? {}),
19
+ ...stamp(groups.settings ?? {}, { nonShared: true }),
20
+ ...stamp(groups.presence ?? {}, { nonPersistent: true }),
21
+ ...stamp(groups.session ?? {}, { nonPersistent: true, nonShared: true }),
22
+ };
23
+ // Invariant: `merged` has exactly the keys of the provided groups.
24
+ return merged;
25
+ }
26
+ //# sourceMappingURL=stamp-scopes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stamp-scopes.js","sourceRoot":"","sources":["../../../../src/ecs/database/facets/stamp-scopes.ts"],"names":[],"mappings":"AA0CA,6EAA6E;AAC7E,MAAM,KAAK,GAAG,CAAsB,GAAM,EAAE,KAAsB,EAAK,EAAE;IACrE,MAAM,GAAG,GAA2B,EAAE,CAAC;IACvC,KAAK,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;QAC/C,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,EAAE,CAAC;IACxC,CAAC;IACD,iFAAiF;IACjF,OAAO,GAAQ,CAAC;AACpB,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,UAAU,WAAW,CAEzB,MAAgC;IAC9B,MAAM,MAAM,GAAG;QACX,uEAAuE;QACvE,8EAA8E;QAC9E,GAAG,CAAC,MAAM,CAAC,QAAQ,IAAI,EAAE,CAAC;QAC1B,GAAG,KAAK,CAAC,MAAM,CAAC,QAAQ,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;QACpD,GAAG,KAAK,CAAC,MAAM,CAAC,QAAQ,IAAI,EAAE,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;QACxD,GAAG,KAAK,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;KAC3E,CAAC;IACF,mEAAmE;IACnE,OAAO,MAAkC,CAAC;AAC9C,CAAC"}
@@ -7,7 +7,6 @@ export * from "./reconciling/reconciling-entry.js";
7
7
  export * from "./observed/create-observed-database.js";
8
8
  export * from "./observed/observed-database.js";
9
9
  export * from "./database.js";
10
- export * from "./observe-dependent-value.js";
11
10
  export * from "./transactional-store/index.js";
12
11
  export * from "./database-schema/index.js";
13
12
  export type { Undoable } from "./undoable.js";
@@ -8,7 +8,6 @@ export * from "./reconciling/reconciling-entry.js";
8
8
  export * from "./observed/create-observed-database.js";
9
9
  export * from "./observed/observed-database.js";
10
10
  export * from "./database.js";
11
- export * from "./observe-dependent-value.js";
12
11
  export * from "./transactional-store/index.js";
13
12
  export * from "./database-schema/index.js";
14
13
  export * from "./combine-plugins.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ecs/database/index.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,8CAA8C,CAAC;AAC7D,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAE3C,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ecs/database/index.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,wBAAwB,CAAC;AACvC,cAAc,8CAA8C,CAAC;AAC7D,cAAc,uCAAuC,CAAC;AACtD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,eAAe,CAAC;AAC9B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAE3C,cAAc,sBAAsB,CAAC"}
@@ -3,6 +3,13 @@ import { describe, expect, it, beforeEach } from "vitest";
3
3
  import { Database } from "./database.js";
4
4
  import { F32 } from "../../math/f32/index.js";
5
5
  import { Boolean } from "../../schema/index.js";
6
+ // Non-fatal perf indicator: warns on a super-linear ratio but never throws —
7
+ // wall-clock ratios are too noisy across machines to gate the suite on.
8
+ function warnIfExceeds(actual, limit, label) {
9
+ if (actual >= limit) {
10
+ console.warn(`[perf] ${label}: ratio ${actual.toFixed(2)} ≥ ${limit.toFixed(2)} — possible regression`);
11
+ }
12
+ }
6
13
  describe("observeSelectEntities Performance Tests", () => {
7
14
  let database;
8
15
  function createTestDatabase() {
@@ -119,10 +126,11 @@ describe("observeSelectEntities Performance Tests", () => {
119
126
  console.log("One or more update times measured as 0ms; skipping ratio checks due to timer precision limits.");
120
127
  return;
121
128
  }
122
- expect(timeRatio1).toBeLessThan(sizeRatio1 * 0.1);
123
- expect(timeRatio2).toBeLessThan(sizeRatio2 * 0.1);
124
- const totalTimeRatio = updateTimes[2] / updateTimes[0];
125
- expect(totalTimeRatio).toBeLessThan(5);
129
+ // Indicators only — wall-clock ratios flake across machines, so a
130
+ // super-linear result warns but never fails the suite.
131
+ warnIfExceeds(timeRatio1, sizeRatio1 * 0.1, "update time vs 100x dataset");
132
+ warnIfExceeds(timeRatio2, sizeRatio2 * 0.1, "update time vs 10x dataset");
133
+ warnIfExceeds(updateTimes[2] / updateTimes[0], 5, "update time 10→10000 entities");
126
134
  });
127
135
  it("should not notify observer when update does not affect result set", async () => {
128
136
  const { testEntity } = createTestData(1000);
@@ -1 +1 @@
1
- {"version":3,"file":"observe-select-entities.performance.test.js","sourceRoot":"","sources":["../../../src/ecs/database/observe-select-entities.performance.test.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,QAAQ,CAAC,yCAAyC,EAAE,GAAG,EAAE;IACrD,IAAI,QAA+C,CA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,OAAO,EAAE,CAAC;YACxB,MAAM,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAClC,iDAAiD;YACjD,QAAQ,CAAC,YAAY,CAAC,YAAY,CAAC;gBAC/B,MAAM,EAAE,UAAU;gBAClB,MAAM,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE;aAC1B,CAAC,CAAC;YACH,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC;YACxB,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC;YACxB,MAAM,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAClC,WAAW,EAAE,CAAC;QAClB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"observe-select-entities.performance.test.js","sourceRoot":"","sources":["../../../src/ecs/database/observe-select-entities.performance.test.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,6EAA6E;AAC7E,wEAAwE;AACxE,SAAS,aAAa,CAAC,MAAc,EAAE,KAAa,EAAE,KAAa;IAC/D,IAAI,MAAM,IAAI,KAAK,EAAE,CAAC;QAClB,OAAO,CAAC,IAAI,CAAC,UAAU,KAAK,WAAW,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC;IAC5G,CAAC;AACL,CAAC;AAED,QAAQ,CAAC,yCAAyC,EAAE,GAAG,EAAE;IACrD,IAAI,QAA+C,CAAC;IAEpD,SAAS,kBAAkB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AiB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAClC,iDAAiD;YACjD,QAAQ,CAAC,YAAY,CAAC,YAAY,CAAC;gBAC/B,MAAM,EAAE,UAAU;gBAClB,MAAM,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE;aAC1B,CAAC,CAAC;YACH,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC;YACxB,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC;YACxB,MAAM,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAClC,WAAW,EAAE,CAAC;QAClB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -3,9 +3,9 @@ import { Components } from "../../store/components.js";
3
3
  import { ResourceComponents } from "../../store/resource-components.js";
4
4
  import { ArchetypeComponents } from "../../store/archetype-components.js";
5
5
  import { StringKeyof } from "../../../types/types.js";
6
- import { ReadonlyStore } from "../../store/index.js";
6
+ import { ReadonlyStore, Store } from "../../store/index.js";
7
7
  import { Observe } from "../../../observe/index.js";
8
- import { TransactionContext, TransactionResult } from "../transactional-store/index.js";
8
+ import { TransactionResult } from "../transactional-store/index.js";
9
9
  import { RequiredComponents } from "../../required-components.js";
10
10
  import { Entity } from "../../entity/entity.js";
11
11
  import { EntityReadValues } from "../../store/core/index.js";
@@ -32,7 +32,7 @@ export interface ObservedDatabase<C extends Components, R extends ResourceCompon
32
32
  derive<I extends Record<string, Observe<unknown>>, T>(inputs: I, compute: (db: any, inputs: {
33
33
  readonly [K in keyof I]: I[K] extends Observe<infer U> ? U : never;
34
34
  }) => T): Observe<T>;
35
- readonly execute: (handler: (ctx: TransactionContext<C, R, A>) => Entity | void, options?: {
35
+ readonly execute: (handler: (ctx: Store<C, R, A>) => Entity | void, options?: {
36
36
  transient?: boolean;
37
37
  userId?: number | string;
38
38
  }) => TransactionResult<C>;
@@ -20,7 +20,7 @@ import { ReconcilingEntryOps } from "./reconciling-entry.js";
20
20
  export function createRebaseReplayApplier(...args) {
21
21
  const [execute, getTransaction] = args;
22
22
  // The applier is a type-erased layer: `getTransaction` hands back
23
- // transactions typed over `TransactionContext<any, any, any>`, so the
23
+ // transactions typed over `Store<any, any, any>`, so the
24
24
  // entries it stores are erased too. Pinning the generics to `any` keeps the
25
25
  // stored `transaction` assignable from `getTransaction`'s result without a
26
26
  // per-assignment cast.
@@ -1 +1 @@
1
- {"version":3,"file":"create-rebase-replay-applier.js","sourceRoot":"","sources":["../../../../src/ecs/database/reconciling/create-rebase-replay-applier.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAG7E,OAAO,EAAoB,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAG/E;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,yBAAyB,CACrC,GAAG,IAA4C;IAQ/C,MAAM,CAAC,OAAO,EAAE,cAAc,CAAC,GAAG,IAAI,CAAC;IACvC,kEAAkE;IAClE,sEAAsE;IACtE,4EAA4E;IAC5E,2EAA2E;IAC3E,uBAAuB;IACvB,MAAM,kBAAkB,GAAsC,EAAE,CAAC;IAEjE,MAAM,mBAAmB,GAAG,CAAC,KAAuB,EAAE,EAAE;QACpD,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;YACf,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,KAAK,CAAC,MAAO,CAAC,IAAI,CAAC,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;YAChG,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC;QAC7B,CAAC;IACL,CAAC,CAAC;IAEF,MAAM,qBAAqB,GAAG,GAAG,EAAE;QAC/B,KAAK,IAAI,CAAC,GAAG,kBAAkB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,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B,EAAE,CAAC;IAC1B,CAAC,CAAC;IAEF,MAAM,OAAO,GAAG,GAAG,EAAE;QACjB,kBAAkB,CAAC,MAAM,GAAG,CAAC,CAAC;IAClC,CAAC,CAAC;IAEF,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,CAAC;AAClF,CAAC"}
1
+ {"version":3,"file":"create-rebase-replay-applier.js","sourceRoot":"","sources":["../../../../src/ecs/database/reconciling/create-rebase-replay-applier.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAG7E,OAAO,EAAoB,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAG/E;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,yBAAyB,CACrC,GAAG,IAA4C;IAQ/C,MAAM,CAAC,OAAO,EAAE,cAAc,CAAC,GAAG,IAAI,CAAC;IACvC,kEAAkE;IAClE,yDAAyD;IACzD,4EAA4E;IAC5E,2EAA2E;IAC3E,uBAAuB;IACvB,MAAM,kBAAkB,GAAsC,EAAE,CAAC;IAEjE,MAAM,mBAAmB,GAAG,CAAC,KAAuB,EAAE,EAAE;QACpD,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;YACf,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,KAAK,CAAC,MAAO,CAAC,IAAI,CAAC,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;YAChG,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC;QAC7B,CAAC;IACL,CAAC,CAAC;IAEF,MAAM,qBAAqB,GAAG,GAAG,EAAE;QAC/B,KAAK,IAAI,CAAC,GAAG,kBAAkB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;YACtD,mBAAmB,CAAC,kBA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EF,MAAM,OAAO,GAAG,GAAG,EAAE;QACjB,kBAAkB,CAAC,MAAM,GAAG,CAAC,CAAC;IAClC,CAAC,CAAC;IAEF,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,CAAC;AAClF,CAAC"}
@@ -2,7 +2,8 @@ import { StringKeyof } from "../../../types/types.js";
2
2
  import { Components } from "../../store/components.js";
3
3
  import { ResourceComponents } from "../../store/resource-components.js";
4
4
  import { ArchetypeComponents } from "../../store/archetype-components.js";
5
- import { TransactionContext, TransactionResult } from "../transactional-store/index.js";
5
+ import { Store } from "../../store/index.js";
6
+ import { TransactionResult } from "../transactional-store/index.js";
6
7
  import { Entity } from "../../entity/entity.js";
7
8
  export type ReconcilingEntry<C extends Components = Components, R extends ResourceComponents = ResourceComponents, A extends ArchetypeComponents<StringKeyof<C>> = ArchetypeComponents<StringKeyof<C>>> = {
8
9
  readonly id: number;
@@ -14,7 +15,7 @@ export type ReconcilingEntry<C extends Components = Components, R extends Resour
14
15
  */
15
16
  readonly userId?: number | string;
16
17
  readonly name: string;
17
- readonly transaction: (ctx: TransactionContext<C, R, A>, args: unknown) => void | Entity;
18
+ readonly transaction: (ctx: Store<C, R, A>, args: unknown) => void | Entity;
18
19
  readonly args: unknown;
19
20
  readonly time: number;
20
21
  result?: TransactionResult<C>;
@@ -1 +1 @@
1
- {"version":3,"file":"reconciling-entry.js","sourceRoot":"","sources":["../../../../src/ecs/database/reconciling/reconciling-entry.ts"],"names":[],"mappings":"AAAA,uDAAuD;AA6BvD,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAE/B,OAAO,CAIL,CAA4B,EAAE,CAA4B;QACxD,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QACpD,IAAI,OAAO,KAAK,CAAC,EAAE,CAAC;YAChB,OAAO,OAAO,CAAC;QACnB,CAAC;QACD,MAAM,MAAM,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC;QAC3B,IAAI,MAAM,KAAK,CAAC,EAAE,CAAC;YACf,OAAO,MAAM,CAAC;QAClB,CAAC;QACD,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;YAClB,OAAO,CAAC,CAAC,CAAC;QACd,CAAC;QACD,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;YAClB,OAAO,CAAC,CAAC;QACb,CAAC;QACD,OAAO,CAAC,CAAC;IACb,CAAC;IACD,eAAe,CAIb,OAAoC,EAAE,KAAgC;QACpE,IAAI,GAAG,GAAG,CAAC,CAAC;QACZ,IAAI,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC;QAC1B,OAAO,GAAG,GAAG,IAAI,EAAE,CAAC;YAChB,MAAM,GAAG,GAAG,CAAC,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;YAC9B,IAAI,mBAAmB,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;gBACvD,IAAI,GAAG,GAAG,CAAC;YACf,CAAC;iBAAM,CAAC;gBACJ,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC;YAClB,CAAC;QACL,CAAC;QACD,OAAO,GAAG,CAAC;IACf,CAAC;CACJ,CAAC"}
1
+ {"version":3,"file":"reconciling-entry.js","sourceRoot":"","sources":["../../../../src/ecs/database/reconciling/reconciling-entry.ts"],"names":[],"mappings":"AAAA,uDAAuD;AA8BvD,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAE/B,OAAO,CAIL,CAA4B,EAAE,CAA4B;QACxD,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QACpD,IAAI,OAAO,KAAK,CAAC,EAAE,CAAC;YAChB,OAAO,OAAO,CAAC;QACnB,CAAC;QACD,MAAM,MAAM,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC;QAC3B,IAAI,MAAM,KAAK,CAAC,EAAE,CAAC;YACf,OAAO,MAAM,CAAC;QAClB,CAAC;QACD,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;YAClB,OAAO,CAAC,CAAC,CAAC;QACd,CAAC;QACD,IAAI,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;YAClB,OAAO,CAAC,CAAC;QACb,CAAC;QACD,OAAO,CAAC,CAAC;IACb,CAAC;IACD,eAAe,CAIb,OAAoC,EAAE,KAAgC;QACpE,IAAI,GAAG,GAAG,CAAC,CAAC;QACZ,IAAI,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC;QAC1B,OAAO,GAAG,GAAG,IAAI,EAAE,CAAC;YAChB,MAAM,GAAG,GAAG,CAAC,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;YAC9B,IAAI,mBAAmB,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;gBACvD,IAAI,GAAG,GAAG,CAAC;YACf,CAAC;iBAAM,CAAC;gBACJ,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC;YAClB,CAAC;QACL,CAAC;QACD,OAAO,GAAG,CAAC;IACf,CAAC;CACJ,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { Database } from "./database.js";
2
+ /**
3
+ * Re-view a created database as its **system surface** — the same
4
+ * `Database & { store }` type a `SystemDeclaration.create` receives — exposing
5
+ * the writable `store` (and writable `services`).
6
+ *
7
+ * Identity at runtime: `createDatabase` always attaches the store, so this only
8
+ * reveals it to the type system. It is the widening twin of `UIService.restrict`
9
+ * (which narrows a full database to the read-only UI view). Direct `store`
10
+ * access does NOT flow through observable transactions — intended for systems,
11
+ * and for test-support (a conformance projection seeding the store directly).
12
+ *
13
+ * Cast-free by the same overload + broadened-impl shape `restrict` uses: the
14
+ * public overload returns the widened `ToSystemDatabase<P>`, which is assignable
15
+ * to the impl's plain `Database` return, so the identity body type-checks.
16
+ */
17
+ export declare function toSystemDatabase<P extends Database.Plugin>(db: Database.FromPlugin<P>): Database.Plugin.ToSystemDatabase<P>;
@@ -0,0 +1,5 @@
1
+ // © 2026 Adobe. MIT License. See /LICENSE for details.
2
+ export function toSystemDatabase(db) {
3
+ return db;
4
+ }
5
+ //# sourceMappingURL=to-system-database.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"to-system-database.js","sourceRoot":"","sources":["../../../src/ecs/database/to-system-database.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAsBvD,MAAM,UAAU,gBAAgB,CAC9B,EAAoD;IAEpD,OAAO,EAAE,CAAC;AACZ,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,22 @@
1
+ // © 2026 Adobe. MIT License. See /LICENSE for details.
2
+ import { describe, it, expect } from "vitest";
3
+ import { Database } from "./database.js";
4
+ describe("Database.toSystemDatabase", () => {
5
+ const plugin = Database.Plugin.create({
6
+ components: { value: { type: "number" }, tag: { type: "boolean" } },
7
+ resources: { count: { default: 0 } },
8
+ archetypes: { Thing: ["value", "tag"] },
9
+ });
10
+ it("is identity at runtime and exposes the writable store", () => {
11
+ const db = Database.create(plugin);
12
+ const sys = Database.toSystemDatabase(db);
13
+ // Same instance — purely a type-level re-view.
14
+ expect(sys).toBe(db);
15
+ // The store surface is now reachable and writable.
16
+ sys.store.resources.count = 5;
17
+ expect(sys.store.resources.count).toBe(5);
18
+ const entity = sys.store.archetypes.Thing.insert({ value: 1, tag: true });
19
+ expect(sys.store.read(entity, sys.store.archetypes.Thing)?.value).toBe(1);
20
+ });
21
+ });
22
+ //# sourceMappingURL=to-system-database.test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CAAC,CAAC;QAC1E,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC5E,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -1,6 +1,13 @@
1
1
  // © 2026 Adobe. MIT License. See /LICENSE for details.
2
2
  import { describe, it, expect } from "vitest";
3
3
  import { shouldCoalesceTransactions, coalesceTransactions, coalesceWriteOperations } from "./coalesce-actions.js";
4
+ // Non-fatal perf indicator: warns past budget but never throws — wall-clock
5
+ // timing flakes across machines and must not gate the suite.
6
+ const warnIfExceeds = (actual, limit, label) => {
7
+ if (actual >= limit) {
8
+ console.warn(`[perf] ${label}: ${actual.toFixed(2)} ≥ ${limit} — possible regression`);
9
+ }
10
+ };
4
11
  describe("shouldCoalesceTransactions", () => {
5
12
  it("should return true for actions with same coalesce values", () => {
6
13
  const previous = {
@@ -449,11 +456,13 @@ describe("coalesceWriteOperations performance", () => {
449
456
  entity: i,
450
457
  }));
451
458
  const start = performance.now();
452
- coalesceWriteOperations(ops);
459
+ const result = coalesceWriteOperations(ops);
453
460
  const elapsed = performance.now() - start;
454
- // 100ms budget: well above the linear path (~20ms) but well below the
455
- // quadratic path (~450ms), making the regression unambiguous.
456
- expect(elapsed).toBeLessThan(100);
461
+ // Correctness (the real gate): N distinct-entity deletes coalesce to N ops.
462
+ expect(result).toHaveLength(N);
463
+ // Timing is an indicator only — linear path ~20ms, quadratic ~450ms; warn
464
+ // past 100ms but never fail (wall-clock flakes across machines/CI).
465
+ warnIfExceeds(elapsed, 100, "coalesce N deletes (ms)");
457
466
  });
458
467
  it("should strip preceding updates for deleted entities", () => {
459
468
  const ops = [