@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,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A provider of deferred or streamed arguments. Calling it yields the real
|
|
3
|
+
* argument value either once (a `Promise`) or repeatedly over time (an
|
|
4
|
+
* `AsyncGenerator`).
|
|
5
|
+
*
|
|
6
|
+
* Two layers reason about this shape:
|
|
7
|
+
* - Transaction dispatch exposes an overload accepting one, so a single
|
|
8
|
+
* logical mutation can be driven by a live source (a drag, a slider, a
|
|
9
|
+
* stream) and committed once when the source settles.
|
|
10
|
+
* - The UIService restriction preserves that calling convention (while
|
|
11
|
+
* rewriting the return to `void`) so UI consumers can drive such a
|
|
12
|
+
* transaction without ever awaiting it.
|
|
13
|
+
*
|
|
14
|
+
* This lives in the shared `types` kernel because both the `ecs` and
|
|
15
|
+
* `service` layers depend on it, and neither should depend on the other.
|
|
16
|
+
*/
|
|
17
|
+
export type AsyncArgsProvider<T> = () => Promise<T> | AsyncGenerator<T>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"async-args-provider.js","sourceRoot":"","sources":["../../src/types/async-args-provider.ts"],"names":[],"mappings":"AAAA,uDAAuD"}
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/data-lit",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.84",
|
|
4
4
|
"description": "Adobe data Lit bindings - hooks, elements, decorators",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
7
|
+
"sideEffects": [
|
|
8
|
+
"**/application-host.js"
|
|
9
|
+
],
|
|
7
10
|
"publishConfig": {
|
|
8
11
|
"registry": "https://registry.npmjs.org/",
|
|
9
12
|
"access": "public"
|
|
@@ -13,7 +16,8 @@
|
|
|
13
16
|
"dev": "tsc -b -w",
|
|
14
17
|
"link": "pnpm build && pnpm link --global",
|
|
15
18
|
"test": "vitest --run --passWithNoTests",
|
|
16
|
-
"publish-public": "pnpm build && pnpm publish --no-git-checks --access public"
|
|
19
|
+
"publish-public": "pnpm build && pnpm publish --no-git-checks --access public",
|
|
20
|
+
"typecheck": "tsc -b"
|
|
17
21
|
},
|
|
18
22
|
"dependencies": {
|
|
19
23
|
"@adobe/data": "workspace:*"
|
|
@@ -8,7 +8,8 @@ import { attachDecorator, withHooks } from '../index.js';
|
|
|
8
8
|
|
|
9
9
|
export abstract class DatabaseElement<P extends Database.Plugin> extends LitElement {
|
|
10
10
|
|
|
11
|
-
/** Full database, hard-private
|
|
11
|
+
/** Full database, hard-private. Exposed to subclasses only through the
|
|
12
|
+
* restricted {@link service} getter and the {@link database} accessor. */
|
|
12
13
|
#database!: Database.Plugin.ToDatabase<P>;
|
|
13
14
|
|
|
14
15
|
/**
|
|
@@ -27,6 +28,18 @@ export abstract class DatabaseElement<P extends Database.Plugin> extends LitElem
|
|
|
27
28
|
return UIService.restrict(this.#database);
|
|
28
29
|
}
|
|
29
30
|
|
|
31
|
+
/**
|
|
32
|
+
* The full, unrestricted database — for imperative-rendering subclasses
|
|
33
|
+
* (a canvas / WebGL draw loop that reads columns synchronously each frame,
|
|
34
|
+
* where the reactive `observe` surface can't help because systems mutate
|
|
35
|
+
* columns in place without firing observers). Presentations and external
|
|
36
|
+
* callers still receive only the restricted {@link service}; this privileged
|
|
37
|
+
* read path is confined to container element authors via `protected`.
|
|
38
|
+
*/
|
|
39
|
+
protected get database(): Database.Plugin.ToDatabase<P> {
|
|
40
|
+
return this.#database;
|
|
41
|
+
}
|
|
42
|
+
|
|
30
43
|
constructor() {
|
|
31
44
|
super();
|
|
32
45
|
attachDecorator(this, 'render', withHooks);
|
|
@@ -35,6 +48,7 @@ export abstract class DatabaseElement<P extends Database.Plugin> extends LitElem
|
|
|
35
48
|
abstract get plugin(): P;
|
|
36
49
|
|
|
37
50
|
connectedCallback(): void {
|
|
51
|
+
this.#upgradeServiceProperty();
|
|
38
52
|
if (!this.#database) {
|
|
39
53
|
const ancestor = this.findAncestorService();
|
|
40
54
|
this.service = ancestor?.extend(this.plugin) ?? Database.create(this.plugin);
|
|
@@ -42,6 +56,27 @@ export abstract class DatabaseElement<P extends Database.Plugin> extends LitElem
|
|
|
42
56
|
super.connectedCallback();
|
|
43
57
|
}
|
|
44
58
|
|
|
59
|
+
/**
|
|
60
|
+
* A lazy wrapper binds `.service` *before* this element's class is upgraded
|
|
61
|
+
* (the element module is dynamically imported), so the value lands as an own
|
|
62
|
+
* data property that shadows the `service` accessor: `set service` never runs
|
|
63
|
+
* (`#database` stays unset, `database` reads `undefined`) and `get service`
|
|
64
|
+
* returns the raw injected database instead of the restricted view. Reassign
|
|
65
|
+
* the shadowed value through the accessor so the setter runs — `#database` is
|
|
66
|
+
* populated and the UI restriction is actually enforced.
|
|
67
|
+
*/
|
|
68
|
+
#upgradeServiceProperty(): void {
|
|
69
|
+
if (!Object.prototype.hasOwnProperty.call(this, "service")) return;
|
|
70
|
+
// The own property was bound by the wrapper as the full database (DI); the
|
|
71
|
+
// `service` accessor's declared type hides that, hence the widening view.
|
|
72
|
+
const self = this as unknown as { service?: Database.Plugin.ToDatabase<P> };
|
|
73
|
+
const injected = self.service;
|
|
74
|
+
delete self.service;
|
|
75
|
+
if (injected !== undefined) {
|
|
76
|
+
this.service = injected;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
45
80
|
protected findAncestorService(): Database | void {
|
|
46
81
|
for (const element of iterateSelfAndAncestors(this)) {
|
|
47
82
|
// Read each ancestor's `service`. A DatabaseElement returns its full
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
14
14
|
|
|
15
15
|
import { Database } from "@adobe/data/ecs";
|
|
16
|
+
import type { AsyncArgsProvider } from "@adobe/data/ecs";
|
|
16
17
|
import { Observe } from "@adobe/data/observe";
|
|
17
18
|
import { UIService } from "@adobe/data/service";
|
|
18
19
|
import { DatabaseElement } from "./database-element.js";
|
|
@@ -25,6 +26,9 @@ const plugin = Database.Plugin.create({
|
|
|
25
26
|
increment: (t) => {
|
|
26
27
|
t.resources.count = t.resources.count + 1;
|
|
27
28
|
},
|
|
29
|
+
setCount: (t, input: { readonly value: number }) => {
|
|
30
|
+
t.resources.count = input.value;
|
|
31
|
+
},
|
|
28
32
|
},
|
|
29
33
|
});
|
|
30
34
|
|
|
@@ -94,6 +98,22 @@ type _CheckIncrementReturnsVoid = Assert<
|
|
|
94
98
|
Equal<ReturnType<ServiceType["transactions"]["increment"]>, void>
|
|
95
99
|
>;
|
|
96
100
|
|
|
101
|
+
// 7. A transaction with input is exposed as an overload pair. The restriction
|
|
102
|
+
// must preserve the AsyncArgsProvider overload (return rewritten to void) so
|
|
103
|
+
// a UI element can drive a live, single-commit gesture through its
|
|
104
|
+
// restricted `service` — this is exactly what `useDragTransaction`
|
|
105
|
+
// consumes: `(asyncArgs: AsyncArgsProvider<T>) => void`. Regression guard
|
|
106
|
+
// for the overload-erasure bug in UIService's RestrictProperty.
|
|
107
|
+
type DragConsumer<T> = (asyncArgs: AsyncArgsProvider<T>) => void;
|
|
108
|
+
const _setCountDrivable: DragConsumer<{ readonly value: number }> =
|
|
109
|
+
null as unknown as ServiceType["transactions"]["setCount"];
|
|
110
|
+
// The plain-args (fire-and-forget) overload also survives, still returning void.
|
|
111
|
+
const _setCountCommit: (arg: { readonly value: number }) => void =
|
|
112
|
+
null as unknown as ServiceType["transactions"]["setCount"];
|
|
113
|
+
type _CheckSetCountAsyncVoid = Assert<
|
|
114
|
+
Equal<ReturnType<ServiceType["transactions"]["setCount"]>, void>
|
|
115
|
+
>;
|
|
116
|
+
|
|
97
117
|
// ----------------------------------------------------------------------------
|
|
98
118
|
// Local helpers (kept inline so this file stays a self-contained type test).
|
|
99
119
|
// ----------------------------------------------------------------------------
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import { describe, it, expect } from "vitest";
|
|
3
|
+
import { html, nothing } from "lit";
|
|
4
|
+
import { Template } from "./template.js";
|
|
5
|
+
|
|
6
|
+
describe("Template.from", () => {
|
|
7
|
+
it("collects static markup and interpolated primitives into text", () => {
|
|
8
|
+
const q = Template.from(html`<sp-toast>${"Saved!"} (${3})</sp-toast>`);
|
|
9
|
+
expect(q.has("<sp-toast")).toBe(true);
|
|
10
|
+
expect(q.text).toContain("Saved!");
|
|
11
|
+
expect(q.text).toContain("(3)");
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
it("exposes leaf binding values for identity checks (callbacks, nothing, booleans)", () => {
|
|
15
|
+
const onClick = () => {};
|
|
16
|
+
const q = Template.from(
|
|
17
|
+
html`<sp-button @click=${onClick} ?disabled=${true}>${nothing}</sp-button>`,
|
|
18
|
+
);
|
|
19
|
+
expect(q.values).toContain(onClick);
|
|
20
|
+
expect(q.values).toContain(true);
|
|
21
|
+
expect(q.values).toContain(nothing);
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
it("finds interpolated child templates by fragment, recursively", () => {
|
|
25
|
+
const label = "Undo";
|
|
26
|
+
const q = Template.from(html`
|
|
27
|
+
<div>${html`<section>${html`<sp-button>${label}</sp-button>`}</section>`}</div>
|
|
28
|
+
`);
|
|
29
|
+
const button = q.find("<sp-button");
|
|
30
|
+
expect(button).toBeDefined();
|
|
31
|
+
expect(button?.has("Undo")).toBe(true);
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
it("flattens values from nested templates and arrays", () => {
|
|
35
|
+
const a = () => {};
|
|
36
|
+
const b = () => {};
|
|
37
|
+
const q = Template.from(html`<ul>${[html`<li @x=${a}></li>`, html`<li @x=${b}></li>`]}</ul>`);
|
|
38
|
+
expect(q.values).toContain(a);
|
|
39
|
+
expect(q.values).toContain(b);
|
|
40
|
+
expect(q.children).toHaveLength(2);
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
it("throws when given something that is not a TemplateResult", () => {
|
|
44
|
+
expect(() => Template.from(nothing)).toThrow(TypeError);
|
|
45
|
+
expect(() => Template.from(undefined)).toThrow(TypeError);
|
|
46
|
+
});
|
|
47
|
+
});
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import type { Query } from "./query.js";
|
|
3
|
+
|
|
4
|
+
type TemplateLike = { readonly strings: readonly string[]; readonly values: readonly unknown[] };
|
|
5
|
+
|
|
6
|
+
// Duck-typed, DOM-free check for a Lit TemplateResult (or a nested one).
|
|
7
|
+
const isTemplate = (value: unknown): value is TemplateLike =>
|
|
8
|
+
typeof value === "object" &&
|
|
9
|
+
value !== null &&
|
|
10
|
+
Array.isArray((value as { strings?: unknown }).strings) &&
|
|
11
|
+
Array.isArray((value as { values?: unknown }).values);
|
|
12
|
+
|
|
13
|
+
// Static markup + interpolated primitives, concatenated (recursive). Symbols
|
|
14
|
+
// (e.g. `nothing`), null/undefined, booleans and functions contribute no text.
|
|
15
|
+
const collectText = (value: unknown): string => {
|
|
16
|
+
if (typeof value === "string") return value;
|
|
17
|
+
if (typeof value === "number" || typeof value === "bigint") return String(value);
|
|
18
|
+
if (Array.isArray(value)) return value.map(collectText).join("");
|
|
19
|
+
if (isTemplate(value)) {
|
|
20
|
+
let out = "";
|
|
21
|
+
for (let i = 0; i < value.strings.length; i++) {
|
|
22
|
+
out += value.strings[i];
|
|
23
|
+
if (i < value.values.length) out += collectText(value.values[i]);
|
|
24
|
+
}
|
|
25
|
+
return out;
|
|
26
|
+
}
|
|
27
|
+
return "";
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
// Every leaf binding value, flattened; nested templates are recursed into but
|
|
31
|
+
// not themselves pushed (those are exposed as `children`).
|
|
32
|
+
const collectValues = (value: unknown, into: unknown[]): void => {
|
|
33
|
+
if (isTemplate(value)) {
|
|
34
|
+
for (const v of value.values) collectValues(v, into);
|
|
35
|
+
} else if (Array.isArray(value)) {
|
|
36
|
+
for (const v of value) collectValues(v, into);
|
|
37
|
+
} else {
|
|
38
|
+
into.push(value);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
// The interpolated child templates directly inside `result` (flattening arrays,
|
|
43
|
+
// but not descending through other templates — `find` handles depth).
|
|
44
|
+
const collectChildren = (result: TemplateLike): Query[] => {
|
|
45
|
+
const children: Query[] = [];
|
|
46
|
+
const visit = (value: unknown): void => {
|
|
47
|
+
if (isTemplate(value)) children.push(build(value));
|
|
48
|
+
else if (Array.isArray(value)) value.forEach(visit);
|
|
49
|
+
};
|
|
50
|
+
for (const v of result.values) visit(v);
|
|
51
|
+
return children;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const build = (result: TemplateLike): Query => {
|
|
55
|
+
const text = collectText(result);
|
|
56
|
+
const values: unknown[] = [];
|
|
57
|
+
for (const v of result.values) collectValues(v, values);
|
|
58
|
+
const children = collectChildren(result);
|
|
59
|
+
const find = (fragment: string): Query | undefined => {
|
|
60
|
+
for (const child of children) {
|
|
61
|
+
if (child.text.includes(fragment)) return child;
|
|
62
|
+
const deep = child.find(fragment);
|
|
63
|
+
if (deep) return deep;
|
|
64
|
+
}
|
|
65
|
+
return undefined;
|
|
66
|
+
};
|
|
67
|
+
return {
|
|
68
|
+
text,
|
|
69
|
+
values,
|
|
70
|
+
children,
|
|
71
|
+
has: (fragment) => text.includes(fragment),
|
|
72
|
+
find,
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Wrap a presentation's `render(props)` output in a {@link Query} for DOM-free
|
|
78
|
+
* assertions. Throws if given something that isn't a `TemplateResult`, so a
|
|
79
|
+
* presentation that returns `nothing`/`undefined` fails loudly at the call site.
|
|
80
|
+
*/
|
|
81
|
+
export const from = (result: unknown): Query => {
|
|
82
|
+
if (!isTemplate(result)) {
|
|
83
|
+
throw new TypeError("Template.from expects a Lit TemplateResult");
|
|
84
|
+
}
|
|
85
|
+
return build(result);
|
|
86
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A DOM-free view over a Lit `TemplateResult`, for asserting on what a pure
|
|
5
|
+
* `render(props)` presentation *declares* — without mounting anything. Built by
|
|
6
|
+
* `Template.from`.
|
|
7
|
+
*
|
|
8
|
+
* - `text` — all static markup plus interpolated primitives, concatenated
|
|
9
|
+
* (recursive). Use for presence: `q.has("<sp-toast")`, `q.text`.
|
|
10
|
+
* - `values` — every leaf binding value, flattened across nested templates in
|
|
11
|
+
* source order (nested templates themselves are excluded — they live in
|
|
12
|
+
* `children`). Use identity checks rather than positions:
|
|
13
|
+
* `expect(q.values).toContain(onClick)`, `.toContain(nothing)`.
|
|
14
|
+
* - `children` — the interpolated child templates (`${html`…`}`), each wrapped.
|
|
15
|
+
* - `has` / `find` — presence sugar and a recursive lookup of the first child
|
|
16
|
+
* template whose `text` includes a fragment.
|
|
17
|
+
*
|
|
18
|
+
* Note: `find` only sees *interpolated* sub-templates; elements written inline
|
|
19
|
+
* in a single `html` literal are part of `text`, not `children`.
|
|
20
|
+
*/
|
|
21
|
+
export type Query = {
|
|
22
|
+
readonly text: string;
|
|
23
|
+
readonly values: readonly unknown[];
|
|
24
|
+
readonly children: readonly Query[];
|
|
25
|
+
has(fragment: string): boolean;
|
|
26
|
+
find(fragment: string): Query | undefined;
|
|
27
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "data-lit-tictactoe",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.84",
|
|
4
4
|
"description": "Tic-Tac-Toe sample - Lit web components with @adobe/data-lit and AgenticService",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": true,
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "vite build",
|
|
12
12
|
"dev": "vite",
|
|
13
|
+
"test": "vitest --run --passWithNoTests",
|
|
14
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
13
15
|
"publish-public": "true"
|
|
14
16
|
},
|
|
15
17
|
"dependencies": {
|
|
@@ -18,8 +20,10 @@
|
|
|
18
20
|
"lit": "^3.3.1"
|
|
19
21
|
},
|
|
20
22
|
"devDependencies": {
|
|
23
|
+
"jsdom": "^24.1.0",
|
|
21
24
|
"typescript": "^5.8.3",
|
|
22
25
|
"vite": "^5.1.1",
|
|
23
|
-
"vite-plugin-checker": "^0.12.0"
|
|
26
|
+
"vite-plugin-checker": "^0.12.0",
|
|
27
|
+
"vitest": "^1.6.0"
|
|
24
28
|
}
|
|
25
29
|
}
|
package/references/data-lit-tictactoe/src/{types → features/main/data}/board-state/board-state.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 BoardState = Schema.ToType<typeof schema>;
|
|
7
|
-
export * as BoardState from "./public";
|
|
7
|
+
export * as BoardState from "./public.js";
|
package/references/data-lit-tictactoe/src/{types → features/main/data}/board-state/current-player.ts
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
2
|
|
|
3
|
-
import type { BoardState } from "./board-state";
|
|
4
|
-
import { PlayerMark } from "../player-mark/player-mark";
|
|
3
|
+
import type { BoardState } from "./board-state.js";
|
|
4
|
+
import { PlayerMark } from "../player-mark/player-mark.js";
|
|
5
5
|
|
|
6
6
|
export const currentPlayer = (
|
|
7
7
|
board: BoardState,
|
package/references/data-lit-tictactoe/src/{types → features/main/data}/board-state/derive-status.ts
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
2
|
|
|
3
|
-
import type { BoardState } from "./board-state";
|
|
4
|
-
import type { GameStatus } from "../game-status";
|
|
5
|
-
import { getWinningLine } from "./get-winning-line";
|
|
6
|
-
import { isBoardFull } from "./is-board-full";
|
|
3
|
+
import type { BoardState } from "./board-state.js";
|
|
4
|
+
import type { GameStatus } from "../game-status/game-status.js";
|
|
5
|
+
import { getWinningLine } from "./get-winning-line.js";
|
|
6
|
+
import { isBoardFull } from "./is-board-full.js";
|
|
7
7
|
|
|
8
8
|
export const deriveStatus = (board: BoardState): GameStatus => {
|
|
9
9
|
if (getWinningLine(board)) return "won";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import type { BoardState } from "./board-state.js";
|
|
3
|
+
import type { PlacedMark } from "../placed-mark/placed-mark.js";
|
|
4
|
+
|
|
5
|
+
// Project the placed marks (the entity source of truth) into the compact
|
|
6
|
+
// index-addressed board snapshot the pure helpers operate on.
|
|
7
|
+
export const fromMarks = (marks: readonly PlacedMark[]): BoardState => {
|
|
8
|
+
const cells: string[] = new Array(9).fill(" ");
|
|
9
|
+
for (const { mark, index } of marks) cells[index] = mark;
|
|
10
|
+
return cells.join("");
|
|
11
|
+
};
|
package/references/data-lit-tictactoe/src/{types → features/main/data}/board-state/get-winner.ts
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
2
|
|
|
3
|
-
import type { BoardState } from "./board-state";
|
|
4
|
-
import type { PlayerMark } from "../player-mark/player-mark";
|
|
5
|
-
import { getWinningLine } from "./get-winning-line";
|
|
6
|
-
import { isBoardFull } from "./is-board-full";
|
|
3
|
+
import type { BoardState } from "./board-state.js";
|
|
4
|
+
import type { PlayerMark } from "../player-mark/player-mark.js";
|
|
5
|
+
import { getWinningLine } from "./get-winning-line.js";
|
|
6
|
+
import { isBoardFull } from "./is-board-full.js";
|
|
7
7
|
|
|
8
8
|
export const getWinner = (
|
|
9
9
|
board: BoardState,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
|
|
3
|
+
import type { BoardState } from "./board-state.js";
|
|
4
|
+
import { WinningLine } from "../winning-line/winning-line.js";
|
|
5
|
+
import { BoardCell } from "../board-cell/board-cell.js";
|
|
6
|
+
|
|
7
|
+
export const getWinningLine = (board: BoardState): WinningLine | null => {
|
|
8
|
+
for (const [a, b, c] of WinningLine.lines) {
|
|
9
|
+
const mark = board[a];
|
|
10
|
+
if (mark !== BoardCell.blank && mark === board[b] && mark === board[c]) {
|
|
11
|
+
return [a, b, c];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return null;
|
|
15
|
+
};
|
package/references/data-lit-tictactoe/src/{types → features/main/data}/board-state/is-game-over.ts
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
2
|
|
|
3
|
-
import type { BoardState } from "./board-state";
|
|
4
|
-
import { getWinningLine } from "./get-winning-line";
|
|
5
|
-
import { isBoardFull } from "./is-board-full";
|
|
3
|
+
import type { BoardState } from "./board-state.js";
|
|
4
|
+
import { getWinningLine } from "./get-winning-line.js";
|
|
5
|
+
import { isBoardFull } from "./is-board-full.js";
|
|
6
6
|
|
|
7
7
|
export const isGameOver = (board: BoardState): boolean =>
|
|
8
8
|
getWinningLine(board) !== null || isBoardFull(board);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
|
|
3
|
+
export { schema } from "./schema.js";
|
|
4
|
+
export { fromMarks } from "./from-marks.js";
|
|
5
|
+
export { createInitialBoard } from "./create-initial-board.js";
|
|
6
|
+
export { setBoardCell } from "./set-board-cell.js";
|
|
7
|
+
export { currentPlayer } from "./current-player.js";
|
|
8
|
+
export { deriveStatus } from "./derive-status.js";
|
|
9
|
+
export { getWinningLine } from "./get-winning-line.js";
|
|
10
|
+
export { getWinner } from "./get-winner.js";
|
|
11
|
+
export { getMoveCount } from "./get-move-count.js";
|
|
12
|
+
export { isBoardFull } from "./is-board-full.js";
|
|
13
|
+
export { isGameOver } from "./is-game-over.js";
|
package/references/data-lit-tictactoe/src/{types → features/main/data}/board-state/schema.ts
RENAMED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
-
|
|
3
2
|
import { Schema } from "@adobe/data/schema";
|
|
4
3
|
|
|
4
|
+
// The board: 9 cells, top-left to bottom-right, each a space, "X", or "O".
|
|
5
|
+
// The empty board is the natural default.
|
|
5
6
|
export const schema = {
|
|
6
7
|
type: "string",
|
|
7
8
|
description: "Tic-Tac-Toe board top left to bottom right",
|
|
9
|
+
default: " ",
|
|
8
10
|
minLength: 9,
|
|
9
11
|
maxLength: 9,
|
|
10
12
|
} as const satisfies Schema;
|
package/references/data-lit-tictactoe/src/{types → features/main/data}/board-state/set-board-cell.ts
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import type { BoardState } from "./board-state.js";
|
|
3
|
+
import type { PlayerMark } from "../player-mark/player-mark.js";
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
import type { PlayerMark } from "../player-mark/player-mark";
|
|
5
|
-
|
|
5
|
+
// Return the board with `mark` placed at `index` (pure — the spec's write).
|
|
6
6
|
export const setBoardCell = (args: {
|
|
7
7
|
board: BoardState;
|
|
8
8
|
index: number;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import { Schema } from "@adobe/data/schema";
|
|
3
|
+
|
|
4
|
+
// Which of the nine board cells (0 top-left to 8 bottom-right) a mark occupies.
|
|
5
|
+
export const schema = {
|
|
6
|
+
type: "integer",
|
|
7
|
+
minimum: 0,
|
|
8
|
+
maximum: 8,
|
|
9
|
+
} as const satisfies Schema;
|