@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.
- package/dist/cache/functions/cached.d.ts +8 -0
- package/dist/cache/functions/cached.js +13 -0
- package/dist/cache/functions/cached.js.map +1 -0
- package/dist/cache/functions/cached.test.d.ts +1 -0
- package/dist/cache/functions/cached.test.js +49 -0
- package/dist/cache/functions/cached.test.js.map +1 -0
- package/dist/cache/functions/index.d.ts +1 -0
- package/dist/cache/functions/index.js +1 -0
- package/dist/cache/functions/index.js.map +1 -1
- package/dist/ecs/archetype/archetype.d.ts +23 -0
- package/dist/ecs/archetype/archetype.js.map +1 -1
- package/dist/ecs/database/concurrency/concurrency-strategy.d.ts +4 -3
- package/dist/ecs/database/create-plugin.d.ts +2 -1
- package/dist/ecs/database/create-plugin.js.map +1 -1
- package/dist/ecs/database/database.d.ts +27 -14
- package/dist/ecs/database/database.index.performance.test.js +32 -25
- package/dist/ecs/database/database.index.performance.test.js.map +1 -1
- package/dist/ecs/database/database.index.type-test.js +25 -0
- package/dist/ecs/database/database.index.type-test.js.map +1 -1
- package/dist/ecs/database/database.js +14 -0
- package/dist/ecs/database/database.js.map +1 -1
- package/dist/ecs/database/database.partition.test.d.ts +1 -0
- package/dist/ecs/database/database.partition.test.js +45 -0
- package/dist/ecs/database/database.partition.test.js.map +1 -0
- package/dist/ecs/database/database.partition.type-test.d.ts +1 -0
- package/dist/ecs/database/database.partition.type-test.js +41 -0
- package/dist/ecs/database/database.partition.type-test.js.map +1 -0
- package/dist/ecs/database/database.reset.test.js +13 -6
- package/dist/ecs/database/database.reset.test.js.map +1 -1
- package/dist/ecs/database/deep-extends-chain.type-test.d.ts +463 -463
- package/dist/ecs/database/facets/archetypes.d.ts +17 -0
- package/dist/ecs/database/facets/archetypes.js +18 -0
- package/dist/ecs/database/facets/archetypes.js.map +1 -0
- package/dist/ecs/database/facets/components.d.ts +17 -0
- package/dist/ecs/database/facets/components.js +18 -0
- package/dist/ecs/database/facets/components.js.map +1 -0
- package/dist/ecs/database/facets/facets.test.d.ts +1 -0
- package/dist/ecs/database/facets/facets.test.js +54 -0
- package/dist/ecs/database/facets/facets.test.js.map +1 -0
- package/dist/ecs/database/facets/resources.d.ts +17 -0
- package/dist/ecs/database/facets/resources.js +18 -0
- package/dist/ecs/database/facets/resources.js.map +1 -0
- package/dist/ecs/database/facets/stamp-scopes.d.ts +46 -0
- package/dist/ecs/database/facets/stamp-scopes.js +26 -0
- package/dist/ecs/database/facets/stamp-scopes.js.map +1 -0
- package/dist/ecs/database/index.d.ts +0 -1
- package/dist/ecs/database/index.js +0 -1
- package/dist/ecs/database/index.js.map +1 -1
- package/dist/ecs/database/observe-select-entities.performance.test.js +12 -4
- package/dist/ecs/database/observe-select-entities.performance.test.js.map +1 -1
- package/dist/ecs/database/observed/observed-database.d.ts +3 -3
- package/dist/ecs/database/reconciling/create-rebase-replay-applier.js +1 -1
- package/dist/ecs/database/reconciling/create-rebase-replay-applier.js.map +1 -1
- package/dist/ecs/database/reconciling/reconciling-entry.d.ts +3 -2
- package/dist/ecs/database/reconciling/reconciling-entry.js.map +1 -1
- package/dist/ecs/database/to-system-database.d.ts +17 -0
- package/dist/ecs/database/to-system-database.js +5 -0
- package/dist/ecs/database/to-system-database.js.map +1 -0
- package/dist/ecs/database/to-system-database.test.d.ts +1 -0
- package/dist/ecs/database/to-system-database.test.js +22 -0
- package/dist/ecs/database/to-system-database.test.js.map +1 -0
- package/dist/ecs/database/transactional-store/coalesce-actions.test.js +13 -4
- package/dist/ecs/database/transactional-store/coalesce-actions.test.js.map +1 -1
- package/dist/ecs/database/transactional-store/create-transactional-store.js.map +1 -1
- package/dist/ecs/database/transactional-store/transactional-store.d.ts +5 -16
- package/dist/ecs/optional-components.d.ts +1 -0
- package/dist/ecs/store/core/core.d.ts +33 -8
- package/dist/ecs/store/core/create-core.d.ts +12 -2
- package/dist/ecs/store/core/create-core.js +144 -22
- package/dist/ecs/store/core/create-core.js.map +1 -1
- package/dist/ecs/store/core/create-core.partition.test.d.ts +1 -0
- package/dist/ecs/store/core/create-core.partition.test.js +229 -0
- package/dist/ecs/store/core/create-core.partition.test.js.map +1 -0
- package/dist/ecs/store/core/select-entities.js +87 -21
- package/dist/ecs/store/core/select-entities.js.map +1 -1
- package/dist/ecs/store/core/select-entities.partition.test.d.ts +1 -0
- package/dist/ecs/store/core/select-entities.partition.test.js +93 -0
- package/dist/ecs/store/core/select-entities.partition.test.js.map +1 -0
- package/dist/ecs/store/entity-select-options.d.ts +5 -1
- package/dist/ecs/store/partition.d.ts +63 -0
- package/dist/ecs/store/partition.js +3 -0
- package/dist/ecs/store/partition.js.map +1 -0
- package/dist/ecs/store/partition.type-test.d.ts +1 -0
- package/dist/ecs/store/partition.type-test.js +15 -0
- package/dist/ecs/store/partition.type-test.js.map +1 -0
- package/dist/ecs/store/public/create-store.d.ts +3 -1
- package/dist/ecs/store/public/create-store.js +19 -50
- package/dist/ecs/store/public/create-store.js.map +1 -1
- package/dist/ecs/store/public/create-store.partition.test.d.ts +1 -0
- package/dist/ecs/store/public/create-store.partition.test.js +111 -0
- package/dist/ecs/store/public/create-store.partition.test.js.map +1 -0
- package/dist/ecs/store/public/create-store.partition.type-test.d.ts +1 -0
- package/dist/ecs/store/public/create-store.partition.type-test.js +61 -0
- package/dist/ecs/store/public/create-store.partition.type-test.js.map +1 -0
- package/dist/ecs/store/store.d.ts +22 -10
- package/dist/ecs/store/store.js.map +1 -1
- package/dist/ecs/store/transaction-functions.d.ts +6 -5
- package/dist/equals-unordered.d.ts +13 -0
- package/dist/equals-unordered.js +64 -0
- package/dist/equals-unordered.js.map +1 -0
- package/dist/equals-unordered.test.d.ts +1 -0
- package/dist/equals-unordered.test.js +35 -0
- package/dist/equals-unordered.test.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/math/line2/interpolate.d.ts +3 -0
- package/dist/math/line2/interpolate.js +7 -0
- package/dist/math/line2/interpolate.js.map +1 -0
- package/dist/math/line2/intersects.d.ts +2 -0
- package/dist/math/line2/intersects.js +29 -0
- package/dist/math/line2/intersects.js.map +1 -0
- package/dist/math/line2/public.d.ts +3 -1
- package/dist/math/line2/public.js +3 -1
- package/dist/math/line2/public.js.map +1 -1
- package/dist/math/line2/sub-line.d.ts +2 -0
- package/dist/math/line2/sub-line.js +9 -0
- package/dist/math/line2/sub-line.js.map +1 -0
- package/dist/math/line3/closest-point-on-line.d.ts +10 -0
- package/dist/math/line3/closest-point-on-line.js +29 -0
- package/dist/math/line3/closest-point-on-line.js.map +1 -0
- package/dist/math/line3/direction.d.ts +7 -0
- package/dist/math/line3/direction.js +12 -0
- package/dist/math/line3/direction.js.map +1 -0
- package/dist/math/line3/interpolate.d.ts +3 -0
- package/dist/math/line3/interpolate.js +7 -0
- package/dist/math/line3/interpolate.js.map +1 -0
- package/dist/math/line3/public.d.ts +4 -1
- package/dist/math/line3/public.js +4 -1
- package/dist/math/line3/public.js.map +1 -1
- package/dist/math/line3/sub-line.d.ts +2 -0
- package/dist/math/line3/sub-line.js +9 -0
- package/dist/math/line3/sub-line.js.map +1 -0
- package/dist/math/mat4x4/add.d.ts +2 -0
- package/dist/math/mat4x4/add.js +8 -0
- package/dist/math/mat4x4/add.js.map +1 -0
- package/dist/math/mat4x4/determinant.d.ts +2 -0
- package/dist/math/mat4x4/determinant.js +18 -0
- package/dist/math/mat4x4/determinant.js.map +1 -0
- package/dist/math/mat4x4/identity.d.ts +2 -0
- package/dist/math/mat4x4/identity.js +8 -0
- package/dist/math/mat4x4/identity.js.map +1 -0
- package/dist/math/mat4x4/inverse.d.ts +2 -0
- package/dist/math/mat4x4/inverse.js +41 -0
- package/dist/math/mat4x4/inverse.js.map +1 -0
- package/dist/math/mat4x4/look-at.d.ts +3 -0
- package/dist/math/mat4x4/look-at.js +23 -0
- package/dist/math/mat4x4/look-at.js.map +1 -0
- package/dist/math/mat4x4/multiply-vec3.d.ts +3 -0
- package/dist/math/mat4x4/multiply-vec3.js +7 -0
- package/dist/math/mat4x4/multiply-vec3.js.map +1 -0
- package/dist/math/mat4x4/multiply-vec4.d.ts +3 -0
- package/dist/math/mat4x4/multiply-vec4.js +8 -0
- package/dist/math/mat4x4/multiply-vec4.js.map +1 -0
- package/dist/math/mat4x4/multiply.d.ts +2 -0
- package/dist/math/mat4x4/multiply.js +15 -0
- package/dist/math/mat4x4/multiply.js.map +1 -0
- package/dist/math/mat4x4/orthographic.d.ts +2 -0
- package/dist/math/mat4x4/orthographic.js +13 -0
- package/dist/math/mat4x4/orthographic.js.map +1 -0
- package/dist/math/mat4x4/perspective.d.ts +2 -0
- package/dist/math/mat4x4/perspective.js +23 -0
- package/dist/math/mat4x4/perspective.js.map +1 -0
- package/dist/math/mat4x4/public.d.ts +19 -1
- package/dist/math/mat4x4/public.js +19 -1
- package/dist/math/mat4x4/public.js.map +1 -1
- package/dist/math/mat4x4/rotation-x.d.ts +2 -0
- package/dist/math/mat4x4/rotation-x.js +12 -0
- package/dist/math/mat4x4/rotation-x.js.map +1 -0
- package/dist/math/mat4x4/rotation-y.d.ts +2 -0
- package/dist/math/mat4x4/rotation-y.js +12 -0
- package/dist/math/mat4x4/rotation-y.js.map +1 -0
- package/dist/math/mat4x4/rotation-z.d.ts +2 -0
- package/dist/math/mat4x4/rotation-z.js +12 -0
- package/dist/math/mat4x4/rotation-z.js.map +1 -0
- package/dist/math/mat4x4/scale.d.ts +2 -0
- package/dist/math/mat4x4/scale.js +8 -0
- package/dist/math/mat4x4/scale.js.map +1 -0
- package/dist/math/mat4x4/scaling.d.ts +2 -0
- package/dist/math/mat4x4/scaling.js +8 -0
- package/dist/math/mat4x4/scaling.js.map +1 -0
- package/dist/math/mat4x4/subtract.d.ts +2 -0
- package/dist/math/mat4x4/subtract.js +8 -0
- package/dist/math/mat4x4/subtract.js.map +1 -0
- package/dist/math/mat4x4/translation.d.ts +2 -0
- package/dist/math/mat4x4/translation.js +8 -0
- package/dist/math/mat4x4/translation.js.map +1 -0
- package/dist/math/mat4x4/transpose.d.ts +2 -0
- package/dist/math/mat4x4/transpose.js +8 -0
- package/dist/math/mat4x4/transpose.js.map +1 -0
- package/dist/math/mat4x4/zero.d.ts +2 -0
- package/dist/math/mat4x4/zero.js +8 -0
- package/dist/math/mat4x4/zero.js.map +1 -0
- package/dist/math/plane/contains-point.d.ts +3 -0
- package/dist/math/plane/contains-point.js +5 -0
- package/dist/math/plane/contains-point.js.map +1 -0
- package/dist/math/plane/distance.d.ts +3 -0
- package/dist/math/plane/distance.js +4 -0
- package/dist/math/plane/distance.js.map +1 -0
- package/dist/math/plane/is-point-behind.d.ts +3 -0
- package/dist/math/plane/is-point-behind.js +4 -0
- package/dist/math/plane/is-point-behind.js.map +1 -0
- package/dist/math/plane/is-point-in-front.d.ts +3 -0
- package/dist/math/plane/is-point-in-front.js +4 -0
- package/dist/math/plane/is-point-in-front.js.map +1 -0
- package/dist/math/plane/is.d.ts +2 -0
- package/dist/math/plane/is.js +5 -0
- package/dist/math/plane/is.js.map +1 -0
- package/dist/math/plane/line-intersection.d.ts +9 -0
- package/dist/math/plane/line-intersection.js +26 -0
- package/dist/math/plane/line-intersection.js.map +1 -0
- package/dist/math/plane/public.d.ts +7 -1
- package/dist/math/plane/public.js +7 -1
- package/dist/math/plane/public.js.map +1 -1
- package/dist/math/plane/signed-distance.d.ts +3 -0
- package/dist/math/plane/signed-distance.js +4 -0
- package/dist/math/plane/signed-distance.js.map +1 -0
- package/dist/math/quat/add.d.ts +2 -0
- package/dist/math/quat/add.js +8 -0
- package/dist/math/quat/add.js.map +1 -0
- package/dist/math/quat/align-to.d.ts +12 -0
- package/dist/math/quat/align-to.js +43 -0
- package/dist/math/quat/align-to.js.map +1 -0
- package/dist/math/quat/conjugate.d.ts +2 -0
- package/dist/math/quat/conjugate.js +3 -0
- package/dist/math/quat/conjugate.js.map +1 -0
- package/dist/math/quat/distance.d.ts +2 -0
- package/dist/math/quat/distance.js +5 -0
- package/dist/math/quat/distance.js.map +1 -0
- package/dist/math/quat/dot.d.ts +2 -0
- package/dist/math/quat/dot.js +3 -0
- package/dist/math/quat/dot.js.map +1 -0
- package/dist/math/quat/from-axis-angle.d.ts +3 -0
- package/dist/math/quat/from-axis-angle.js +14 -0
- package/dist/math/quat/from-axis-angle.js.map +1 -0
- package/dist/math/quat/from-euler.d.ts +2 -0
- package/dist/math/quat/from-euler.js +16 -0
- package/dist/math/quat/from-euler.js.map +1 -0
- package/dist/math/quat/identity.d.ts +2 -0
- package/dist/math/quat/identity.js +3 -0
- package/dist/math/quat/identity.js.map +1 -0
- package/dist/math/quat/inverse.d.ts +2 -0
- package/dist/math/quat/inverse.js +11 -0
- package/dist/math/quat/inverse.js.map +1 -0
- package/dist/math/quat/length-squared.d.ts +2 -0
- package/dist/math/quat/length-squared.js +3 -0
- package/dist/math/quat/length-squared.js.map +1 -0
- package/dist/math/quat/length.d.ts +2 -0
- package/dist/math/quat/length.js +3 -0
- package/dist/math/quat/length.js.map +1 -0
- package/dist/math/quat/lerp.d.ts +2 -0
- package/dist/math/quat/lerp.js +8 -0
- package/dist/math/quat/lerp.js.map +1 -0
- package/dist/math/quat/look-at.d.ts +3 -0
- package/dist/math/quat/look-at.js +49 -0
- package/dist/math/quat/look-at.js.map +1 -0
- package/dist/math/quat/multiply.d.ts +2 -0
- package/dist/math/quat/multiply.js +8 -0
- package/dist/math/quat/multiply.js.map +1 -0
- package/dist/math/quat/negate.d.ts +2 -0
- package/dist/math/quat/negate.js +3 -0
- package/dist/math/quat/negate.js.map +1 -0
- package/dist/math/quat/normalize.d.ts +2 -0
- package/dist/math/quat/normalize.js +8 -0
- package/dist/math/quat/normalize.js.map +1 -0
- package/dist/math/quat/public.d.ts +23 -1
- package/dist/math/quat/public.js +23 -1
- package/dist/math/quat/public.js.map +1 -1
- package/dist/math/quat/rotate-vec3.d.ts +3 -0
- package/dist/math/quat/rotate-vec3.js +15 -0
- package/dist/math/quat/rotate-vec3.js.map +1 -0
- package/dist/math/quat/scale.d.ts +2 -0
- package/dist/math/quat/scale.js +3 -0
- package/dist/math/quat/scale.js.map +1 -0
- package/dist/math/quat/schema.js +1 -1
- package/dist/math/quat/schema.js.map +1 -1
- package/dist/math/quat/slerp.d.ts +2 -0
- package/dist/math/quat/slerp.js +22 -0
- package/dist/math/quat/slerp.js.map +1 -0
- package/dist/math/quat/subtract.d.ts +2 -0
- package/dist/math/quat/subtract.js +8 -0
- package/dist/math/quat/subtract.js.map +1 -0
- package/dist/math/quat/to-axis-angle.d.ts +6 -0
- package/dist/math/quat/to-axis-angle.js +13 -0
- package/dist/math/quat/to-axis-angle.js.map +1 -0
- package/dist/math/quat/to-euler.d.ts +3 -0
- package/dist/math/quat/to-euler.js +22 -0
- package/dist/math/quat/to-euler.js.map +1 -0
- package/dist/math/quat/to-mat4.d.ts +8 -0
- package/dist/math/quat/to-mat4.js +25 -0
- package/dist/math/quat/to-mat4.js.map +1 -0
- package/dist/math/vec2/f32/abs.d.ts +2 -0
- package/dist/math/vec2/f32/abs.js +3 -0
- package/dist/math/vec2/f32/abs.js.map +1 -0
- package/dist/math/vec2/f32/acos.d.ts +2 -0
- package/dist/math/vec2/f32/acos.js +3 -0
- package/dist/math/vec2/f32/acos.js.map +1 -0
- package/dist/math/vec2/f32/acosh.d.ts +2 -0
- package/dist/math/vec2/f32/acosh.js +3 -0
- package/dist/math/vec2/f32/acosh.js.map +1 -0
- package/dist/math/vec2/f32/add.d.ts +2 -0
- package/dist/math/vec2/f32/add.js +3 -0
- package/dist/math/vec2/f32/add.js.map +1 -0
- package/dist/math/vec2/f32/asin.d.ts +2 -0
- package/dist/math/vec2/f32/asin.js +3 -0
- package/dist/math/vec2/f32/asin.js.map +1 -0
- package/dist/math/vec2/f32/asinh.d.ts +2 -0
- package/dist/math/vec2/f32/asinh.js +3 -0
- package/dist/math/vec2/f32/asinh.js.map +1 -0
- package/dist/math/vec2/f32/atan.d.ts +2 -0
- package/dist/math/vec2/f32/atan.js +3 -0
- package/dist/math/vec2/f32/atan.js.map +1 -0
- package/dist/math/vec2/f32/atanh.d.ts +2 -0
- package/dist/math/vec2/f32/atanh.js +3 -0
- package/dist/math/vec2/f32/atanh.js.map +1 -0
- package/dist/math/vec2/f32/ceil.d.ts +2 -0
- package/dist/math/vec2/f32/ceil.js +3 -0
- package/dist/math/vec2/f32/ceil.js.map +1 -0
- package/dist/math/vec2/f32/clamp.d.ts +2 -0
- package/dist/math/vec2/f32/clamp.js +5 -0
- package/dist/math/vec2/f32/clamp.js.map +1 -0
- package/dist/math/vec2/f32/cos.d.ts +2 -0
- package/dist/math/vec2/f32/cos.js +3 -0
- package/dist/math/vec2/f32/cos.js.map +1 -0
- package/dist/math/vec2/f32/cosh.d.ts +2 -0
- package/dist/math/vec2/f32/cosh.js +3 -0
- package/dist/math/vec2/f32/cosh.js.map +1 -0
- package/dist/math/vec2/f32/distance.d.ts +2 -0
- package/dist/math/vec2/f32/distance.js +5 -0
- package/dist/math/vec2/f32/distance.js.map +1 -0
- package/dist/math/vec2/f32/dot.d.ts +2 -0
- package/dist/math/vec2/f32/dot.js +3 -0
- package/dist/math/vec2/f32/dot.js.map +1 -0
- package/dist/math/vec2/f32/equals.d.ts +2 -0
- package/dist/math/vec2/f32/equals.js +3 -0
- package/dist/math/vec2/f32/equals.js.map +1 -0
- package/dist/math/vec2/f32/exp.d.ts +2 -0
- package/dist/math/vec2/f32/exp.js +3 -0
- package/dist/math/vec2/f32/exp.js.map +1 -0
- package/dist/math/vec2/f32/exp2.d.ts +2 -0
- package/dist/math/vec2/f32/exp2.js +3 -0
- package/dist/math/vec2/f32/exp2.js.map +1 -0
- package/dist/math/vec2/f32/faceforward.d.ts +2 -0
- package/dist/math/vec2/f32/faceforward.js +5 -0
- package/dist/math/vec2/f32/faceforward.js.map +1 -0
- package/dist/math/vec2/f32/floor.d.ts +2 -0
- package/dist/math/vec2/f32/floor.js +3 -0
- package/dist/math/vec2/f32/floor.js.map +1 -0
- package/dist/math/vec2/f32/fract.d.ts +2 -0
- package/dist/math/vec2/f32/fract.js +3 -0
- package/dist/math/vec2/f32/fract.js.map +1 -0
- package/dist/math/vec2/f32/length.d.ts +2 -0
- package/dist/math/vec2/f32/length.js +3 -0
- package/dist/math/vec2/f32/length.js.map +1 -0
- package/dist/math/vec2/f32/log.d.ts +2 -0
- package/dist/math/vec2/f32/log.js +3 -0
- package/dist/math/vec2/f32/log.js.map +1 -0
- package/dist/math/vec2/f32/log2.d.ts +2 -0
- package/dist/math/vec2/f32/log2.js +3 -0
- package/dist/math/vec2/f32/log2.js.map +1 -0
- package/dist/math/vec2/f32/max.d.ts +2 -0
- package/dist/math/vec2/f32/max.js +3 -0
- package/dist/math/vec2/f32/max.js.map +1 -0
- package/dist/math/vec2/f32/min.d.ts +2 -0
- package/dist/math/vec2/f32/min.js +3 -0
- package/dist/math/vec2/f32/min.js.map +1 -0
- package/dist/math/vec2/f32/mix.d.ts +2 -0
- package/dist/math/vec2/f32/mix.js +6 -0
- package/dist/math/vec2/f32/mix.js.map +1 -0
- package/dist/math/vec2/f32/mod.d.ts +2 -0
- package/dist/math/vec2/f32/mod.js +6 -0
- package/dist/math/vec2/f32/mod.js.map +1 -0
- package/dist/math/vec2/f32/modf.d.ts +5 -0
- package/dist/math/vec2/f32/modf.js +6 -0
- package/dist/math/vec2/f32/modf.js.map +1 -0
- package/dist/math/vec2/f32/negate.d.ts +2 -0
- package/dist/math/vec2/f32/negate.js +3 -0
- package/dist/math/vec2/f32/negate.js.map +1 -0
- package/dist/math/vec2/f32/normalize.d.ts +2 -0
- package/dist/math/vec2/f32/normalize.js +8 -0
- package/dist/math/vec2/f32/normalize.js.map +1 -0
- package/dist/math/vec2/f32/pow.d.ts +2 -0
- package/dist/math/vec2/f32/pow.js +6 -0
- package/dist/math/vec2/f32/pow.js.map +1 -0
- package/dist/math/vec2/f32/public.d.ts +46 -1
- package/dist/math/vec2/f32/public.js +46 -1
- package/dist/math/vec2/f32/public.js.map +1 -1
- package/dist/math/vec2/f32/reflect.d.ts +2 -0
- package/dist/math/vec2/f32/reflect.js +9 -0
- package/dist/math/vec2/f32/reflect.js.map +1 -0
- package/dist/math/vec2/f32/refract.d.ts +2 -0
- package/dist/math/vec2/f32/refract.js +14 -0
- package/dist/math/vec2/f32/refract.js.map +1 -0
- package/dist/math/vec2/f32/round.d.ts +2 -0
- package/dist/math/vec2/f32/round.js +3 -0
- package/dist/math/vec2/f32/round.js.map +1 -0
- package/dist/math/vec2/f32/scale.d.ts +2 -0
- package/dist/math/vec2/f32/scale.js +3 -0
- package/dist/math/vec2/f32/scale.js.map +1 -0
- package/dist/math/vec2/f32/sign.d.ts +2 -0
- package/dist/math/vec2/f32/sign.js +3 -0
- package/dist/math/vec2/f32/sign.js.map +1 -0
- package/dist/math/vec2/f32/sin.d.ts +2 -0
- package/dist/math/vec2/f32/sin.js +3 -0
- package/dist/math/vec2/f32/sin.js.map +1 -0
- package/dist/math/vec2/f32/sinh.d.ts +2 -0
- package/dist/math/vec2/f32/sinh.js +3 -0
- package/dist/math/vec2/f32/sinh.js.map +1 -0
- package/dist/math/vec2/f32/smoothstep.d.ts +2 -0
- package/dist/math/vec2/f32/smoothstep.js +7 -0
- package/dist/math/vec2/f32/smoothstep.js.map +1 -0
- package/dist/math/vec2/f32/sqrt.d.ts +2 -0
- package/dist/math/vec2/f32/sqrt.js +3 -0
- package/dist/math/vec2/f32/sqrt.js.map +1 -0
- package/dist/math/vec2/f32/step.d.ts +2 -0
- package/dist/math/vec2/f32/step.js +6 -0
- package/dist/math/vec2/f32/step.js.map +1 -0
- package/dist/math/vec2/f32/subtract.d.ts +2 -0
- package/dist/math/vec2/f32/subtract.js +3 -0
- package/dist/math/vec2/f32/subtract.js.map +1 -0
- package/dist/math/vec2/f32/tan.d.ts +2 -0
- package/dist/math/vec2/f32/tan.js +3 -0
- package/dist/math/vec2/f32/tan.js.map +1 -0
- package/dist/math/vec2/f32/tanh.d.ts +2 -0
- package/dist/math/vec2/f32/tanh.js +3 -0
- package/dist/math/vec2/f32/tanh.js.map +1 -0
- package/dist/math/vec2/f32/trunc.d.ts +2 -0
- package/dist/math/vec2/f32/trunc.js +3 -0
- package/dist/math/vec2/f32/trunc.js.map +1 -0
- package/dist/math/vec2/f32/zero.d.ts +2 -0
- package/dist/math/vec2/f32/zero.js +3 -0
- package/dist/math/vec2/f32/zero.js.map +1 -0
- package/dist/math/vec2/i32/abs.d.ts +2 -0
- package/dist/math/vec2/i32/abs.js +3 -0
- package/dist/math/vec2/i32/abs.js.map +1 -0
- package/dist/math/vec2/i32/add.d.ts +2 -0
- package/dist/math/vec2/i32/add.js +3 -0
- package/dist/math/vec2/i32/add.js.map +1 -0
- package/dist/math/vec2/i32/bitwise-and.d.ts +2 -0
- package/dist/math/vec2/i32/bitwise-and.js +3 -0
- package/dist/math/vec2/i32/bitwise-and.js.map +1 -0
- package/dist/math/vec2/i32/bitwise-not.d.ts +2 -0
- package/dist/math/vec2/i32/bitwise-not.js +3 -0
- package/dist/math/vec2/i32/bitwise-not.js.map +1 -0
- package/dist/math/vec2/i32/bitwise-or.d.ts +2 -0
- package/dist/math/vec2/i32/bitwise-or.js +3 -0
- package/dist/math/vec2/i32/bitwise-or.js.map +1 -0
- package/dist/math/vec2/i32/bitwise-xor.d.ts +2 -0
- package/dist/math/vec2/i32/bitwise-xor.js +3 -0
- package/dist/math/vec2/i32/bitwise-xor.js.map +1 -0
- package/dist/math/vec2/i32/clamp.d.ts +2 -0
- package/dist/math/vec2/i32/clamp.js +5 -0
- package/dist/math/vec2/i32/clamp.js.map +1 -0
- package/dist/math/vec2/i32/count-leading-zeros.d.ts +2 -0
- package/dist/math/vec2/i32/count-leading-zeros.js +7 -0
- package/dist/math/vec2/i32/count-leading-zeros.js.map +1 -0
- package/dist/math/vec2/i32/count-one-bits.d.ts +2 -0
- package/dist/math/vec2/i32/count-one-bits.js +7 -0
- package/dist/math/vec2/i32/count-one-bits.js.map +1 -0
- package/dist/math/vec2/i32/count-trailing-zeros.d.ts +2 -0
- package/dist/math/vec2/i32/count-trailing-zeros.js +7 -0
- package/dist/math/vec2/i32/count-trailing-zeros.js.map +1 -0
- package/dist/math/vec2/i32/equals.d.ts +2 -0
- package/dist/math/vec2/i32/equals.js +3 -0
- package/dist/math/vec2/i32/equals.js.map +1 -0
- package/dist/math/vec2/i32/max.d.ts +2 -0
- package/dist/math/vec2/i32/max.js +3 -0
- package/dist/math/vec2/i32/max.js.map +1 -0
- package/dist/math/vec2/i32/min.d.ts +2 -0
- package/dist/math/vec2/i32/min.js +3 -0
- package/dist/math/vec2/i32/min.js.map +1 -0
- package/dist/math/vec2/i32/negate.d.ts +2 -0
- package/dist/math/vec2/i32/negate.js +3 -0
- package/dist/math/vec2/i32/negate.js.map +1 -0
- package/dist/math/vec2/i32/public.d.ts +20 -1
- package/dist/math/vec2/i32/public.js +20 -1
- package/dist/math/vec2/i32/public.js.map +1 -1
- package/dist/math/vec2/i32/reverse-bits.d.ts +2 -0
- package/dist/math/vec2/i32/reverse-bits.js +7 -0
- package/dist/math/vec2/i32/reverse-bits.js.map +1 -0
- package/dist/math/vec2/i32/scale.d.ts +2 -0
- package/dist/math/vec2/i32/scale.js +3 -0
- package/dist/math/vec2/i32/scale.js.map +1 -0
- package/dist/math/vec2/i32/shift-left.d.ts +2 -0
- package/dist/math/vec2/i32/shift-left.js +3 -0
- package/dist/math/vec2/i32/shift-left.js.map +1 -0
- package/dist/math/vec2/i32/shift-right.d.ts +2 -0
- package/dist/math/vec2/i32/shift-right.js +7 -0
- package/dist/math/vec2/i32/shift-right.js.map +1 -0
- package/dist/math/vec2/i32/subtract.d.ts +2 -0
- package/dist/math/vec2/i32/subtract.js +3 -0
- package/dist/math/vec2/i32/subtract.js.map +1 -0
- package/dist/math/vec2/i32/zero.d.ts +2 -0
- package/dist/math/vec2/i32/zero.js +3 -0
- package/dist/math/vec2/i32/zero.js.map +1 -0
- package/dist/math/vec2/public.d.ts +1 -1
- package/dist/math/vec2/public.js +1 -1
- package/dist/math/vec2/public.js.map +1 -1
- package/dist/math/vec2/u32/add.d.ts +2 -0
- package/dist/math/vec2/u32/add.js +6 -0
- package/dist/math/vec2/u32/add.js.map +1 -0
- package/dist/math/vec2/u32/bitwise-and.d.ts +2 -0
- package/dist/math/vec2/u32/bitwise-and.js +6 -0
- package/dist/math/vec2/u32/bitwise-and.js.map +1 -0
- package/dist/math/vec2/u32/bitwise-not.d.ts +2 -0
- package/dist/math/vec2/u32/bitwise-not.js +3 -0
- package/dist/math/vec2/u32/bitwise-not.js.map +1 -0
- package/dist/math/vec2/u32/bitwise-or.d.ts +2 -0
- package/dist/math/vec2/u32/bitwise-or.js +6 -0
- package/dist/math/vec2/u32/bitwise-or.js.map +1 -0
- package/dist/math/vec2/u32/bitwise-xor.d.ts +2 -0
- package/dist/math/vec2/u32/bitwise-xor.js +6 -0
- package/dist/math/vec2/u32/bitwise-xor.js.map +1 -0
- package/dist/math/vec2/u32/clamp.d.ts +2 -0
- package/dist/math/vec2/u32/clamp.js +5 -0
- package/dist/math/vec2/u32/clamp.js.map +1 -0
- package/dist/math/vec2/u32/count-leading-zeros.d.ts +2 -0
- package/dist/math/vec2/u32/count-leading-zeros.js +7 -0
- package/dist/math/vec2/u32/count-leading-zeros.js.map +1 -0
- package/dist/math/vec2/u32/count-one-bits.d.ts +2 -0
- package/dist/math/vec2/u32/count-one-bits.js +7 -0
- package/dist/math/vec2/u32/count-one-bits.js.map +1 -0
- package/dist/math/vec2/u32/count-trailing-zeros.d.ts +2 -0
- package/dist/math/vec2/u32/count-trailing-zeros.js +7 -0
- package/dist/math/vec2/u32/count-trailing-zeros.js.map +1 -0
- package/dist/math/vec2/u32/equals.d.ts +2 -0
- package/dist/math/vec2/u32/equals.js +3 -0
- package/dist/math/vec2/u32/equals.js.map +1 -0
- package/dist/math/vec2/u32/max.d.ts +2 -0
- package/dist/math/vec2/u32/max.js +6 -0
- package/dist/math/vec2/u32/max.js.map +1 -0
- package/dist/math/vec2/u32/min.d.ts +2 -0
- package/dist/math/vec2/u32/min.js +6 -0
- package/dist/math/vec2/u32/min.js.map +1 -0
- package/dist/math/vec2/u32/negate.d.ts +2 -0
- package/dist/math/vec2/u32/negate.js +3 -0
- package/dist/math/vec2/u32/negate.js.map +1 -0
- package/dist/math/vec2/u32/public.d.ts +19 -1
- package/dist/math/vec2/u32/public.js +19 -1
- package/dist/math/vec2/u32/public.js.map +1 -1
- package/dist/math/vec2/u32/reverse-bits.d.ts +2 -0
- package/dist/math/vec2/u32/reverse-bits.js +7 -0
- package/dist/math/vec2/u32/reverse-bits.js.map +1 -0
- package/dist/math/vec2/u32/scale.d.ts +2 -0
- package/dist/math/vec2/u32/scale.js +3 -0
- package/dist/math/vec2/u32/scale.js.map +1 -0
- package/dist/math/vec2/u32/shift-left.d.ts +2 -0
- package/dist/math/vec2/u32/shift-left.js +3 -0
- package/dist/math/vec2/u32/shift-left.js.map +1 -0
- package/dist/math/vec2/u32/shift-right.d.ts +2 -0
- package/dist/math/vec2/u32/shift-right.js +7 -0
- package/dist/math/vec2/u32/shift-right.js.map +1 -0
- package/dist/math/vec2/u32/subtract.d.ts +2 -0
- package/dist/math/vec2/u32/subtract.js +6 -0
- package/dist/math/vec2/u32/subtract.js.map +1 -0
- package/dist/math/vec2/u32/zero.d.ts +2 -0
- package/dist/math/vec2/u32/zero.js +3 -0
- package/dist/math/vec2/u32/zero.js.map +1 -0
- package/dist/math/vec3/f32/abs.d.ts +2 -0
- package/dist/math/vec3/f32/abs.js +3 -0
- package/dist/math/vec3/f32/abs.js.map +1 -0
- package/dist/math/vec3/f32/acos.d.ts +2 -0
- package/dist/math/vec3/f32/acos.js +3 -0
- package/dist/math/vec3/f32/acos.js.map +1 -0
- package/dist/math/vec3/f32/acosh.d.ts +2 -0
- package/dist/math/vec3/f32/acosh.js +3 -0
- package/dist/math/vec3/f32/acosh.js.map +1 -0
- package/dist/math/vec3/f32/add.d.ts +2 -0
- package/dist/math/vec3/f32/add.js +7 -0
- package/dist/math/vec3/f32/add.js.map +1 -0
- package/dist/math/vec3/f32/asin.d.ts +2 -0
- package/dist/math/vec3/f32/asin.js +3 -0
- package/dist/math/vec3/f32/asin.js.map +1 -0
- package/dist/math/vec3/f32/asinh.d.ts +2 -0
- package/dist/math/vec3/f32/asinh.js +3 -0
- package/dist/math/vec3/f32/asinh.js.map +1 -0
- package/dist/math/vec3/f32/atan.d.ts +2 -0
- package/dist/math/vec3/f32/atan.js +3 -0
- package/dist/math/vec3/f32/atan.js.map +1 -0
- package/dist/math/vec3/f32/atanh.d.ts +2 -0
- package/dist/math/vec3/f32/atanh.js +3 -0
- package/dist/math/vec3/f32/atanh.js.map +1 -0
- package/dist/math/vec3/f32/ceil.d.ts +2 -0
- package/dist/math/vec3/f32/ceil.js +3 -0
- package/dist/math/vec3/f32/ceil.js.map +1 -0
- package/dist/math/vec3/f32/clamp.d.ts +2 -0
- package/dist/math/vec3/f32/clamp.js +5 -0
- package/dist/math/vec3/f32/clamp.js.map +1 -0
- package/dist/math/vec3/f32/cos.d.ts +2 -0
- package/dist/math/vec3/f32/cos.js +3 -0
- package/dist/math/vec3/f32/cos.js.map +1 -0
- package/dist/math/vec3/f32/cosh.d.ts +2 -0
- package/dist/math/vec3/f32/cosh.js +3 -0
- package/dist/math/vec3/f32/cosh.js.map +1 -0
- package/dist/math/vec3/f32/cross.d.ts +2 -0
- package/dist/math/vec3/f32/cross.js +7 -0
- package/dist/math/vec3/f32/cross.js.map +1 -0
- package/dist/math/vec3/f32/distance-squared.d.ts +2 -0
- package/dist/math/vec3/f32/distance-squared.js +8 -0
- package/dist/math/vec3/f32/distance-squared.js.map +1 -0
- package/dist/math/vec3/f32/distance.d.ts +2 -0
- package/dist/math/vec3/f32/distance.js +5 -0
- package/dist/math/vec3/f32/distance.js.map +1 -0
- package/dist/math/vec3/f32/dot.d.ts +2 -0
- package/dist/math/vec3/f32/dot.js +3 -0
- package/dist/math/vec3/f32/dot.js.map +1 -0
- package/dist/math/vec3/f32/equals.d.ts +2 -0
- package/dist/math/vec3/f32/equals.js +3 -0
- package/dist/math/vec3/f32/equals.js.map +1 -0
- package/dist/math/vec3/f32/exp.d.ts +2 -0
- package/dist/math/vec3/f32/exp.js +3 -0
- package/dist/math/vec3/f32/exp.js.map +1 -0
- package/dist/math/vec3/f32/exp2.d.ts +2 -0
- package/dist/math/vec3/f32/exp2.js +3 -0
- package/dist/math/vec3/f32/exp2.js.map +1 -0
- package/dist/math/vec3/f32/faceforward.d.ts +2 -0
- package/dist/math/vec3/f32/faceforward.js +5 -0
- package/dist/math/vec3/f32/faceforward.js.map +1 -0
- package/dist/math/vec3/f32/floor.d.ts +2 -0
- package/dist/math/vec3/f32/floor.js +3 -0
- package/dist/math/vec3/f32/floor.js.map +1 -0
- package/dist/math/vec3/f32/fract.d.ts +2 -0
- package/dist/math/vec3/f32/fract.js +7 -0
- package/dist/math/vec3/f32/fract.js.map +1 -0
- package/dist/math/vec3/f32/length-squared.d.ts +2 -0
- package/dist/math/vec3/f32/length-squared.js +3 -0
- package/dist/math/vec3/f32/length-squared.js.map +1 -0
- package/dist/math/vec3/f32/length.d.ts +2 -0
- package/dist/math/vec3/f32/length.js +3 -0
- package/dist/math/vec3/f32/length.js.map +1 -0
- package/dist/math/vec3/f32/log.d.ts +2 -0
- package/dist/math/vec3/f32/log.js +3 -0
- package/dist/math/vec3/f32/log.js.map +1 -0
- package/dist/math/vec3/f32/log2.d.ts +2 -0
- package/dist/math/vec3/f32/log2.js +3 -0
- package/dist/math/vec3/f32/log2.js.map +1 -0
- package/dist/math/vec3/f32/max.d.ts +2 -0
- package/dist/math/vec3/f32/max.js +7 -0
- package/dist/math/vec3/f32/max.js.map +1 -0
- package/dist/math/vec3/f32/min.d.ts +2 -0
- package/dist/math/vec3/f32/min.js +7 -0
- package/dist/math/vec3/f32/min.js.map +1 -0
- package/dist/math/vec3/f32/mix.d.ts +2 -0
- package/dist/math/vec3/f32/mix.js +7 -0
- package/dist/math/vec3/f32/mix.js.map +1 -0
- package/dist/math/vec3/f32/mod.d.ts +2 -0
- package/dist/math/vec3/f32/mod.js +7 -0
- package/dist/math/vec3/f32/mod.js.map +1 -0
- package/dist/math/vec3/f32/modf.d.ts +5 -0
- package/dist/math/vec3/f32/modf.js +6 -0
- package/dist/math/vec3/f32/modf.js.map +1 -0
- package/dist/math/vec3/f32/multiply.d.ts +5 -0
- package/dist/math/vec3/f32/multiply.js +10 -0
- package/dist/math/vec3/f32/multiply.js.map +1 -0
- package/dist/math/vec3/f32/negate.d.ts +2 -0
- package/dist/math/vec3/f32/negate.js +3 -0
- package/dist/math/vec3/f32/negate.js.map +1 -0
- package/dist/math/vec3/f32/normalize.d.ts +2 -0
- package/dist/math/vec3/f32/normalize.js +8 -0
- package/dist/math/vec3/f32/normalize.js.map +1 -0
- package/dist/math/vec3/f32/one.d.ts +2 -0
- package/dist/math/vec3/f32/one.js +3 -0
- package/dist/math/vec3/f32/one.js.map +1 -0
- package/dist/math/vec3/f32/pow.d.ts +2 -0
- package/dist/math/vec3/f32/pow.js +7 -0
- package/dist/math/vec3/f32/pow.js.map +1 -0
- package/dist/math/vec3/f32/public.d.ts +52 -1
- package/dist/math/vec3/f32/public.js +52 -1
- package/dist/math/vec3/f32/public.js.map +1 -1
- package/dist/math/vec3/f32/random.d.ts +2 -0
- package/dist/math/vec3/f32/random.js +5 -0
- package/dist/math/vec3/f32/random.js.map +1 -0
- package/dist/math/vec3/f32/reflect.d.ts +2 -0
- package/dist/math/vec3/f32/reflect.js +9 -0
- package/dist/math/vec3/f32/reflect.js.map +1 -0
- package/dist/math/vec3/f32/refract.d.ts +2 -0
- package/dist/math/vec3/f32/refract.js +14 -0
- package/dist/math/vec3/f32/refract.js.map +1 -0
- package/dist/math/vec3/f32/round.d.ts +2 -0
- package/dist/math/vec3/f32/round.js +3 -0
- package/dist/math/vec3/f32/round.js.map +1 -0
- package/dist/math/vec3/f32/scale.d.ts +2 -0
- package/dist/math/vec3/f32/scale.js +3 -0
- package/dist/math/vec3/f32/scale.js.map +1 -0
- package/dist/math/vec3/f32/sign.d.ts +2 -0
- package/dist/math/vec3/f32/sign.js +3 -0
- package/dist/math/vec3/f32/sign.js.map +1 -0
- package/dist/math/vec3/f32/sin.d.ts +2 -0
- package/dist/math/vec3/f32/sin.js +3 -0
- package/dist/math/vec3/f32/sin.js.map +1 -0
- package/dist/math/vec3/f32/sinh.d.ts +2 -0
- package/dist/math/vec3/f32/sinh.js +3 -0
- package/dist/math/vec3/f32/sinh.js.map +1 -0
- package/dist/math/vec3/f32/smoothstep.d.ts +2 -0
- package/dist/math/vec3/f32/smoothstep.js +12 -0
- package/dist/math/vec3/f32/smoothstep.js.map +1 -0
- package/dist/math/vec3/f32/sqrt.d.ts +2 -0
- package/dist/math/vec3/f32/sqrt.js +3 -0
- package/dist/math/vec3/f32/sqrt.js.map +1 -0
- package/dist/math/vec3/f32/step.d.ts +2 -0
- package/dist/math/vec3/f32/step.js +7 -0
- package/dist/math/vec3/f32/step.js.map +1 -0
- package/dist/math/vec3/f32/subtract.d.ts +2 -0
- package/dist/math/vec3/f32/subtract.js +7 -0
- package/dist/math/vec3/f32/subtract.js.map +1 -0
- package/dist/math/vec3/f32/tan.d.ts +2 -0
- package/dist/math/vec3/f32/tan.js +3 -0
- package/dist/math/vec3/f32/tan.js.map +1 -0
- package/dist/math/vec3/f32/tanh.d.ts +2 -0
- package/dist/math/vec3/f32/tanh.js +3 -0
- package/dist/math/vec3/f32/tanh.js.map +1 -0
- package/dist/math/vec3/f32/trunc.d.ts +2 -0
- package/dist/math/vec3/f32/trunc.js +3 -0
- package/dist/math/vec3/f32/trunc.js.map +1 -0
- package/dist/math/vec3/f32/zero.d.ts +2 -0
- package/dist/math/vec3/f32/zero.js +3 -0
- package/dist/math/vec3/f32/zero.js.map +1 -0
- package/dist/math/vec3/i32/abs.d.ts +2 -0
- package/dist/math/vec3/i32/abs.js +3 -0
- package/dist/math/vec3/i32/abs.js.map +1 -0
- package/dist/math/vec3/i32/add.d.ts +2 -0
- package/dist/math/vec3/i32/add.js +7 -0
- package/dist/math/vec3/i32/add.js.map +1 -0
- package/dist/math/vec3/i32/bitwise-and.d.ts +2 -0
- package/dist/math/vec3/i32/bitwise-and.js +7 -0
- package/dist/math/vec3/i32/bitwise-and.js.map +1 -0
- package/dist/math/vec3/i32/bitwise-not.d.ts +2 -0
- package/dist/math/vec3/i32/bitwise-not.js +3 -0
- package/dist/math/vec3/i32/bitwise-not.js.map +1 -0
- package/dist/math/vec3/i32/bitwise-or.d.ts +2 -0
- package/dist/math/vec3/i32/bitwise-or.js +7 -0
- package/dist/math/vec3/i32/bitwise-or.js.map +1 -0
- package/dist/math/vec3/i32/bitwise-xor.d.ts +2 -0
- package/dist/math/vec3/i32/bitwise-xor.js +7 -0
- package/dist/math/vec3/i32/bitwise-xor.js.map +1 -0
- package/dist/math/vec3/i32/clamp.d.ts +2 -0
- package/dist/math/vec3/i32/clamp.js +5 -0
- package/dist/math/vec3/i32/clamp.js.map +1 -0
- package/dist/math/vec3/i32/count-leading-zeros.d.ts +2 -0
- package/dist/math/vec3/i32/count-leading-zeros.js +8 -0
- package/dist/math/vec3/i32/count-leading-zeros.js.map +1 -0
- package/dist/math/vec3/i32/count-one-bits.d.ts +2 -0
- package/dist/math/vec3/i32/count-one-bits.js +8 -0
- package/dist/math/vec3/i32/count-one-bits.js.map +1 -0
- package/dist/math/vec3/i32/count-trailing-zeros.d.ts +2 -0
- package/dist/math/vec3/i32/count-trailing-zeros.js +8 -0
- package/dist/math/vec3/i32/count-trailing-zeros.js.map +1 -0
- package/dist/math/vec3/i32/equals.d.ts +2 -0
- package/dist/math/vec3/i32/equals.js +3 -0
- package/dist/math/vec3/i32/equals.js.map +1 -0
- package/dist/math/vec3/i32/max.d.ts +2 -0
- package/dist/math/vec3/i32/max.js +7 -0
- package/dist/math/vec3/i32/max.js.map +1 -0
- package/dist/math/vec3/i32/min.d.ts +2 -0
- package/dist/math/vec3/i32/min.js +7 -0
- package/dist/math/vec3/i32/min.js.map +1 -0
- package/dist/math/vec3/i32/multiply.d.ts +2 -0
- package/dist/math/vec3/i32/multiply.js +7 -0
- package/dist/math/vec3/i32/multiply.js.map +1 -0
- package/dist/math/vec3/i32/negate.d.ts +2 -0
- package/dist/math/vec3/i32/negate.js +3 -0
- package/dist/math/vec3/i32/negate.js.map +1 -0
- package/dist/math/vec3/i32/one.d.ts +2 -0
- package/dist/math/vec3/i32/one.js +3 -0
- package/dist/math/vec3/i32/one.js.map +1 -0
- package/dist/math/vec3/i32/public.d.ts +22 -1
- package/dist/math/vec3/i32/public.js +22 -1
- package/dist/math/vec3/i32/public.js.map +1 -1
- package/dist/math/vec3/i32/reverse-bits.d.ts +2 -0
- package/dist/math/vec3/i32/reverse-bits.js +8 -0
- package/dist/math/vec3/i32/reverse-bits.js.map +1 -0
- package/dist/math/vec3/i32/scale.d.ts +2 -0
- package/dist/math/vec3/i32/scale.js +3 -0
- package/dist/math/vec3/i32/scale.js.map +1 -0
- package/dist/math/vec3/i32/shift-left.d.ts +2 -0
- package/dist/math/vec3/i32/shift-left.js +3 -0
- package/dist/math/vec3/i32/shift-left.js.map +1 -0
- package/dist/math/vec3/i32/shift-right.d.ts +2 -0
- package/dist/math/vec3/i32/shift-right.js +8 -0
- package/dist/math/vec3/i32/shift-right.js.map +1 -0
- package/dist/math/vec3/i32/subtract.d.ts +2 -0
- package/dist/math/vec3/i32/subtract.js +7 -0
- package/dist/math/vec3/i32/subtract.js.map +1 -0
- package/dist/math/vec3/i32/zero.d.ts +2 -0
- package/dist/math/vec3/i32/zero.js +3 -0
- package/dist/math/vec3/i32/zero.js.map +1 -0
- package/dist/math/vec3/public.d.ts +1 -1
- package/dist/math/vec3/public.js +1 -1
- package/dist/math/vec3/public.js.map +1 -1
- package/dist/math/vec3/u32/add.d.ts +2 -0
- package/dist/math/vec3/u32/add.js +7 -0
- package/dist/math/vec3/u32/add.js.map +1 -0
- package/dist/math/vec3/u32/bitwise-and.d.ts +2 -0
- package/dist/math/vec3/u32/bitwise-and.js +7 -0
- package/dist/math/vec3/u32/bitwise-and.js.map +1 -0
- package/dist/math/vec3/u32/bitwise-not.d.ts +2 -0
- package/dist/math/vec3/u32/bitwise-not.js +3 -0
- package/dist/math/vec3/u32/bitwise-not.js.map +1 -0
- package/dist/math/vec3/u32/bitwise-or.d.ts +2 -0
- package/dist/math/vec3/u32/bitwise-or.js +7 -0
- package/dist/math/vec3/u32/bitwise-or.js.map +1 -0
- package/dist/math/vec3/u32/bitwise-xor.d.ts +2 -0
- package/dist/math/vec3/u32/bitwise-xor.js +7 -0
- package/dist/math/vec3/u32/bitwise-xor.js.map +1 -0
- package/dist/math/vec3/u32/clamp.d.ts +2 -0
- package/dist/math/vec3/u32/clamp.js +5 -0
- package/dist/math/vec3/u32/clamp.js.map +1 -0
- package/dist/math/vec3/u32/count-leading-zeros.d.ts +2 -0
- package/dist/math/vec3/u32/count-leading-zeros.js +8 -0
- package/dist/math/vec3/u32/count-leading-zeros.js.map +1 -0
- package/dist/math/vec3/u32/count-one-bits.d.ts +2 -0
- package/dist/math/vec3/u32/count-one-bits.js +8 -0
- package/dist/math/vec3/u32/count-one-bits.js.map +1 -0
- package/dist/math/vec3/u32/count-trailing-zeros.d.ts +2 -0
- package/dist/math/vec3/u32/count-trailing-zeros.js +8 -0
- package/dist/math/vec3/u32/count-trailing-zeros.js.map +1 -0
- package/dist/math/vec3/u32/equals.d.ts +2 -0
- package/dist/math/vec3/u32/equals.js +3 -0
- package/dist/math/vec3/u32/equals.js.map +1 -0
- package/dist/math/vec3/u32/max.d.ts +2 -0
- package/dist/math/vec3/u32/max.js +7 -0
- package/dist/math/vec3/u32/max.js.map +1 -0
- package/dist/math/vec3/u32/min.d.ts +2 -0
- package/dist/math/vec3/u32/min.js +7 -0
- package/dist/math/vec3/u32/min.js.map +1 -0
- package/dist/math/vec3/u32/multiply.d.ts +2 -0
- package/dist/math/vec3/u32/multiply.js +7 -0
- package/dist/math/vec3/u32/multiply.js.map +1 -0
- package/dist/math/vec3/u32/negate.d.ts +2 -0
- package/dist/math/vec3/u32/negate.js +3 -0
- package/dist/math/vec3/u32/negate.js.map +1 -0
- package/dist/math/vec3/u32/one.d.ts +2 -0
- package/dist/math/vec3/u32/one.js +3 -0
- package/dist/math/vec3/u32/one.js.map +1 -0
- package/dist/math/vec3/u32/public.d.ts +22 -1
- package/dist/math/vec3/u32/public.js +22 -1
- package/dist/math/vec3/u32/public.js.map +1 -1
- package/dist/math/vec3/u32/reverse-bits.d.ts +2 -0
- package/dist/math/vec3/u32/reverse-bits.js +8 -0
- package/dist/math/vec3/u32/reverse-bits.js.map +1 -0
- package/dist/math/vec3/u32/scale.d.ts +2 -0
- package/dist/math/vec3/u32/scale.js +7 -0
- package/dist/math/vec3/u32/scale.js.map +1 -0
- package/dist/math/vec3/u32/shift-left.d.ts +2 -0
- package/dist/math/vec3/u32/shift-left.js +7 -0
- package/dist/math/vec3/u32/shift-left.js.map +1 -0
- package/dist/math/vec3/u32/shift-right.d.ts +2 -0
- package/dist/math/vec3/u32/shift-right.js +8 -0
- package/dist/math/vec3/u32/shift-right.js.map +1 -0
- package/dist/math/vec3/u32/subtract.d.ts +2 -0
- package/dist/math/vec3/u32/subtract.js +7 -0
- package/dist/math/vec3/u32/subtract.js.map +1 -0
- package/dist/math/vec3/u32/volume.d.ts +2 -0
- package/dist/math/vec3/u32/volume.js +3 -0
- package/dist/math/vec3/u32/volume.js.map +1 -0
- package/dist/math/vec3/u32/zero.d.ts +2 -0
- package/dist/math/vec3/u32/zero.js +3 -0
- package/dist/math/vec3/u32/zero.js.map +1 -0
- package/dist/math/vec4/f32/abs.d.ts +2 -0
- package/dist/math/vec4/f32/abs.js +3 -0
- package/dist/math/vec4/f32/abs.js.map +1 -0
- package/dist/math/vec4/f32/acos.d.ts +2 -0
- package/dist/math/vec4/f32/acos.js +3 -0
- package/dist/math/vec4/f32/acos.js.map +1 -0
- package/dist/math/vec4/f32/acosh.d.ts +2 -0
- package/dist/math/vec4/f32/acosh.js +3 -0
- package/dist/math/vec4/f32/acosh.js.map +1 -0
- package/dist/math/vec4/f32/add.d.ts +2 -0
- package/dist/math/vec4/f32/add.js +8 -0
- package/dist/math/vec4/f32/add.js.map +1 -0
- package/dist/math/vec4/f32/asin.d.ts +2 -0
- package/dist/math/vec4/f32/asin.js +3 -0
- package/dist/math/vec4/f32/asin.js.map +1 -0
- package/dist/math/vec4/f32/asinh.d.ts +2 -0
- package/dist/math/vec4/f32/asinh.js +3 -0
- package/dist/math/vec4/f32/asinh.js.map +1 -0
- package/dist/math/vec4/f32/atan.d.ts +2 -0
- package/dist/math/vec4/f32/atan.js +3 -0
- package/dist/math/vec4/f32/atan.js.map +1 -0
- package/dist/math/vec4/f32/atanh.d.ts +2 -0
- package/dist/math/vec4/f32/atanh.js +3 -0
- package/dist/math/vec4/f32/atanh.js.map +1 -0
- package/dist/math/vec4/f32/ceil.d.ts +2 -0
- package/dist/math/vec4/f32/ceil.js +3 -0
- package/dist/math/vec4/f32/ceil.js.map +1 -0
- package/dist/math/vec4/f32/clamp.d.ts +2 -0
- package/dist/math/vec4/f32/clamp.js +5 -0
- package/dist/math/vec4/f32/clamp.js.map +1 -0
- package/dist/math/vec4/f32/cos.d.ts +2 -0
- package/dist/math/vec4/f32/cos.js +3 -0
- package/dist/math/vec4/f32/cos.js.map +1 -0
- package/dist/math/vec4/f32/cosh.d.ts +2 -0
- package/dist/math/vec4/f32/cosh.js +3 -0
- package/dist/math/vec4/f32/cosh.js.map +1 -0
- package/dist/math/vec4/f32/distance.d.ts +2 -0
- package/dist/math/vec4/f32/distance.js +5 -0
- package/dist/math/vec4/f32/distance.js.map +1 -0
- package/dist/math/vec4/f32/dot.d.ts +2 -0
- package/dist/math/vec4/f32/dot.js +3 -0
- package/dist/math/vec4/f32/dot.js.map +1 -0
- package/dist/math/vec4/f32/exp.d.ts +2 -0
- package/dist/math/vec4/f32/exp.js +3 -0
- package/dist/math/vec4/f32/exp.js.map +1 -0
- package/dist/math/vec4/f32/exp2.d.ts +2 -0
- package/dist/math/vec4/f32/exp2.js +3 -0
- package/dist/math/vec4/f32/exp2.js.map +1 -0
- package/dist/math/vec4/f32/faceforward.d.ts +2 -0
- package/dist/math/vec4/f32/faceforward.js +5 -0
- package/dist/math/vec4/f32/faceforward.js.map +1 -0
- package/dist/math/vec4/f32/floor.d.ts +2 -0
- package/dist/math/vec4/f32/floor.js +3 -0
- package/dist/math/vec4/f32/floor.js.map +1 -0
- package/dist/math/vec4/f32/fract.d.ts +2 -0
- package/dist/math/vec4/f32/fract.js +8 -0
- package/dist/math/vec4/f32/fract.js.map +1 -0
- package/dist/math/vec4/f32/length.d.ts +2 -0
- package/dist/math/vec4/f32/length.js +3 -0
- package/dist/math/vec4/f32/length.js.map +1 -0
- package/dist/math/vec4/f32/log.d.ts +2 -0
- package/dist/math/vec4/f32/log.js +3 -0
- package/dist/math/vec4/f32/log.js.map +1 -0
- package/dist/math/vec4/f32/log2.d.ts +2 -0
- package/dist/math/vec4/f32/log2.js +3 -0
- package/dist/math/vec4/f32/log2.js.map +1 -0
- package/dist/math/vec4/f32/max.d.ts +2 -0
- package/dist/math/vec4/f32/max.js +8 -0
- package/dist/math/vec4/f32/max.js.map +1 -0
- package/dist/math/vec4/f32/min.d.ts +2 -0
- package/dist/math/vec4/f32/min.js +8 -0
- package/dist/math/vec4/f32/min.js.map +1 -0
- package/dist/math/vec4/f32/mix.d.ts +2 -0
- package/dist/math/vec4/f32/mix.js +8 -0
- package/dist/math/vec4/f32/mix.js.map +1 -0
- package/dist/math/vec4/f32/mod.d.ts +2 -0
- package/dist/math/vec4/f32/mod.js +8 -0
- package/dist/math/vec4/f32/mod.js.map +1 -0
- package/dist/math/vec4/f32/modf.d.ts +5 -0
- package/dist/math/vec4/f32/modf.js +6 -0
- package/dist/math/vec4/f32/modf.js.map +1 -0
- package/dist/math/vec4/f32/multiply.d.ts +2 -0
- package/dist/math/vec4/f32/multiply.js +8 -0
- package/dist/math/vec4/f32/multiply.js.map +1 -0
- package/dist/math/vec4/f32/negate.d.ts +2 -0
- package/dist/math/vec4/f32/negate.js +3 -0
- package/dist/math/vec4/f32/negate.js.map +1 -0
- package/dist/math/vec4/f32/normalize.d.ts +2 -0
- package/dist/math/vec4/f32/normalize.js +8 -0
- package/dist/math/vec4/f32/normalize.js.map +1 -0
- package/dist/math/vec4/f32/pow.d.ts +2 -0
- package/dist/math/vec4/f32/pow.js +8 -0
- package/dist/math/vec4/f32/pow.js.map +1 -0
- package/dist/math/vec4/f32/public.d.ts +45 -1
- package/dist/math/vec4/f32/public.js +45 -1
- package/dist/math/vec4/f32/public.js.map +1 -1
- package/dist/math/vec4/f32/reflect.d.ts +2 -0
- package/dist/math/vec4/f32/reflect.js +9 -0
- package/dist/math/vec4/f32/reflect.js.map +1 -0
- package/dist/math/vec4/f32/refract.d.ts +2 -0
- package/dist/math/vec4/f32/refract.js +14 -0
- package/dist/math/vec4/f32/refract.js.map +1 -0
- package/dist/math/vec4/f32/round.d.ts +2 -0
- package/dist/math/vec4/f32/round.js +3 -0
- package/dist/math/vec4/f32/round.js.map +1 -0
- package/dist/math/vec4/f32/scale.d.ts +2 -0
- package/dist/math/vec4/f32/scale.js +3 -0
- package/dist/math/vec4/f32/scale.js.map +1 -0
- package/dist/math/vec4/f32/sign.d.ts +2 -0
- package/dist/math/vec4/f32/sign.js +3 -0
- package/dist/math/vec4/f32/sign.js.map +1 -0
- package/dist/math/vec4/f32/sin.d.ts +2 -0
- package/dist/math/vec4/f32/sin.js +3 -0
- package/dist/math/vec4/f32/sin.js.map +1 -0
- package/dist/math/vec4/f32/sinh.d.ts +2 -0
- package/dist/math/vec4/f32/sinh.js +3 -0
- package/dist/math/vec4/f32/sinh.js.map +1 -0
- package/dist/math/vec4/f32/smoothstep.d.ts +2 -0
- package/dist/math/vec4/f32/smoothstep.js +14 -0
- package/dist/math/vec4/f32/smoothstep.js.map +1 -0
- package/dist/math/vec4/f32/sqrt.d.ts +2 -0
- package/dist/math/vec4/f32/sqrt.js +3 -0
- package/dist/math/vec4/f32/sqrt.js.map +1 -0
- package/dist/math/vec4/f32/step.d.ts +2 -0
- package/dist/math/vec4/f32/step.js +8 -0
- package/dist/math/vec4/f32/step.js.map +1 -0
- package/dist/math/vec4/f32/subtract.d.ts +2 -0
- package/dist/math/vec4/f32/subtract.js +8 -0
- package/dist/math/vec4/f32/subtract.js.map +1 -0
- package/dist/math/vec4/f32/tan.d.ts +2 -0
- package/dist/math/vec4/f32/tan.js +3 -0
- package/dist/math/vec4/f32/tan.js.map +1 -0
- package/dist/math/vec4/f32/tanh.d.ts +2 -0
- package/dist/math/vec4/f32/tanh.js +3 -0
- package/dist/math/vec4/f32/tanh.js.map +1 -0
- package/dist/math/vec4/f32/trunc.d.ts +2 -0
- package/dist/math/vec4/f32/trunc.js +3 -0
- package/dist/math/vec4/f32/trunc.js.map +1 -0
- package/dist/math/vec4/i32/abs.d.ts +2 -0
- package/dist/math/vec4/i32/abs.js +3 -0
- package/dist/math/vec4/i32/abs.js.map +1 -0
- package/dist/math/vec4/i32/add.d.ts +2 -0
- package/dist/math/vec4/i32/add.js +8 -0
- package/dist/math/vec4/i32/add.js.map +1 -0
- package/dist/math/vec4/i32/bitwise-and.d.ts +2 -0
- package/dist/math/vec4/i32/bitwise-and.js +8 -0
- package/dist/math/vec4/i32/bitwise-and.js.map +1 -0
- package/dist/math/vec4/i32/bitwise-not.d.ts +2 -0
- package/dist/math/vec4/i32/bitwise-not.js +3 -0
- package/dist/math/vec4/i32/bitwise-not.js.map +1 -0
- package/dist/math/vec4/i32/bitwise-or.d.ts +2 -0
- package/dist/math/vec4/i32/bitwise-or.js +8 -0
- package/dist/math/vec4/i32/bitwise-or.js.map +1 -0
- package/dist/math/vec4/i32/bitwise-xor.d.ts +2 -0
- package/dist/math/vec4/i32/bitwise-xor.js +8 -0
- package/dist/math/vec4/i32/bitwise-xor.js.map +1 -0
- package/dist/math/vec4/i32/clamp.d.ts +2 -0
- package/dist/math/vec4/i32/clamp.js +5 -0
- package/dist/math/vec4/i32/clamp.js.map +1 -0
- package/dist/math/vec4/i32/count-leading-zeros.d.ts +2 -0
- package/dist/math/vec4/i32/count-leading-zeros.js +9 -0
- package/dist/math/vec4/i32/count-leading-zeros.js.map +1 -0
- package/dist/math/vec4/i32/count-one-bits.d.ts +2 -0
- package/dist/math/vec4/i32/count-one-bits.js +9 -0
- package/dist/math/vec4/i32/count-one-bits.js.map +1 -0
- package/dist/math/vec4/i32/count-trailing-zeros.d.ts +2 -0
- package/dist/math/vec4/i32/count-trailing-zeros.js +9 -0
- package/dist/math/vec4/i32/count-trailing-zeros.js.map +1 -0
- package/dist/math/vec4/i32/equals.d.ts +2 -0
- package/dist/math/vec4/i32/equals.js +3 -0
- package/dist/math/vec4/i32/equals.js.map +1 -0
- package/dist/math/vec4/i32/max.d.ts +2 -0
- package/dist/math/vec4/i32/max.js +8 -0
- package/dist/math/vec4/i32/max.js.map +1 -0
- package/dist/math/vec4/i32/min.d.ts +2 -0
- package/dist/math/vec4/i32/min.js +8 -0
- package/dist/math/vec4/i32/min.js.map +1 -0
- package/dist/math/vec4/i32/multiply.d.ts +2 -0
- package/dist/math/vec4/i32/multiply.js +8 -0
- package/dist/math/vec4/i32/multiply.js.map +1 -0
- package/dist/math/vec4/i32/negate.d.ts +2 -0
- package/dist/math/vec4/i32/negate.js +3 -0
- package/dist/math/vec4/i32/negate.js.map +1 -0
- package/dist/math/vec4/i32/one.d.ts +2 -0
- package/dist/math/vec4/i32/one.js +3 -0
- package/dist/math/vec4/i32/one.js.map +1 -0
- package/dist/math/vec4/i32/public.d.ts +22 -1
- package/dist/math/vec4/i32/public.js +22 -1
- package/dist/math/vec4/i32/public.js.map +1 -1
- package/dist/math/vec4/i32/reverse-bits.d.ts +2 -0
- package/dist/math/vec4/i32/reverse-bits.js +9 -0
- package/dist/math/vec4/i32/reverse-bits.js.map +1 -0
- package/dist/math/vec4/i32/scale.d.ts +2 -0
- package/dist/math/vec4/i32/scale.js +3 -0
- package/dist/math/vec4/i32/scale.js.map +1 -0
- package/dist/math/vec4/i32/shift-left.d.ts +2 -0
- package/dist/math/vec4/i32/shift-left.js +3 -0
- package/dist/math/vec4/i32/shift-left.js.map +1 -0
- package/dist/math/vec4/i32/shift-right.d.ts +2 -0
- package/dist/math/vec4/i32/shift-right.js +9 -0
- package/dist/math/vec4/i32/shift-right.js.map +1 -0
- package/dist/math/vec4/i32/subtract.d.ts +2 -0
- package/dist/math/vec4/i32/subtract.js +8 -0
- package/dist/math/vec4/i32/subtract.js.map +1 -0
- package/dist/math/vec4/i32/zero.d.ts +2 -0
- package/dist/math/vec4/i32/zero.js +3 -0
- package/dist/math/vec4/i32/zero.js.map +1 -0
- package/dist/math/vec4/public.d.ts +1 -1
- package/dist/math/vec4/public.js +1 -1
- package/dist/math/vec4/public.js.map +1 -1
- package/dist/math/vec4/u32/add.d.ts +2 -0
- package/dist/math/vec4/u32/add.js +8 -0
- package/dist/math/vec4/u32/add.js.map +1 -0
- package/dist/math/vec4/u32/bitwise-and.d.ts +2 -0
- package/dist/math/vec4/u32/bitwise-and.js +8 -0
- package/dist/math/vec4/u32/bitwise-and.js.map +1 -0
- package/dist/math/vec4/u32/bitwise-not.d.ts +2 -0
- package/dist/math/vec4/u32/bitwise-not.js +3 -0
- package/dist/math/vec4/u32/bitwise-not.js.map +1 -0
- package/dist/math/vec4/u32/bitwise-or.d.ts +2 -0
- package/dist/math/vec4/u32/bitwise-or.js +8 -0
- package/dist/math/vec4/u32/bitwise-or.js.map +1 -0
- package/dist/math/vec4/u32/bitwise-xor.d.ts +2 -0
- package/dist/math/vec4/u32/bitwise-xor.js +8 -0
- package/dist/math/vec4/u32/bitwise-xor.js.map +1 -0
- package/dist/math/vec4/u32/clamp.d.ts +2 -0
- package/dist/math/vec4/u32/clamp.js +5 -0
- package/dist/math/vec4/u32/clamp.js.map +1 -0
- package/dist/math/vec4/u32/count-leading-zeros.d.ts +2 -0
- package/dist/math/vec4/u32/count-leading-zeros.js +9 -0
- package/dist/math/vec4/u32/count-leading-zeros.js.map +1 -0
- package/dist/math/vec4/u32/count-one-bits.d.ts +2 -0
- package/dist/math/vec4/u32/count-one-bits.js +9 -0
- package/dist/math/vec4/u32/count-one-bits.js.map +1 -0
- package/dist/math/vec4/u32/count-trailing-zeros.d.ts +2 -0
- package/dist/math/vec4/u32/count-trailing-zeros.js +9 -0
- package/dist/math/vec4/u32/count-trailing-zeros.js.map +1 -0
- package/dist/math/vec4/u32/equals.d.ts +2 -0
- package/dist/math/vec4/u32/equals.js +3 -0
- package/dist/math/vec4/u32/equals.js.map +1 -0
- package/dist/math/vec4/u32/max.d.ts +2 -0
- package/dist/math/vec4/u32/max.js +8 -0
- package/dist/math/vec4/u32/max.js.map +1 -0
- package/dist/math/vec4/u32/min.d.ts +2 -0
- package/dist/math/vec4/u32/min.js +8 -0
- package/dist/math/vec4/u32/min.js.map +1 -0
- package/dist/math/vec4/u32/multiply.d.ts +2 -0
- package/dist/math/vec4/u32/multiply.js +8 -0
- package/dist/math/vec4/u32/multiply.js.map +1 -0
- package/dist/math/vec4/u32/negate.d.ts +2 -0
- package/dist/math/vec4/u32/negate.js +3 -0
- package/dist/math/vec4/u32/negate.js.map +1 -0
- package/dist/math/vec4/u32/one.d.ts +2 -0
- package/dist/math/vec4/u32/one.js +3 -0
- package/dist/math/vec4/u32/one.js.map +1 -0
- package/dist/math/vec4/u32/public.d.ts +21 -1
- package/dist/math/vec4/u32/public.js +21 -1
- package/dist/math/vec4/u32/public.js.map +1 -1
- package/dist/math/vec4/u32/reverse-bits.d.ts +2 -0
- package/dist/math/vec4/u32/reverse-bits.js +9 -0
- package/dist/math/vec4/u32/reverse-bits.js.map +1 -0
- package/dist/math/vec4/u32/scale.d.ts +2 -0
- package/dist/math/vec4/u32/scale.js +8 -0
- package/dist/math/vec4/u32/scale.js.map +1 -0
- package/dist/math/vec4/u32/shift-left.d.ts +2 -0
- package/dist/math/vec4/u32/shift-left.js +8 -0
- package/dist/math/vec4/u32/shift-left.js.map +1 -0
- package/dist/math/vec4/u32/shift-right.d.ts +2 -0
- package/dist/math/vec4/u32/shift-right.js +9 -0
- package/dist/math/vec4/u32/shift-right.js.map +1 -0
- package/dist/math/vec4/u32/subtract.d.ts +2 -0
- package/dist/math/vec4/u32/subtract.js +8 -0
- package/dist/math/vec4/u32/subtract.js.map +1 -0
- package/dist/math/vec4/u32/zero.d.ts +2 -0
- package/dist/math/vec4/u32/zero.js +3 -0
- package/dist/math/vec4/u32/zero.js.map +1 -0
- package/dist/schema/from-archetype.d.ts +7 -4
- package/dist/schema/from-archetype.js +3 -3
- package/dist/schema/from-archetype.js.map +1 -1
- package/dist/schema/from-object-properties.d.ts +15 -0
- package/dist/schema/from-object-properties.js +9 -0
- package/dist/schema/from-object-properties.js.map +1 -0
- package/dist/schema/from-object-properties.test.d.ts +1 -0
- package/dist/schema/from-object-properties.test.js +49 -0
- package/dist/schema/from-object-properties.test.js.map +1 -0
- package/dist/schema/from-object-properties.type-test.d.ts +1 -0
- package/dist/schema/from-object-properties.type-test.js +37 -0
- package/dist/schema/from-object-properties.type-test.js.map +1 -0
- package/dist/schema/from-struct-properties.d.ts +8 -0
- package/dist/schema/from-struct-properties.js +7 -0
- package/dist/schema/from-struct-properties.js.map +1 -0
- package/dist/schema/from-struct-properties.test.d.ts +1 -0
- package/dist/schema/from-struct-properties.test.js +28 -0
- package/dist/schema/from-struct-properties.test.js.map +1 -0
- package/dist/schema/from-struct-properties.type-test.d.ts +1 -0
- package/dist/schema/from-struct-properties.type-test.js +11 -0
- package/dist/schema/from-struct-properties.type-test.js.map +1 -0
- package/dist/schema/guid/guid.performance.test.js +0 -3
- package/dist/schema/guid/guid.performance.test.js.map +1 -1
- package/dist/schema/public.d.ts +2 -1
- package/dist/schema/public.js +2 -1
- package/dist/schema/public.js.map +1 -1
- package/dist/schema/schema.d.ts +2 -0
- package/dist/service/service.d.ts +1 -1
- package/dist/service/ui-service/from-service.d.ts +19 -3
- package/dist/service/ui-service/from-service.transaction.type-test.d.ts +1 -0
- package/dist/service/ui-service/from-service.transaction.type-test.js +14 -0
- package/dist/service/ui-service/from-service.transaction.type-test.js.map +1 -0
- package/dist/service/ui-service/is-valid.d.ts +5 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/async-args-provider.d.ts +17 -0
- package/dist/types/async-args-provider.js +3 -0
- package/dist/types/async-args-provider.js.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
- package/references/data-lit/package.json +6 -2
- package/references/data-lit/src/elements/database-element.ts +36 -1
- package/references/data-lit/src/elements/database-element.type-test.ts +20 -0
- package/references/data-lit/src/index.ts +1 -0
- package/references/data-lit/src/testing/template/from.test.ts +47 -0
- package/references/data-lit/src/testing/template/from.ts +86 -0
- package/references/data-lit/src/testing/template/public.ts +3 -0
- package/references/data-lit/src/testing/template/query.ts +27 -0
- package/references/data-lit/src/testing/template/template.ts +4 -0
- package/references/data-lit-tictactoe/package.json +6 -2
- package/references/data-lit-tictactoe/src/features/main/data/board-cell/blank.ts +5 -0
- package/references/data-lit-tictactoe/src/features/main/data/board-cell/board-cell.ts +5 -0
- package/references/data-lit-tictactoe/src/{types/play-move-args → features/main/data/board-cell}/public.ts +1 -2
- package/references/data-lit-tictactoe/src/{types → features/main/data}/board-state/board-state.ts +2 -2
- package/references/data-lit-tictactoe/src/{types → features/main/data}/board-state/create-initial-board.ts +2 -2
- package/references/data-lit-tictactoe/src/{types → features/main/data}/board-state/current-player.ts +2 -2
- package/references/data-lit-tictactoe/src/{types → features/main/data}/board-state/derive-status.ts +4 -4
- package/references/data-lit-tictactoe/src/features/main/data/board-state/from-marks.ts +11 -0
- package/references/data-lit-tictactoe/src/{types → features/main/data}/board-state/get-move-count.ts +1 -1
- package/references/data-lit-tictactoe/src/{types → features/main/data}/board-state/get-winner.ts +4 -4
- package/references/data-lit-tictactoe/src/features/main/data/board-state/get-winning-line.ts +15 -0
- package/references/data-lit-tictactoe/src/{types → features/main/data}/board-state/is-board-full.ts +1 -1
- package/references/data-lit-tictactoe/src/{types → features/main/data}/board-state/is-game-over.ts +3 -3
- package/references/data-lit-tictactoe/src/features/main/data/board-state/public.ts +13 -0
- package/references/data-lit-tictactoe/src/{types → features/main/data}/board-state/schema.ts +3 -1
- package/references/data-lit-tictactoe/src/{types → features/main/data}/board-state/set-board-cell.ts +3 -3
- package/references/data-lit-tictactoe/src/features/main/data/cell-index/cell-index.ts +6 -0
- package/references/data-lit-tictactoe/src/features/main/data/cell-index/public.ts +2 -0
- package/references/data-lit-tictactoe/src/features/main/data/cell-index/schema.ts +9 -0
- package/references/data-lit-tictactoe/src/features/main/data/game-status/game-status.ts +6 -0
- package/references/data-lit-tictactoe/src/features/main/data/game-status/is-active.ts +6 -0
- package/references/data-lit-tictactoe/src/features/main/data/game-status/public.ts +3 -0
- package/references/data-lit-tictactoe/src/features/main/data/game-status/schema.ts +7 -0
- package/references/data-lit-tictactoe/src/features/main/data/move-reject-reason/move-reject-reason.ts +6 -0
- package/references/data-lit-tictactoe/src/features/main/data/move-reject-reason/public.ts +2 -0
- package/references/data-lit-tictactoe/src/features/main/data/move-reject-reason/schema.ts +7 -0
- package/references/data-lit-tictactoe/src/features/main/data/placed-mark/placed-mark.ts +6 -0
- package/references/data-lit-tictactoe/src/features/main/data/placed-mark/public.ts +2 -0
- package/references/data-lit-tictactoe/src/features/main/data/placed-mark/schema.ts +12 -0
- package/references/data-lit-tictactoe/src/{types → features/main/data}/play-move-args/can-play-move.ts +9 -5
- package/references/data-lit-tictactoe/src/{types → features/main/data}/play-move-args/play-move-args.ts +1 -1
- package/references/data-lit-tictactoe/src/features/main/data/play-move-args/public.ts +3 -0
- package/references/data-lit-tictactoe/src/{types → features/main/data}/player-mark/is.ts +2 -2
- package/references/data-lit-tictactoe/src/{types → features/main/data}/player-mark/mark-color.ts +1 -1
- package/references/data-lit-tictactoe/src/{types → features/main/data}/player-mark/opponent.ts +1 -1
- package/references/data-lit-tictactoe/src/{types → features/main/data}/player-mark/player-mark.ts +2 -2
- package/references/data-lit-tictactoe/src/features/main/data/player-mark/public.ts +7 -0
- package/references/data-lit-tictactoe/src/{types → features/main/data}/player-mark/schema.ts +1 -1
- package/references/data-lit-tictactoe/src/{types → features/main/data}/player-mark/values.ts +2 -2
- package/references/data-lit-tictactoe/src/features/main/data/score/public.ts +2 -0
- package/references/data-lit-tictactoe/src/features/main/data/score/schema.ts +9 -0
- package/references/data-lit-tictactoe/src/features/main/data/score/score.ts +6 -0
- package/references/data-lit-tictactoe/src/features/main/data/state/conformance-case.ts +13 -0
- package/references/data-lit-tictactoe/src/features/main/data/state/expect-state-matches.ts +36 -0
- package/references/data-lit-tictactoe/src/features/main/data/state/play-move.cases.ts +47 -0
- package/references/data-lit-tictactoe/src/features/main/data/state/play-move.test.ts +13 -0
- package/references/data-lit-tictactoe/src/features/main/data/state/play-move.ts +20 -0
- package/references/data-lit-tictactoe/src/features/main/data/state/public.ts +3 -0
- package/references/data-lit-tictactoe/src/features/main/data/state/restart-game.cases.ts +34 -0
- package/references/data-lit-tictactoe/src/features/main/data/state/restart-game.test.ts +13 -0
- package/references/data-lit-tictactoe/src/features/main/data/state/restart-game.ts +18 -0
- package/references/data-lit-tictactoe/src/features/main/data/state/state.ts +15 -0
- package/references/data-lit-tictactoe/src/features/main/data/winning-line/lines.ts +14 -0
- package/references/data-lit-tictactoe/src/features/main/data/winning-line/public.ts +2 -0
- package/references/data-lit-tictactoe/src/{types → features/main/data/winning-line}/winning-line.ts +1 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/computed-database/computed/board.ts +22 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/computed-database/computed/current-player.ts +12 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/computed-database/computed/index.ts +9 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/computed-database/computed/is-game-over.ts +10 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/computed-database/computed/move-count.ts +10 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/computed-database/computed/state.ts +29 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/computed-database/computed/status.ts +10 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/computed-database/computed/winner.ts +10 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/computed-database/computed/winning-line.ts +10 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/computed-database/computed-database.ts +18 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/conformance/create-store.ts +12 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/conformance/expect-conforms.ts +42 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/conformance/from-state.ts +31 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/conformance/projection.test.ts +38 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/conformance/to-state.ts +30 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/core-database/archetypes.ts +17 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/core-database/components.ts +11 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/core-database/core-database.ts +35 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/core-database/resources.ts +13 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/feature-database.ts +7 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/index-database/index-database.ts +16 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/index-database/indexes/by-cell.ts +9 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/index-database/indexes/index.ts +2 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/service-database/service-database.ts +26 -0
- package/references/data-lit-tictactoe/src/{state/agent-plugin.ts → features/main/ecs/service-database/services/create-agent-service.ts} +14 -40
- package/references/data-lit-tictactoe/src/features/main/ecs/service-database/services/create-root-agent-service.ts +26 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/service-database/services/index.ts +3 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/transaction-database/transaction-database.ts +18 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/transaction-database/transactions/index.ts +3 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/transaction-database/transactions/play-move.test.ts +20 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/transaction-database/transactions/play-move.ts +19 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/transaction-database/transactions/read-board.ts +20 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/transaction-database/transactions/restart-game.test.ts +19 -0
- package/references/data-lit-tictactoe/src/features/main/ecs/transaction-database/transactions/restart-game.ts +25 -0
- package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-app/tictactoe-app-element.ts +1 -1
- package/references/data-lit-tictactoe/src/features/main/ui/tictactoe-app/tictactoe-app-presentation.test.ts +15 -0
- package/references/data-lit-tictactoe/src/features/main/ui/tictactoe-app/tictactoe-app.ts +17 -0
- package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-board/tictactoe-board-element.ts +1 -1
- package/references/data-lit-tictactoe/src/features/main/ui/tictactoe-board/tictactoe-board-presentation.test.ts +16 -0
- package/references/data-lit-tictactoe/src/features/main/ui/tictactoe-cell/observe-cell.ts +32 -0
- package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-cell/tictactoe-cell-element.ts +8 -12
- package/references/data-lit-tictactoe/src/features/main/ui/tictactoe-cell/tictactoe-cell-presentation.test.ts +41 -0
- package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-cell/tictactoe-cell-presentation.ts +1 -1
- package/references/data-lit-tictactoe/src/features/main/ui/tictactoe-element.ts +20 -0
- package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-hud/tictactoe-hud-element.ts +8 -20
- package/references/data-lit-tictactoe/src/features/main/ui/tictactoe-hud/tictactoe-hud-presentation.test.ts +45 -0
- package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-hud/tictactoe-hud-presentation.ts +12 -2
- package/references/data-lit-tictactoe/src/index.ts +14 -8
- package/references/data-lit-tictactoe/src/main.ts +6 -6
- package/references/data-react/package.json +3 -2
- package/references/data-react-hello/package.json +2 -1
- package/references/data-react-pixie/package.json +2 -1
- package/references/data-lit-tictactoe/src/elements/tictactoe-app/tictactoe-app.ts +0 -18
- package/references/data-lit-tictactoe/src/state/tictactoe-plugin.ts +0 -64
- package/references/data-lit-tictactoe/src/tictactoe-element.ts +0 -15
- package/references/data-lit-tictactoe/src/types/board-cell.ts +0 -5
- package/references/data-lit-tictactoe/src/types/board-state/get-cell.ts +0 -7
- package/references/data-lit-tictactoe/src/types/board-state/get-winning-line.ts +0 -25
- package/references/data-lit-tictactoe/src/types/board-state/is-cell-playable.ts +0 -13
- package/references/data-lit-tictactoe/src/types/board-state/is-cell-winning.ts +0 -9
- package/references/data-lit-tictactoe/src/types/board-state/public.ts +0 -15
- package/references/data-lit-tictactoe/src/types/game-status.ts +0 -3
- package/references/data-lit-tictactoe/src/types/move-reject-reason.ts +0 -7
- package/references/data-lit-tictactoe/src/types/player-mark/public.ts +0 -7
- /package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-app/tictactoe-app-presentation.ts +0 -0
- /package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-app/tictactoe-app.css.ts +0 -0
- /package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-board/tictactoe-board-presentation.ts +0 -0
- /package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-board/tictactoe-board.css.ts +0 -0
- /package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-board/tictactoe-board.ts +0 -0
- /package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-cell/tictactoe-cell.css.ts +0 -0
- /package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-cell/tictactoe-cell.ts +0 -0
- /package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-hud/tictactoe-hud.css.ts +0 -0
- /package/references/data-lit-tictactoe/src/{elements → features/main/ui}/tictactoe-hud/tictactoe-hud.ts +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import { Schema } from "@adobe/data/schema";
|
|
3
|
+
import { PlayerMark } from "../player-mark/player-mark.js";
|
|
4
|
+
import { CellIndex } from "../cell-index/cell-index.js";
|
|
5
|
+
|
|
6
|
+
// One mark placed on the board: which mark, and which cell it occupies. This is
|
|
7
|
+
// the shape of a PlacedMark entity's row — the archetype is checked against it
|
|
8
|
+
// (see ecs/archetypes).
|
|
9
|
+
export const schema = Schema.fromObjectProperties(
|
|
10
|
+
{ mark: PlayerMark.schema, index: CellIndex.schema },
|
|
11
|
+
["mark", "index"],
|
|
12
|
+
);
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
2
|
|
|
3
|
-
import { BoardState } from "../board-state/board-state";
|
|
4
|
-
import
|
|
3
|
+
import { BoardState } from "../board-state/board-state.js";
|
|
4
|
+
import { BoardCell } from "../board-cell/board-cell.js";
|
|
5
|
+
import type { MoveRejectReason } from "../move-reject-reason/move-reject-reason.js";
|
|
5
6
|
|
|
6
|
-
export
|
|
7
|
+
// Declared, not exported (one public export per file — `canPlayMove`). A
|
|
8
|
+
// consumer needing these infers them from the function:
|
|
9
|
+
// `Parameters<typeof canPlayMove>[0]` / `ReturnType<typeof canPlayMove>`.
|
|
10
|
+
type CanPlayMoveArgs = {
|
|
7
11
|
readonly board: BoardState;
|
|
8
12
|
readonly index: number;
|
|
9
13
|
};
|
|
10
14
|
|
|
11
|
-
|
|
15
|
+
type CanPlayMoveResult =
|
|
12
16
|
| { readonly ok: true }
|
|
13
17
|
| { readonly ok: false; readonly reason: MoveRejectReason };
|
|
14
18
|
|
|
@@ -25,7 +29,7 @@ export const canPlayMove = ({
|
|
|
25
29
|
return { ok: false, reason: "game_over" };
|
|
26
30
|
}
|
|
27
31
|
|
|
28
|
-
if (board[index] !==
|
|
32
|
+
if (board[index] !== BoardCell.blank) {
|
|
29
33
|
return { ok: false, reason: "cell_occupied" };
|
|
30
34
|
}
|
|
31
35
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
2
|
|
|
3
|
-
import type { PlayerMark } from "./player-mark";
|
|
4
|
-
import { schema } from "./schema";
|
|
3
|
+
import type { PlayerMark } from "./player-mark.js";
|
|
4
|
+
import { schema } from "./schema.js";
|
|
5
5
|
|
|
6
6
|
const set: ReadonlySet<unknown> = new Set(schema.enum);
|
|
7
7
|
|
package/references/data-lit-tictactoe/src/{types → features/main/data}/player-mark/player-mark.ts
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
2
|
|
|
3
3
|
import { Schema } from "@adobe/data/schema";
|
|
4
|
-
import { schema } from "./schema";
|
|
4
|
+
import { schema } from "./schema.js";
|
|
5
5
|
|
|
6
6
|
export type PlayerMark = Schema.ToType<typeof schema>;
|
|
7
|
-
export * as PlayerMark from "./public";
|
|
7
|
+
export * as PlayerMark from "./public.js";
|
package/references/data-lit-tictactoe/src/{types → features/main/data}/player-mark/values.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
2
|
|
|
3
|
-
import type { PlayerMark } from "./player-mark";
|
|
4
|
-
import { schema } from "./schema";
|
|
3
|
+
import type { PlayerMark } from "./player-mark.js";
|
|
4
|
+
import { schema } from "./schema.js";
|
|
5
5
|
|
|
6
6
|
export const values: readonly PlayerMark[] = schema.enum;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import { Schema } from "@adobe/data/schema";
|
|
3
|
+
|
|
4
|
+
// A non-negative scoreboard tally (wins, draws). Starts at zero.
|
|
5
|
+
export const schema = {
|
|
6
|
+
type: "number",
|
|
7
|
+
minimum: 0,
|
|
8
|
+
default: 0,
|
|
9
|
+
} as const satisfies Schema;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import type { State } from "./state.js";
|
|
3
|
+
|
|
4
|
+
// One spec-owned conformance case: a `data/` transform's `{ before, args, after }`
|
|
5
|
+
// authored as full `State`. Lives in `<transform>.cases.ts` and is shared,
|
|
6
|
+
// unchanged, by the data transform test and the ecs conformance runner
|
|
7
|
+
// (see `ecs/conformance/`).
|
|
8
|
+
export type ConformanceCase<Args> = {
|
|
9
|
+
readonly name: string;
|
|
10
|
+
readonly before: State;
|
|
11
|
+
readonly args: Args;
|
|
12
|
+
readonly after: State;
|
|
13
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import { expect } from "vitest";
|
|
3
|
+
import { equalsUnordered } from "@adobe/data";
|
|
4
|
+
import type { State } from "./state.js";
|
|
5
|
+
|
|
6
|
+
// Spec-owned tolerant `State` equality, shared by the data/ transform tests and
|
|
7
|
+
// the ecs conformance runner. Two orthogonal concerns, kept separate:
|
|
8
|
+
//
|
|
9
|
+
// precision — normalise every number on both sides onto a shared grid, so a
|
|
10
|
+
// value that differs only by F32↔f64 storage rounding compares equal.
|
|
11
|
+
// `Math.fround` collapses the F32 rounding; rounding to 1e-2 collapses any
|
|
12
|
+
// residual epsilon. `+ 0` normalises `-0` to `0`. (Tic-tac-toe's scalars are
|
|
13
|
+
// integer counters and the board is a string, so this is a no-op here — kept
|
|
14
|
+
// to mirror the shared pattern and stay robust if a float field is added.)
|
|
15
|
+
// ordering — `equalsUnordered` compares arrays as MULTISETS (archetype
|
|
16
|
+
// hole-fills make row order nondeterministic) and is object key-order
|
|
17
|
+
// independent.
|
|
18
|
+
const quantize = (n: number): number => Math.round(Math.fround(n) * 100) / 100 + 0;
|
|
19
|
+
|
|
20
|
+
const normalize = (value: unknown): unknown => {
|
|
21
|
+
if (typeof value === "number") return quantize(value);
|
|
22
|
+
if (Array.isArray(value)) return value.map(normalize);
|
|
23
|
+
if (value !== null && typeof value === "object") {
|
|
24
|
+
return Object.fromEntries(Object.entries(value).map(([key, v]) => [key, normalize(v)]));
|
|
25
|
+
}
|
|
26
|
+
return value;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export const expectStateMatches = (actual: State, expected: State): void => {
|
|
30
|
+
const a = normalize(actual);
|
|
31
|
+
const b = normalize(expected);
|
|
32
|
+
expect(
|
|
33
|
+
equalsUnordered(a, b),
|
|
34
|
+
`State mismatch:\n actual ${JSON.stringify(a)}\n expected ${JSON.stringify(b)}`,
|
|
35
|
+
).toBe(true);
|
|
36
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import type { PlayMoveArgs } from "../play-move-args/play-move-args.js";
|
|
3
|
+
import type { ConformanceCase } from "./conformance-case.js";
|
|
4
|
+
|
|
5
|
+
// Spec-owned `{ before, args, after }` cases for `State.playMove`, shared with
|
|
6
|
+
// the ecs `playMove` transaction. Covers every branch of the move guard —
|
|
7
|
+
// a legal placement, turn alternation by move count, a winning placement, plus
|
|
8
|
+
// the three rejections (occupied cell, out of bounds, game already over) that
|
|
9
|
+
// each leave the state unchanged.
|
|
10
|
+
export const cases: readonly ConformanceCase<PlayMoveArgs>[] = [
|
|
11
|
+
{
|
|
12
|
+
name: "places the first player's mark into an empty cell",
|
|
13
|
+
before: { board: " ", firstPlayer: "X", xWins: 0, oWins: 0, draws: 0 },
|
|
14
|
+
args: { index: 4 },
|
|
15
|
+
after: { board: " X ", firstPlayer: "X", xWins: 0, oWins: 0, draws: 0 },
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: "alternates to the opponent by move count",
|
|
19
|
+
before: { board: " X ", firstPlayer: "X", xWins: 0, oWins: 0, draws: 0 },
|
|
20
|
+
args: { index: 0 },
|
|
21
|
+
after: { board: "O X ", firstPlayer: "X", xWins: 0, oWins: 0, draws: 0 },
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: "completes a three-in-a-row (winning placement is still just a placement)",
|
|
25
|
+
before: { board: "XX OO ", firstPlayer: "X", xWins: 1, oWins: 2, draws: 0 },
|
|
26
|
+
args: { index: 2 },
|
|
27
|
+
after: { board: "XXX OO ", firstPlayer: "X", xWins: 1, oWins: 2, draws: 0 },
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: "ignores an occupied cell (no-op)",
|
|
31
|
+
before: { board: " X ", firstPlayer: "X", xWins: 0, oWins: 0, draws: 0 },
|
|
32
|
+
args: { index: 4 },
|
|
33
|
+
after: { board: " X ", firstPlayer: "X", xWins: 0, oWins: 0, draws: 0 },
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: "ignores an out-of-bounds index (no-op)",
|
|
37
|
+
before: { board: " ", firstPlayer: "O", xWins: 0, oWins: 0, draws: 0 },
|
|
38
|
+
args: { index: 9 },
|
|
39
|
+
after: { board: " ", firstPlayer: "O", xWins: 0, oWins: 0, draws: 0 },
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: "ignores a move once the game is already won (no-op)",
|
|
43
|
+
before: { board: "XXX ", firstPlayer: "X", xWins: 0, oWins: 0, draws: 0 },
|
|
44
|
+
args: { index: 4 },
|
|
45
|
+
after: { board: "XXX ", firstPlayer: "X", xWins: 0, oWins: 0, draws: 0 },
|
|
46
|
+
},
|
|
47
|
+
];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import { describe, it } from "vitest";
|
|
3
|
+
import { State } from "./state.js";
|
|
4
|
+
import { cases } from "./play-move.cases.js";
|
|
5
|
+
import { expectStateMatches } from "./expect-state-matches.js";
|
|
6
|
+
|
|
7
|
+
describe("State.playMove", () => {
|
|
8
|
+
for (const { name, before, args, after } of cases) {
|
|
9
|
+
it(name, () => {
|
|
10
|
+
expectStateMatches(State.playMove(before, args), after);
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import { BoardState } from "../board-state/board-state.js";
|
|
3
|
+
import { PlayMoveArgs } from "../play-move-args/play-move-args.js";
|
|
4
|
+
import type { State } from "./state.js";
|
|
5
|
+
|
|
6
|
+
// Place the current player's mark into `index`. Illegal moves (out of bounds,
|
|
7
|
+
// occupied, game over) are ignored, keeping the transform idempotent.
|
|
8
|
+
export const playMove = <T extends Pick<State, "board" | "firstPlayer">>(
|
|
9
|
+
state: T,
|
|
10
|
+
input: PlayMoveArgs,
|
|
11
|
+
): T => {
|
|
12
|
+
if (!PlayMoveArgs.canPlayMove({ board: state.board, index: input.index }).ok) {
|
|
13
|
+
return state;
|
|
14
|
+
}
|
|
15
|
+
const mark = BoardState.currentPlayer(state.board, state.firstPlayer);
|
|
16
|
+
return {
|
|
17
|
+
...state,
|
|
18
|
+
board: BoardState.setBoardCell({ board: state.board, index: input.index, mark }),
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import type { ConformanceCase } from "./conformance-case.js";
|
|
3
|
+
|
|
4
|
+
// Spec-owned `{ before, args, after }` cases for `State.restartGame` (no args),
|
|
5
|
+
// shared with the ecs `restartGame` transaction. Every restart clears the board
|
|
6
|
+
// and hands the first move to the other player; the scoreboard is bumped only
|
|
7
|
+
// for the finished game's outcome — X win, O win, draw (cat), or, when the game
|
|
8
|
+
// wasn't finished, no counter at all.
|
|
9
|
+
export const cases: readonly ConformanceCase<undefined>[] = [
|
|
10
|
+
{
|
|
11
|
+
name: "tallies an X win, alternates first player, clears the board",
|
|
12
|
+
before: { board: "XXX ", firstPlayer: "X", xWins: 0, oWins: 0, draws: 0 },
|
|
13
|
+
args: undefined,
|
|
14
|
+
after: { board: " ", firstPlayer: "O", xWins: 1, oWins: 0, draws: 0 },
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: "tallies an O win",
|
|
18
|
+
before: { board: "OOOXX ", firstPlayer: "O", xWins: 1, oWins: 2, draws: 0 },
|
|
19
|
+
args: undefined,
|
|
20
|
+
after: { board: " ", firstPlayer: "X", xWins: 1, oWins: 3, draws: 0 },
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: "tallies a draw (full board, no line)",
|
|
24
|
+
before: { board: "XOXXOOOXX", firstPlayer: "O", xWins: 2, oWins: 1, draws: 0 },
|
|
25
|
+
args: undefined,
|
|
26
|
+
after: { board: " ", firstPlayer: "X", xWins: 2, oWins: 1, draws: 1 },
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: "restarts an unfinished game without touching any counter",
|
|
30
|
+
before: { board: "X O ", firstPlayer: "X", xWins: 1, oWins: 1, draws: 1 },
|
|
31
|
+
args: undefined,
|
|
32
|
+
after: { board: " ", firstPlayer: "O", xWins: 1, oWins: 1, draws: 1 },
|
|
33
|
+
},
|
|
34
|
+
];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import { describe, it } from "vitest";
|
|
3
|
+
import { State } from "./state.js";
|
|
4
|
+
import { cases } from "./restart-game.cases.js";
|
|
5
|
+
import { expectStateMatches } from "./expect-state-matches.js";
|
|
6
|
+
|
|
7
|
+
describe("State.restartGame", () => {
|
|
8
|
+
for (const { name, before, after } of cases) {
|
|
9
|
+
it(name, () => {
|
|
10
|
+
expectStateMatches(State.restartGame(before), after);
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import { BoardState } from "../board-state/board-state.js";
|
|
3
|
+
import { PlayerMark } from "../player-mark/player-mark.js";
|
|
4
|
+
import type { State } from "./state.js";
|
|
5
|
+
|
|
6
|
+
// Tally the finished game into the scoreboard, hand the first move to the other
|
|
7
|
+
// player, and clear the board.
|
|
8
|
+
export const restartGame = (state: State): State => {
|
|
9
|
+
const winner = BoardState.getWinner(state.board);
|
|
10
|
+
const status = BoardState.deriveStatus(state.board);
|
|
11
|
+
return {
|
|
12
|
+
board: BoardState.createInitialBoard(),
|
|
13
|
+
firstPlayer: PlayerMark.opponent[state.firstPlayer],
|
|
14
|
+
xWins: state.xWins + (winner === "X" ? 1 : 0),
|
|
15
|
+
oWins: state.oWins + (winner === "O" ? 1 : 0),
|
|
16
|
+
draws: state.draws + (status === "draw" ? 1 : 0),
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import type { BoardState } from "../board-state/board-state.js";
|
|
3
|
+
import type { PlayerMark } from "../player-mark/player-mark.js";
|
|
4
|
+
import type { Score } from "../score/score.js";
|
|
5
|
+
|
|
6
|
+
// The full persistent game state as one immutable object — the specification
|
|
7
|
+
// the ECS implementation is verified against.
|
|
8
|
+
export type State = {
|
|
9
|
+
readonly board: BoardState;
|
|
10
|
+
readonly firstPlayer: PlayerMark;
|
|
11
|
+
readonly xWins: Score;
|
|
12
|
+
readonly oWins: Score;
|
|
13
|
+
readonly draws: Score;
|
|
14
|
+
};
|
|
15
|
+
export * as State from "./public.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import type { WinningLine } from "./winning-line.js";
|
|
3
|
+
|
|
4
|
+
// The eight lines (rows, columns, diagonals) that win a game, as board indices.
|
|
5
|
+
export const lines: readonly WinningLine[] = [
|
|
6
|
+
[0, 1, 2],
|
|
7
|
+
[3, 4, 5],
|
|
8
|
+
[6, 7, 8],
|
|
9
|
+
[0, 3, 6],
|
|
10
|
+
[1, 4, 7],
|
|
11
|
+
[2, 5, 8],
|
|
12
|
+
[0, 4, 8],
|
|
13
|
+
[2, 4, 6],
|
|
14
|
+
];
|
package/references/data-lit-tictactoe/src/features/main/ecs/computed-database/computed/board.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import { cached } from "@adobe/data/cache";
|
|
3
|
+
import { Observe } from "@adobe/data/observe";
|
|
4
|
+
import { BoardState } from "../../../data/board-state/board-state.js";
|
|
5
|
+
import type { PlacedMark } from "../../../data/placed-mark/placed-mark.js";
|
|
6
|
+
import type { IndexDatabase } from "../../index-database/index-database.js";
|
|
7
|
+
|
|
8
|
+
// The board snapshot, derived reactively from the placed-mark entities. The
|
|
9
|
+
// derive re-emits whenever a transaction adds or removes a mark. `withCache`
|
|
10
|
+
// shares one run across all subscribers (each cell element observes the board).
|
|
11
|
+
export const board = cached((db: IndexDatabase) =>
|
|
12
|
+
Observe.withCache(db.derive((read) => {
|
|
13
|
+
const marks: PlacedMark[] = [];
|
|
14
|
+
for (const id of read.select(db.archetypes.PlacedMark.components)) {
|
|
15
|
+
const m = read.read(id);
|
|
16
|
+
if (m && m.mark !== undefined && m.index !== undefined) {
|
|
17
|
+
marks.push({ mark: m.mark, index: m.index });
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return BoardState.fromMarks(marks);
|
|
21
|
+
})),
|
|
22
|
+
);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import { cached } from "@adobe/data/cache";
|
|
3
|
+
import { Observe } from "@adobe/data/observe";
|
|
4
|
+
import { BoardState } from "../../../data/board-state/board-state.js";
|
|
5
|
+
import type { IndexDatabase } from "../../index-database/index-database.js";
|
|
6
|
+
import { board } from "./board.js";
|
|
7
|
+
|
|
8
|
+
export const currentPlayer = cached((db: IndexDatabase) =>
|
|
9
|
+
Observe.withFilter(board(db), (snapshot) =>
|
|
10
|
+
BoardState.currentPlayer(snapshot, db.resources.firstPlayer),
|
|
11
|
+
),
|
|
12
|
+
);
|
package/references/data-lit-tictactoe/src/features/main/ecs/computed-database/computed/index.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
export * from "./state.js";
|
|
3
|
+
export * from "./board.js";
|
|
4
|
+
export * from "./current-player.js";
|
|
5
|
+
export * from "./move-count.js";
|
|
6
|
+
export * from "./status.js";
|
|
7
|
+
export * from "./winning-line.js";
|
|
8
|
+
export * from "./winner.js";
|
|
9
|
+
export * from "./is-game-over.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import { cached } from "@adobe/data/cache";
|
|
3
|
+
import { Observe } from "@adobe/data/observe";
|
|
4
|
+
import { BoardState } from "../../../data/board-state/board-state.js";
|
|
5
|
+
import type { IndexDatabase } from "../../index-database/index-database.js";
|
|
6
|
+
import { board } from "./board.js";
|
|
7
|
+
|
|
8
|
+
export const isGameOver = cached((db: IndexDatabase) =>
|
|
9
|
+
Observe.withFilter(board(db), BoardState.isGameOver),
|
|
10
|
+
);
|
package/references/data-lit-tictactoe/src/features/main/ecs/computed-database/computed/move-count.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import { cached } from "@adobe/data/cache";
|
|
3
|
+
import { Observe } from "@adobe/data/observe";
|
|
4
|
+
import { BoardState } from "../../../data/board-state/board-state.js";
|
|
5
|
+
import type { IndexDatabase } from "../../index-database/index-database.js";
|
|
6
|
+
import { board } from "./board.js";
|
|
7
|
+
|
|
8
|
+
export const moveCount = cached((db: IndexDatabase) =>
|
|
9
|
+
Observe.withFilter(board(db), BoardState.getMoveCount),
|
|
10
|
+
);
|
package/references/data-lit-tictactoe/src/features/main/ecs/computed-database/computed/state.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import { cached } from "@adobe/data/cache";
|
|
3
|
+
import { Observe } from "@adobe/data/observe";
|
|
4
|
+
import { BoardState } from "../../../data/board-state/board-state.js";
|
|
5
|
+
import type { PlacedMark } from "../../../data/placed-mark/placed-mark.js";
|
|
6
|
+
import type { State } from "../../../data/state/state.js";
|
|
7
|
+
import type { IndexDatabase } from "../../index-database/index-database.js";
|
|
8
|
+
|
|
9
|
+
// The full logical `State` projected from the ECS — the conformance anchor
|
|
10
|
+
// between the data-layer spec and this implementation. Mark entities are folded
|
|
11
|
+
// back into the board string; scalars come straight from resources.
|
|
12
|
+
export const state = cached((db: IndexDatabase) =>
|
|
13
|
+
Observe.withCache(db.derive((read): State => {
|
|
14
|
+
const marks: PlacedMark[] = [];
|
|
15
|
+
for (const id of read.select(db.archetypes.PlacedMark.components)) {
|
|
16
|
+
const m = read.read(id);
|
|
17
|
+
if (m && m.mark !== undefined && m.index !== undefined) {
|
|
18
|
+
marks.push({ mark: m.mark, index: m.index });
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
board: BoardState.fromMarks(marks),
|
|
23
|
+
firstPlayer: read.resources.firstPlayer,
|
|
24
|
+
xWins: read.resources.xWins,
|
|
25
|
+
oWins: read.resources.oWins,
|
|
26
|
+
draws: read.resources.draws,
|
|
27
|
+
};
|
|
28
|
+
})),
|
|
29
|
+
);
|
package/references/data-lit-tictactoe/src/features/main/ecs/computed-database/computed/status.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import { cached } from "@adobe/data/cache";
|
|
3
|
+
import { Observe } from "@adobe/data/observe";
|
|
4
|
+
import { BoardState } from "../../../data/board-state/board-state.js";
|
|
5
|
+
import type { IndexDatabase } from "../../index-database/index-database.js";
|
|
6
|
+
import { board } from "./board.js";
|
|
7
|
+
|
|
8
|
+
export const status = cached((db: IndexDatabase) =>
|
|
9
|
+
Observe.withFilter(board(db), BoardState.deriveStatus),
|
|
10
|
+
);
|
package/references/data-lit-tictactoe/src/features/main/ecs/computed-database/computed/winner.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import { cached } from "@adobe/data/cache";
|
|
3
|
+
import { Observe } from "@adobe/data/observe";
|
|
4
|
+
import { BoardState } from "../../../data/board-state/board-state.js";
|
|
5
|
+
import type { IndexDatabase } from "../../index-database/index-database.js";
|
|
6
|
+
import { board } from "./board.js";
|
|
7
|
+
|
|
8
|
+
export const winner = cached((db: IndexDatabase) =>
|
|
9
|
+
Observe.withFilter(board(db), BoardState.getWinner),
|
|
10
|
+
);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import { cached } from "@adobe/data/cache";
|
|
3
|
+
import { Observe } from "@adobe/data/observe";
|
|
4
|
+
import { BoardState } from "../../../data/board-state/board-state.js";
|
|
5
|
+
import type { IndexDatabase } from "../../index-database/index-database.js";
|
|
6
|
+
import { board } from "./board.js";
|
|
7
|
+
|
|
8
|
+
export const winningLine = cached((db: IndexDatabase) =>
|
|
9
|
+
Observe.withFilter(board(db), BoardState.getWinningLine),
|
|
10
|
+
);
|
package/references/data-lit-tictactoe/src/features/main/ecs/computed-database/computed-database.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import { Database } from "@adobe/data/ecs";
|
|
3
|
+
import { TransactionDatabase } from "../transaction-database/transaction-database.js";
|
|
4
|
+
import * as computed from "./computed/index.js";
|
|
5
|
+
|
|
6
|
+
const computedDatabasePlugin = Database.Plugin.create({
|
|
7
|
+
extends: TransactionDatabase.plugin,
|
|
8
|
+
computed,
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
export type ComputedDatabase = Database.Plugin.ToDatabase<
|
|
12
|
+
typeof computedDatabasePlugin
|
|
13
|
+
>;
|
|
14
|
+
|
|
15
|
+
export namespace ComputedDatabase {
|
|
16
|
+
export const plugin = computedDatabasePlugin;
|
|
17
|
+
export type Store = Database.Plugin.ToStore<typeof computedDatabasePlugin>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import { Store } from "@adobe/data/ecs";
|
|
3
|
+
import type { CoreDatabase } from "../core-database/core-database.js";
|
|
4
|
+
import { IndexDatabase } from "../index-database/index-database.js";
|
|
5
|
+
|
|
6
|
+
// A fresh writable store carrying the feature's whole schema. `IndexDatabase` is
|
|
7
|
+
// the lowest layer that declares it all (components / resources / archetypes +
|
|
8
|
+
// indexes) — the behaviour layers above add none — and `Store.create` reads a
|
|
9
|
+
// plugin's schema facets directly. Typed as `CoreDatabase.Store`: the surface the
|
|
10
|
+
// projection (`fromState` / `toState`) and the raw transaction functions use.
|
|
11
|
+
// Test-only.
|
|
12
|
+
export const createStore = (): CoreDatabase.Store => Store.create(IndexDatabase.plugin);
|