@adobe/data 0.8.5 → 0.9.0
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/blob/download-handle.d.ts +4 -0
- package/dist/blob/download-handle.js +2 -0
- package/dist/blob/download-handle.js.map +1 -0
- package/dist/blob/upload-handle.d.ts +4 -0
- package/dist/blob/upload-handle.js +2 -0
- package/dist/blob/upload-handle.js.map +1 -0
- package/dist/ecs/database/calculate-system-order.d.ts +18 -0
- package/dist/ecs/database/calculate-system-order.js +113 -0
- package/dist/ecs/database/calculate-system-order.js.map +1 -0
- package/dist/ecs/database/calculate-system-order.test.d.ts +1 -0
- package/dist/ecs/database/calculate-system-order.test.js +168 -0
- package/dist/ecs/database/calculate-system-order.test.js.map +1 -0
- package/dist/ecs/database/create-database.d.ts +6 -6
- package/dist/ecs/database/create-database.js +38 -10
- package/dist/ecs/database/create-database.js.map +1 -1
- package/dist/ecs/database/create-database.test.js +55 -11
- package/dist/ecs/database/create-database.test.js.map +1 -1
- package/dist/ecs/database/create-plugin.d.ts +67 -0
- package/dist/ecs/database/create-plugin.js +47 -0
- package/dist/ecs/database/create-plugin.js.map +1 -0
- package/dist/ecs/database/create-plugin.test.d.ts +1 -0
- package/dist/ecs/database/create-plugin.test.js +435 -0
- package/dist/ecs/database/create-plugin.test.js.map +1 -0
- package/dist/ecs/database/database-schema/create-database-schema.d.ts +3 -3
- package/dist/ecs/database/database-schema/create-database-schema.js +7 -3
- package/dist/ecs/database/database-schema/create-database-schema.js.map +1 -1
- package/dist/ecs/database/database-schema/database-schema.d.ts +4 -3
- package/dist/ecs/database/database.d.ts +60 -18
- package/dist/ecs/database/database.js +47 -1
- package/dist/ecs/database/database.js.map +1 -1
- package/dist/ecs/database/database.test.d.ts +1 -0
- package/dist/ecs/database/database.test.js +200 -0
- package/dist/ecs/database/database.test.js.map +1 -0
- package/dist/ecs/database/index.d.ts +1 -1
- package/dist/ecs/database/index.js +1 -1
- package/dist/ecs/database/index.js.map +1 -1
- package/dist/ecs/database/observe-dependent-value.test.js +8 -16
- package/dist/ecs/database/observe-dependent-value.test.js.map +1 -1
- package/dist/ecs/database/observe-select-entities.performance.test.js +21 -17
- package/dist/ecs/database/observe-select-entities.performance.test.js.map +1 -1
- package/dist/ecs/database/observe-select-entities.test.js +24 -20
- package/dist/ecs/database/observe-select-entities.test.js.map +1 -1
- package/dist/ecs/database/observed/create-observed-database.js +6 -1
- package/dist/ecs/database/observed/create-observed-database.js.map +1 -1
- package/dist/ecs/database/observed/create-observed-database.test.js +119 -59
- package/dist/ecs/database/observed/create-observed-database.test.js.map +1 -1
- package/dist/ecs/database/observed/observed-database.d.ts +3 -0
- package/dist/ecs/database/public/create-database-from-schema.test.d.ts +1 -0
- package/dist/ecs/database/public/create-database-from-schema.test.js +153 -0
- package/dist/ecs/database/public/create-database-from-schema.test.js.map +1 -0
- package/dist/ecs/database/public/create-database.d.ts +22 -0
- package/dist/ecs/database/public/create-database.js +336 -0
- package/dist/ecs/database/public/create-database.js.map +1 -0
- package/dist/ecs/database/public/create-database.test.d.ts +1 -0
- package/dist/ecs/database/public/create-database.test.js +993 -0
- package/dist/ecs/database/public/create-database.test.js.map +1 -0
- package/dist/ecs/database/public/index.d.ts +1 -0
- package/dist/ecs/database/public/index.js +22 -0
- package/dist/ecs/database/public/index.js.map +1 -0
- package/dist/ecs/database/reconciling/create-reconciling-database.d.ts +2 -9
- package/dist/ecs/database/reconciling/create-reconciling-database.js +87 -118
- package/dist/ecs/database/reconciling/create-reconciling-database.js.map +1 -1
- package/dist/ecs/database/reconciling/create-reconciling-database.test.js +94 -167
- package/dist/ecs/database/reconciling/create-reconciling-database.test.js.map +1 -1
- package/dist/ecs/database/reconciling/reconciling-database.d.ts +5 -2
- package/dist/ecs/database/reconciling/reconciling-entry.d.ts +0 -11
- package/dist/ecs/database/reconciling/reconciling-entry.js +0 -34
- package/dist/ecs/database/reconciling/reconciling-entry.js.map +1 -1
- package/dist/ecs/database/transactional-store/coalesce-actions.d.ts +16 -0
- package/dist/ecs/database/transactional-store/coalesce-actions.js +140 -0
- package/dist/ecs/database/transactional-store/coalesce-actions.js.map +1 -0
- package/dist/ecs/database/transactional-store/coalesce-actions.test.d.ts +1 -0
- package/dist/ecs/database/transactional-store/coalesce-actions.test.js +433 -0
- package/dist/ecs/database/transactional-store/coalesce-actions.test.js.map +1 -0
- package/dist/ecs/database/transactional-store/create-transactional-store.js +18 -2
- package/dist/ecs/database/transactional-store/create-transactional-store.js.map +1 -1
- package/dist/ecs/database/transactional-store/create-transactional-store.test.js +98 -22
- package/dist/ecs/database/transactional-store/create-transactional-store.test.js.map +1 -1
- package/dist/ecs/database/transactional-store/entity-id-preservation.test.d.ts +1 -0
- package/dist/ecs/database/transactional-store/entity-id-preservation.test.js +106 -0
- package/dist/ecs/database/transactional-store/entity-id-preservation.test.js.map +1 -0
- package/dist/ecs/database/transactional-store/transactional-store.d.ts +2 -0
- package/dist/ecs/database/type-inference-example.d.ts +1 -0
- package/dist/ecs/database/type-inference-example.js +2 -0
- package/dist/ecs/database/type-inference-example.js.map +1 -0
- package/dist/ecs/entity/entity.d.ts +8 -0
- package/dist/ecs/entity/entity.js +3 -0
- package/dist/ecs/entity/entity.js.map +1 -0
- package/dist/ecs/entity/u32.d.ts +8 -0
- package/dist/ecs/entity/u32.js +24 -0
- package/dist/ecs/entity/u32.js.map +1 -0
- package/dist/ecs/plugins/index.d.ts +1 -0
- package/dist/ecs/plugins/index.js +23 -0
- package/dist/ecs/plugins/index.js.map +1 -0
- package/dist/ecs/plugins/scheduler/index.d.ts +1 -0
- package/dist/ecs/plugins/scheduler/index.js +23 -0
- package/dist/ecs/plugins/scheduler/index.js.map +1 -0
- package/dist/ecs/plugins/scheduler/scheduler.d.ts +8 -0
- package/dist/ecs/plugins/scheduler/scheduler.js +52 -0
- package/dist/ecs/plugins/scheduler/scheduler.js.map +1 -0
- package/dist/ecs/store/action-functions.d.ts +21 -0
- package/dist/ecs/store/action-functions.js +2 -0
- package/dist/ecs/store/action-functions.js.map +1 -0
- package/dist/ecs/store/constants/functions.d.ts +14 -0
- package/dist/ecs/store/constants/functions.js +31 -0
- package/dist/ecs/store/constants/functions.js.map +1 -0
- package/dist/ecs/store/constants/index.d.ts +2 -0
- package/dist/ecs/store/constants/index.js +24 -0
- package/dist/ecs/store/constants/index.js.map +1 -0
- package/dist/ecs/store/constants/types.d.ts +18 -0
- package/dist/ecs/store/constants/types.js +23 -0
- package/dist/ecs/store/constants/types.js.map +1 -0
- package/dist/ecs/store/create-store-schema-test.js +70 -8
- package/dist/ecs/store/create-store-schema-test.js.map +1 -1
- package/dist/ecs/store/create-store.d.ts +1 -1
- package/dist/ecs/store/create-store.js +74 -24
- package/dist/ecs/store/create-store.js.map +1 -1
- package/dist/ecs/store/create-store.test.js +171 -171
- package/dist/ecs/store/create-store.test.js.map +1 -1
- package/dist/ecs/store/index.d.ts +0 -1
- package/dist/ecs/store/index.js +0 -1
- package/dist/ecs/store/index.js.map +1 -1
- package/dist/ecs/store/public/create-from-schema.d.ts +6 -0
- package/dist/ecs/store/public/create-from-schema.js +26 -0
- package/dist/ecs/store/public/create-from-schema.js.map +1 -0
- package/dist/ecs/store/public/create-store.d.ts +8 -0
- package/dist/ecs/store/public/create-store.js +127 -0
- package/dist/ecs/store/public/create-store.js.map +1 -0
- package/dist/ecs/store/public/create-store.test.d.ts +1 -0
- package/dist/ecs/store/public/create-store.test.js +730 -0
- package/dist/ecs/store/public/create-store.test.js.map +1 -0
- package/dist/ecs/store/public/index.d.ts +3 -0
- package/dist/ecs/store/public/index.js +25 -0
- package/dist/ecs/store/public/index.js.map +1 -0
- package/dist/ecs/store/public/readonly.d.ts +19 -0
- package/dist/ecs/store/public/readonly.js +2 -0
- package/dist/ecs/store/public/readonly.js.map +1 -0
- package/dist/ecs/store/public/schema/create-from-schema.d.ts +6 -0
- package/dist/ecs/store/public/schema/create-from-schema.js +26 -0
- package/dist/ecs/store/public/schema/create-from-schema.js.map +1 -0
- package/dist/ecs/store/public/schema/create.d.ts +10 -0
- package/dist/ecs/store/public/schema/create.js +25 -0
- package/dist/ecs/store/public/schema/create.js.map +1 -0
- package/dist/ecs/store/public/schema/createFromSchema.d.ts +6 -0
- package/dist/ecs/store/public/schema/createFromSchema.js +5 -0
- package/dist/ecs/store/public/schema/createFromSchema.js.map +1 -0
- package/dist/ecs/store/public/schema/public.d.ts +1 -0
- package/dist/ecs/store/public/schema/public.js +23 -0
- package/dist/ecs/store/public/schema/public.js.map +1 -0
- package/dist/ecs/store/public/schema/schema.d.ts +11 -0
- package/dist/ecs/store/public/schema/schema.js +23 -0
- package/dist/ecs/store/public/schema/schema.js.map +1 -0
- package/dist/ecs/store/public/types.d.ts +11 -0
- package/dist/ecs/store/public/types.js +23 -0
- package/dist/ecs/store/public/types.js.map +1 -0
- package/dist/ecs/store/store-schema/create-store-schema-test.d.ts +1 -0
- package/dist/ecs/store/store-schema/create-store-schema-test.js +33 -0
- package/dist/ecs/store/store-schema/create-store-schema-test.js.map +1 -0
- package/dist/ecs/store/store-schema/create-store-schema.d.ts +1 -0
- package/dist/ecs/store/store-schema/create-store-schema.js +45 -0
- package/dist/ecs/store/store-schema/create-store-schema.js.map +1 -0
- package/dist/ecs/store/store-schema/index.d.ts +1 -0
- package/dist/ecs/store/store-schema/index.js +21 -0
- package/dist/ecs/store/store-schema/index.js.map +1 -0
- package/dist/ecs/store/store-schema/store-schema.d.ts +1 -0
- package/dist/ecs/store/store-schema/store-schema.js +57 -0
- package/dist/ecs/store/store-schema/store-schema.js.map +1 -0
- package/dist/ecs/store/store.d.ts +48 -13
- package/dist/ecs/store/store.js +37 -8
- package/dist/ecs/store/store.js.map +1 -1
- package/dist/ecs/store/store.test.d.ts +1 -0
- package/dist/ecs/store/store.test.js +211 -0
- package/dist/ecs/store/store.test.js.map +1 -0
- package/dist/ecs/undo-redo-service/create-undo-redo-service.js +1 -1
- package/dist/ecs/undo-redo-service/create-undo-redo-service.js.map +1 -1
- package/dist/ecs/undo-redo-service/create-undo-redo-service.test.js +10 -6
- package/dist/ecs/undo-redo-service/create-undo-redo-service.test.js.map +1 -1
- package/dist/ecs/world/create-world.d.ts +7 -0
- package/dist/ecs/world/create-world.js +113 -0
- package/dist/ecs/world/create-world.js.map +1 -0
- package/dist/ecs/world/create-world.test.d.ts +1 -0
- package/dist/ecs/world/create-world.test.js +499 -0
- package/dist/ecs/world/create-world.test.js.map +1 -0
- package/dist/ecs/world/index.d.ts +5 -0
- package/dist/ecs/world/index.js +27 -0
- package/dist/ecs/world/index.js.map +1 -0
- package/dist/ecs/world/system-phase.d.ts +5 -0
- package/dist/ecs/world/system-phase.js +14 -0
- package/dist/ecs/world/system-phase.js.map +1 -0
- package/dist/ecs/world/system.d.ts +25 -0
- package/dist/ecs/world/system.js +2 -0
- package/dist/ecs/world/system.js.map +1 -0
- package/dist/ecs/world/world-schema/create-world-schema-test.d.ts +1 -0
- package/dist/ecs/world/world-schema/create-world-schema-test.js +55 -0
- package/dist/ecs/world/world-schema/create-world-schema-test.js.map +1 -0
- package/dist/ecs/world/world-schema/create-world-schema.d.ts +19 -0
- package/dist/ecs/world/world-schema/create-world-schema.js +33 -0
- package/dist/ecs/world/world-schema/create-world-schema.js.map +1 -0
- package/dist/ecs/world/world-schema/index.d.ts +2 -0
- package/dist/ecs/world/world-schema/index.js +24 -0
- package/dist/ecs/world/world-schema/index.js.map +1 -0
- package/dist/ecs/world/world-schema/world-schema.d.ts +18 -0
- package/dist/ecs/world/world-schema/world-schema.js +23 -0
- package/dist/ecs/world/world-schema/world-schema.js.map +1 -0
- package/dist/ecs/world/world.d.ts +11 -0
- package/dist/ecs/world/world.js +2 -0
- package/dist/ecs/world/world.js.map +1 -0
- package/dist/graphics/camera/camera.d.ts +62 -0
- package/dist/graphics/camera/camera.js +17 -0
- package/dist/graphics/camera/camera.js.map +1 -0
- package/dist/graphics/camera/index.d.ts +4 -0
- package/dist/graphics/camera/index.js +5 -0
- package/dist/graphics/camera/index.js.map +1 -0
- package/dist/graphics/camera/screen-to-world-ray.d.ts +12 -0
- package/dist/graphics/camera/screen-to-world-ray.js +49 -0
- package/dist/graphics/camera/screen-to-world-ray.js.map +1 -0
- package/dist/graphics/camera/screen-to-world-ray.test.d.ts +1 -0
- package/dist/graphics/camera/screen-to-world-ray.test.js +171 -0
- package/dist/graphics/camera/screen-to-world-ray.test.js.map +1 -0
- package/dist/graphics/camera/to-view-projection.d.ts +3 -0
- package/dist/graphics/camera/to-view-projection.js +8 -0
- package/dist/graphics/camera/to-view-projection.js.map +1 -0
- package/dist/graphics/camera/world-to-screen.d.ts +12 -0
- package/dist/graphics/camera/world-to-screen.js +38 -0
- package/dist/graphics/camera/world-to-screen.js.map +1 -0
- package/dist/graphics/camera/world-to-screen.test.d.ts +1 -0
- package/dist/graphics/camera/world-to-screen.test.js +124 -0
- package/dist/graphics/camera/world-to-screen.test.js.map +1 -0
- package/dist/graphics/create-struct-gpu-buffer.d.ts +7 -0
- package/dist/graphics/create-struct-gpu-buffer.js +17 -0
- package/dist/graphics/create-struct-gpu-buffer.js.map +1 -0
- package/dist/graphics/extract-wgsl-bindings.d.ts +5 -0
- package/dist/graphics/extract-wgsl-bindings.js +10 -0
- package/dist/graphics/extract-wgsl-bindings.js.map +1 -0
- package/dist/graphics/frame.d.ts +1 -0
- package/dist/graphics/frame.js +15 -0
- package/dist/graphics/frame.js.map +1 -0
- package/dist/graphics/get-web-gpu-device-and-context.d.ts +1 -0
- package/dist/graphics/get-web-gpu-device-and-context.js +24 -0
- package/dist/graphics/get-web-gpu-device-and-context.js.map +1 -0
- package/dist/graphics/graphics-context.d.ts +1 -0
- package/dist/graphics/graphics-context.js +7 -0
- package/dist/graphics/graphics-context.js.map +1 -0
- package/dist/graphics/index.d.ts +5 -0
- package/dist/graphics/index.js +5 -0
- package/dist/graphics/index.js.map +1 -0
- package/dist/graphics/to-gpu-buffer.d.ts +2 -0
- package/dist/graphics/to-gpu-buffer.js +14 -0
- package/dist/graphics/to-gpu-buffer.js.map +1 -0
- package/dist/internal/array-buffer-like/grow.d.ts +1 -0
- package/dist/internal/array-buffer-like/grow.js +9 -0
- package/dist/internal/array-buffer-like/grow.js.map +1 -0
- package/dist/lit/hooks/use-drag-transaction.d.ts +1 -1
- package/dist/math/aabb/aabb.d.ts +3 -52
- package/dist/math/aabb/aabb.js +2 -97
- package/dist/math/aabb/aabb.js.map +1 -1
- package/dist/math/aabb/constants/functions.d.ts +15 -0
- package/dist/math/aabb/constants/functions.js +76 -0
- package/dist/math/aabb/constants/functions.js.map +1 -0
- package/dist/math/aabb/constants/index.d.ts +3 -0
- package/dist/math/aabb/constants/index.js +25 -0
- package/dist/math/aabb/constants/index.js.map +1 -0
- package/dist/math/aabb/constants/layout.d.ts +1 -0
- package/dist/math/aabb/constants/layout.js +25 -0
- package/dist/math/aabb/constants/layout.js.map +1 -0
- package/dist/math/aabb/constants/schema.d.ts +33 -0
- package/dist/math/aabb/constants/schema.js +37 -0
- package/dist/math/aabb/constants/schema.js.map +1 -0
- package/dist/math/aabb/functions.d.ts +1 -0
- package/dist/math/aabb/functions.js +23 -0
- package/dist/math/aabb/functions.js.map +1 -0
- package/dist/math/aabb/lineIntersection.d.ts +10 -0
- package/dist/math/aabb/lineIntersection.js +42 -0
- package/dist/math/aabb/lineIntersection.js.map +1 -0
- package/dist/math/aabb-face/aabb-face.d.ts +3 -53
- package/dist/math/aabb-face/aabb-face.js +1 -135
- package/dist/math/aabb-face/aabb-face.js.map +1 -1
- package/dist/math/aabb-face/aabb-face.test.js +1 -1
- package/dist/math/aabb-face/aabb-face.test.js.map +1 -1
- package/dist/math/aabb-face/constants/functions.d.ts +47 -0
- package/dist/math/aabb-face/constants/functions.js +148 -0
- package/dist/math/aabb-face/constants/functions.js.map +1 -0
- package/dist/math/aabb-face/constants/index.d.ts +2 -0
- package/dist/math/aabb-face/constants/index.js +24 -0
- package/dist/math/aabb-face/constants/index.js.map +1 -0
- package/dist/math/aabb-face/constants/schema.d.ts +5 -0
- package/dist/math/aabb-face/constants/schema.js +27 -0
- package/dist/math/aabb-face/constants/schema.js.map +1 -0
- package/dist/math/aabb-face/face.d.ts +51 -0
- package/dist/math/aabb-face/face.js +110 -0
- package/dist/math/aabb-face/face.js.map +1 -0
- package/dist/math/aabb-face/face.test.d.ts +1 -0
- package/dist/math/aabb-face/face.test.js +94 -0
- package/dist/math/aabb-face/face.test.js.map +1 -0
- package/dist/math/aabb-face/functions.d.ts +47 -0
- package/dist/math/aabb-face/functions.js +148 -0
- package/dist/math/aabb-face/functions.js.map +1 -0
- package/dist/math/aabb-face/index.d.ts +4 -0
- package/dist/math/aabb-face/index.js +23 -0
- package/dist/math/aabb-face/index.js.map +1 -0
- package/dist/math/aabb-face/public.d.ts +2 -0
- package/dist/math/aabb-face/public.js +24 -0
- package/dist/math/aabb-face/public.js.map +1 -0
- package/dist/math/aabb-face/schema.d.ts +5 -0
- package/dist/math/aabb-face/schema.js +27 -0
- package/dist/math/aabb-face/schema.js.map +1 -0
- package/dist/math/box/box.d.ts +50 -0
- package/dist/math/box/box.js +23 -0
- package/dist/math/box/box.js.map +1 -0
- package/dist/math/f32/constants/index.d.ts +1 -0
- package/dist/math/f32/constants/index.js +23 -0
- package/dist/math/f32/constants/index.js.map +1 -0
- package/dist/math/f32/constants/schema.d.ts +5 -0
- package/dist/math/f32/constants/schema.js +24 -0
- package/dist/math/f32/constants/schema.js.map +1 -0
- package/dist/math/f32/f32.d.ts +3 -8
- package/dist/math/f32/f32.js +1 -6
- package/dist/math/f32/f32.js.map +1 -1
- package/dist/math/face/face.d.ts +51 -0
- package/dist/math/face/face.js +110 -0
- package/dist/math/face/face.js.map +1 -0
- package/dist/math/face/face.test.d.ts +1 -0
- package/dist/math/face/face.test.js +94 -0
- package/dist/math/face/face.test.js.map +1 -0
- package/dist/math/i32/constants/index.d.ts +1 -0
- package/dist/math/i32/constants/index.js +23 -0
- package/dist/math/i32/constants/index.js.map +1 -0
- package/dist/math/i32/constants/schema.d.ts +6 -0
- package/dist/math/i32/constants/schema.js +24 -0
- package/dist/math/i32/constants/schema.js.map +1 -0
- package/dist/math/i32/i32.d.ts +3 -9
- package/dist/math/i32/i32.js +1 -6
- package/dist/math/i32/i32.js.map +1 -1
- package/dist/math/line2/constants/functions.d.ts +5 -0
- package/dist/math/line2/constants/functions.js +61 -0
- package/dist/math/line2/constants/functions.js.map +1 -0
- package/dist/math/line2/constants/index.d.ts +3 -0
- package/dist/math/line2/constants/index.js +25 -0
- package/dist/math/line2/constants/index.js.map +1 -0
- package/dist/math/line2/constants/layout.d.ts +1 -0
- package/dist/math/line2/constants/layout.js +25 -0
- package/dist/math/line2/constants/layout.js.map +1 -0
- package/dist/math/line2/constants/schema.d.ts +33 -0
- package/dist/math/line2/constants/schema.js +37 -0
- package/dist/math/line2/constants/schema.js.map +1 -0
- package/dist/math/line2/line2.d.ts +3 -41
- package/dist/math/line2/line2.js +1 -60
- package/dist/math/line2/line2.js.map +1 -1
- package/dist/math/line3/constants/functions.d.ts +17 -0
- package/dist/math/line3/constants/functions.js +70 -0
- package/dist/math/line3/constants/functions.js.map +1 -0
- package/dist/math/line3/constants/index.d.ts +3 -0
- package/dist/math/line3/constants/index.js +25 -0
- package/dist/math/line3/constants/index.js.map +1 -0
- package/dist/math/line3/constants/layout.d.ts +1 -0
- package/dist/math/line3/constants/layout.js +25 -0
- package/dist/math/line3/constants/layout.js.map +1 -0
- package/dist/math/line3/constants/schema.d.ts +33 -0
- package/dist/math/line3/constants/schema.js +37 -0
- package/dist/math/line3/constants/schema.js.map +1 -0
- package/dist/math/line3/line3.d.ts +3 -53
- package/dist/math/line3/line3.js +1 -68
- package/dist/math/line3/line3.js.map +1 -1
- package/dist/math/mat4x4/constants/functions.d.ts +23 -0
- package/dist/math/mat4x4/constants/functions.js +236 -0
- package/dist/math/mat4x4/constants/functions.js.map +1 -0
- package/dist/math/mat4x4/constants/index.d.ts +3 -0
- package/dist/math/mat4x4/constants/index.js +25 -0
- package/dist/math/mat4x4/constants/index.js.map +1 -0
- package/dist/math/mat4x4/constants/layout.d.ts +1 -0
- package/dist/math/mat4x4/constants/layout.js +25 -0
- package/dist/math/mat4x4/constants/layout.js.map +1 -0
- package/dist/math/mat4x4/constants/schema.d.ts +11 -0
- package/dist/math/mat4x4/constants/schema.js +30 -0
- package/dist/math/mat4x4/constants/schema.js.map +1 -0
- package/dist/math/mat4x4/mat4x4.d.ts +3 -36
- package/dist/math/mat4x4/mat4x4.js +1 -228
- package/dist/math/mat4x4/mat4x4.js.map +1 -1
- package/dist/math/picking/face.d.ts +1 -0
- package/dist/math/picking/face.js +2 -0
- package/dist/math/picking/face.js.map +1 -0
- package/dist/math/picking/get-closest-entity-to-line.d.ts +4 -0
- package/dist/math/picking/get-closest-entity-to-line.js +30 -0
- package/dist/math/picking/get-closest-entity-to-line.js.map +1 -0
- package/dist/math/picking/get-closest-entity-to-point.d.ts +4 -0
- package/dist/math/picking/get-closest-entity-to-point.js +27 -0
- package/dist/math/picking/get-closest-entity-to-point.js.map +1 -0
- package/dist/math/picking/get-intersecting-entities.d.ts +12 -0
- package/dist/math/picking/get-intersecting-entities.js +15 -0
- package/dist/math/picking/get-intersecting-entities.js.map +1 -0
- package/dist/math/picking/getClosestEntityToLine.d.ts +4 -0
- package/dist/math/picking/getClosestEntityToLine.js +29 -0
- package/dist/math/picking/getClosestEntityToLine.js.map +1 -0
- package/dist/math/picking/getClosestEntityToPoint.d.ts +4 -0
- package/dist/math/picking/getClosestEntityToPoint.js +27 -0
- package/dist/math/picking/getClosestEntityToPoint.js.map +1 -0
- package/dist/math/picking/getIntersectingEntities.d.ts +12 -0
- package/dist/math/picking/getIntersectingEntities.js +15 -0
- package/dist/math/picking/getIntersectingEntities.js.map +1 -0
- package/dist/math/picking/index.d.ts +5 -0
- package/dist/math/picking/index.js +27 -0
- package/dist/math/picking/index.js.map +1 -0
- package/dist/math/picking/pick-from-tables.d.ts +19 -0
- package/dist/math/picking/pick-from-tables.js +63 -0
- package/dist/math/picking/pick-from-tables.js.map +1 -0
- package/dist/math/picking/pick-result.d.ts +12 -0
- package/dist/math/picking/pick-result.js +23 -0
- package/dist/math/picking/pick-result.js.map +1 -0
- package/dist/math/plane/constants/functions.d.ts +16 -0
- package/dist/math/plane/constants/functions.js +54 -0
- package/dist/math/plane/constants/functions.js.map +1 -0
- package/dist/math/plane/constants/index.d.ts +3 -0
- package/dist/math/plane/constants/index.js +25 -0
- package/dist/math/plane/constants/index.js.map +1 -0
- package/dist/math/plane/constants/layout.d.ts +1 -0
- package/dist/math/plane/constants/layout.js +25 -0
- package/dist/math/plane/constants/layout.js.map +1 -0
- package/dist/math/plane/constants/schema.d.ts +24 -0
- package/dist/{schema/type.js → math/plane/constants/schema.js} +7 -7
- package/dist/math/plane/constants/schema.js.map +1 -0
- package/dist/math/plane/plane.d.ts +3 -42
- package/dist/math/plane/plane.js +1 -49
- package/dist/math/plane/plane.js.map +1 -1
- package/dist/math/quat/constants/index.d.ts +3 -0
- package/dist/math/quat/constants/index.js +25 -0
- package/dist/math/quat/constants/index.js.map +1 -0
- package/dist/math/quat/constants/layout.d.ts +1 -0
- package/dist/math/quat/constants/layout.js +25 -0
- package/dist/math/quat/constants/layout.js.map +1 -0
- package/dist/math/quat/constants/schema.d.ts +11 -0
- package/dist/math/quat/constants/schema.js +30 -0
- package/dist/math/quat/constants/schema.js.map +1 -0
- package/dist/math/quat/quat.d.ts +3 -56
- package/dist/math/quat/quat.js +1 -250
- package/dist/math/quat/quat.js.map +1 -1
- package/dist/math/transform/debug-inverse.d.ts +1 -0
- package/dist/math/transform/debug-inverse.js +28 -0
- package/dist/math/transform/debug-inverse.js.map +1 -0
- package/dist/math/transform/debug-quat.d.ts +1 -0
- package/dist/math/transform/debug-quat.js +23 -0
- package/dist/math/transform/debug-quat.js.map +1 -0
- package/dist/math/transform/debug-test.d.ts +1 -0
- package/dist/math/transform/debug-test.js +34 -0
- package/dist/math/transform/debug-test.js.map +1 -0
- package/dist/math/transform/transform.d.ts +58 -0
- package/dist/math/transform/transform.js +101 -0
- package/dist/math/transform/transform.js.map +1 -0
- package/dist/math/transform/transform.test.d.ts +1 -0
- package/dist/math/transform/transform.test.js +309 -0
- package/dist/math/transform/transform.test.js.map +1 -0
- package/dist/math/u32/constants/index.d.ts +1 -0
- package/dist/math/u32/constants/index.js +23 -0
- package/dist/math/u32/constants/index.js.map +1 -0
- package/dist/math/u32/constants/schema.d.ts +6 -0
- package/dist/math/u32/constants/schema.js +24 -0
- package/dist/math/u32/constants/schema.js.map +1 -0
- package/dist/math/u32/u32.d.ts +3 -9
- package/dist/math/u32/u32.js +1 -6
- package/dist/math/u32/u32.js.map +1 -1
- package/dist/math/vec2/constants/functions.d.ts +48 -0
- package/dist/math/vec2/constants/functions.js +104 -0
- package/dist/math/vec2/constants/functions.js.map +1 -0
- package/dist/math/vec2/constants/index.d.ts +3 -0
- package/dist/math/vec2/constants/index.js +25 -0
- package/dist/math/vec2/constants/index.js.map +1 -0
- package/dist/math/vec2/constants/layout.d.ts +1 -0
- package/dist/math/vec2/constants/layout.js +25 -0
- package/dist/math/vec2/constants/layout.js.map +1 -0
- package/dist/math/vec2/constants/schema.d.ts +11 -0
- package/dist/math/vec2/constants/schema.js +30 -0
- package/dist/math/vec2/constants/schema.js.map +1 -0
- package/dist/math/vec2/functions/abs.d.ts +2 -0
- package/dist/math/vec2/functions/abs.js +23 -0
- package/dist/math/vec2/functions/abs.js.map +1 -0
- package/dist/math/vec2/functions/acos.d.ts +2 -0
- package/dist/math/vec2/functions/acos.js +23 -0
- package/dist/math/vec2/functions/acos.js.map +1 -0
- package/dist/math/vec2/functions/acosh.d.ts +2 -0
- package/dist/math/vec2/functions/acosh.js +23 -0
- package/dist/math/vec2/functions/acosh.js.map +1 -0
- package/dist/math/vec2/functions/add.d.ts +2 -0
- package/dist/math/vec2/functions/add.js +23 -0
- package/dist/math/vec2/functions/add.js.map +1 -0
- package/dist/math/vec2/functions/asin.d.ts +2 -0
- package/dist/math/vec2/functions/asin.js +23 -0
- package/dist/math/vec2/functions/asin.js.map +1 -0
- package/dist/math/vec2/functions/asinh.d.ts +2 -0
- package/dist/math/vec2/functions/asinh.js +23 -0
- package/dist/math/vec2/functions/asinh.js.map +1 -0
- package/dist/math/vec2/functions/atan.d.ts +2 -0
- package/dist/math/vec2/functions/atan.js +23 -0
- package/dist/math/vec2/functions/atan.js.map +1 -0
- package/dist/math/vec2/functions/atanh.d.ts +2 -0
- package/dist/math/vec2/functions/atanh.js +23 -0
- package/dist/math/vec2/functions/atanh.js.map +1 -0
- package/dist/math/vec2/functions/ceil.d.ts +2 -0
- package/dist/math/vec2/functions/ceil.js +23 -0
- package/dist/math/vec2/functions/ceil.js.map +1 -0
- package/dist/math/vec2/functions/clamp.d.ts +2 -0
- package/dist/math/vec2/functions/clamp.js +25 -0
- package/dist/math/vec2/functions/clamp.js.map +1 -0
- package/dist/math/vec2/functions/cos.d.ts +2 -0
- package/dist/math/vec2/functions/cos.js +23 -0
- package/dist/math/vec2/functions/cos.js.map +1 -0
- package/dist/math/vec2/functions/cosh.d.ts +2 -0
- package/dist/math/vec2/functions/cosh.js +23 -0
- package/dist/math/vec2/functions/cosh.js.map +1 -0
- package/dist/math/vec2/functions/distance.d.ts +2 -0
- package/dist/math/vec2/functions/distance.js +25 -0
- package/dist/math/vec2/functions/distance.js.map +1 -0
- package/dist/math/vec2/functions/dot.d.ts +2 -0
- package/dist/math/vec2/functions/dot.js +23 -0
- package/dist/math/vec2/functions/dot.js.map +1 -0
- package/dist/math/vec2/functions/exp-2.d.ts +2 -0
- package/dist/math/vec2/functions/exp-2.js +23 -0
- package/dist/math/vec2/functions/exp-2.js.map +1 -0
- package/dist/math/vec2/functions/exp.d.ts +2 -0
- package/dist/math/vec2/functions/exp.js +23 -0
- package/dist/math/vec2/functions/exp.js.map +1 -0
- package/dist/math/vec2/functions/face-forward.d.ts +2 -0
- package/dist/math/vec2/functions/face-forward.js +25 -0
- package/dist/math/vec2/functions/face-forward.js.map +1 -0
- package/dist/math/vec2/functions/floor.d.ts +2 -0
- package/dist/math/vec2/functions/floor.js +23 -0
- package/dist/math/vec2/functions/floor.js.map +1 -0
- package/dist/math/vec2/functions/fract.d.ts +2 -0
- package/dist/math/vec2/functions/fract.js +23 -0
- package/dist/math/vec2/functions/fract.js.map +1 -0
- package/dist/math/vec2/functions/functions.d.ts +48 -0
- package/dist/math/vec2/functions/functions.js +104 -0
- package/dist/math/vec2/functions/functions.js.map +1 -0
- package/dist/math/vec2/functions/index.d.ts +3 -0
- package/dist/math/vec2/functions/index.js +25 -0
- package/dist/math/vec2/functions/index.js.map +1 -0
- package/dist/math/vec2/functions/layout.d.ts +1 -0
- package/dist/math/vec2/functions/layout.js +25 -0
- package/dist/math/vec2/functions/layout.js.map +1 -0
- package/dist/math/vec2/functions/length.d.ts +2 -0
- package/dist/math/vec2/functions/length.js +23 -0
- package/dist/math/vec2/functions/length.js.map +1 -0
- package/dist/math/vec2/functions/log-2.d.ts +2 -0
- package/dist/math/vec2/functions/log-2.js +23 -0
- package/dist/math/vec2/functions/log-2.js.map +1 -0
- package/dist/math/vec2/functions/log.d.ts +2 -0
- package/dist/math/vec2/functions/log.js +23 -0
- package/dist/math/vec2/functions/log.js.map +1 -0
- package/dist/math/vec2/functions/max.d.ts +2 -0
- package/dist/math/vec2/functions/max.js +23 -0
- package/dist/math/vec2/functions/max.js.map +1 -0
- package/dist/math/vec2/functions/min.d.ts +2 -0
- package/dist/math/vec2/functions/min.js +23 -0
- package/dist/math/vec2/functions/min.js.map +1 -0
- package/dist/math/vec2/functions/mix.d.ts +2 -0
- package/dist/math/vec2/functions/mix.js +26 -0
- package/dist/math/vec2/functions/mix.js.map +1 -0
- package/dist/math/vec2/functions/mod.d.ts +2 -0
- package/dist/math/vec2/functions/mod.js +26 -0
- package/dist/math/vec2/functions/mod.js.map +1 -0
- package/dist/math/vec2/functions/modf.d.ts +5 -0
- package/dist/math/vec2/functions/modf.js +26 -0
- package/dist/math/vec2/functions/modf.js.map +1 -0
- package/dist/math/vec2/functions/negate.d.ts +2 -0
- package/dist/math/vec2/functions/negate.js +23 -0
- package/dist/math/vec2/functions/negate.js.map +1 -0
- package/dist/math/vec2/functions/normalize.d.ts +2 -0
- package/dist/math/vec2/functions/normalize.js +28 -0
- package/dist/math/vec2/functions/normalize.js.map +1 -0
- package/dist/math/vec2/functions/pow.d.ts +2 -0
- package/dist/math/vec2/functions/pow.js +26 -0
- package/dist/math/vec2/functions/pow.js.map +1 -0
- package/dist/math/vec2/functions/reflect.d.ts +2 -0
- package/dist/math/vec2/functions/reflect.js +29 -0
- package/dist/math/vec2/functions/reflect.js.map +1 -0
- package/dist/math/vec2/functions/refract.d.ts +2 -0
- package/dist/math/vec2/functions/refract.js +34 -0
- package/dist/math/vec2/functions/refract.js.map +1 -0
- package/dist/math/vec2/functions/round.d.ts +2 -0
- package/dist/math/vec2/functions/round.js +23 -0
- package/dist/math/vec2/functions/round.js.map +1 -0
- package/dist/math/vec2/functions/scale.d.ts +2 -0
- package/dist/math/vec2/functions/scale.js +23 -0
- package/dist/math/vec2/functions/scale.js.map +1 -0
- package/dist/math/vec2/functions/schema.d.ts +11 -0
- package/dist/math/vec2/functions/schema.js +30 -0
- package/dist/math/vec2/functions/schema.js.map +1 -0
- package/dist/math/vec2/functions/sign.d.ts +2 -0
- package/dist/math/vec2/functions/sign.js +23 -0
- package/dist/math/vec2/functions/sign.js.map +1 -0
- package/dist/math/vec2/functions/sin.d.ts +2 -0
- package/dist/math/vec2/functions/sin.js +23 -0
- package/dist/math/vec2/functions/sin.js.map +1 -0
- package/dist/math/vec2/functions/sinh.d.ts +2 -0
- package/dist/math/vec2/functions/sinh.js +23 -0
- package/dist/math/vec2/functions/sinh.js.map +1 -0
- package/dist/math/vec2/functions/smooth-step.d.ts +2 -0
- package/dist/math/vec2/functions/smooth-step.js +27 -0
- package/dist/math/vec2/functions/smooth-step.js.map +1 -0
- package/dist/math/vec2/functions/sqrt.d.ts +2 -0
- package/dist/math/vec2/functions/sqrt.js +23 -0
- package/dist/math/vec2/functions/sqrt.js.map +1 -0
- package/dist/math/vec2/functions/step.d.ts +2 -0
- package/dist/math/vec2/functions/step.js +26 -0
- package/dist/math/vec2/functions/step.js.map +1 -0
- package/dist/math/vec2/functions/subtract.d.ts +2 -0
- package/dist/math/vec2/functions/subtract.js +23 -0
- package/dist/math/vec2/functions/subtract.js.map +1 -0
- package/dist/math/vec2/functions/tan.d.ts +2 -0
- package/dist/math/vec2/functions/tan.js +23 -0
- package/dist/math/vec2/functions/tan.js.map +1 -0
- package/dist/math/vec2/functions/tanh.d.ts +2 -0
- package/dist/math/vec2/functions/tanh.js +23 -0
- package/dist/math/vec2/functions/tanh.js.map +1 -0
- package/dist/math/vec2/functions/trunc.d.ts +2 -0
- package/dist/math/vec2/functions/trunc.js +23 -0
- package/dist/math/vec2/functions/trunc.js.map +1 -0
- package/dist/math/vec2/vec2.d.ts +3 -62
- package/dist/math/vec2/vec2.js +1 -96
- package/dist/math/vec2/vec2.js.map +1 -1
- package/dist/math/vec3/constants/functions.d.ts +59 -0
- package/dist/math/vec3/constants/functions.js +159 -0
- package/dist/math/vec3/constants/functions.js.map +1 -0
- package/dist/math/vec3/constants/index.d.ts +3 -0
- package/dist/math/vec3/constants/index.js +25 -0
- package/dist/math/vec3/constants/index.js.map +1 -0
- package/dist/math/vec3/constants/layout.d.ts +1 -0
- package/dist/math/vec3/constants/layout.js +25 -0
- package/dist/math/vec3/constants/layout.js.map +1 -0
- package/dist/math/vec3/constants/schema.d.ts +11 -0
- package/dist/math/vec3/constants/schema.js +30 -0
- package/dist/math/vec3/constants/schema.js.map +1 -0
- package/dist/math/vec3/functions/abs.d.ts +2 -0
- package/dist/math/vec3/functions/abs.js +23 -0
- package/dist/math/vec3/functions/abs.js.map +1 -0
- package/dist/math/vec3/functions/acos.d.ts +2 -0
- package/dist/math/vec3/functions/acos.js +23 -0
- package/dist/math/vec3/functions/acos.js.map +1 -0
- package/dist/math/vec3/functions/acosh.d.ts +2 -0
- package/dist/math/vec3/functions/acosh.js +23 -0
- package/dist/math/vec3/functions/acosh.js.map +1 -0
- package/dist/math/vec3/functions/add.d.ts +2 -0
- package/dist/math/vec3/functions/add.js +27 -0
- package/dist/math/vec3/functions/add.js.map +1 -0
- package/dist/math/vec3/functions/asin.d.ts +2 -0
- package/dist/math/vec3/functions/asin.js +23 -0
- package/dist/math/vec3/functions/asin.js.map +1 -0
- package/dist/math/vec3/functions/asinh.d.ts +2 -0
- package/dist/math/vec3/functions/asinh.js +23 -0
- package/dist/math/vec3/functions/asinh.js.map +1 -0
- package/dist/math/vec3/functions/atan.d.ts +2 -0
- package/dist/math/vec3/functions/atan.js +23 -0
- package/dist/math/vec3/functions/atan.js.map +1 -0
- package/dist/math/vec3/functions/atanh.d.ts +2 -0
- package/dist/math/vec3/functions/atanh.js +23 -0
- package/dist/math/vec3/functions/atanh.js.map +1 -0
- package/dist/math/vec3/functions/ceil.d.ts +2 -0
- package/dist/math/vec3/functions/ceil.js +23 -0
- package/dist/math/vec3/functions/ceil.js.map +1 -0
- package/dist/math/vec3/functions/clamp.d.ts +2 -0
- package/dist/math/vec3/functions/clamp.js +25 -0
- package/dist/math/vec3/functions/clamp.js.map +1 -0
- package/dist/math/vec3/functions/cos.d.ts +2 -0
- package/dist/math/vec3/functions/cos.js +23 -0
- package/dist/math/vec3/functions/cos.js.map +1 -0
- package/dist/math/vec3/functions/cosh.d.ts +2 -0
- package/dist/math/vec3/functions/cosh.js +23 -0
- package/dist/math/vec3/functions/cosh.js.map +1 -0
- package/dist/math/vec3/functions/cross.d.ts +2 -0
- package/dist/math/vec3/functions/cross.js +27 -0
- package/dist/math/vec3/functions/cross.js.map +1 -0
- package/dist/math/vec3/functions/distance-squared.d.ts +2 -0
- package/dist/math/vec3/functions/distance-squared.js +28 -0
- package/dist/math/vec3/functions/distance-squared.js.map +1 -0
- package/dist/math/vec3/functions/distance.d.ts +2 -0
- package/dist/math/vec3/functions/distance.js +25 -0
- package/dist/math/vec3/functions/distance.js.map +1 -0
- package/dist/math/vec3/functions/dot.d.ts +2 -0
- package/dist/math/vec3/functions/dot.js +23 -0
- package/dist/math/vec3/functions/dot.js.map +1 -0
- package/dist/math/vec3/functions/equals.d.ts +2 -0
- package/dist/math/vec3/functions/equals.js +23 -0
- package/dist/math/vec3/functions/equals.js.map +1 -0
- package/dist/math/vec3/functions/exp-2.d.ts +2 -0
- package/dist/math/vec3/functions/exp-2.js +23 -0
- package/dist/math/vec3/functions/exp-2.js.map +1 -0
- package/dist/math/vec3/functions/exp.d.ts +2 -0
- package/dist/math/vec3/functions/exp.js +23 -0
- package/dist/math/vec3/functions/exp.js.map +1 -0
- package/dist/math/vec3/functions/face-forward.d.ts +2 -0
- package/dist/math/vec3/functions/face-forward.js +25 -0
- package/dist/math/vec3/functions/face-forward.js.map +1 -0
- package/dist/math/vec3/functions/floor.d.ts +2 -0
- package/dist/math/vec3/functions/floor.js +23 -0
- package/dist/math/vec3/functions/floor.js.map +1 -0
- package/dist/math/vec3/functions/fract.d.ts +2 -0
- package/dist/math/vec3/functions/fract.js +27 -0
- package/dist/math/vec3/functions/fract.js.map +1 -0
- package/dist/math/vec3/functions/index.d.ts +54 -0
- package/dist/math/vec3/functions/index.js +76 -0
- package/dist/math/vec3/functions/index.js.map +1 -0
- package/dist/math/vec3/functions/layout.d.ts +1 -0
- package/dist/math/vec3/functions/layout.js +25 -0
- package/dist/math/vec3/functions/layout.js.map +1 -0
- package/dist/math/vec3/functions/length-squared.d.ts +2 -0
- package/dist/math/vec3/functions/length-squared.js +23 -0
- package/dist/math/vec3/functions/length-squared.js.map +1 -0
- package/dist/math/vec3/functions/length.d.ts +2 -0
- package/dist/math/vec3/functions/length.js +23 -0
- package/dist/math/vec3/functions/length.js.map +1 -0
- package/dist/math/vec3/functions/log-2.d.ts +2 -0
- package/dist/math/vec3/functions/log-2.js +23 -0
- package/dist/math/vec3/functions/log-2.js.map +1 -0
- package/dist/math/vec3/functions/log.d.ts +2 -0
- package/dist/math/vec3/functions/log.js +23 -0
- package/dist/math/vec3/functions/log.js.map +1 -0
- package/dist/math/vec3/functions/max.d.ts +2 -0
- package/dist/math/vec3/functions/max.js +27 -0
- package/dist/math/vec3/functions/max.js.map +1 -0
- package/dist/math/vec3/functions/min.d.ts +2 -0
- package/dist/math/vec3/functions/min.js +27 -0
- package/dist/math/vec3/functions/min.js.map +1 -0
- package/dist/math/vec3/functions/mix.d.ts +2 -0
- package/dist/math/vec3/functions/mix.js +27 -0
- package/dist/math/vec3/functions/mix.js.map +1 -0
- package/dist/math/vec3/functions/mod.d.ts +2 -0
- package/dist/math/vec3/functions/mod.js +27 -0
- package/dist/math/vec3/functions/mod.js.map +1 -0
- package/dist/math/vec3/functions/modf.d.ts +5 -0
- package/dist/math/vec3/functions/modf.js +26 -0
- package/dist/math/vec3/functions/modf.js.map +1 -0
- package/dist/math/vec3/functions/multiply.d.ts +5 -0
- package/dist/math/vec3/functions/multiply.js +30 -0
- package/dist/math/vec3/functions/multiply.js.map +1 -0
- package/dist/math/vec3/functions/negate.d.ts +2 -0
- package/dist/math/vec3/functions/negate.js +23 -0
- package/dist/math/vec3/functions/negate.js.map +1 -0
- package/dist/math/vec3/functions/normalize.d.ts +2 -0
- package/dist/math/vec3/functions/normalize.js +28 -0
- package/dist/math/vec3/functions/normalize.js.map +1 -0
- package/dist/math/vec3/functions/one.d.ts +2 -0
- package/dist/math/vec3/functions/one.js +23 -0
- package/dist/math/vec3/functions/one.js.map +1 -0
- package/dist/math/vec3/functions/pow.d.ts +2 -0
- package/dist/math/vec3/functions/pow.js +27 -0
- package/dist/math/vec3/functions/pow.js.map +1 -0
- package/dist/math/vec3/functions/random.d.ts +2 -0
- package/dist/math/vec3/functions/random.js +25 -0
- package/dist/math/vec3/functions/random.js.map +1 -0
- package/dist/math/vec3/functions/reflect.d.ts +2 -0
- package/dist/math/vec3/functions/reflect.js +29 -0
- package/dist/math/vec3/functions/reflect.js.map +1 -0
- package/dist/math/vec3/functions/refract.d.ts +2 -0
- package/dist/math/vec3/functions/refract.js +34 -0
- package/dist/math/vec3/functions/refract.js.map +1 -0
- package/dist/math/vec3/functions/round.d.ts +2 -0
- package/dist/math/vec3/functions/round.js +23 -0
- package/dist/math/vec3/functions/round.js.map +1 -0
- package/dist/math/vec3/functions/scale.d.ts +2 -0
- package/dist/math/vec3/functions/scale.js +23 -0
- package/dist/math/vec3/functions/scale.js.map +1 -0
- package/dist/math/vec3/functions/schema.d.ts +11 -0
- package/dist/math/vec3/functions/schema.js +30 -0
- package/dist/math/vec3/functions/schema.js.map +1 -0
- package/dist/math/vec3/functions/sign.d.ts +2 -0
- package/dist/math/vec3/functions/sign.js +23 -0
- package/dist/math/vec3/functions/sign.js.map +1 -0
- package/dist/math/vec3/functions/sin.d.ts +2 -0
- package/dist/math/vec3/functions/sin.js +23 -0
- package/dist/math/vec3/functions/sin.js.map +1 -0
- package/dist/math/vec3/functions/sinh.d.ts +2 -0
- package/dist/math/vec3/functions/sinh.js +23 -0
- package/dist/math/vec3/functions/sinh.js.map +1 -0
- package/dist/math/vec3/functions/smooth-step.d.ts +2 -0
- package/dist/math/vec3/functions/smooth-step.js +32 -0
- package/dist/math/vec3/functions/smooth-step.js.map +1 -0
- package/dist/math/vec3/functions/sqrt.d.ts +2 -0
- package/dist/math/vec3/functions/sqrt.js +23 -0
- package/dist/math/vec3/functions/sqrt.js.map +1 -0
- package/dist/math/vec3/functions/step.d.ts +2 -0
- package/dist/math/vec3/functions/step.js +27 -0
- package/dist/math/vec3/functions/step.js.map +1 -0
- package/dist/math/vec3/functions/subtract.d.ts +2 -0
- package/dist/math/vec3/functions/subtract.js +27 -0
- package/dist/math/vec3/functions/subtract.js.map +1 -0
- package/dist/math/vec3/functions/tan.d.ts +2 -0
- package/dist/math/vec3/functions/tan.js +23 -0
- package/dist/math/vec3/functions/tan.js.map +1 -0
- package/dist/math/vec3/functions/tanh.d.ts +2 -0
- package/dist/math/vec3/functions/tanh.js +23 -0
- package/dist/math/vec3/functions/tanh.js.map +1 -0
- package/dist/math/vec3/functions/trunc.d.ts +2 -0
- package/dist/math/vec3/functions/trunc.js +23 -0
- package/dist/math/vec3/functions/trunc.js.map +1 -0
- package/dist/math/vec3/functions/zero.d.ts +2 -0
- package/dist/math/vec3/functions/zero.js +23 -0
- package/dist/math/vec3/functions/zero.js.map +1 -0
- package/dist/math/vec3/vec3.d.ts +3 -73
- package/dist/math/vec3/vec3.js +1 -151
- package/dist/math/vec3/vec3.js.map +1 -1
- package/dist/math/vec4/constants/functions.d.ts +49 -0
- package/dist/math/vec4/constants/functions.js +150 -0
- package/dist/math/vec4/constants/functions.js.map +1 -0
- package/dist/math/vec4/constants/index.d.ts +3 -0
- package/dist/math/vec4/constants/index.js +25 -0
- package/dist/math/vec4/constants/index.js.map +1 -0
- package/dist/math/vec4/constants/layout.d.ts +1 -0
- package/dist/math/vec4/constants/layout.js +25 -0
- package/dist/math/vec4/constants/layout.js.map +1 -0
- package/dist/math/vec4/constants/schema.d.ts +11 -0
- package/dist/math/vec4/constants/schema.js +30 -0
- package/dist/math/vec4/constants/schema.js.map +1 -0
- package/dist/math/vec4/functions/abs.d.ts +2 -0
- package/dist/math/vec4/functions/abs.js +23 -0
- package/dist/math/vec4/functions/abs.js.map +1 -0
- package/dist/math/vec4/functions/ceil.d.ts +2 -0
- package/dist/math/vec4/functions/ceil.js +23 -0
- package/dist/math/vec4/functions/ceil.js.map +1 -0
- package/dist/math/vec4/functions/clamp.d.ts +2 -0
- package/dist/math/vec4/functions/clamp.js +25 -0
- package/dist/math/vec4/functions/clamp.js.map +1 -0
- package/dist/math/vec4/functions/floor.d.ts +2 -0
- package/dist/math/vec4/functions/floor.js +23 -0
- package/dist/math/vec4/functions/floor.js.map +1 -0
- package/dist/math/vec4/functions/layout.d.ts +1 -0
- package/dist/math/vec4/functions/layout.js +25 -0
- package/dist/math/vec4/functions/layout.js.map +1 -0
- package/dist/math/vec4/functions/max.d.ts +2 -0
- package/dist/math/vec4/functions/max.js +28 -0
- package/dist/math/vec4/functions/max.js.map +1 -0
- package/dist/math/vec4/functions/min.d.ts +2 -0
- package/dist/math/vec4/functions/min.js +28 -0
- package/dist/math/vec4/functions/min.js.map +1 -0
- package/dist/math/vec4/functions/round.d.ts +2 -0
- package/dist/math/vec4/functions/round.js +23 -0
- package/dist/math/vec4/functions/round.js.map +1 -0
- package/dist/math/vec4/functions/schema.d.ts +11 -0
- package/dist/math/vec4/functions/schema.js +30 -0
- package/dist/math/vec4/functions/schema.js.map +1 -0
- package/dist/math/vec4/functions/trunc.d.ts +2 -0
- package/dist/math/vec4/functions/trunc.js +23 -0
- package/dist/math/vec4/functions/trunc.js.map +1 -0
- package/dist/math/vec4/vec4.d.ts +3 -63
- package/dist/math/vec4/vec4.js +1 -142
- package/dist/math/vec4/vec4.js.map +1 -1
- package/dist/observe/create-observable-event.d.ts +1 -1
- package/dist/observe/create-observable-event.js +1 -1
- package/dist/observe/create-observable-event.js.map +1 -1
- package/dist/observe/create-observable-state.d.ts +1 -1
- package/dist/observe/create-observable-state.js +1 -1
- package/dist/observe/create-observable-state.js.map +1 -1
- package/dist/old-ecs/ecs/ecs.test.js +0 -1
- package/dist/old-ecs/ecs/ecs.test.js.map +1 -1
- package/dist/old-ecs/privacy/helper-functions.d.ts +43 -0
- package/dist/old-ecs/privacy/helper-functions.js +76 -0
- package/dist/old-ecs/privacy/helper-functions.js.map +1 -0
- package/dist/old-ecs/privacy/helper-functions.test.d.ts +1 -0
- package/dist/old-ecs/privacy/helper-functions.test.js +173 -0
- package/dist/old-ecs/privacy/helper-functions.test.js.map +1 -0
- package/dist/samples/todo/services/main-service/todo-main-service.d.ts +1 -1
- package/dist/samples/todo/services/state-service/create-todo-database.d.ts +5 -4
- package/dist/samples/todo/services/state-service/create-todo-database.js +3 -3
- package/dist/samples/todo/services/state-service/create-todo-database.js.map +1 -1
- package/dist/samples/todo/services/state-service/create-todo-store.d.ts +3 -2
- package/dist/samples/todo/services/state-service/create-todo-store.js +15 -17
- package/dist/samples/todo/services/state-service/create-todo-store.js.map +1 -1
- package/dist/samples/todo/services/state-service/transactions/toggle-complete.js +1 -1
- package/dist/samples/todo/services/state-service/transactions/toggle-complete.js.map +1 -1
- package/dist/schema/f32.d.ts +1 -1
- package/dist/schema/f32.js +1 -1
- package/dist/schema/f32.js.map +1 -1
- package/dist/schema/i32.d.ts +1 -1
- package/dist/schema/i32.js +1 -1
- package/dist/schema/i32.js.map +1 -1
- package/dist/schema/schema/index.d.ts +2 -0
- package/dist/schema/schema/index.js +23 -0
- package/dist/schema/schema/index.js.map +1 -0
- package/dist/schema/schema/nullable.d.ts +6 -0
- package/dist/schema/schema/nullable.js +6 -0
- package/dist/schema/schema/nullable.js.map +1 -0
- package/dist/schema/schema/public.d.ts +3 -0
- package/dist/schema/schema/public.js +25 -0
- package/dist/schema/schema/public.js.map +1 -0
- package/dist/schema/schema/to-vertex-buffer-layout.d.ts +56 -0
- package/dist/schema/schema/to-vertex-buffer-layout.js +143 -0
- package/dist/schema/schema/to-vertex-buffer-layout.js.map +1 -0
- package/dist/schema/{schema copy.d.ts → schema/types.d.ts} +7 -4
- package/dist/schema/{schema copy.js → schema/types.js} +1 -1
- package/dist/schema/schema/types.js.map +1 -0
- package/dist/schema/u32.d.ts +1 -1
- package/dist/schema/u32.js +1 -1
- package/dist/schema/u32.js.map +1 -1
- package/dist/table/constants/functions.d.ts +3 -0
- package/dist/table/constants/functions.js +34 -0
- package/dist/table/constants/functions.js.map +1 -0
- package/dist/table/constants/index.d.ts +1 -0
- package/dist/table/constants/index.js +23 -0
- package/dist/table/constants/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/types.d.ts +2 -0
- package/dist/types/types.js.map +1 -1
- package/package.json +1 -1
- package/dist/schema/FromSchemas.d.ts +0 -4
- package/dist/schema/FromSchemas.js +0 -2
- package/dist/schema/FromSchemas.js.map +0 -1
- package/dist/schema/schema copy.js.map +0 -1
- package/dist/schema/type.d.ts +0 -76
- package/dist/schema/type.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ecs/plugins/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAEX,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./scheduler.js";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*MIT License
|
|
2
|
+
|
|
3
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.*/
|
|
22
|
+
export * from "./scheduler.js";
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ecs/plugins/scheduler/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAEX,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Database } from "../../database/database.js";
|
|
2
|
+
type SchedulerState = "running" | "paused" | "disposed";
|
|
3
|
+
export declare const scheduler: Required<Database.Plugin<import("../../component-schemas.js").ComponentSchemas, {
|
|
4
|
+
readonly schedulerState: {
|
|
5
|
+
readonly default: SchedulerState;
|
|
6
|
+
};
|
|
7
|
+
}, import("../../index.js").ArchetypeComponents<string>, import("../../store/action-functions.js").ActionDeclarations<any, any, any>, "schedulerSystem">>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/*MIT License
|
|
2
|
+
|
|
3
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.*/
|
|
22
|
+
import { Database } from "../../database/database.js";
|
|
23
|
+
export const scheduler = Database.Plugin.create({
|
|
24
|
+
resources: {
|
|
25
|
+
schedulerState: { default: "running" }
|
|
26
|
+
},
|
|
27
|
+
systems: {
|
|
28
|
+
schedulerSystem: {
|
|
29
|
+
create: (db) => {
|
|
30
|
+
// Execute one frame
|
|
31
|
+
const executeFrame = async () => {
|
|
32
|
+
if (db.resources.schedulerState === "running") {
|
|
33
|
+
// Execute all systems in order (excluding schedulerSystem itself)
|
|
34
|
+
for (const tier of db.system.order) {
|
|
35
|
+
// Execute tier in parallel
|
|
36
|
+
await Promise.all(tier.map((name) => db.system.functions[name]()));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
if (db.resources.schedulerState !== "disposed") {
|
|
40
|
+
requestAnimationFrame(executeFrame);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
executeFrame();
|
|
44
|
+
// Return a no-op system function (the real work happens in the RAF loop)
|
|
45
|
+
return () => {
|
|
46
|
+
// No-op: The scheduler manages its own execution through RAF
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
//# sourceMappingURL=scheduler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scheduler.js","sourceRoot":"","sources":["../../../../src/ecs/plugins/scheduler/scheduler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAEX,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAItD,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IAC5C,SAAS,EAAE;QACP,cAAc,EAAE,EAAE,OAAO,EAAE,SAA2B,EAAE;KAC3D;IACD,OAAO,EAAE;QACL,eAAe,EAAE;YACb,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE;gBACX,oBAAoB;gBACpB,MAAM,YAAY,GAAG,KAAK,IAAI,EAAE;oBAC5B,IAAI,EAAE,CAAC,SAAS,CAAC,cAAc,KAAK,SAAS,EAAE,CAAC;wBAC5C,kEAAkE;wBAClE,KAAK,MAAM,IAAI,IAAI,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;4BACjC,2BAA2B;4BAC3B,MAAM,OAAO,CAAC,GAAG,CACb,IAAI,CAAC,GAAG,CAAC,CAAC,IAAY,EAAE,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAC1D,CAAC;wBACN,CAAC;oBACL,CAAC;oBAED,IAAI,EAAE,CAAC,SAAS,CAAC,cAAc,KAAK,UAAU,EAAE,CAAC;wBAC7C,qBAAqB,CAAC,YAAY,CAAC,CAAC;oBACxC,CAAC;gBACL,CAAC,CAAC;gBAEF,YAAY,EAAE,CAAC;gBAEf,yEAAyE;gBACzE,OAAO,GAAG,EAAE;oBACR,6DAA6D;gBACjE,CAAC,CAAC;YACN,CAAC;SACJ;KACJ;CACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Store } from "./store.js";
|
|
2
|
+
import { Entity } from "../entity.js";
|
|
3
|
+
import { Components } from "./components.js";
|
|
4
|
+
import { ResourceComponents } from "./resource-components.js";
|
|
5
|
+
import { ArchetypeComponents } from "./archetype-components.js";
|
|
6
|
+
import { StringKeyof } from "../../types/types.js";
|
|
7
|
+
export type ActionDeclaration<C extends Components, R extends ResourceComponents, A extends ArchetypeComponents<StringKeyof<C>>, Input extends any | void = any> = (t: Store<C, R, A>, input: Input) => void | Entity;
|
|
8
|
+
export type AsyncArgsProvider<T> = () => Promise<T> | AsyncGenerator<T>;
|
|
9
|
+
export type ActionDeclarations<C extends Components, R extends ResourceComponents, A extends ArchetypeComponents<StringKeyof<C>>> = {
|
|
10
|
+
readonly [K: string]: ActionDeclaration<C, R, A>;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Converts from TransactionDeclarations to TransactionFunctions by removing the initial store argument.
|
|
14
|
+
*/
|
|
15
|
+
export type ToActionFunctions<T> = {
|
|
16
|
+
[K in keyof T]: T[K] extends (t: infer S) => infer R ? R extends void | Entity ? () => R : never : T[K] extends (t: infer S, input: infer Input) => infer R ? R extends void | Entity ? (arg: Input | AsyncArgsProvider<Input>) => R : never : never;
|
|
17
|
+
};
|
|
18
|
+
export type ActionFunction = (args?: any) => void | Entity;
|
|
19
|
+
export type ActionFunctions = {
|
|
20
|
+
readonly [K: string]: ActionFunction;
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-functions.js","sourceRoot":"","sources":["../../../src/ecs/store/action-functions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentSchemas } from "../../component-schemas.js";
|
|
2
|
+
import { ResourceSchemas } from "../../resource-schemas.js";
|
|
3
|
+
import { ArchetypeComponents } from "../archetype-components.js";
|
|
4
|
+
import { OptionalComponents } from "../../optional-components.js";
|
|
5
|
+
import { StringKeyof } from "../../../types/types.js";
|
|
6
|
+
import type { Schema as SchemaType } from "./types.js";
|
|
7
|
+
export declare const Schema: {
|
|
8
|
+
create<const CS extends ComponentSchemas, const RS extends ResourceSchemas, const A extends ArchetypeComponents<StringKeyof<CS & OptionalComponents>>>(components: CS, resources: RS, archetypes: A): {
|
|
9
|
+
readonly components: CS;
|
|
10
|
+
readonly resources: RS;
|
|
11
|
+
readonly archetypes: A;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare function createFromSchema<const CS extends ComponentSchemas, const RS extends ResourceSchemas, const A extends ArchetypeComponents<StringKeyof<CS>>>(schema: SchemaType<CS, RS, A>): import("../store.js").Store<import("../../../schema/schema.js").FromSchemas<CS>, import("../../../schema/schema.js").FromSchemas<RS>, A>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*MIT License
|
|
2
|
+
|
|
3
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.*/
|
|
22
|
+
import { createStore } from "../create-store.js";
|
|
23
|
+
export const Schema = {
|
|
24
|
+
create(components, resources, archetypes) {
|
|
25
|
+
return { components, resources, archetypes };
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
export function createFromSchema(schema) {
|
|
29
|
+
return createStore(schema.components, schema.resources, schema.archetypes);
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=functions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../../src/ecs/store/constants/functions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAOX,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,MAAM,CAAC,MAAM,MAAM,GAAG;IAClB,MAAM,CAKF,UAAc,EACd,SAAa,EACb,UAAa;QAEb,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAA2C,CAAC;IAC1F,CAAC;CACJ,CAAC;AAEF,MAAM,UAAU,gBAAgB,CAK5B,MAA6B;IAE7B,OAAO,WAAW,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC;AAC/E,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*MIT License
|
|
2
|
+
|
|
3
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.*/
|
|
22
|
+
export * from "./types.js";
|
|
23
|
+
export { Schema, createFromSchema } from "./functions.js";
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ecs/store/constants/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAEX,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Store } from "../store.js";
|
|
2
|
+
import { Simplify, StringKeyof } from "../../../types/types.js";
|
|
3
|
+
import { FromSchemas } from "../../../schema/schema.js";
|
|
4
|
+
import { ComponentSchemas } from "../../component-schemas.js";
|
|
5
|
+
import { ResourceSchemas } from "../../resource-schemas.js";
|
|
6
|
+
import { ArchetypeComponents } from "../archetype-components.js";
|
|
7
|
+
import { OptionalComponents } from "../../optional-components.js";
|
|
8
|
+
export type Components<S extends Store<any, any, any>> = S extends Store<infer C, infer R, infer A> ? C & R & A : never;
|
|
9
|
+
export type Resources<S extends Store<any, any, any>> = S extends Store<any, infer R, any> ? R : never;
|
|
10
|
+
export type Archetypes<S extends Store<any, any, any>> = S extends Store<any, any, infer A> ? A : never;
|
|
11
|
+
export type EntityValues<S extends Store<any, any, any>, K extends S extends Store<any, any, infer A> ? StringKeyof<A> : never> = Simplify<Parameters<S["archetypes"][K]["insert"]>[0] & import("../../required-components.js").RequiredComponents>;
|
|
12
|
+
export type InsertValues<S extends Store<any, any, any>, K extends S extends Store<any, any, infer A> ? StringKeyof<A> : never> = Parameters<S["archetypes"][K]["insert"]>[0];
|
|
13
|
+
export type Schema<CS extends ComponentSchemas, RS extends ResourceSchemas, A extends ArchetypeComponents<StringKeyof<CS & OptionalComponents>>> = {
|
|
14
|
+
readonly components: CS;
|
|
15
|
+
readonly resources: RS;
|
|
16
|
+
readonly archetypes: A;
|
|
17
|
+
};
|
|
18
|
+
export type FromSchema<T> = T extends Schema<infer CS, infer RS, infer A> ? import("../store.js").Store<FromSchemas<CS>, FromSchemas<RS>, A> : never;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*MIT License
|
|
2
|
+
|
|
3
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.*/
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/ecs/store/constants/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW"}
|
|
@@ -21,13 +21,75 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
21
21
|
SOFTWARE.*/
|
|
22
22
|
import { Store } from "./store.js";
|
|
23
23
|
const storeSchema = Store.Schema.create({
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
components: {
|
|
25
|
+
velocity: { type: "number" },
|
|
26
|
+
particle: { type: "boolean" },
|
|
27
|
+
},
|
|
28
|
+
resources: {
|
|
29
|
+
mousePosition: { type: "number", default: 0 },
|
|
30
|
+
fooPosition: { type: "number", default: 0 },
|
|
31
|
+
},
|
|
32
|
+
archetypes: {
|
|
33
|
+
Particle: ["particle"],
|
|
34
|
+
DynamicParticle: ["particle", "velocity"],
|
|
35
|
+
},
|
|
32
36
|
});
|
|
37
|
+
// Test store schema dependencies and merging
|
|
38
|
+
const aSchema = Store.Schema.create({
|
|
39
|
+
components: {
|
|
40
|
+
a: { type: "number" },
|
|
41
|
+
b: { type: "string" }
|
|
42
|
+
},
|
|
43
|
+
resources: {
|
|
44
|
+
c: { default: "string" }
|
|
45
|
+
},
|
|
46
|
+
archetypes: {
|
|
47
|
+
one: ["a", "b"]
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
const bSchema = Store.Schema.create({
|
|
51
|
+
components: {
|
|
52
|
+
x: { type: "number" },
|
|
53
|
+
y: { type: "string" }
|
|
54
|
+
},
|
|
55
|
+
resources: {
|
|
56
|
+
z: { default: "string" }
|
|
57
|
+
},
|
|
58
|
+
archetypes: {
|
|
59
|
+
two: ["x", "y"]
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
const cSchema = Store.Schema.create({
|
|
63
|
+
components: {
|
|
64
|
+
m: { type: "number" },
|
|
65
|
+
n: { type: "string" }
|
|
66
|
+
},
|
|
67
|
+
resources: {
|
|
68
|
+
c: { default: "string" }
|
|
69
|
+
},
|
|
70
|
+
archetypes: {
|
|
71
|
+
three: ["m", "n", "m", "x"]
|
|
72
|
+
},
|
|
73
|
+
}, [aSchema, bSchema]);
|
|
74
|
+
// Runtime checks: verify the merged schema contains all properties
|
|
75
|
+
const hasAllComponents = "a" in cSchema.components &&
|
|
76
|
+
"b" in cSchema.components &&
|
|
77
|
+
"x" in cSchema.components &&
|
|
78
|
+
"y" in cSchema.components &&
|
|
79
|
+
"m" in cSchema.components &&
|
|
80
|
+
"n" in cSchema.components;
|
|
81
|
+
const hasAllResources = "c" in cSchema.resources &&
|
|
82
|
+
"z" in cSchema.resources;
|
|
83
|
+
const hasAllArchetypes = "one" in cSchema.archetypes &&
|
|
84
|
+
"two" in cSchema.archetypes &&
|
|
85
|
+
"three" in cSchema.archetypes;
|
|
86
|
+
if (!hasAllComponents) {
|
|
87
|
+
throw new Error("Schema merging failed: missing components");
|
|
88
|
+
}
|
|
89
|
+
if (!hasAllResources) {
|
|
90
|
+
throw new Error("Schema merging failed: missing resources");
|
|
91
|
+
}
|
|
92
|
+
if (!hasAllArchetypes) {
|
|
93
|
+
throw new Error("Schema merging failed: missing archetypes");
|
|
94
|
+
}
|
|
33
95
|
//# sourceMappingURL=create-store-schema-test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-store-schema-test.js","sourceRoot":"","sources":["../../../src/ecs/store/create-store-schema-test.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAKX,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"create-store-schema-test.js","sourceRoot":"","sources":["../../../src/ecs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2C,CAAC,CAAC;AACjE,CAAC"}
|
|
@@ -5,4 +5,4 @@ import { FromSchemas } from "../../schema/from-schemas.js";
|
|
|
5
5
|
import { ResourceSchemas } from "../resource-schemas.js";
|
|
6
6
|
import { ArchetypeComponents } from "./archetype-components.js";
|
|
7
7
|
import { OptionalComponents } from "../optional-components.js";
|
|
8
|
-
export declare function createStore<
|
|
8
|
+
export declare function createStore<CS extends ComponentSchemas = {}, RS extends ResourceSchemas = {}, A extends ArchetypeComponents<StringKeyof<CS & OptionalComponents>> = {}>(schema?: Store.Schema<CS, RS, A>): Store<FromSchemas<CS>, FromSchemas<RS>, A>;
|
|
@@ -21,26 +21,35 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
21
21
|
SOFTWARE.*/
|
|
22
22
|
import { createCore } from "./core/create-core.js";
|
|
23
23
|
import { selectEntities } from "./core/select-entities.js";
|
|
24
|
-
export function createStore(
|
|
24
|
+
export function createStore(schema) {
|
|
25
|
+
const schemaArg = schema;
|
|
26
|
+
const hasSchemaShape = schemaArg &&
|
|
27
|
+
typeof schemaArg === "object" &&
|
|
28
|
+
"components" in schemaArg &&
|
|
29
|
+
"resources" in schemaArg &&
|
|
30
|
+
"archetypes" in schemaArg;
|
|
31
|
+
const normalizedSchema = (hasSchemaShape
|
|
32
|
+
? schemaArg
|
|
33
|
+
: {
|
|
34
|
+
components: (schemaArg ?? {}),
|
|
35
|
+
resources: (arguments.length > 1 ? arguments[1] : {}),
|
|
36
|
+
archetypes: (arguments.length > 2 ? arguments[2] : {}),
|
|
37
|
+
});
|
|
25
38
|
const resources = {};
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
for (const name of Object.keys(resourceSchemas)) {
|
|
31
|
-
const resourceId = name;
|
|
32
|
-
componentAndResourceSchemas[resourceId] = resourceSchemas[name];
|
|
33
|
-
}
|
|
39
|
+
const componentSchemas = {};
|
|
40
|
+
const resourceSchemas = {};
|
|
41
|
+
const archetypeComponentNames = {};
|
|
42
|
+
const componentAndResourceSchemas = {};
|
|
34
43
|
const core = createCore(componentAndResourceSchemas);
|
|
35
44
|
// Each resource will be stored as the only entity in an archetype of [id, <resourceName>]
|
|
36
45
|
// The resource component we added above will contain the resource value
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
46
|
+
const ensureResourceInitialized = (name, resourceSchema) => {
|
|
47
|
+
const resourceId = name;
|
|
48
|
+
const archetype = core.ensureArchetype(["id", resourceId]);
|
|
49
|
+
if (archetype.rowCount === 0) {
|
|
50
|
+
archetype.insert({ [resourceId]: resourceSchema.default });
|
|
51
|
+
}
|
|
52
|
+
if (!Object.prototype.hasOwnProperty.call(resources, name)) {
|
|
44
53
|
const row = 0;
|
|
45
54
|
Object.defineProperty(resources, name, {
|
|
46
55
|
get: () => archetype.columns[resourceId].get(row),
|
|
@@ -52,25 +61,66 @@ export function createStore(newComponentSchemas, resourceSchemas = {}, archetype
|
|
|
52
61
|
});
|
|
53
62
|
}
|
|
54
63
|
};
|
|
55
|
-
ensureDefaultResourcesAndPropertiesExist();
|
|
56
64
|
const select = (include, options) => {
|
|
57
65
|
return selectEntities(core, include, options);
|
|
58
66
|
};
|
|
59
|
-
const archetypes =
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
67
|
+
const archetypes = {};
|
|
68
|
+
const extend = (schema) => {
|
|
69
|
+
// components: existing must be identical if present
|
|
70
|
+
for (const [name, newComponentSchema] of Object.entries(schema.components)) {
|
|
71
|
+
if (name in componentAndResourceSchemas) {
|
|
72
|
+
if (componentAndResourceSchemas[name] !== newComponentSchema) {
|
|
73
|
+
throw new Error(`Component schema for "${name}" must be identical when extending.`);
|
|
74
|
+
}
|
|
75
|
+
continue;
|
|
76
|
+
}
|
|
77
|
+
componentAndResourceSchemas[name] = newComponentSchema;
|
|
78
|
+
core.componentSchemas[name] = newComponentSchema;
|
|
79
|
+
componentSchemas[name] = newComponentSchema;
|
|
80
|
+
}
|
|
81
|
+
// resources: existing must be identical if present
|
|
82
|
+
const newResourceNames = [];
|
|
83
|
+
for (const [name, newResourceSchema] of Object.entries(schema.resources)) {
|
|
84
|
+
if (name in resourceSchemas) {
|
|
85
|
+
if (resourceSchemas[name] !== newResourceSchema) {
|
|
86
|
+
throw new Error(`Resource schema for "${name}" must be identical when extending.`);
|
|
87
|
+
}
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
resourceSchemas[name] = newResourceSchema;
|
|
91
|
+
componentAndResourceSchemas[name] = newResourceSchema;
|
|
92
|
+
core.componentSchemas[name] = newResourceSchema;
|
|
93
|
+
newResourceNames.push(name);
|
|
94
|
+
ensureResourceInitialized(name, newResourceSchema);
|
|
95
|
+
}
|
|
96
|
+
// archetypes: existing must be identical if present
|
|
97
|
+
for (const [name, newComponents] of Object.entries(schema.archetypes)) {
|
|
98
|
+
if (name in archetypeComponentNames) {
|
|
99
|
+
if (archetypeComponentNames[name] !== newComponents) {
|
|
100
|
+
throw new Error(`Archetype definition for "${name}" must be identical when extending.`);
|
|
101
|
+
}
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
archetypeComponentNames[name] = newComponents;
|
|
105
|
+
const archetype = core.ensureArchetype(["id", ...newComponents]);
|
|
106
|
+
archetypes[name] = archetype;
|
|
107
|
+
}
|
|
108
|
+
return store;
|
|
109
|
+
};
|
|
63
110
|
const store = {
|
|
64
111
|
...core,
|
|
65
112
|
resources,
|
|
66
113
|
select,
|
|
67
114
|
archetypes,
|
|
115
|
+
extend,
|
|
68
116
|
toData: () => core.toData(),
|
|
69
117
|
fromData: (data) => {
|
|
70
118
|
core.fromData(data);
|
|
71
|
-
|
|
72
|
-
|
|
119
|
+
for (const [name, resourceSchema] of Object.entries(resourceSchemas)) {
|
|
120
|
+
ensureResourceInitialized(name, resourceSchema);
|
|
121
|
+
}
|
|
122
|
+
},
|
|
73
123
|
};
|
|
74
|
-
return store;
|
|
124
|
+
return store.extend(normalizedSchema);
|
|
75
125
|
}
|
|
76
126
|
//# sourceMappingURL=create-store.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-store.js","sourceRoot":"","sources":["../../../src/ecs/store/create-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAQX,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAMnD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAG3D,MAAM,UAAU,WAAW,CAKvB,
|
|
1
|
+
{"version":3,"file":"create-store.js","sourceRoot":"","sources":["../../../src/ecs/store/create-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAQX,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAMnD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAG3D,MAAM,UAAU,WAAW,CAKvB,MAAgC;IAEhC,MAAM,SAAS,GAAG,MAAa,CAAC;IAChC,MAAM,cAAc,GAChB,SAAS;QACT,OAAO,SAAS,KAAK,QAAQ;QAC7B,YAAY,IAAI,SAAS;QACzB,WAAW,IAAI,SAAS;QACxB,YAAY,IAAI,SAAS,CAAC;IAE9B,MAAM,gBAAgB,GAAG,CAAC,cAAc;QACpC,CAAC,CAAC,SAAS;QACX,CAAC,CAAC;YACE,UAAU,EAAE,CAAC,SAAS,IAAI,EAAE,CAAO;YACnC,SAAS,EAAE,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAO;YAC3D,UAAU,EAAE,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAM;SAC9D,CAA4B,CAAC;IAK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