@adobe/data 0.9.17 → 0.9.20
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/LICENSE +21 -0
- package/dist/README.md +296 -0
- package/{ecs → dist/ecs}/archetype/archetype.d.ts +13 -1
- package/{ecs → dist/ecs}/archetype/archetype.js.map +1 -1
- package/{ecs → dist/ecs}/archetype/create-archetype.js.map +1 -1
- package/{ecs → dist/ecs}/database/create-plugin.d.ts +4 -4
- package/{ecs → dist/ecs}/database/create-plugin.js.map +1 -1
- package/{ecs → dist/ecs}/database/create-plugin.type-test.js +33 -0
- package/dist/ecs/database/create-plugin.type-test.js.map +1 -0
- package/{ecs → dist/ecs}/database/database.d.ts +18 -6
- package/{ecs → dist/ecs}/database/database.js +2 -0
- package/dist/ecs/database/database.js.map +1 -0
- package/{ecs → dist/ecs}/database/index.d.ts +2 -0
- package/{ecs → dist/ecs}/database/index.js +2 -0
- package/dist/ecs/database/index.js.map +1 -0
- package/{ecs → dist/ecs}/database/public/create-database.type-test.js +78 -0
- package/{ecs → dist/ecs}/database/public/create-database.type-test.js.map +1 -1
- package/{ecs → dist/ecs}/database/public/index.d.ts +1 -0
- package/{ecs → dist/ecs}/database/public/index.js +1 -0
- package/{ecs → dist/ecs}/database/public/index.js.map +1 -1
- package/dist/ecs/database/public/observe-select-deep.d.ts +26 -0
- package/dist/ecs/database/public/observe-select-deep.js +110 -0
- package/dist/ecs/database/public/observe-select-deep.js.map +1 -0
- package/dist/ecs/database/public/observe-select-deep.test.js +187 -0
- package/dist/ecs/database/public/observe-select-deep.test.js.map +1 -0
- package/dist/ecs/database/public/observe-select-deep.type-test.js +105 -0
- package/dist/ecs/database/public/observe-select-deep.type-test.js.map +1 -0
- package/{ecs → dist/ecs}/index.d.ts +1 -1
- package/{ecs → dist/ecs}/index.js +1 -1
- package/{ecs → dist/ecs}/index.js.map +1 -1
- package/dist/ecs/plugins/scheduler/scheduler.d.ts +10 -0
- package/dist/ecs/plugins/scheduler/scheduler.js.map +1 -0
- package/{ecs → dist/ecs}/store/index.d.ts +1 -0
- package/{ecs → dist/ecs}/store/index.js +1 -0
- package/{ecs → dist/ecs}/store/index.js.map +1 -1
- package/{math → dist/math}/aabb/face/functions.d.ts +1 -1
- package/{math → dist/math}/aabb/face/functions.js +23 -9
- package/dist/math/aabb/face/functions.js.map +1 -0
- package/{math → dist/math}/vec2/functions.d.ts +2 -0
- package/{math → dist/math}/vec2/functions.js +3 -0
- package/dist/math/vec2/functions.js.map +1 -0
- package/dist/package.json +183 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/typed-buffer/typed-buffer-equals.test.d.ts +1 -0
- package/dist/typed-buffer/typed-buffer.test.d.ts +1 -0
- package/package.json +50 -47
- package/ecs/database/create-plugin.type-test.js.map +0 -1
- package/ecs/database/database.js.map +0 -1
- package/ecs/database/index.js.map +0 -1
- package/ecs/plugins/scheduler/scheduler.d.ts +0 -10
- package/ecs/plugins/scheduler/scheduler.js.map +0 -1
- package/math/aabb/face/functions.js.map +0 -1
- package/math/vec2/functions.js.map +0 -1
- package/tsconfig.tsbuildinfo +0 -1
- /package/{assembly → dist/assembly}/index.d.ts +0 -0
- /package/{assembly → dist/assembly}/index.js +0 -0
- /package/{assembly → dist/assembly}/index.wasm +0 -0
- /package/{assembly → dist/assembly}/index.wasm.map +0 -0
- /package/{assembly-test → dist/assembly-test}/assembly.test.d.ts +0 -0
- /package/{assembly-test → dist/assembly-test}/assembly.test.js +0 -0
- /package/{assembly-test → dist/assembly-test}/assembly.test.js.map +0 -0
- /package/{blob → dist/blob}/blob-handle.d.ts +0 -0
- /package/{blob → dist/blob}/blob-handle.js +0 -0
- /package/{blob → dist/blob}/blob-handle.js.map +0 -0
- /package/{blob → dist/blob}/blob-meta.d.ts +0 -0
- /package/{blob → dist/blob}/blob-meta.js +0 -0
- /package/{blob → dist/blob}/blob-meta.js.map +0 -0
- /package/{blob → dist/blob}/index.d.ts +0 -0
- /package/{blob → dist/blob}/index.js +0 -0
- /package/{blob → dist/blob}/index.js.map +0 -0
- /package/{cache → dist/cache}/async-cache.d.ts +0 -0
- /package/{cache → dist/cache}/async-cache.js +0 -0
- /package/{cache → dist/cache}/async-cache.js.map +0 -0
- /package/{cache → dist/cache}/blob-store.d.ts +0 -0
- /package/{cache → dist/cache}/blob-store.js +0 -0
- /package/{cache → dist/cache}/blob-store.js.map +0 -0
- /package/{cache → dist/cache}/blob-store.test.d.ts +0 -0
- /package/{cache → dist/cache}/blob-store.test.js +0 -0
- /package/{cache → dist/cache}/blob-store.test.js.map +0 -0
- /package/{cache → dist/cache}/data-cache.d.ts +0 -0
- /package/{cache → dist/cache}/data-cache.js +0 -0
- /package/{cache → dist/cache}/data-cache.js.map +0 -0
- /package/{cache → dist/cache}/data-cache.test.d.ts +0 -0
- /package/{cache → dist/cache}/data-cache.test.js +0 -0
- /package/{cache → dist/cache}/data-cache.test.js.map +0 -0
- /package/{cache → dist/cache}/expiring-data-cache.d.ts +0 -0
- /package/{cache → dist/cache}/expiring-data-cache.js +0 -0
- /package/{cache → dist/cache}/expiring-data-cache.js.map +0 -0
- /package/{cache → dist/cache}/expiring-data-cache.test.d.ts +0 -0
- /package/{cache → dist/cache}/expiring-data-cache.test.js +0 -0
- /package/{cache → dist/cache}/expiring-data-cache.test.js.map +0 -0
- /package/{cache → dist/cache}/fallback-async-cache.d.ts +0 -0
- /package/{cache → dist/cache}/fallback-async-cache.js +0 -0
- /package/{cache → dist/cache}/fallback-async-cache.js.map +0 -0
- /package/{cache → dist/cache}/functions/async-data-function.d.ts +0 -0
- /package/{cache → dist/cache}/functions/async-data-function.js +0 -0
- /package/{cache → dist/cache}/functions/async-data-function.js.map +0 -0
- /package/{cache → dist/cache}/functions/functions.test.d.ts +0 -0
- /package/{cache → dist/cache}/functions/functions.test.js +0 -0
- /package/{cache → dist/cache}/functions/functions.test.js.map +0 -0
- /package/{cache → dist/cache}/functions/get-cached.d.ts +0 -0
- /package/{cache → dist/cache}/functions/get-cached.js +0 -0
- /package/{cache → dist/cache}/functions/get-cached.js.map +0 -0
- /package/{cache → dist/cache}/functions/get-cached.test.d.ts +0 -0
- /package/{cache → dist/cache}/functions/get-cached.test.js +0 -0
- /package/{cache → dist/cache}/functions/get-cached.test.js.map +0 -0
- /package/{cache → dist/cache}/functions/hashing/array-buffer-to-hex.d.ts +0 -0
- /package/{cache → dist/cache}/functions/hashing/array-buffer-to-hex.js +0 -0
- /package/{cache → dist/cache}/functions/hashing/array-buffer-to-hex.js.map +0 -0
- /package/{cache → dist/cache}/functions/hashing/blob-to-hash.d.ts +0 -0
- /package/{cache → dist/cache}/functions/hashing/blob-to-hash.js +0 -0
- /package/{cache → dist/cache}/functions/hashing/blob-to-hash.js.map +0 -0
- /package/{cache → dist/cache}/functions/hashing/buffer-to-hash.d.ts +0 -0
- /package/{cache → dist/cache}/functions/hashing/buffer-to-hash.js +0 -0
- /package/{cache → dist/cache}/functions/hashing/buffer-to-hash.js.map +0 -0
- /package/{cache → dist/cache}/functions/hashing/hashing.test.d.ts +0 -0
- /package/{cache → dist/cache}/functions/hashing/hashing.test.js +0 -0
- /package/{cache → dist/cache}/functions/hashing/hashing.test.js.map +0 -0
- /package/{cache → dist/cache}/functions/hashing/index.d.ts +0 -0
- /package/{cache → dist/cache}/functions/hashing/index.js +0 -0
- /package/{cache → dist/cache}/functions/hashing/index.js.map +0 -0
- /package/{cache → dist/cache}/functions/hashing/json-to-hash.d.ts +0 -0
- /package/{cache → dist/cache}/functions/hashing/json-to-hash.js +0 -0
- /package/{cache → dist/cache}/functions/hashing/json-to-hash.js.map +0 -0
- /package/{cache → dist/cache}/functions/hashing/string-to-hash.d.ts +0 -0
- /package/{cache → dist/cache}/functions/hashing/string-to-hash.js +0 -0
- /package/{cache → dist/cache}/functions/hashing/string-to-hash.js.map +0 -0
- /package/{cache → dist/cache}/functions/index.d.ts +0 -0
- /package/{cache → dist/cache}/functions/index.js +0 -0
- /package/{cache → dist/cache}/functions/index.js.map +0 -0
- /package/{cache → dist/cache}/functions/memoize.d.ts +0 -0
- /package/{cache → dist/cache}/functions/memoize.js +0 -0
- /package/{cache → dist/cache}/functions/memoize.js.map +0 -0
- /package/{cache → dist/cache}/functions/prevent-parallel-execution.d.ts +0 -0
- /package/{cache → dist/cache}/functions/prevent-parallel-execution.js +0 -0
- /package/{cache → dist/cache}/functions/prevent-parallel-execution.js.map +0 -0
- /package/{cache → dist/cache}/get-persistent-cache.d.ts +0 -0
- /package/{cache → dist/cache}/get-persistent-cache.js +0 -0
- /package/{cache → dist/cache}/get-persistent-cache.js.map +0 -0
- /package/{cache → dist/cache}/index.d.ts +0 -0
- /package/{cache → dist/cache}/index.js +0 -0
- /package/{cache → dist/cache}/index.js.map +0 -0
- /package/{cache → dist/cache}/managed-array.d.ts +0 -0
- /package/{cache → dist/cache}/managed-array.js +0 -0
- /package/{cache → dist/cache}/managed-array.js.map +0 -0
- /package/{cache → dist/cache}/managed-async-cache.browser.test.d.ts +0 -0
- /package/{cache → dist/cache}/managed-async-cache.browser.test.js +0 -0
- /package/{cache → dist/cache}/managed-async-cache.browser.test.js.map +0 -0
- /package/{cache → dist/cache}/managed-async-cache.d.ts +0 -0
- /package/{cache → dist/cache}/managed-async-cache.js +0 -0
- /package/{cache → dist/cache}/managed-async-cache.js.map +0 -0
- /package/{cache → dist/cache}/memory-allocator.d.ts +0 -0
- /package/{cache → dist/cache}/memory-allocator.js +0 -0
- /package/{cache → dist/cache}/memory-allocator.js.map +0 -0
- /package/{cache → dist/cache}/memory-async-cache.d.ts +0 -0
- /package/{cache → dist/cache}/memory-async-cache.js +0 -0
- /package/{cache → dist/cache}/memory-async-cache.js.map +0 -0
- /package/{data.d.ts → dist/data.d.ts} +0 -0
- /package/{data.js → dist/data.js} +0 -0
- /package/{data.js.map → dist/data.js.map} +0 -0
- /package/{ecs → dist/ecs}/archetype/archetype.js +0 -0
- /package/{ecs → dist/ecs}/archetype/create-archetype.d.ts +0 -0
- /package/{ecs → dist/ecs}/archetype/create-archetype.js +0 -0
- /package/{ecs → dist/ecs}/archetype/create-archetype.test.d.ts +0 -0
- /package/{ecs → dist/ecs}/archetype/create-archetype.test.js +0 -0
- /package/{ecs → dist/ecs}/archetype/create-archetype.test.js.map +0 -0
- /package/{ecs → dist/ecs}/archetype/delete-row.d.ts +0 -0
- /package/{ecs → dist/ecs}/archetype/delete-row.js +0 -0
- /package/{ecs → dist/ecs}/archetype/delete-row.js.map +0 -0
- /package/{ecs → dist/ecs}/archetype/delete-row.test.d.ts +0 -0
- /package/{ecs → dist/ecs}/archetype/delete-row.test.js +0 -0
- /package/{ecs → dist/ecs}/archetype/delete-row.test.js.map +0 -0
- /package/{ecs → dist/ecs}/archetype/index.d.ts +0 -0
- /package/{ecs → dist/ecs}/archetype/index.js +0 -0
- /package/{ecs → dist/ecs}/archetype/index.js.map +0 -0
- /package/{ecs → dist/ecs}/component-schemas.d.ts +0 -0
- /package/{ecs → dist/ecs}/component-schemas.js +0 -0
- /package/{ecs → dist/ecs}/component-schemas.js.map +0 -0
- /package/{ecs → dist/ecs}/core-components.d.ts +0 -0
- /package/{ecs → dist/ecs}/core-components.js +0 -0
- /package/{ecs → dist/ecs}/core-components.js.map +0 -0
- /package/{ecs → dist/ecs}/database/calculate-system-order.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/calculate-system-order.js +0 -0
- /package/{ecs → dist/ecs}/database/calculate-system-order.js.map +0 -0
- /package/{ecs → dist/ecs}/database/calculate-system-order.test.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/calculate-system-order.test.js +0 -0
- /package/{ecs → dist/ecs}/database/calculate-system-order.test.js.map +0 -0
- /package/{ecs → dist/ecs}/database/combine-plugins.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/combine-plugins.js +0 -0
- /package/{ecs → dist/ecs}/database/combine-plugins.js.map +0 -0
- /package/{ecs → dist/ecs}/database/create-plugin.js +0 -0
- /package/{ecs → dist/ecs}/database/create-plugin.test.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/create-plugin.test.js +0 -0
- /package/{ecs → dist/ecs}/database/create-plugin.test.js.map +0 -0
- /package/{ecs → dist/ecs}/database/create-plugin.type-test.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/database-schema/create-database-schema-test.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/database-schema/create-database-schema-test.js +0 -0
- /package/{ecs → dist/ecs}/database/database-schema/create-database-schema-test.js.map +0 -0
- /package/{ecs → dist/ecs}/database/database-schema/create-database-schema.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/database-schema/create-database-schema.js +0 -0
- /package/{ecs → dist/ecs}/database/database-schema/create-database-schema.js.map +0 -0
- /package/{ecs → dist/ecs}/database/database-schema/database-schema.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/database-schema/database-schema.js +0 -0
- /package/{ecs → dist/ecs}/database/database-schema/database-schema.js.map +0 -0
- /package/{ecs → dist/ecs}/database/database-schema/index.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/database-schema/index.js +0 -0
- /package/{ecs → dist/ecs}/database/database-schema/index.js.map +0 -0
- /package/{ecs → dist/ecs}/database/database.test.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/database.test.js +0 -0
- /package/{ecs → dist/ecs}/database/database.test.js.map +0 -0
- /package/{ecs → dist/ecs}/database/observe-dependent-value.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/observe-dependent-value.js +0 -0
- /package/{ecs → dist/ecs}/database/observe-dependent-value.js.map +0 -0
- /package/{ecs → dist/ecs}/database/observe-dependent-value.test.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/observe-dependent-value.test.js +0 -0
- /package/{ecs → dist/ecs}/database/observe-dependent-value.test.js.map +0 -0
- /package/{ecs → dist/ecs}/database/observe-select-entities.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/observe-select-entities.js +0 -0
- /package/{ecs → dist/ecs}/database/observe-select-entities.js.map +0 -0
- /package/{ecs → dist/ecs}/database/observe-select-entities.performance.test.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/observe-select-entities.performance.test.js +0 -0
- /package/{ecs → dist/ecs}/database/observe-select-entities.performance.test.js.map +0 -0
- /package/{ecs → dist/ecs}/database/observe-select-entities.test.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/observe-select-entities.test.js +0 -0
- /package/{ecs → dist/ecs}/database/observe-select-entities.test.js.map +0 -0
- /package/{ecs → dist/ecs}/database/observed/create-observed-database.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/observed/create-observed-database.js +0 -0
- /package/{ecs → dist/ecs}/database/observed/create-observed-database.js.map +0 -0
- /package/{ecs → dist/ecs}/database/observed/create-observed-database.test.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/observed/create-observed-database.test.js +0 -0
- /package/{ecs → dist/ecs}/database/observed/create-observed-database.test.js.map +0 -0
- /package/{ecs → dist/ecs}/database/observed/observed-database.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/observed/observed-database.js +0 -0
- /package/{ecs → dist/ecs}/database/observed/observed-database.js.map +0 -0
- /package/{ecs → dist/ecs}/database/public/create-database-from-schema.test.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/public/create-database-from-schema.test.js +0 -0
- /package/{ecs → dist/ecs}/database/public/create-database-from-schema.test.js.map +0 -0
- /package/{ecs → dist/ecs}/database/public/create-database-scheduler.test.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/public/create-database-scheduler.test.js +0 -0
- /package/{ecs → dist/ecs}/database/public/create-database-scheduler.test.js.map +0 -0
- /package/{ecs → dist/ecs}/database/public/create-database.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/public/create-database.js +0 -0
- /package/{ecs → dist/ecs}/database/public/create-database.js.map +0 -0
- /package/{ecs → dist/ecs}/database/public/create-database.test.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/public/create-database.test.js +0 -0
- /package/{ecs → dist/ecs}/database/public/create-database.test.js.map +0 -0
- /package/{ecs → dist/ecs}/database/public/create-database.type-test.d.ts +0 -0
- /package/{ecs/database/reconciling/create-reconciling-database.test.d.ts → dist/ecs/database/public/observe-select-deep.test.d.ts} +0 -0
- /package/{ecs/database/transactional-store/coalesce-actions.test.d.ts → dist/ecs/database/public/observe-select-deep.type-test.d.ts} +0 -0
- /package/{ecs → dist/ecs}/database/reconciling/create-reconciling-database.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/reconciling/create-reconciling-database.js +0 -0
- /package/{ecs → dist/ecs}/database/reconciling/create-reconciling-database.js.map +0 -0
- /package/{ecs/database/transactional-store/create-transactional-store.test.d.ts → dist/ecs/database/reconciling/create-reconciling-database.test.d.ts} +0 -0
- /package/{ecs → dist/ecs}/database/reconciling/create-reconciling-database.test.js +0 -0
- /package/{ecs → dist/ecs}/database/reconciling/create-reconciling-database.test.js.map +0 -0
- /package/{ecs → dist/ecs}/database/reconciling/reconciling-database.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/reconciling/reconciling-database.js +0 -0
- /package/{ecs → dist/ecs}/database/reconciling/reconciling-database.js.map +0 -0
- /package/{ecs → dist/ecs}/database/reconciling/reconciling-entry.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/reconciling/reconciling-entry.js +0 -0
- /package/{ecs → dist/ecs}/database/reconciling/reconciling-entry.js.map +0 -0
- /package/{ecs → dist/ecs}/database/transactional-store/apply-operations.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/transactional-store/apply-operations.js +0 -0
- /package/{ecs → dist/ecs}/database/transactional-store/apply-operations.js.map +0 -0
- /package/{ecs → dist/ecs}/database/transactional-store/coalesce-actions.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/transactional-store/coalesce-actions.js +0 -0
- /package/{ecs → dist/ecs}/database/transactional-store/coalesce-actions.js.map +0 -0
- /package/{ecs/database/type-inference-example.d.ts → dist/ecs/database/transactional-store/coalesce-actions.test.d.ts} +0 -0
- /package/{ecs → dist/ecs}/database/transactional-store/coalesce-actions.test.js +0 -0
- /package/{ecs → dist/ecs}/database/transactional-store/coalesce-actions.test.js.map +0 -0
- /package/{ecs → dist/ecs}/database/transactional-store/create-transactional-store.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/transactional-store/create-transactional-store.js +0 -0
- /package/{ecs → dist/ecs}/database/transactional-store/create-transactional-store.js.map +0 -0
- /package/{ecs/entity-location-table/create-entity-location-table.test.d.ts → dist/ecs/database/transactional-store/create-transactional-store.test.d.ts} +0 -0
- /package/{ecs → dist/ecs}/database/transactional-store/create-transactional-store.test.js +0 -0
- /package/{ecs → dist/ecs}/database/transactional-store/create-transactional-store.test.js.map +0 -0
- /package/{ecs → dist/ecs}/database/transactional-store/index.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/transactional-store/index.js +0 -0
- /package/{ecs → dist/ecs}/database/transactional-store/index.js.map +0 -0
- /package/{ecs → dist/ecs}/database/transactional-store/patch-entity-values.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/transactional-store/patch-entity-values.js +0 -0
- /package/{ecs → dist/ecs}/database/transactional-store/patch-entity-values.js.map +0 -0
- /package/{ecs → dist/ecs}/database/transactional-store/transaction-options.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/transactional-store/transaction-options.js +0 -0
- /package/{ecs → dist/ecs}/database/transactional-store/transaction-options.js.map +0 -0
- /package/{ecs → dist/ecs}/database/transactional-store/transactional-store.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/transactional-store/transactional-store.js +0 -0
- /package/{ecs → dist/ecs}/database/transactional-store/transactional-store.js.map +0 -0
- /package/{ecs/store/core/select-entities.test.d.ts → dist/ecs/database/type-inference-example.d.ts} +0 -0
- /package/{ecs → dist/ecs}/database/type-inference-example.js +0 -0
- /package/{ecs → dist/ecs}/database/type-inference-example.js.map +0 -0
- /package/{ecs → dist/ecs}/database/undoable.d.ts +0 -0
- /package/{ecs → dist/ecs}/database/undoable.js +0 -0
- /package/{ecs → dist/ecs}/database/undoable.js.map +0 -0
- /package/{ecs → dist/ecs}/entity-location-table/create-entity-location-table.d.ts +0 -0
- /package/{ecs → dist/ecs}/entity-location-table/create-entity-location-table.js +0 -0
- /package/{ecs → dist/ecs}/entity-location-table/create-entity-location-table.js.map +0 -0
- /package/{ecs/store/create-store-schema-test.d.ts → dist/ecs/entity-location-table/create-entity-location-table.test.d.ts} +0 -0
- /package/{ecs → dist/ecs}/entity-location-table/create-entity-location-table.test.js +0 -0
- /package/{ecs → dist/ecs}/entity-location-table/create-entity-location-table.test.js.map +0 -0
- /package/{ecs → dist/ecs}/entity-location-table/entity-location-table.d.ts +0 -0
- /package/{ecs → dist/ecs}/entity-location-table/entity-location-table.js +0 -0
- /package/{ecs → dist/ecs}/entity-location-table/entity-location-table.js.map +0 -0
- /package/{ecs → dist/ecs}/entity-location-table/entity-location.d.ts +0 -0
- /package/{ecs → dist/ecs}/entity-location-table/entity-location.js +0 -0
- /package/{ecs → dist/ecs}/entity-location-table/entity-location.js.map +0 -0
- /package/{ecs → dist/ecs}/entity-location-table/index.d.ts +0 -0
- /package/{ecs → dist/ecs}/entity-location-table/index.js +0 -0
- /package/{ecs → dist/ecs}/entity-location-table/index.js.map +0 -0
- /package/{ecs → dist/ecs}/entity.d.ts +0 -0
- /package/{ecs → dist/ecs}/entity.js +0 -0
- /package/{ecs → dist/ecs}/entity.js.map +0 -0
- /package/{ecs → dist/ecs}/optional-components.d.ts +0 -0
- /package/{ecs → dist/ecs}/optional-components.js +0 -0
- /package/{ecs → dist/ecs}/optional-components.js.map +0 -0
- /package/{ecs → dist/ecs}/persistence-service/create-storage-persistence-service.d.ts +0 -0
- /package/{ecs → dist/ecs}/persistence-service/create-storage-persistence-service.js +0 -0
- /package/{ecs → dist/ecs}/persistence-service/create-storage-persistence-service.js.map +0 -0
- /package/{ecs → dist/ecs}/persistence-service/index.d.ts +0 -0
- /package/{ecs → dist/ecs}/persistence-service/index.js +0 -0
- /package/{ecs → dist/ecs}/persistence-service/index.js.map +0 -0
- /package/{ecs → dist/ecs}/persistence-service/persistence-service.d.ts +0 -0
- /package/{ecs → dist/ecs}/persistence-service/persistence-service.js +0 -0
- /package/{ecs → dist/ecs}/persistence-service/persistence-service.js.map +0 -0
- /package/{ecs → dist/ecs}/plugins/index.d.ts +0 -0
- /package/{ecs → dist/ecs}/plugins/index.js +0 -0
- /package/{ecs → dist/ecs}/plugins/index.js.map +0 -0
- /package/{ecs → dist/ecs}/plugins/scheduler/index.d.ts +0 -0
- /package/{ecs → dist/ecs}/plugins/scheduler/index.js +0 -0
- /package/{ecs → dist/ecs}/plugins/scheduler/index.js.map +0 -0
- /package/{ecs → dist/ecs}/plugins/scheduler/scheduler.js +0 -0
- /package/{ecs → dist/ecs}/required-components.d.ts +0 -0
- /package/{ecs → dist/ecs}/required-components.js +0 -0
- /package/{ecs → dist/ecs}/required-components.js.map +0 -0
- /package/{ecs → dist/ecs}/resource-schemas.d.ts +0 -0
- /package/{ecs → dist/ecs}/resource-schemas.js +0 -0
- /package/{ecs → dist/ecs}/resource-schemas.js.map +0 -0
- /package/{ecs → dist/ecs}/store/action-functions.d.ts +0 -0
- /package/{ecs → dist/ecs}/store/action-functions.js +0 -0
- /package/{ecs → dist/ecs}/store/action-functions.js.map +0 -0
- /package/{ecs → dist/ecs}/store/archetype-components.d.ts +0 -0
- /package/{ecs → dist/ecs}/store/archetype-components.js +0 -0
- /package/{ecs → dist/ecs}/store/archetype-components.js.map +0 -0
- /package/{ecs → dist/ecs}/store/components.d.ts +0 -0
- /package/{ecs → dist/ecs}/store/components.js +0 -0
- /package/{ecs → dist/ecs}/store/components.js.map +0 -0
- /package/{ecs → dist/ecs}/store/core/core.d.ts +0 -0
- /package/{ecs → dist/ecs}/store/core/core.js +0 -0
- /package/{ecs → dist/ecs}/store/core/core.js.map +0 -0
- /package/{ecs → dist/ecs}/store/core/create-core.d.ts +0 -0
- /package/{ecs → dist/ecs}/store/core/create-core.js +0 -0
- /package/{ecs → dist/ecs}/store/core/create-core.js.map +0 -0
- /package/{ecs → dist/ecs}/store/core/create-core.test.d.ts +0 -0
- /package/{ecs → dist/ecs}/store/core/create-core.test.js +0 -0
- /package/{ecs → dist/ecs}/store/core/create-core.test.js.map +0 -0
- /package/{ecs → dist/ecs}/store/core/index.d.ts +0 -0
- /package/{ecs → dist/ecs}/store/core/index.js +0 -0
- /package/{ecs → dist/ecs}/store/core/index.js.map +0 -0
- /package/{ecs → dist/ecs}/store/core/select-entities.d.ts +0 -0
- /package/{ecs → dist/ecs}/store/core/select-entities.js +0 -0
- /package/{ecs → dist/ecs}/store/core/select-entities.js.map +0 -0
- /package/{ecs/store/public/create-store.test.d.ts → dist/ecs/store/core/select-entities.test.d.ts} +0 -0
- /package/{ecs → dist/ecs}/store/core/select-entities.test.js +0 -0
- /package/{ecs → dist/ecs}/store/core/select-entities.test.js.map +0 -0
- /package/{ecs/store/store.test.d.ts → dist/ecs/store/create-store-schema-test.d.ts} +0 -0
- /package/{ecs → dist/ecs}/store/create-store-schema-test.js +0 -0
- /package/{ecs → dist/ecs}/store/create-store-schema-test.js.map +0 -0
- /package/{ecs → dist/ecs}/store/entity-select-options.d.ts +0 -0
- /package/{ecs → dist/ecs}/store/entity-select-options.js +0 -0
- /package/{ecs → dist/ecs}/store/entity-select-options.js.map +0 -0
- /package/{ecs → dist/ecs}/store/public/create-store.d.ts +0 -0
- /package/{ecs → dist/ecs}/store/public/create-store.js +0 -0
- /package/{ecs → dist/ecs}/store/public/create-store.js.map +0 -0
- /package/{ecs/undo-redo-service/create-undo-redo-service.test.d.ts → dist/ecs/store/public/create-store.test.d.ts} +0 -0
- /package/{ecs → dist/ecs}/store/public/create-store.test.js +0 -0
- /package/{ecs → dist/ecs}/store/public/create-store.test.js.map +0 -0
- /package/{ecs → dist/ecs}/store/resource-components.d.ts +0 -0
- /package/{ecs → dist/ecs}/store/resource-components.js +0 -0
- /package/{ecs → dist/ecs}/store/resource-components.js.map +0 -0
- /package/{ecs → dist/ecs}/store/store.d.ts +0 -0
- /package/{ecs → dist/ecs}/store/store.js +0 -0
- /package/{ecs → dist/ecs}/store/store.js.map +0 -0
- /package/{equals-shallow.test.d.ts → dist/ecs/store/store.test.d.ts} +0 -0
- /package/{ecs → dist/ecs}/store/store.test.js +0 -0
- /package/{ecs → dist/ecs}/store/store.test.js.map +0 -0
- /package/{ecs → dist/ecs}/store/transaction-functions.d.ts +0 -0
- /package/{ecs → dist/ecs}/store/transaction-functions.js +0 -0
- /package/{ecs → dist/ecs}/store/transaction-functions.js.map +0 -0
- /package/{ecs → dist/ecs}/undo-redo-service/create-undo-redo-service.d.ts +0 -0
- /package/{ecs → dist/ecs}/undo-redo-service/create-undo-redo-service.js +0 -0
- /package/{ecs → dist/ecs}/undo-redo-service/create-undo-redo-service.js.map +0 -0
- /package/{equals.test.d.ts → dist/ecs/undo-redo-service/create-undo-redo-service.test.d.ts} +0 -0
- /package/{ecs → dist/ecs}/undo-redo-service/create-undo-redo-service.test.js +0 -0
- /package/{ecs → dist/ecs}/undo-redo-service/create-undo-redo-service.test.js.map +0 -0
- /package/{ecs → dist/ecs}/undo-redo-service/index.d.ts +0 -0
- /package/{ecs → dist/ecs}/undo-redo-service/index.js +0 -0
- /package/{ecs → dist/ecs}/undo-redo-service/index.js.map +0 -0
- /package/{ecs → dist/ecs}/undo-redo-service/undo-redo-service.d.ts +0 -0
- /package/{ecs → dist/ecs}/undo-redo-service/undo-redo-service.js +0 -0
- /package/{ecs → dist/ecs}/undo-redo-service/undo-redo-service.js.map +0 -0
- /package/{equals-shallow.d.ts → dist/equals-shallow.d.ts} +0 -0
- /package/{equals-shallow.js → dist/equals-shallow.js} +0 -0
- /package/{equals-shallow.js.map → dist/equals-shallow.js.map} +0 -0
- /package/{functions/merge-patch.test.d.ts → dist/equals-shallow.test.d.ts} +0 -0
- /package/{equals-shallow.test.js → dist/equals-shallow.test.js} +0 -0
- /package/{equals-shallow.test.js.map → dist/equals-shallow.test.js.map} +0 -0
- /package/{equals.d.ts → dist/equals.d.ts} +0 -0
- /package/{equals.js → dist/equals.js} +0 -0
- /package/{equals.js.map → dist/equals.js.map} +0 -0
- /package/{functions/serialization/serialization.test.d.ts → dist/equals.test.d.ts} +0 -0
- /package/{equals.test.js → dist/equals.test.js} +0 -0
- /package/{equals.test.js.map → dist/equals.test.js.map} +0 -0
- /package/{functions → dist/functions}/apply-args.d.ts +0 -0
- /package/{functions → dist/functions}/apply-args.js +0 -0
- /package/{functions → dist/functions}/apply-args.js.map +0 -0
- /package/{functions → dist/functions}/blit.d.ts +0 -0
- /package/{functions → dist/functions}/blit.js +0 -0
- /package/{functions → dist/functions}/blit.js.map +0 -0
- /package/{functions → dist/functions}/copy-view-bytes.d.ts +0 -0
- /package/{functions → dist/functions}/copy-view-bytes.js +0 -0
- /package/{functions → dist/functions}/copy-view-bytes.js.map +0 -0
- /package/{functions → dist/functions}/index.d.ts +0 -0
- /package/{functions → dist/functions}/index.js +0 -0
- /package/{functions → dist/functions}/index.js.map +0 -0
- /package/{functions → dist/functions}/merge-patch.d.ts +0 -0
- /package/{functions → dist/functions}/merge-patch.js +0 -0
- /package/{functions → dist/functions}/merge-patch.js.map +0 -0
- /package/{functions/serialization/serialize-to-blobs.test.d.ts → dist/functions/merge-patch.test.d.ts} +0 -0
- /package/{functions → dist/functions}/merge-patch.test.js +0 -0
- /package/{functions → dist/functions}/merge-patch.test.js.map +0 -0
- /package/{functions → dist/functions}/serialization/codec.d.ts +0 -0
- /package/{functions → dist/functions}/serialization/codec.js +0 -0
- /package/{functions → dist/functions}/serialization/codec.js.map +0 -0
- /package/{functions → dist/functions}/serialization/index.d.ts +0 -0
- /package/{functions → dist/functions}/serialization/index.js +0 -0
- /package/{functions → dist/functions}/serialization/index.js.map +0 -0
- /package/{functions → dist/functions}/serialization/register-blob-codecs.d.ts +0 -0
- /package/{functions → dist/functions}/serialization/register-blob-codecs.js +0 -0
- /package/{functions → dist/functions}/serialization/register-blob-codecs.js.map +0 -0
- /package/{functions → dist/functions}/serialization/register-typed-array-codecs.d.ts +0 -0
- /package/{functions → dist/functions}/serialization/register-typed-array-codecs.js +0 -0
- /package/{functions → dist/functions}/serialization/register-typed-array-codecs.js.map +0 -0
- /package/{functions/serialization/serialize-to-json.test.d.ts → dist/functions/serialization/serialization.test.d.ts} +0 -0
- /package/{functions → dist/functions}/serialization/serialization.test.js +0 -0
- /package/{functions → dist/functions}/serialization/serialization.test.js.map +0 -0
- /package/{functions → dist/functions}/serialization/serialize-to-blobs.d.ts +0 -0
- /package/{functions → dist/functions}/serialization/serialize-to-blobs.js +0 -0
- /package/{functions → dist/functions}/serialization/serialize-to-blobs.js.map +0 -0
- /package/{functions/serialization/serialize-to-storage.test.d.ts → dist/functions/serialization/serialize-to-blobs.test.d.ts} +0 -0
- /package/{functions → dist/functions}/serialization/serialize-to-blobs.test.js +0 -0
- /package/{functions → dist/functions}/serialization/serialize-to-blobs.test.js.map +0 -0
- /package/{functions → dist/functions}/serialization/serialize-to-json.d.ts +0 -0
- /package/{functions → dist/functions}/serialization/serialize-to-json.js +0 -0
- /package/{functions → dist/functions}/serialization/serialize-to-json.js.map +0 -0
- /package/{internal/array/topological-sort.test.d.ts → dist/functions/serialization/serialize-to-json.test.d.ts} +0 -0
- /package/{functions → dist/functions}/serialization/serialize-to-json.test.js +0 -0
- /package/{functions → dist/functions}/serialization/serialize-to-json.test.js.map +0 -0
- /package/{functions → dist/functions}/serialization/serialize-to-storage.d.ts +0 -0
- /package/{functions → dist/functions}/serialization/serialize-to-storage.js +0 -0
- /package/{functions → dist/functions}/serialization/serialize-to-storage.js.map +0 -0
- /package/{internal/function/debounce.test.d.ts → dist/functions/serialization/serialize-to-storage.test.d.ts} +0 -0
- /package/{functions → dist/functions}/serialization/serialize-to-storage.test.js +0 -0
- /package/{functions → dist/functions}/serialization/serialize-to-storage.test.js.map +0 -0
- /package/{functions → dist/functions}/serialization/serialize.d.ts +0 -0
- /package/{functions → dist/functions}/serialization/serialize.js +0 -0
- /package/{functions → dist/functions}/serialization/serialize.js.map +0 -0
- /package/{index.d.ts → dist/index.d.ts} +0 -0
- /package/{index.js → dist/index.js} +0 -0
- /package/{index.js.map → dist/index.js.map} +0 -0
- /package/{internal → dist/internal}/array/index.d.ts +0 -0
- /package/{internal → dist/internal}/array/index.js +0 -0
- /package/{internal → dist/internal}/array/index.js.map +0 -0
- /package/{internal → dist/internal}/array/topological-sort.d.ts +0 -0
- /package/{internal → dist/internal}/array/topological-sort.js +0 -0
- /package/{internal → dist/internal}/array/topological-sort.js.map +0 -0
- /package/{math/aabb/face/aabb-face.test.d.ts → dist/internal/array/topological-sort.test.d.ts} +0 -0
- /package/{internal → dist/internal}/array/topological-sort.test.js +0 -0
- /package/{internal → dist/internal}/array/topological-sort.test.js.map +0 -0
- /package/{internal → dist/internal}/array-buffer-like/copy.d.ts +0 -0
- /package/{internal → dist/internal}/array-buffer-like/copy.js +0 -0
- /package/{internal → dist/internal}/array-buffer-like/copy.js.map +0 -0
- /package/{internal → dist/internal}/array-buffer-like/index.d.ts +0 -0
- /package/{internal → dist/internal}/array-buffer-like/index.js +0 -0
- /package/{internal → dist/internal}/array-buffer-like/index.js.map +0 -0
- /package/{internal → dist/internal}/array-buffer-like/is-array-buffer.d.ts +0 -0
- /package/{internal → dist/internal}/array-buffer-like/is-array-buffer.js +0 -0
- /package/{internal → dist/internal}/array-buffer-like/is-array-buffer.js.map +0 -0
- /package/{internal → dist/internal}/array-buffer-like/is-shared-array-buffer.d.ts +0 -0
- /package/{internal → dist/internal}/array-buffer-like/is-shared-array-buffer.js +0 -0
- /package/{internal → dist/internal}/array-buffer-like/is-shared-array-buffer.js.map +0 -0
- /package/{internal → dist/internal}/array-buffer-like/resize.d.ts +0 -0
- /package/{internal → dist/internal}/array-buffer-like/resize.js +0 -0
- /package/{internal → dist/internal}/array-buffer-like/resize.js.map +0 -0
- /package/{internal → dist/internal}/async-generator/is-async-generator.d.ts +0 -0
- /package/{internal → dist/internal}/async-generator/is-async-generator.js +0 -0
- /package/{internal → dist/internal}/async-generator/is-async-generator.js.map +0 -0
- /package/{internal → dist/internal}/data-view-32/create-data-view-32.d.ts +0 -0
- /package/{internal → dist/internal}/data-view-32/create-data-view-32.js +0 -0
- /package/{internal → dist/internal}/data-view-32/create-data-view-32.js.map +0 -0
- /package/{internal → dist/internal}/data-view-32/data-view-32.d.ts +0 -0
- /package/{internal → dist/internal}/data-view-32/data-view-32.js +0 -0
- /package/{internal → dist/internal}/data-view-32/data-view-32.js.map +0 -0
- /package/{internal → dist/internal}/data-view-32/index.d.ts +0 -0
- /package/{internal → dist/internal}/data-view-32/index.js +0 -0
- /package/{internal → dist/internal}/data-view-32/index.js.map +0 -0
- /package/{internal → dist/internal}/function/debounce.d.ts +0 -0
- /package/{internal → dist/internal}/function/debounce.js +0 -0
- /package/{internal → dist/internal}/function/debounce.js.map +0 -0
- /package/{math/aabb/line-intersection.test.d.ts → dist/internal/function/debounce.test.d.ts} +0 -0
- /package/{internal → dist/internal}/function/debounce.test.js +0 -0
- /package/{internal → dist/internal}/function/debounce.test.js.map +0 -0
- /package/{internal → dist/internal}/function/memoize-factory.d.ts +0 -0
- /package/{internal → dist/internal}/function/memoize-factory.js +0 -0
- /package/{internal → dist/internal}/function/memoize-factory.js.map +0 -0
- /package/{internal → dist/internal}/object/index.d.ts +0 -0
- /package/{internal → dist/internal}/object/index.js +0 -0
- /package/{internal → dist/internal}/object/index.js.map +0 -0
- /package/{internal → dist/internal}/object/map-entries.d.ts +0 -0
- /package/{internal → dist/internal}/object/map-entries.js +0 -0
- /package/{internal → dist/internal}/object/map-entries.js.map +0 -0
- /package/{internal → dist/internal}/promise/is-promise.d.ts +0 -0
- /package/{internal → dist/internal}/promise/is-promise.js +0 -0
- /package/{internal → dist/internal}/promise/is-promise.js.map +0 -0
- /package/{internal → dist/internal}/shared-array-buffer/create-shared-array-buffer.d.ts +0 -0
- /package/{internal → dist/internal}/shared-array-buffer/create-shared-array-buffer.js +0 -0
- /package/{internal → dist/internal}/shared-array-buffer/create-shared-array-buffer.js.map +0 -0
- /package/{internal → dist/internal}/typed-array/get-byte-size.d.ts +0 -0
- /package/{internal → dist/internal}/typed-array/get-byte-size.js +0 -0
- /package/{internal → dist/internal}/typed-array/get-byte-size.js.map +0 -0
- /package/{internal → dist/internal}/typed-array/index.d.ts +0 -0
- /package/{internal → dist/internal}/typed-array/index.js +0 -0
- /package/{internal → dist/internal}/typed-array/index.js.map +0 -0
- /package/{is-data.d.ts → dist/is-data.d.ts} +0 -0
- /package/{is-data.js → dist/is-data.js} +0 -0
- /package/{is-data.js.map → dist/is-data.js.map} +0 -0
- /package/{math → dist/math}/aabb/center.d.ts +0 -0
- /package/{math → dist/math}/aabb/center.js +0 -0
- /package/{math → dist/math}/aabb/center.js.map +0 -0
- /package/{math/line2/intersects.test.d.ts → dist/math/aabb/face/aabb-face.test.d.ts} +0 -0
- /package/{math → dist/math}/aabb/face/aabb-face.test.js +0 -0
- /package/{math → dist/math}/aabb/face/aabb-face.test.js.map +0 -0
- /package/{math → dist/math}/aabb/face/index.d.ts +0 -0
- /package/{math → dist/math}/aabb/face/index.js +0 -0
- /package/{math → dist/math}/aabb/face/index.js.map +0 -0
- /package/{math → dist/math}/aabb/face/public.d.ts +0 -0
- /package/{math → dist/math}/aabb/face/public.js +0 -0
- /package/{math → dist/math}/aabb/face/public.js.map +0 -0
- /package/{math → dist/math}/aabb/face/schema.d.ts +0 -0
- /package/{math → dist/math}/aabb/face/schema.js +0 -0
- /package/{math → dist/math}/aabb/face/schema.js.map +0 -0
- /package/{math → dist/math}/aabb/index.d.ts +0 -0
- /package/{math → dist/math}/aabb/index.js +0 -0
- /package/{math → dist/math}/aabb/index.js.map +0 -0
- /package/{math → dist/math}/aabb/layout.d.ts +0 -0
- /package/{math → dist/math}/aabb/layout.js +0 -0
- /package/{math → dist/math}/aabb/layout.js.map +0 -0
- /package/{math → dist/math}/aabb/line-intersection.d.ts +0 -0
- /package/{math → dist/math}/aabb/line-intersection.js +0 -0
- /package/{math → dist/math}/aabb/line-intersection.js.map +0 -0
- /package/{math/line3/closest-point-on-line.test.d.ts → dist/math/aabb/line-intersection.test.d.ts} +0 -0
- /package/{math → dist/math}/aabb/line-intersection.test.js +0 -0
- /package/{math → dist/math}/aabb/line-intersection.test.js.map +0 -0
- /package/{math → dist/math}/aabb/public.d.ts +0 -0
- /package/{math → dist/math}/aabb/public.js +0 -0
- /package/{math → dist/math}/aabb/public.js.map +0 -0
- /package/{math → dist/math}/aabb/schema.d.ts +0 -0
- /package/{math → dist/math}/aabb/schema.js +0 -0
- /package/{math → dist/math}/aabb/schema.js.map +0 -0
- /package/{math → dist/math}/aabb/unit.d.ts +0 -0
- /package/{math → dist/math}/aabb/unit.js +0 -0
- /package/{math → dist/math}/aabb/unit.js.map +0 -0
- /package/{math → dist/math}/constants.d.ts +0 -0
- /package/{math → dist/math}/constants.js +0 -0
- /package/{math → dist/math}/constants.js.map +0 -0
- /package/{math → dist/math}/f32/index.d.ts +0 -0
- /package/{math → dist/math}/f32/index.js +0 -0
- /package/{math → dist/math}/f32/index.js.map +0 -0
- /package/{math → dist/math}/f32/public.d.ts +0 -0
- /package/{math → dist/math}/f32/public.js +0 -0
- /package/{math → dist/math}/f32/public.js.map +0 -0
- /package/{math → dist/math}/f32/schema.d.ts +0 -0
- /package/{math → dist/math}/f32/schema.js +0 -0
- /package/{math → dist/math}/f32/schema.js.map +0 -0
- /package/{math → dist/math}/f64/index.d.ts +0 -0
- /package/{math → dist/math}/f64/index.js +0 -0
- /package/{math → dist/math}/f64/index.js.map +0 -0
- /package/{math → dist/math}/f64/public.d.ts +0 -0
- /package/{math → dist/math}/f64/public.js +0 -0
- /package/{math → dist/math}/f64/public.js.map +0 -0
- /package/{math → dist/math}/f64/schema.d.ts +0 -0
- /package/{math → dist/math}/f64/schema.js +0 -0
- /package/{math → dist/math}/f64/schema.js.map +0 -0
- /package/{math → dist/math}/i32/index.d.ts +0 -0
- /package/{math → dist/math}/i32/index.js +0 -0
- /package/{math → dist/math}/i32/index.js.map +0 -0
- /package/{math → dist/math}/i32/public.d.ts +0 -0
- /package/{math → dist/math}/i32/public.js +0 -0
- /package/{math → dist/math}/i32/public.js.map +0 -0
- /package/{math → dist/math}/i32/schema.d.ts +0 -0
- /package/{math → dist/math}/i32/schema.js +0 -0
- /package/{math → dist/math}/i32/schema.js.map +0 -0
- /package/{math → dist/math}/index.d.ts +0 -0
- /package/{math → dist/math}/index.js +0 -0
- /package/{math → dist/math}/index.js.map +0 -0
- /package/{math → dist/math}/line2/functions.d.ts +0 -0
- /package/{math → dist/math}/line2/functions.js +0 -0
- /package/{math → dist/math}/line2/functions.js.map +0 -0
- /package/{math → dist/math}/line2/index.d.ts +0 -0
- /package/{math → dist/math}/line2/index.js +0 -0
- /package/{math → dist/math}/line2/index.js.map +0 -0
- /package/{math/line3/interpolate.test.d.ts → dist/math/line2/intersects.test.d.ts} +0 -0
- /package/{math → dist/math}/line2/intersects.test.js +0 -0
- /package/{math → dist/math}/line2/intersects.test.js.map +0 -0
- /package/{math → dist/math}/line2/layout.d.ts +0 -0
- /package/{math → dist/math}/line2/layout.js +0 -0
- /package/{math → dist/math}/line2/layout.js.map +0 -0
- /package/{math → dist/math}/line2/public.d.ts +0 -0
- /package/{math → dist/math}/line2/public.js +0 -0
- /package/{math → dist/math}/line2/public.js.map +0 -0
- /package/{math → dist/math}/line2/schema.d.ts +0 -0
- /package/{math → dist/math}/line2/schema.js +0 -0
- /package/{math → dist/math}/line2/schema.js.map +0 -0
- /package/{math/line3/sub-line.test.d.ts → dist/math/line3/closest-point-on-line.test.d.ts} +0 -0
- /package/{math → dist/math}/line3/closest-point-on-line.test.js +0 -0
- /package/{math → dist/math}/line3/closest-point-on-line.test.js.map +0 -0
- /package/{math → dist/math}/line3/functions.d.ts +0 -0
- /package/{math → dist/math}/line3/functions.js +0 -0
- /package/{math → dist/math}/line3/functions.js.map +0 -0
- /package/{math → dist/math}/line3/index.d.ts +0 -0
- /package/{math → dist/math}/line3/index.js +0 -0
- /package/{math → dist/math}/line3/index.js.map +0 -0
- /package/{math/plane/plane.test.d.ts → dist/math/line3/interpolate.test.d.ts} +0 -0
- /package/{math → dist/math}/line3/interpolate.test.js +0 -0
- /package/{math → dist/math}/line3/interpolate.test.js.map +0 -0
- /package/{math → dist/math}/line3/layout.d.ts +0 -0
- /package/{math → dist/math}/line3/layout.js +0 -0
- /package/{math → dist/math}/line3/layout.js.map +0 -0
- /package/{math → dist/math}/line3/public.d.ts +0 -0
- /package/{math → dist/math}/line3/public.js +0 -0
- /package/{math → dist/math}/line3/public.js.map +0 -0
- /package/{math → dist/math}/line3/schema.d.ts +0 -0
- /package/{math → dist/math}/line3/schema.js +0 -0
- /package/{math → dist/math}/line3/schema.js.map +0 -0
- /package/{observe/create-persisted-state.test.d.ts → dist/math/line3/sub-line.test.d.ts} +0 -0
- /package/{math → dist/math}/line3/sub-line.test.js +0 -0
- /package/{math → dist/math}/line3/sub-line.test.js.map +0 -0
- /package/{math → dist/math}/mat4x4/functions.d.ts +0 -0
- /package/{math → dist/math}/mat4x4/functions.js +0 -0
- /package/{math → dist/math}/mat4x4/functions.js.map +0 -0
- /package/{math → dist/math}/mat4x4/index.d.ts +0 -0
- /package/{math → dist/math}/mat4x4/index.js +0 -0
- /package/{math → dist/math}/mat4x4/index.js.map +0 -0
- /package/{math → dist/math}/mat4x4/layout.d.ts +0 -0
- /package/{math → dist/math}/mat4x4/layout.js +0 -0
- /package/{math → dist/math}/mat4x4/layout.js.map +0 -0
- /package/{math → dist/math}/mat4x4/public.d.ts +0 -0
- /package/{math → dist/math}/mat4x4/public.js +0 -0
- /package/{math → dist/math}/mat4x4/public.js.map +0 -0
- /package/{math → dist/math}/mat4x4/schema.d.ts +0 -0
- /package/{math → dist/math}/mat4x4/schema.js +0 -0
- /package/{math → dist/math}/mat4x4/schema.js.map +0 -0
- /package/{math → dist/math}/plane/functions.d.ts +0 -0
- /package/{math → dist/math}/plane/functions.js +0 -0
- /package/{math → dist/math}/plane/functions.js.map +0 -0
- /package/{math → dist/math}/plane/index.d.ts +0 -0
- /package/{math → dist/math}/plane/index.js +0 -0
- /package/{math → dist/math}/plane/index.js.map +0 -0
- /package/{math → dist/math}/plane/layout.d.ts +0 -0
- /package/{math → dist/math}/plane/layout.js +0 -0
- /package/{math → dist/math}/plane/layout.js.map +0 -0
- /package/{observe/to-async-generator.test.d.ts → dist/math/plane/plane.test.d.ts} +0 -0
- /package/{math → dist/math}/plane/plane.test.js +0 -0
- /package/{math → dist/math}/plane/plane.test.js.map +0 -0
- /package/{math → dist/math}/plane/public.d.ts +0 -0
- /package/{math → dist/math}/plane/public.js +0 -0
- /package/{math → dist/math}/plane/public.js.map +0 -0
- /package/{math → dist/math}/plane/schema.d.ts +0 -0
- /package/{math → dist/math}/plane/schema.js +0 -0
- /package/{math → dist/math}/plane/schema.js.map +0 -0
- /package/{math → dist/math}/quat/constants/functions.d.ts +0 -0
- /package/{math → dist/math}/quat/constants/functions.js +0 -0
- /package/{math → dist/math}/quat/constants/functions.js.map +0 -0
- /package/{math → dist/math}/quat/functions.d.ts +0 -0
- /package/{math → dist/math}/quat/functions.js +0 -0
- /package/{math → dist/math}/quat/functions.js.map +0 -0
- /package/{math → dist/math}/quat/index.d.ts +0 -0
- /package/{math → dist/math}/quat/index.js +0 -0
- /package/{math → dist/math}/quat/index.js.map +0 -0
- /package/{math → dist/math}/quat/layout.d.ts +0 -0
- /package/{math → dist/math}/quat/layout.js +0 -0
- /package/{math → dist/math}/quat/layout.js.map +0 -0
- /package/{math → dist/math}/quat/public.d.ts +0 -0
- /package/{math → dist/math}/quat/public.js +0 -0
- /package/{math → dist/math}/quat/public.js.map +0 -0
- /package/{math → dist/math}/quat/schema.d.ts +0 -0
- /package/{math → dist/math}/quat/schema.js +0 -0
- /package/{math → dist/math}/quat/schema.js.map +0 -0
- /package/{math → dist/math}/u32/index.d.ts +0 -0
- /package/{math → dist/math}/u32/index.js +0 -0
- /package/{math → dist/math}/u32/index.js.map +0 -0
- /package/{math → dist/math}/u32/public.d.ts +0 -0
- /package/{math → dist/math}/u32/public.js +0 -0
- /package/{math → dist/math}/u32/public.js.map +0 -0
- /package/{math → dist/math}/u32/schema.d.ts +0 -0
- /package/{math → dist/math}/u32/schema.js +0 -0
- /package/{math → dist/math}/u32/schema.js.map +0 -0
- /package/{math → dist/math}/vec2/index.d.ts +0 -0
- /package/{math → dist/math}/vec2/index.js +0 -0
- /package/{math → dist/math}/vec2/index.js.map +0 -0
- /package/{math → dist/math}/vec2/layout.d.ts +0 -0
- /package/{math → dist/math}/vec2/layout.js +0 -0
- /package/{math → dist/math}/vec2/layout.js.map +0 -0
- /package/{math → dist/math}/vec2/public.d.ts +0 -0
- /package/{math → dist/math}/vec2/public.js +0 -0
- /package/{math → dist/math}/vec2/public.js.map +0 -0
- /package/{math → dist/math}/vec2/schema.d.ts +0 -0
- /package/{math → dist/math}/vec2/schema.js +0 -0
- /package/{math → dist/math}/vec2/schema.js.map +0 -0
- /package/{math → dist/math}/vec3/functions.d.ts +0 -0
- /package/{math → dist/math}/vec3/functions.js +0 -0
- /package/{math → dist/math}/vec3/functions.js.map +0 -0
- /package/{math → dist/math}/vec3/index.d.ts +0 -0
- /package/{math → dist/math}/vec3/index.js +0 -0
- /package/{math → dist/math}/vec3/index.js.map +0 -0
- /package/{math → dist/math}/vec3/layout.d.ts +0 -0
- /package/{math → dist/math}/vec3/layout.js +0 -0
- /package/{math → dist/math}/vec3/layout.js.map +0 -0
- /package/{math → dist/math}/vec3/public.d.ts +0 -0
- /package/{math → dist/math}/vec3/public.js +0 -0
- /package/{math → dist/math}/vec3/public.js.map +0 -0
- /package/{math → dist/math}/vec3/schema.d.ts +0 -0
- /package/{math → dist/math}/vec3/schema.js +0 -0
- /package/{math → dist/math}/vec3/schema.js.map +0 -0
- /package/{math → dist/math}/vec4/functions.d.ts +0 -0
- /package/{math → dist/math}/vec4/functions.js +0 -0
- /package/{math → dist/math}/vec4/functions.js.map +0 -0
- /package/{math → dist/math}/vec4/index.d.ts +0 -0
- /package/{math → dist/math}/vec4/index.js +0 -0
- /package/{math → dist/math}/vec4/index.js.map +0 -0
- /package/{math → dist/math}/vec4/layout.d.ts +0 -0
- /package/{math → dist/math}/vec4/layout.js +0 -0
- /package/{math → dist/math}/vec4/layout.js.map +0 -0
- /package/{math → dist/math}/vec4/public.d.ts +0 -0
- /package/{math → dist/math}/vec4/public.js +0 -0
- /package/{math → dist/math}/vec4/public.js.map +0 -0
- /package/{math → dist/math}/vec4/schema.d.ts +0 -0
- /package/{math → dist/math}/vec4/schema.js +0 -0
- /package/{math → dist/math}/vec4/schema.js.map +0 -0
- /package/{mutable-clone.d.ts → dist/mutable-clone.d.ts} +0 -0
- /package/{mutable-clone.js → dist/mutable-clone.js} +0 -0
- /package/{mutable-clone.js.map → dist/mutable-clone.js.map} +0 -0
- /package/{mutable.d.ts → dist/mutable.d.ts} +0 -0
- /package/{mutable.js → dist/mutable.js} +0 -0
- /package/{mutable.js.map → dist/mutable.js.map} +0 -0
- /package/{normalize.d.ts → dist/normalize.d.ts} +0 -0
- /package/{normalize.js → dist/normalize.js} +0 -0
- /package/{normalize.js.map → dist/normalize.js.map} +0 -0
- /package/{observe → dist/observe}/create-event.d.ts +0 -0
- /package/{observe → dist/observe}/create-event.js +0 -0
- /package/{observe → dist/observe}/create-event.js.map +0 -0
- /package/{observe → dist/observe}/create-persisted-state.d.ts +0 -0
- /package/{observe → dist/observe}/create-persisted-state.js +0 -0
- /package/{observe → dist/observe}/create-persisted-state.js.map +0 -0
- /package/{observe/with-batch.test.d.ts → dist/observe/create-persisted-state.test.d.ts} +0 -0
- /package/{observe → dist/observe}/create-persisted-state.test.js +0 -0
- /package/{observe → dist/observe}/create-persisted-state.test.js.map +0 -0
- /package/{observe → dist/observe}/create-query-state.d.ts +0 -0
- /package/{observe → dist/observe}/create-query-state.js +0 -0
- /package/{observe → dist/observe}/create-query-state.js.map +0 -0
- /package/{observe → dist/observe}/create-state.d.ts +0 -0
- /package/{observe → dist/observe}/create-state.js +0 -0
- /package/{observe → dist/observe}/create-state.js.map +0 -0
- /package/{observe → dist/observe}/from-array.d.ts +0 -0
- /package/{observe → dist/observe}/from-array.js +0 -0
- /package/{observe → dist/observe}/from-array.js.map +0 -0
- /package/{observe → dist/observe}/from-constant.d.ts +0 -0
- /package/{observe → dist/observe}/from-constant.js +0 -0
- /package/{observe → dist/observe}/from-constant.js.map +0 -0
- /package/{observe → dist/observe}/from-element-id.d.ts +0 -0
- /package/{observe → dist/observe}/from-element-id.js +0 -0
- /package/{observe → dist/observe}/from-element-id.js.map +0 -0
- /package/{observe → dist/observe}/from-element-properties-and-events.d.ts +0 -0
- /package/{observe → dist/observe}/from-element-properties-and-events.js +0 -0
- /package/{observe → dist/observe}/from-element-properties-and-events.js.map +0 -0
- /package/{observe → dist/observe}/from-element-property.d.ts +0 -0
- /package/{observe → dist/observe}/from-element-property.js +0 -0
- /package/{observe → dist/observe}/from-element-property.js.map +0 -0
- /package/{observe → dist/observe}/from-promise-with-error.d.ts +0 -0
- /package/{observe → dist/observe}/from-promise-with-error.js +0 -0
- /package/{observe → dist/observe}/from-promise-with-error.js.map +0 -0
- /package/{observe → dist/observe}/from-promise.d.ts +0 -0
- /package/{observe → dist/observe}/from-promise.js +0 -0
- /package/{observe → dist/observe}/from-promise.js.map +0 -0
- /package/{observe → dist/observe}/from-properties.d.ts +0 -0
- /package/{observe → dist/observe}/from-properties.js +0 -0
- /package/{observe → dist/observe}/from-properties.js.map +0 -0
- /package/{observe → dist/observe}/index.d.ts +0 -0
- /package/{observe → dist/observe}/index.js +0 -0
- /package/{observe → dist/observe}/index.js.map +0 -0
- /package/{observe → dist/observe}/observe.test.d.ts +0 -0
- /package/{observe → dist/observe}/observe.test.js +0 -0
- /package/{observe → dist/observe}/observe.test.js.map +0 -0
- /package/{observe → dist/observe}/public.d.ts +0 -0
- /package/{observe → dist/observe}/public.js +0 -0
- /package/{observe → dist/observe}/public.js.map +0 -0
- /package/{observe → dist/observe}/to-async-generator.d.ts +0 -0
- /package/{observe → dist/observe}/to-async-generator.js +0 -0
- /package/{observe → dist/observe}/to-async-generator.js.map +0 -0
- /package/{observe/with-filter.test.d.ts → dist/observe/to-async-generator.test.d.ts} +0 -0
- /package/{observe → dist/observe}/to-async-generator.test.js +0 -0
- /package/{observe → dist/observe}/to-async-generator.test.js.map +0 -0
- /package/{observe → dist/observe}/to-promise.d.ts +0 -0
- /package/{observe → dist/observe}/to-promise.js +0 -0
- /package/{observe → dist/observe}/to-promise.js.map +0 -0
- /package/{observe → dist/observe}/to-properties.d.ts +0 -0
- /package/{observe → dist/observe}/to-properties.js +0 -0
- /package/{observe → dist/observe}/to-properties.js.map +0 -0
- /package/{observe → dist/observe}/with-async-map.d.ts +0 -0
- /package/{observe → dist/observe}/with-async-map.js +0 -0
- /package/{observe → dist/observe}/with-async-map.js.map +0 -0
- /package/{observe → dist/observe}/with-batch.d.ts +0 -0
- /package/{observe → dist/observe}/with-batch.js +0 -0
- /package/{observe → dist/observe}/with-batch.js.map +0 -0
- /package/{observe/with-lazy.test.d.ts → dist/observe/with-batch.test.d.ts} +0 -0
- /package/{observe → dist/observe}/with-batch.test.js +0 -0
- /package/{observe → dist/observe}/with-batch.test.js.map +0 -0
- /package/{observe → dist/observe}/with-cache.d.ts +0 -0
- /package/{observe → dist/observe}/with-cache.js +0 -0
- /package/{observe → dist/observe}/with-cache.js.map +0 -0
- /package/{observe → dist/observe}/with-copy.d.ts +0 -0
- /package/{observe → dist/observe}/with-copy.js +0 -0
- /package/{observe → dist/observe}/with-copy.js.map +0 -0
- /package/{observe → dist/observe}/with-deduplicate-data.d.ts +0 -0
- /package/{observe → dist/observe}/with-deduplicate-data.js +0 -0
- /package/{observe → dist/observe}/with-deduplicate-data.js.map +0 -0
- /package/{observe → dist/observe}/with-deduplicate.d.ts +0 -0
- /package/{observe → dist/observe}/with-deduplicate.js +0 -0
- /package/{observe → dist/observe}/with-deduplicate.js.map +0 -0
- /package/{observe → dist/observe}/with-default.d.ts +0 -0
- /package/{observe → dist/observe}/with-default.js +0 -0
- /package/{observe → dist/observe}/with-default.js.map +0 -0
- /package/{observe → dist/observe}/with-filter.d.ts +0 -0
- /package/{observe → dist/observe}/with-filter.js +0 -0
- /package/{observe → dist/observe}/with-filter.js.map +0 -0
- /package/{old-ecs/action-ecs/action-ecs.test.d.ts → dist/observe/with-filter.test.d.ts} +0 -0
- /package/{observe → dist/observe}/with-filter.test.js +0 -0
- /package/{observe → dist/observe}/with-filter.test.js.map +0 -0
- /package/{observe → dist/observe}/with-lazy.d.ts +0 -0
- /package/{observe → dist/observe}/with-lazy.js +0 -0
- /package/{observe → dist/observe}/with-lazy.js.map +0 -0
- /package/{old-ecs/core-ecs/core-ecs-serialization.test.d.ts → dist/observe/with-lazy.test.d.ts} +0 -0
- /package/{observe → dist/observe}/with-lazy.test.js +0 -0
- /package/{observe → dist/observe}/with-lazy.test.js.map +0 -0
- /package/{observe → dist/observe}/with-map-data.d.ts +0 -0
- /package/{observe → dist/observe}/with-map-data.js +0 -0
- /package/{observe → dist/observe}/with-map-data.js.map +0 -0
- /package/{observe → dist/observe}/with-map.d.ts +0 -0
- /package/{observe → dist/observe}/with-map.js +0 -0
- /package/{observe → dist/observe}/with-map.js.map +0 -0
- /package/{observe → dist/observe}/with-optional.d.ts +0 -0
- /package/{observe → dist/observe}/with-optional.js +0 -0
- /package/{observe → dist/observe}/with-optional.js.map +0 -0
- /package/{observe → dist/observe}/with-unwrap.d.ts +0 -0
- /package/{observe → dist/observe}/with-unwrap.js +0 -0
- /package/{observe → dist/observe}/with-unwrap.js.map +0 -0
- /package/{old-ecs → dist/old-ecs}/action-ecs/action-ecs.d.ts +0 -0
- /package/{old-ecs → dist/old-ecs}/action-ecs/action-ecs.js +0 -0
- /package/{old-ecs → dist/old-ecs}/action-ecs/action-ecs.js.map +0 -0
- /package/{old-ecs/core-ecs/core-ecs.test.d.ts → dist/old-ecs/action-ecs/action-ecs.test.d.ts} +0 -0
- /package/{old-ecs → dist/old-ecs}/action-ecs/action-ecs.test.js +0 -0
- /package/{old-ecs → dist/old-ecs}/action-ecs/action-ecs.test.js.map +0 -0
- /package/{old-ecs → dist/old-ecs}/action-ecs/action-types.d.ts +0 -0
- /package/{old-ecs → dist/old-ecs}/action-ecs/action-types.js +0 -0
- /package/{old-ecs → dist/old-ecs}/action-ecs/action-types.js.map +0 -0
- /package/{old-ecs → dist/old-ecs}/action-ecs/index.d.ts +0 -0
- /package/{old-ecs → dist/old-ecs}/action-ecs/index.js +0 -0
- /package/{old-ecs → dist/old-ecs}/action-ecs/index.js.map +0 -0
- /package/{old-ecs → dist/old-ecs}/action-ecs/sequential-action.d.ts +0 -0
- /package/{old-ecs → dist/old-ecs}/action-ecs/sequential-action.js +0 -0
- /package/{old-ecs → dist/old-ecs}/action-ecs/sequential-action.js.map +0 -0
- /package/{old-ecs/ecs/ecs.test.d.ts → dist/old-ecs/core-ecs/core-ecs-serialization.test.d.ts} +0 -0
- /package/{old-ecs → dist/old-ecs}/core-ecs/core-ecs-serialization.test.js +0 -0
- /package/{old-ecs → dist/old-ecs}/core-ecs/core-ecs-serialization.test.js.map +0 -0
- /package/{old-ecs → dist/old-ecs}/core-ecs/core-ecs-types.d.ts +0 -0
- /package/{old-ecs → dist/old-ecs}/core-ecs/core-ecs-types.js +0 -0
- /package/{old-ecs → dist/old-ecs}/core-ecs/core-ecs-types.js.map +0 -0
- /package/{old-ecs → dist/old-ecs}/core-ecs/core-ecs.d.ts +0 -0
- /package/{old-ecs → dist/old-ecs}/core-ecs/core-ecs.js +0 -0
- /package/{old-ecs → dist/old-ecs}/core-ecs/core-ecs.js.map +0 -0
- /package/{old-ecs/transaction-ecs/transaction-ecs.test.d.ts → dist/old-ecs/core-ecs/core-ecs.test.d.ts} +0 -0
- /package/{old-ecs → dist/old-ecs}/core-ecs/core-ecs.test.js +0 -0
- /package/{old-ecs → dist/old-ecs}/core-ecs/core-ecs.test.js.map +0 -0
- /package/{old-ecs → dist/old-ecs}/core-ecs/index.d.ts +0 -0
- /package/{old-ecs → dist/old-ecs}/core-ecs/index.js +0 -0
- /package/{old-ecs → dist/old-ecs}/core-ecs/index.js.map +0 -0
- /package/{old-ecs → dist/old-ecs}/ecs/ecs-types.d.ts +0 -0
- /package/{old-ecs → dist/old-ecs}/ecs/ecs-types.js +0 -0
- /package/{old-ecs → dist/old-ecs}/ecs/ecs-types.js.map +0 -0
- /package/{old-ecs → dist/old-ecs}/ecs/ecs-where-functions.d.ts +0 -0
- /package/{old-ecs → dist/old-ecs}/ecs/ecs-where-functions.js +0 -0
- /package/{old-ecs → dist/old-ecs}/ecs/ecs-where-functions.js.map +0 -0
- /package/{old-ecs → dist/old-ecs}/ecs/ecs.d.ts +0 -0
- /package/{old-ecs → dist/old-ecs}/ecs/ecs.js +0 -0
- /package/{old-ecs → dist/old-ecs}/ecs/ecs.js.map +0 -0
- /package/{schema.test.d.ts → dist/old-ecs/ecs/ecs.test.d.ts} +0 -0
- /package/{old-ecs → dist/old-ecs}/ecs/ecs.test.js +0 -0
- /package/{old-ecs → dist/old-ecs}/ecs/ecs.test.js.map +0 -0
- /package/{old-ecs → dist/old-ecs}/ecs/index.d.ts +0 -0
- /package/{old-ecs → dist/old-ecs}/ecs/index.js +0 -0
- /package/{old-ecs → dist/old-ecs}/ecs/index.js.map +0 -0
- /package/{old-ecs → dist/old-ecs}/entity.d.ts +0 -0
- /package/{old-ecs → dist/old-ecs}/entity.js +0 -0
- /package/{old-ecs → dist/old-ecs}/entity.js.map +0 -0
- /package/{old-ecs → dist/old-ecs}/index.d.ts +0 -0
- /package/{old-ecs → dist/old-ecs}/index.js +0 -0
- /package/{old-ecs → dist/old-ecs}/index.js.map +0 -0
- /package/{old-ecs → dist/old-ecs}/transaction-ecs/index.d.ts +0 -0
- /package/{old-ecs → dist/old-ecs}/transaction-ecs/index.js +0 -0
- /package/{old-ecs → dist/old-ecs}/transaction-ecs/index.js.map +0 -0
- /package/{old-ecs → dist/old-ecs}/transaction-ecs/transaction-ecs.d.ts +0 -0
- /package/{old-ecs → dist/old-ecs}/transaction-ecs/transaction-ecs.js +0 -0
- /package/{old-ecs → dist/old-ecs}/transaction-ecs/transaction-ecs.js.map +0 -0
- /package/{schema/dynamic/deep-merge.test.d.ts → dist/old-ecs/transaction-ecs/transaction-ecs.test.d.ts} +0 -0
- /package/{old-ecs → dist/old-ecs}/transaction-ecs/transaction-ecs.test.js +0 -0
- /package/{old-ecs → dist/old-ecs}/transaction-ecs/transaction-ecs.test.js.map +0 -0
- /package/{old-ecs → dist/old-ecs}/transaction-ecs/transaction-types.d.ts +0 -0
- /package/{old-ecs → dist/old-ecs}/transaction-ecs/transaction-types.js +0 -0
- /package/{old-ecs → dist/old-ecs}/transaction-ecs/transaction-types.js.map +0 -0
- /package/{old-ecs → dist/old-ecs}/transaction-ecs/transactions.d.ts +0 -0
- /package/{old-ecs → dist/old-ecs}/transaction-ecs/transactions.js +0 -0
- /package/{old-ecs → dist/old-ecs}/transaction-ecs/transactions.js.map +0 -0
- /package/{perftest → dist/perftest}/ecs-perf.d.ts +0 -0
- /package/{perftest → dist/perftest}/ecs-perf.js +0 -0
- /package/{perftest → dist/perftest}/ecs-perf.js.map +0 -0
- /package/{perftest → dist/perftest}/helper-functions.d.ts +0 -0
- /package/{perftest → dist/perftest}/helper-functions.js +0 -0
- /package/{perftest → dist/perftest}/helper-functions.js.map +0 -0
- /package/{perftest → dist/perftest}/horizon-perf.d.ts +0 -0
- /package/{perftest → dist/perftest}/horizon-perf.js +0 -0
- /package/{perftest → dist/perftest}/horizon-perf.js.map +0 -0
- /package/{perftest → dist/perftest}/index.d.ts +0 -0
- /package/{perftest → dist/perftest}/index.js +0 -0
- /package/{perftest → dist/perftest}/index.js.map +0 -0
- /package/{perftest → dist/perftest}/perf-test.d.ts +0 -0
- /package/{perftest → dist/perftest}/perf-test.js +0 -0
- /package/{perftest → dist/perftest}/perf-test.js.map +0 -0
- /package/{perftest → dist/perftest}/vanilla-perf.d.ts +0 -0
- /package/{perftest → dist/perftest}/vanilla-perf.js +0 -0
- /package/{perftest → dist/perftest}/vanilla-perf.js.map +0 -0
- /package/{schema → dist/schema}/boolean/index.d.ts +0 -0
- /package/{schema → dist/schema}/boolean/index.js +0 -0
- /package/{schema → dist/schema}/boolean/index.js.map +0 -0
- /package/{schema → dist/schema}/boolean/public.d.ts +0 -0
- /package/{schema → dist/schema}/boolean/public.js +0 -0
- /package/{schema → dist/schema}/boolean/public.js.map +0 -0
- /package/{schema → dist/schema}/boolean/schema.d.ts +0 -0
- /package/{schema → dist/schema}/boolean/schema.js +0 -0
- /package/{schema → dist/schema}/boolean/schema.js.map +0 -0
- /package/{schema → dist/schema}/dynamic/deep-merge.d.ts +0 -0
- /package/{schema → dist/schema}/dynamic/deep-merge.js +0 -0
- /package/{schema → dist/schema}/dynamic/deep-merge.js.map +0 -0
- /package/{schema/to-vertex-buffer-layout.test.d.ts → dist/schema/dynamic/deep-merge.test.d.ts} +0 -0
- /package/{schema → dist/schema}/dynamic/deep-merge.test.js +0 -0
- /package/{schema → dist/schema}/dynamic/deep-merge.test.js.map +0 -0
- /package/{schema → dist/schema}/dynamic/enumerate-patches.d.ts +0 -0
- /package/{schema → dist/schema}/dynamic/enumerate-patches.js +0 -0
- /package/{schema → dist/schema}/dynamic/enumerate-patches.js.map +0 -0
- /package/{schema → dist/schema}/dynamic/enumerate-patches.test.d.ts +0 -0
- /package/{schema → dist/schema}/dynamic/enumerate-patches.test.js +0 -0
- /package/{schema → dist/schema}/dynamic/enumerate-patches.test.js.map +0 -0
- /package/{schema → dist/schema}/dynamic/get-dynamic-schema.d.ts +0 -0
- /package/{schema → dist/schema}/dynamic/get-dynamic-schema.js +0 -0
- /package/{schema → dist/schema}/dynamic/get-dynamic-schema.js.map +0 -0
- /package/{schema/validation/is-valid.test.d.ts → dist/schema/dynamic/get-dynamic-schema.test.d.ts} +0 -0
- /package/{schema → dist/schema}/dynamic/get-dynamic-schema.test.js +0 -0
- /package/{schema → dist/schema}/dynamic/get-dynamic-schema.test.js.map +0 -0
- /package/{schema → dist/schema}/dynamic/index.d.ts +0 -0
- /package/{schema → dist/schema}/dynamic/index.js +0 -0
- /package/{schema → dist/schema}/dynamic/index.js.map +0 -0
- /package/{schema → dist/schema}/from-schemas.d.ts +0 -0
- /package/{schema → dist/schema}/from-schemas.js +0 -0
- /package/{schema → dist/schema}/from-schemas.js.map +0 -0
- /package/{schema → dist/schema}/index.d.ts +0 -0
- /package/{schema → dist/schema}/index.js +0 -0
- /package/{schema → dist/schema}/index.js.map +0 -0
- /package/{schema → dist/schema}/nullable.d.ts +0 -0
- /package/{schema → dist/schema}/nullable.js +0 -0
- /package/{schema → dist/schema}/nullable.js.map +0 -0
- /package/{schema → dist/schema}/public.d.ts +0 -0
- /package/{schema → dist/schema}/public.js +0 -0
- /package/{schema → dist/schema}/public.js.map +0 -0
- /package/{schema → dist/schema}/schema.d.ts +0 -0
- /package/{schema → dist/schema}/schema.js +0 -0
- /package/{schema → dist/schema}/schema.js.map +0 -0
- /package/{schema → dist/schema}/time/index.d.ts +0 -0
- /package/{schema → dist/schema}/time/index.js +0 -0
- /package/{schema → dist/schema}/time/index.js.map +0 -0
- /package/{schema → dist/schema}/time/public.d.ts +0 -0
- /package/{schema → dist/schema}/time/public.js +0 -0
- /package/{schema → dist/schema}/time/public.js.map +0 -0
- /package/{schema → dist/schema}/time/schema.d.ts +0 -0
- /package/{schema → dist/schema}/time/schema.js +0 -0
- /package/{schema → dist/schema}/time/schema.js.map +0 -0
- /package/{schema → dist/schema}/to-type.d.ts +0 -0
- /package/{schema → dist/schema}/to-type.js +0 -0
- /package/{schema → dist/schema}/to-type.js.map +0 -0
- /package/{schema → dist/schema}/to-vertex-buffer-layout.d.ts +0 -0
- /package/{schema → dist/schema}/to-vertex-buffer-layout.js +0 -0
- /package/{schema → dist/schema}/to-vertex-buffer-layout.js.map +0 -0
- /package/{schema/validation/validate.test.d.ts → dist/schema/to-vertex-buffer-layout.test.d.ts} +0 -0
- /package/{schema → dist/schema}/to-vertex-buffer-layout.test.js +0 -0
- /package/{schema → dist/schema}/to-vertex-buffer-layout.test.js.map +0 -0
- /package/{schema → dist/schema}/true/index.d.ts +0 -0
- /package/{schema → dist/schema}/true/index.js +0 -0
- /package/{schema → dist/schema}/true/index.js.map +0 -0
- /package/{schema → dist/schema}/true/public.d.ts +0 -0
- /package/{schema → dist/schema}/true/public.js +0 -0
- /package/{schema → dist/schema}/true/public.js.map +0 -0
- /package/{schema → dist/schema}/true/schema.d.ts +0 -0
- /package/{schema → dist/schema}/true/schema.js +0 -0
- /package/{schema → dist/schema}/true/schema.js.map +0 -0
- /package/{schema → dist/schema}/tuple.d.ts +0 -0
- /package/{schema → dist/schema}/tuple.js +0 -0
- /package/{schema → dist/schema}/tuple.js.map +0 -0
- /package/{schema → dist/schema}/validation/index.d.ts +0 -0
- /package/{schema → dist/schema}/validation/index.js +0 -0
- /package/{schema → dist/schema}/validation/index.js.map +0 -0
- /package/{schema → dist/schema}/validation/is-valid.d.ts +0 -0
- /package/{schema → dist/schema}/validation/is-valid.js +0 -0
- /package/{schema → dist/schema}/validation/is-valid.js.map +0 -0
- /package/{schema/validation/with-validation.test.d.ts → dist/schema/validation/is-valid.test.d.ts} +0 -0
- /package/{schema → dist/schema}/validation/is-valid.test.js +0 -0
- /package/{schema → dist/schema}/validation/is-valid.test.js.map +0 -0
- /package/{schema → dist/schema}/validation/validate.d.ts +0 -0
- /package/{schema → dist/schema}/validation/validate.js +0 -0
- /package/{schema → dist/schema}/validation/validate.js.map +0 -0
- /package/{service/async-data-service/create-lazy.test.d.ts → dist/schema/validation/validate.test.d.ts} +0 -0
- /package/{schema → dist/schema}/validation/validate.test.js +0 -0
- /package/{schema → dist/schema}/validation/validate.test.js.map +0 -0
- /package/{schema → dist/schema}/validation/with-validation.d.ts +0 -0
- /package/{schema → dist/schema}/validation/with-validation.js +0 -0
- /package/{schema → dist/schema}/validation/with-validation.js.map +0 -0
- /package/{table/create-table.test.d.ts → dist/schema/validation/with-validation.test.d.ts} +0 -0
- /package/{schema → dist/schema}/validation/with-validation.test.js +0 -0
- /package/{schema → dist/schema}/validation/with-validation.test.js.map +0 -0
- /package/{schema/dynamic/get-dynamic-schema.test.d.ts → dist/schema.test.d.ts} +0 -0
- /package/{schema.test.js → dist/schema.test.js} +0 -0
- /package/{schema.test.js.map → dist/schema.test.js.map} +0 -0
- /package/{service → dist/service}/add-observable-actions.d.ts +0 -0
- /package/{service → dist/service}/add-observable-actions.js +0 -0
- /package/{service → dist/service}/add-observable-actions.js.map +0 -0
- /package/{service → dist/service}/async-data-service/create-lazy.d.ts +0 -0
- /package/{service → dist/service}/async-data-service/create-lazy.js +0 -0
- /package/{service → dist/service}/async-data-service/create-lazy.js.map +0 -0
- /package/{table/select-rows.test.d.ts → dist/service/async-data-service/create-lazy.test.d.ts} +0 -0
- /package/{service → dist/service}/async-data-service/create-lazy.test.js +0 -0
- /package/{service → dist/service}/async-data-service/create-lazy.test.js.map +0 -0
- /package/{service → dist/service}/async-data-service/example.d.ts +0 -0
- /package/{service → dist/service}/async-data-service/example.js +0 -0
- /package/{service → dist/service}/async-data-service/example.js.map +0 -0
- /package/{service → dist/service}/async-data-service/index.d.ts +0 -0
- /package/{service → dist/service}/async-data-service/index.js +0 -0
- /package/{service → dist/service}/async-data-service/index.js.map +0 -0
- /package/{service → dist/service}/async-data-service/is-valid.d.ts +0 -0
- /package/{service → dist/service}/async-data-service/is-valid.js +0 -0
- /package/{service → dist/service}/async-data-service/is-valid.js.map +0 -0
- /package/{service → dist/service}/async-data-service/public.d.ts +0 -0
- /package/{service → dist/service}/async-data-service/public.js +0 -0
- /package/{service → dist/service}/async-data-service/public.js.map +0 -0
- /package/{service → dist/service}/disposable.d.ts +0 -0
- /package/{service → dist/service}/disposable.js +0 -0
- /package/{service → dist/service}/disposable.js.map +0 -0
- /package/{service → dist/service}/index.d.ts +0 -0
- /package/{service → dist/service}/index.js +0 -0
- /package/{service → dist/service}/index.js.map +0 -0
- /package/{service → dist/service}/is-service.d.ts +0 -0
- /package/{service → dist/service}/is-service.js +0 -0
- /package/{service → dist/service}/is-service.js.map +0 -0
- /package/{service → dist/service}/progressive-result.d.ts +0 -0
- /package/{service → dist/service}/progressive-result.js +0 -0
- /package/{service → dist/service}/progressive-result.js.map +0 -0
- /package/{service → dist/service}/service.d.ts +0 -0
- /package/{service → dist/service}/service.js +0 -0
- /package/{service → dist/service}/service.js.map +0 -0
- /package/{table → dist/table}/add-row.d.ts +0 -0
- /package/{table → dist/table}/add-row.js +0 -0
- /package/{table → dist/table}/add-row.js.map +0 -0
- /package/{table → dist/table}/copy-column-to-gpu-buffer.d.ts +0 -0
- /package/{table → dist/table}/copy-column-to-gpu-buffer.js +0 -0
- /package/{table → dist/table}/copy-column-to-gpu-buffer.js.map +0 -0
- /package/{table → dist/table}/create-table.d.ts +0 -0
- /package/{table → dist/table}/create-table.js +0 -0
- /package/{table → dist/table}/create-table.js.map +0 -0
- /package/{table/table-compact.test.d.ts → dist/table/create-table.test.d.ts} +0 -0
- /package/{table → dist/table}/create-table.test.js +0 -0
- /package/{table → dist/table}/create-table.test.js.map +0 -0
- /package/{table → dist/table}/delete-row.d.ts +0 -0
- /package/{table → dist/table}/delete-row.js +0 -0
- /package/{table → dist/table}/delete-row.js.map +0 -0
- /package/{table → dist/table}/ensure-capacity.d.ts +0 -0
- /package/{table → dist/table}/ensure-capacity.js +0 -0
- /package/{table → dist/table}/ensure-capacity.js.map +0 -0
- /package/{table → dist/table}/get-row-data.d.ts +0 -0
- /package/{table → dist/table}/get-row-data.js +0 -0
- /package/{table → dist/table}/get-row-data.js.map +0 -0
- /package/{table → dist/table}/index.d.ts +0 -0
- /package/{table → dist/table}/index.js +0 -0
- /package/{table → dist/table}/index.js.map +0 -0
- /package/{table → dist/table}/row-index.d.ts +0 -0
- /package/{table → dist/table}/row-index.js +0 -0
- /package/{table → dist/table}/row-index.js.map +0 -0
- /package/{table → dist/table}/select-rows.d.ts +0 -0
- /package/{table → dist/table}/select-rows.js +0 -0
- /package/{table → dist/table}/select-rows.js.map +0 -0
- /package/{typed-buffer/create-array-buffer.test.d.ts → dist/table/select-rows.test.d.ts} +0 -0
- /package/{table → dist/table}/select-rows.test.js +0 -0
- /package/{table → dist/table}/select-rows.test.js.map +0 -0
- /package/{typed-buffer/create-const-buffer.copy.test.d.ts → dist/table/table-compact.test.d.ts} +0 -0
- /package/{table → dist/table}/table-compact.test.js +0 -0
- /package/{table → dist/table}/table-compact.test.js.map +0 -0
- /package/{table → dist/table}/table.d.ts +0 -0
- /package/{table → dist/table}/table.js +0 -0
- /package/{table → dist/table}/table.js.map +0 -0
- /package/{table → dist/table}/update-row.d.ts +0 -0
- /package/{table → dist/table}/update-row.js +0 -0
- /package/{table → dist/table}/update-row.js.map +0 -0
- /package/{typed-buffer → dist/typed-buffer}/copy-to-gpu-buffer.d.ts +0 -0
- /package/{typed-buffer → dist/typed-buffer}/copy-to-gpu-buffer.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/copy-to-gpu-buffer.js.map +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-array-buffer.d.ts +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-array-buffer.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-array-buffer.js.map +0 -0
- /package/{typed-buffer/create-const-buffer.test.d.ts → dist/typed-buffer/create-array-buffer.test.d.ts} +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-array-buffer.test.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-array-buffer.test.js.map +0 -0
- /package/{typed-buffer/create-number-buffer.test.d.ts → dist/typed-buffer/create-const-buffer.copy.test.d.ts} +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-const-buffer.copy.test.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-const-buffer.copy.test.js.map +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-const-buffer.d.ts +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-const-buffer.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-const-buffer.js.map +0 -0
- /package/{typed-buffer/create-struct-buffer.copy.test.d.ts → dist/typed-buffer/create-const-buffer.test.d.ts} +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-const-buffer.test.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-const-buffer.test.js.map +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-number-buffer.d.ts +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-number-buffer.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-number-buffer.js.map +0 -0
- /package/{typed-buffer/create-struct-buffer.test.d.ts → dist/typed-buffer/create-number-buffer.test.d.ts} +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-number-buffer.test.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-number-buffer.test.js.map +0 -0
- /package/{typed-buffer/create-typed-buffer.test.d.ts → dist/typed-buffer/create-struct-buffer.copy.test.d.ts} +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-struct-buffer.copy.test.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-struct-buffer.copy.test.js.map +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-struct-buffer.d.ts +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-struct-buffer.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-struct-buffer.js.map +0 -0
- /package/{typed-buffer/is-typed-buffer.test.d.ts → dist/typed-buffer/create-struct-buffer.test.d.ts} +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-struct-buffer.test.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-struct-buffer.test.js.map +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-typed-buffer.d.ts +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-typed-buffer.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-typed-buffer.js.map +0 -0
- /package/{typed-buffer/structs/create-read-struct.test.d.ts → dist/typed-buffer/create-typed-buffer.test.d.ts} +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-typed-buffer.test.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/create-typed-buffer.test.js.map +0 -0
- /package/{typed-buffer → dist/typed-buffer}/index.d.ts +0 -0
- /package/{typed-buffer → dist/typed-buffer}/index.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/index.js.map +0 -0
- /package/{typed-buffer → dist/typed-buffer}/is-typed-buffer.d.ts +0 -0
- /package/{typed-buffer → dist/typed-buffer}/is-typed-buffer.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/is-typed-buffer.js.map +0 -0
- /package/{typed-buffer/structs/get-struct-layout.test.d.ts → dist/typed-buffer/is-typed-buffer.test.d.ts} +0 -0
- /package/{typed-buffer → dist/typed-buffer}/is-typed-buffer.test.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/is-typed-buffer.test.js.map +0 -0
- /package/{typed-buffer → dist/typed-buffer}/register-typed-buffer-codecs.d.ts +0 -0
- /package/{typed-buffer → dist/typed-buffer}/register-typed-buffer-codecs.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/register-typed-buffer-codecs.js.map +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/assert-struct.d.ts +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/assert-struct.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/assert-struct.js.map +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/create-read-struct.d.ts +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/create-read-struct.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/create-read-struct.js.map +0 -0
- /package/{typed-buffer/structs/write-struct.test.d.ts → dist/typed-buffer/structs/create-read-struct.test.d.ts} +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/create-read-struct.test.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/create-read-struct.test.js.map +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/create-write-struct.d.ts +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/create-write-struct.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/create-write-struct.js.map +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/get-field-offset.d.ts +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/get-field-offset.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/get-field-offset.js.map +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/get-struct-layout.d.ts +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/get-struct-layout.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/get-struct-layout.js.map +0 -0
- /package/{typed-buffer/typed-buffer-equals.test.d.ts → dist/typed-buffer/structs/get-struct-layout.test.d.ts} +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/get-struct-layout.test.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/get-struct-layout.test.js.map +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/index.d.ts +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/index.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/index.js.map +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/read-struct.d.ts +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/read-struct.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/read-struct.js.map +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/struct-layout.d.ts +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/struct-layout.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/struct-layout.js.map +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/write-struct.d.ts +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/write-struct.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/write-struct.js.map +0 -0
- /package/{typed-buffer/typed-buffer.test.d.ts → dist/typed-buffer/structs/write-struct.test.d.ts} +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/write-struct.test.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/structs/write-struct.test.js.map +0 -0
- /package/{typed-buffer → dist/typed-buffer}/typed-buffer-equals.d.ts +0 -0
- /package/{typed-buffer → dist/typed-buffer}/typed-buffer-equals.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/typed-buffer-equals.js.map +0 -0
- /package/{typed-buffer → dist/typed-buffer}/typed-buffer-equals.test.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/typed-buffer-equals.test.js.map +0 -0
- /package/{typed-buffer → dist/typed-buffer}/typed-buffer.d.ts +0 -0
- /package/{typed-buffer → dist/typed-buffer}/typed-buffer.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/typed-buffer.js.map +0 -0
- /package/{typed-buffer → dist/typed-buffer}/typed-buffer.test.js +0 -0
- /package/{typed-buffer → dist/typed-buffer}/typed-buffer.test.js.map +0 -0
- /package/{types → dist/types}/assert.d.ts +0 -0
- /package/{types → dist/types}/assert.js +0 -0
- /package/{types → dist/types}/assert.js.map +0 -0
- /package/{types → dist/types}/equal.d.ts +0 -0
- /package/{types → dist/types}/equal.js +0 -0
- /package/{types → dist/types}/equal.js.map +0 -0
- /package/{types → dist/types}/index.d.ts +0 -0
- /package/{types → dist/types}/index.js +0 -0
- /package/{types → dist/types}/index.js.map +0 -0
- /package/{types → dist/types}/replace.d.ts +0 -0
- /package/{types → dist/types}/replace.js +0 -0
- /package/{types → dist/types}/replace.js.map +0 -0
- /package/{types → dist/types}/typed-array-constructer.d.ts +0 -0
- /package/{types → dist/types}/typed-array-constructer.js +0 -0
- /package/{types → dist/types}/typed-array-constructer.js.map +0 -0
- /package/{types → dist/types}/typed-array.d.ts +0 -0
- /package/{types → dist/types}/typed-array.js +0 -0
- /package/{types → dist/types}/typed-array.js.map +0 -0
- /package/{types → dist/types}/types.d.ts +0 -0
- /package/{types → dist/types}/types.js +0 -0
- /package/{types → dist/types}/types.js.map +0 -0
|
@@ -157,4 +157,82 @@ function testSystemsAndActionsInference() {
|
|
|
157
157
|
});
|
|
158
158
|
const db = Database.create(extendedPlugin);
|
|
159
159
|
}
|
|
160
|
+
// ============================================================================
|
|
161
|
+
// EXTENDED DB ASSIGNABLE TO BASE DB (computed type)
|
|
162
|
+
// ============================================================================
|
|
163
|
+
/**
|
|
164
|
+
* Verifies that db from an extended plugin's system create callback can be passed
|
|
165
|
+
* to a function expecting the base database type. This catches the "computed:
|
|
166
|
+
* unknown" bug where system create's db lacked the 8th Database parameter.
|
|
167
|
+
* We use Pick to test only resources and computed (the structural assignment).
|
|
168
|
+
*/
|
|
169
|
+
function testExtendedDbAssignableToBaseDb() {
|
|
170
|
+
const basePlugin = Database.Plugin.create({
|
|
171
|
+
components: { pos: { type: "number" } },
|
|
172
|
+
resources: { scale: { default: 1 } },
|
|
173
|
+
archetypes: { Entity: ["pos"] },
|
|
174
|
+
transactions: {},
|
|
175
|
+
actions: {},
|
|
176
|
+
systems: {},
|
|
177
|
+
});
|
|
178
|
+
const extendedPlugin = Database.Plugin.create({
|
|
179
|
+
extends: basePlugin,
|
|
180
|
+
components: { vel: { type: "number" } },
|
|
181
|
+
resources: {},
|
|
182
|
+
archetypes: { Moving: ["pos", "vel"] },
|
|
183
|
+
transactions: {},
|
|
184
|
+
actions: {},
|
|
185
|
+
systems: {
|
|
186
|
+
update: {
|
|
187
|
+
create: (db) => {
|
|
188
|
+
fnExpectingBaseResourcesAndComputed(db);
|
|
189
|
+
return () => { };
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
});
|
|
194
|
+
function fnExpectingBaseResourcesAndComputed(db) {
|
|
195
|
+
return db.resources.scale;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
// ============================================================================
|
|
199
|
+
// EXTENDED DB ASSIGNABLE TO BASE DB (system.functions)
|
|
200
|
+
// ============================================================================
|
|
201
|
+
/**
|
|
202
|
+
* Verifies that db from an extended plugin's system create callback has
|
|
203
|
+
* system.functions with specific keys (not { [x: string]: ... }). This catches
|
|
204
|
+
* the "S = string" bug where system create's db had an index signature.
|
|
205
|
+
* We test resources + system.functions.input (avoids system.order variance).
|
|
206
|
+
*/
|
|
207
|
+
function testExtendedDbAssignableToBaseDbWithSystems() {
|
|
208
|
+
const basePlugin = Database.Plugin.create({
|
|
209
|
+
components: { pos: { type: "number" } },
|
|
210
|
+
resources: { scale: { default: 1 } },
|
|
211
|
+
archetypes: { Entity: ["pos"] },
|
|
212
|
+
transactions: {},
|
|
213
|
+
actions: {},
|
|
214
|
+
systems: {
|
|
215
|
+
input: { create: (db) => () => { } },
|
|
216
|
+
},
|
|
217
|
+
});
|
|
218
|
+
const extendedPlugin = Database.Plugin.create({
|
|
219
|
+
extends: basePlugin,
|
|
220
|
+
components: { vel: { type: "number" } },
|
|
221
|
+
resources: {},
|
|
222
|
+
archetypes: { Moving: ["pos", "vel"] },
|
|
223
|
+
transactions: {},
|
|
224
|
+
actions: {},
|
|
225
|
+
systems: {
|
|
226
|
+
update: {
|
|
227
|
+
create: (db) => {
|
|
228
|
+
fnExpectingBaseResourcesAndInputSystem(db);
|
|
229
|
+
return () => { };
|
|
230
|
+
},
|
|
231
|
+
},
|
|
232
|
+
},
|
|
233
|
+
});
|
|
234
|
+
function fnExpectingBaseResourcesAndInputSystem(db) {
|
|
235
|
+
return db.resources.scale + (db.system.functions.input ? 1 : 0);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
160
238
|
//# sourceMappingURL=create-database.type-test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-database.type-test.js","sourceRoot":"","sources":["../../../../src/ecs/database/public/create-database.type-test.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAIvD,OAAO,EAAE,QAAQ,EAAkB,MAAM,gBAAgB,CAAC;AAK1D;;;;;;;;;;;;;;;GAeG;AAEH,+EAA+E;AAC/E,mCAAmC;AACnC,+EAA+E;AAE/E,SAAS,yBAAyB;IAC9B,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAClC,UAAU,EAAE;Y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;KACJ,CAAC,CAAC;IAEH,MAAM,EAAE,GAAG,QAAQ,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;AAiD/C,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-database.type-test.js","sourceRoot":"","sources":["../../../../src/ecs/database/public/create-database.type-test.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAIvD,OAAO,EAAE,QAAQ,EAAkB,MAAM,gBAAgB,CAAC;AAK1D;;;;;;;;;;;;;;;GAeG;AAEH,+EAA+E;AAC/E,mCAAmC;AACnC,+EAA+E;AAE/E,SAAS,yBAAyB;IAC9B,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAClC,UAAU,EAAE;YACR,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SAC/B;QACD,SAAS,EAAE;YACP,IAAI,EAAE,EAAE,OAAO,EAAE,CAAW,EAAE;SACjC;QACD,UAAU,EAAE;YACR,QAAQ,EAAE,CAAC,UAAU,CAAC;SACzB;QACD,YAAY,EAAE;YACV,cAAc,EAAE,CAAC,KAA2B,EAAE,IAA0B,EAAE,EAAE;gBACxE,OAAO,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;YAClD,CAAC;SACJ;KACJ,CAAC,CAAC;IAEH,MAAM,EAAE,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAkBvC,CAAC;AAED,+EAA+E;AAC/E,+CAA+C;AAC/C,+EAA+E;AAE/E,SAAS,0BAA0B;IAC/B,MAAM,UAAU,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACtC,UAAU,EAAE;YACR,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SAC/B;QACD,SAAS,EAAE;YACP,IAAI,EAAE,EAAE,OAAO,EAAE,CAAW,EAAE;SACjC;QACD,UAAU,EAAE;YACR,QAAQ,EAAE,CAAC,UAAU,CAAC;SACz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EAAE;gBACJ,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE;oBACX,sCAAsC,CAAC,EAAE,CAAC,CAAC;oBAC3C,OAAO,GAAG,EAAE,GAAE,CAAC,CAAC;gBACpB,CAAC;aACJ;SACJ;KACJ,CAAC,CAAC;IAMH,SAAS,sCAAsC,CAAC,EAA+B;QAC3E,OAAO,EAAE,CAAC,SAAS,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACpE,CAAC;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ecs/database/public/index.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,cAAc,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ecs/database/public/index.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,cAAc,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Observe } from "../../../observe/index.js";
|
|
2
|
+
import { StringKeyof } from "../../../types/types.js";
|
|
3
|
+
import { RequiredComponents } from "../../required-components.js";
|
|
4
|
+
import { Components } from "../../store/components.js";
|
|
5
|
+
import { EntitySelectOptions } from "../../store/entity-select-options.js";
|
|
6
|
+
import { Database } from "../database.js";
|
|
7
|
+
type EntityData<C, Include extends StringKeyof<C>> = RequiredComponents & {
|
|
8
|
+
readonly [K in Include]: C[K];
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Deeply observe entity data for an archetype query.
|
|
12
|
+
*
|
|
13
|
+
* Unlike `db.observe.select` (which returns entity IDs and only triggers on
|
|
14
|
+
* set membership changes), `observeSelectDeep` returns full typed entity data
|
|
15
|
+
* and re-emits whenever ANY included component value changes on any matched entity.
|
|
16
|
+
*
|
|
17
|
+
* Composes `observe.select` for set membership with per-entity observers for
|
|
18
|
+
* value changes. Per-entity deduplication avoids re-emissions when unrelated
|
|
19
|
+
* components change on a tracked entity.
|
|
20
|
+
*
|
|
21
|
+
* Equivalent parameters return the same cached `Observe` factory, and
|
|
22
|
+
* `Observe.withCache` shares a single underlying subscription across all
|
|
23
|
+
* simultaneous subscribers.
|
|
24
|
+
*/
|
|
25
|
+
export declare const observeSelectDeep: <C extends Components, Include extends StringKeyof<C>>(db: Database<C, any, any, any, any, any, any, any>, include: readonly Include[] | ReadonlySet<Include | "id">, options?: EntitySelectOptions<C, Pick<C & RequiredComponents, Include>>) => Observe<readonly EntityData<C, Include>[]>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import { Observe } from "../../../observe/index.js";
|
|
3
|
+
import { equals } from "../../../equals.js";
|
|
4
|
+
const dbCache = new WeakMap();
|
|
5
|
+
const createObserveSelectDeep = (db, include, options) => {
|
|
6
|
+
const includeKeys = [...include];
|
|
7
|
+
return (notify) => {
|
|
8
|
+
const entityDataMap = new Map();
|
|
9
|
+
const entityUnobserves = new Map();
|
|
10
|
+
let currentEntities = [];
|
|
11
|
+
let isInitialized = false;
|
|
12
|
+
let isMicrotaskQueued = false;
|
|
13
|
+
const buildResult = () => currentEntities
|
|
14
|
+
.filter(e => entityDataMap.has(e))
|
|
15
|
+
.map(e => entityDataMap.get(e));
|
|
16
|
+
const emit = () => {
|
|
17
|
+
isMicrotaskQueued = false;
|
|
18
|
+
notify(buildResult());
|
|
19
|
+
};
|
|
20
|
+
const scheduleEmit = () => {
|
|
21
|
+
if (!isInitialized)
|
|
22
|
+
return;
|
|
23
|
+
if (!isMicrotaskQueued) {
|
|
24
|
+
isMicrotaskQueued = true;
|
|
25
|
+
queueMicrotask(emit);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const pickComponents = (entity, values) => {
|
|
29
|
+
const data = { id: entity };
|
|
30
|
+
for (const key of includeKeys) {
|
|
31
|
+
data[key] = values[key];
|
|
32
|
+
}
|
|
33
|
+
return data;
|
|
34
|
+
};
|
|
35
|
+
const observeEntity = (entity) => {
|
|
36
|
+
const unobserve = db.observe.entity(entity)((values) => {
|
|
37
|
+
if (!values)
|
|
38
|
+
return;
|
|
39
|
+
const newData = pickComponents(entity, values);
|
|
40
|
+
const oldData = entityDataMap.get(entity);
|
|
41
|
+
if (!oldData || !equals(oldData, newData)) {
|
|
42
|
+
entityDataMap.set(entity, newData);
|
|
43
|
+
scheduleEmit();
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
entityUnobserves.set(entity, unobserve);
|
|
47
|
+
};
|
|
48
|
+
const unobserveEntity = (entity) => {
|
|
49
|
+
entityUnobserves.get(entity)?.();
|
|
50
|
+
entityUnobserves.delete(entity);
|
|
51
|
+
entityDataMap.delete(entity);
|
|
52
|
+
};
|
|
53
|
+
// observe.select fires synchronously on subscribe, populating
|
|
54
|
+
// currentEntities and entityDataMap via per-entity observers.
|
|
55
|
+
const unobserveSelect = db.observe.select(include, options)((entities) => {
|
|
56
|
+
const newSet = new Set(entities);
|
|
57
|
+
const oldSet = new Set(currentEntities);
|
|
58
|
+
for (const entity of oldSet) {
|
|
59
|
+
if (!newSet.has(entity))
|
|
60
|
+
unobserveEntity(entity);
|
|
61
|
+
}
|
|
62
|
+
for (const entity of entities) {
|
|
63
|
+
if (!entityUnobserves.has(entity))
|
|
64
|
+
observeEntity(entity);
|
|
65
|
+
}
|
|
66
|
+
currentEntities = entities;
|
|
67
|
+
scheduleEmit();
|
|
68
|
+
});
|
|
69
|
+
// Synchronous initial emission (entity data already populated above)
|
|
70
|
+
isInitialized = true;
|
|
71
|
+
notify(buildResult());
|
|
72
|
+
return () => {
|
|
73
|
+
unobserveSelect();
|
|
74
|
+
for (const unobserve of entityUnobserves.values())
|
|
75
|
+
unobserve();
|
|
76
|
+
entityUnobserves.clear();
|
|
77
|
+
entityDataMap.clear();
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Deeply observe entity data for an archetype query.
|
|
83
|
+
*
|
|
84
|
+
* Unlike `db.observe.select` (which returns entity IDs and only triggers on
|
|
85
|
+
* set membership changes), `observeSelectDeep` returns full typed entity data
|
|
86
|
+
* and re-emits whenever ANY included component value changes on any matched entity.
|
|
87
|
+
*
|
|
88
|
+
* Composes `observe.select` for set membership with per-entity observers for
|
|
89
|
+
* value changes. Per-entity deduplication avoids re-emissions when unrelated
|
|
90
|
+
* components change on a tracked entity.
|
|
91
|
+
*
|
|
92
|
+
* Equivalent parameters return the same cached `Observe` factory, and
|
|
93
|
+
* `Observe.withCache` shares a single underlying subscription across all
|
|
94
|
+
* simultaneous subscribers.
|
|
95
|
+
*/
|
|
96
|
+
export const observeSelectDeep = (db, include, options) => {
|
|
97
|
+
let cache = dbCache.get(db);
|
|
98
|
+
if (!cache) {
|
|
99
|
+
cache = new Map();
|
|
100
|
+
dbCache.set(db, cache);
|
|
101
|
+
}
|
|
102
|
+
const key = JSON.stringify({ include: [...include].sort(), options });
|
|
103
|
+
let observe = cache.get(key);
|
|
104
|
+
if (!observe) {
|
|
105
|
+
observe = Observe.withCache(createObserveSelectDeep(db, include, options));
|
|
106
|
+
cache.set(key, observe);
|
|
107
|
+
}
|
|
108
|
+
return observe;
|
|
109
|
+
};
|
|
110
|
+
//# sourceMappingURL=observe-select-deep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"observe-select-deep.js","sourceRoot":"","sources":["../../../../src/ecs/database/public/observe-select-deep.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO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AAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC7B,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,uBAAuB,CAAC,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;QAC3E,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IAC1B,CAAC;IACD,OAAO,OAAqD,CAAC;AAC/D,CAAC,CAAC"}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import { describe, test, vi } from "vitest";
|
|
3
|
+
import { assert } from "riteway/vitest";
|
|
4
|
+
import { Database } from "../database.js";
|
|
5
|
+
import { observeSelectDeep } from "./observe-select-deep.js";
|
|
6
|
+
/** Drain all pending microtasks before continuing. */
|
|
7
|
+
const flush = () => new Promise(r => setTimeout(r, 0));
|
|
8
|
+
const createTestDb = () => Database.create(Database.Plugin.create({
|
|
9
|
+
components: {
|
|
10
|
+
position: { type: "number" },
|
|
11
|
+
velocity: { type: "number" },
|
|
12
|
+
name: { type: "string" },
|
|
13
|
+
},
|
|
14
|
+
archetypes: {
|
|
15
|
+
Moving: ["position", "velocity"],
|
|
16
|
+
Named: ["name"],
|
|
17
|
+
Full: ["position", "velocity", "name"],
|
|
18
|
+
},
|
|
19
|
+
transactions: {
|
|
20
|
+
createMoving(store, args) {
|
|
21
|
+
return store.archetypes.Moving.insert(args);
|
|
22
|
+
},
|
|
23
|
+
createNamed(store, args) {
|
|
24
|
+
return store.archetypes.Named.insert(args);
|
|
25
|
+
},
|
|
26
|
+
createFull(store, args) {
|
|
27
|
+
return store.archetypes.Full.insert(args);
|
|
28
|
+
},
|
|
29
|
+
updateEntity(store, args) {
|
|
30
|
+
store.update(args.entity, args.values);
|
|
31
|
+
},
|
|
32
|
+
deleteEntity(store, args) {
|
|
33
|
+
store.delete(args.entity);
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
}));
|
|
37
|
+
describe("observeSelectDeep", () => {
|
|
38
|
+
test("initial emission", async () => {
|
|
39
|
+
const db = createTestDb();
|
|
40
|
+
const e1 = db.transactions.createMoving({ position: 10, velocity: 5 });
|
|
41
|
+
const e2 = db.transactions.createMoving({ position: 20, velocity: 15 });
|
|
42
|
+
const observer = vi.fn();
|
|
43
|
+
const unobserve = observeSelectDeep(db, ["position", "velocity"])(observer);
|
|
44
|
+
await assert({
|
|
45
|
+
given: "entities matching the query",
|
|
46
|
+
should: "emit entity data with included component values",
|
|
47
|
+
actual: observer.mock.calls[0][0],
|
|
48
|
+
expected: [
|
|
49
|
+
{ id: e1, position: 10, velocity: 5 },
|
|
50
|
+
{ id: e2, position: 20, velocity: 15 },
|
|
51
|
+
],
|
|
52
|
+
});
|
|
53
|
+
await assert({
|
|
54
|
+
given: "initial subscription",
|
|
55
|
+
should: "emit exactly once",
|
|
56
|
+
actual: observer.mock.calls.length,
|
|
57
|
+
expected: 1,
|
|
58
|
+
});
|
|
59
|
+
unobserve();
|
|
60
|
+
});
|
|
61
|
+
test("re-emit on included component value change", async () => {
|
|
62
|
+
const db = createTestDb();
|
|
63
|
+
const e1 = db.transactions.createMoving({ position: 10, velocity: 5 });
|
|
64
|
+
const observer = vi.fn();
|
|
65
|
+
const unobserve = observeSelectDeep(db, ["position", "velocity"])(observer);
|
|
66
|
+
// Mutate an included component
|
|
67
|
+
db.transactions.updateEntity({ entity: e1, values: { position: 999 } });
|
|
68
|
+
await flush();
|
|
69
|
+
await assert({
|
|
70
|
+
given: "an included component value change",
|
|
71
|
+
should: "re-emit with updated data",
|
|
72
|
+
actual: observer.mock.calls[1][0],
|
|
73
|
+
expected: [{ id: e1, position: 999, velocity: 5 }],
|
|
74
|
+
});
|
|
75
|
+
await assert({
|
|
76
|
+
given: "one mutation after subscription",
|
|
77
|
+
should: "have emitted exactly twice",
|
|
78
|
+
actual: observer.mock.calls.length,
|
|
79
|
+
expected: 2,
|
|
80
|
+
});
|
|
81
|
+
unobserve();
|
|
82
|
+
});
|
|
83
|
+
test("re-emit on entity addition", async () => {
|
|
84
|
+
const db = createTestDb();
|
|
85
|
+
const e1 = db.transactions.createMoving({ position: 10, velocity: 5 });
|
|
86
|
+
const observer = vi.fn();
|
|
87
|
+
const unobserve = observeSelectDeep(db, ["position", "velocity"])(observer);
|
|
88
|
+
const e2 = db.transactions.createMoving({ position: 20, velocity: 15 });
|
|
89
|
+
await flush();
|
|
90
|
+
await assert({
|
|
91
|
+
given: "a new entity matching the query",
|
|
92
|
+
should: "re-emit including the new entity data",
|
|
93
|
+
actual: observer.mock.calls[1][0],
|
|
94
|
+
expected: [
|
|
95
|
+
{ id: e1, position: 10, velocity: 5 },
|
|
96
|
+
{ id: e2, position: 20, velocity: 15 },
|
|
97
|
+
],
|
|
98
|
+
});
|
|
99
|
+
unobserve();
|
|
100
|
+
});
|
|
101
|
+
test("re-emit on entity deletion", async () => {
|
|
102
|
+
const db = createTestDb();
|
|
103
|
+
const e1 = db.transactions.createMoving({ position: 10, velocity: 5 });
|
|
104
|
+
const e2 = db.transactions.createMoving({ position: 20, velocity: 15 });
|
|
105
|
+
const observer = vi.fn();
|
|
106
|
+
const unobserve = observeSelectDeep(db, ["position", "velocity"])(observer);
|
|
107
|
+
db.transactions.deleteEntity({ entity: e1 });
|
|
108
|
+
await flush();
|
|
109
|
+
await assert({
|
|
110
|
+
given: "a deleted entity",
|
|
111
|
+
should: "re-emit without the deleted entity",
|
|
112
|
+
actual: observer.mock.calls[1][0],
|
|
113
|
+
expected: [{ id: e2, position: 20, velocity: 15 }],
|
|
114
|
+
});
|
|
115
|
+
unobserve();
|
|
116
|
+
});
|
|
117
|
+
test("no re-emit on non-included component change", async () => {
|
|
118
|
+
const db = createTestDb();
|
|
119
|
+
db.transactions.createFull({ position: 10, velocity: 5, name: "Alice" });
|
|
120
|
+
const observer = vi.fn();
|
|
121
|
+
const unobserve = observeSelectDeep(db, ["position", "velocity"])(observer);
|
|
122
|
+
// Mutate a NON-included component
|
|
123
|
+
db.transactions.createNamed({ name: "Bob" });
|
|
124
|
+
await flush();
|
|
125
|
+
await assert({
|
|
126
|
+
given: "a change to a non-included component only",
|
|
127
|
+
should: "not re-emit",
|
|
128
|
+
actual: observer.mock.calls.length,
|
|
129
|
+
expected: 1,
|
|
130
|
+
});
|
|
131
|
+
unobserve();
|
|
132
|
+
});
|
|
133
|
+
test("deduplicate when data unchanged", async () => {
|
|
134
|
+
const db = createTestDb();
|
|
135
|
+
const e1 = db.transactions.createMoving({ position: 10, velocity: 5 });
|
|
136
|
+
const observer = vi.fn();
|
|
137
|
+
const unobserve = observeSelectDeep(db, ["position", "velocity"])(observer);
|
|
138
|
+
// Update to the SAME value — deep equality should suppress re-emit
|
|
139
|
+
db.transactions.updateEntity({ entity: e1, values: { position: 10 } });
|
|
140
|
+
await flush();
|
|
141
|
+
await assert({
|
|
142
|
+
given: "an update that produces the same data",
|
|
143
|
+
should: "not re-emit",
|
|
144
|
+
actual: observer.mock.calls.length,
|
|
145
|
+
expected: 1,
|
|
146
|
+
});
|
|
147
|
+
unobserve();
|
|
148
|
+
});
|
|
149
|
+
test("same Observe factory for equivalent parameters", async () => {
|
|
150
|
+
const db = createTestDb();
|
|
151
|
+
const obs1 = observeSelectDeep(db, ["position", "velocity"]);
|
|
152
|
+
const obs2 = observeSelectDeep(db, ["position", "velocity"]);
|
|
153
|
+
await assert({
|
|
154
|
+
given: "two calls with equivalent include arrays",
|
|
155
|
+
should: "return the same Observe factory",
|
|
156
|
+
actual: obs1 === obs2,
|
|
157
|
+
expected: true,
|
|
158
|
+
});
|
|
159
|
+
});
|
|
160
|
+
test("late subscriber receives cached value", async () => {
|
|
161
|
+
const db = createTestDb();
|
|
162
|
+
const e1 = db.transactions.createMoving({ position: 10, velocity: 5 });
|
|
163
|
+
const observer1 = vi.fn();
|
|
164
|
+
const unobserve1 = observeSelectDeep(db, ["position", "velocity"])(observer1);
|
|
165
|
+
// Mutate after first subscription
|
|
166
|
+
db.transactions.updateEntity({ entity: e1, values: { position: 999 } });
|
|
167
|
+
await flush();
|
|
168
|
+
// Late subscriber should get the latest cached value immediately
|
|
169
|
+
const observer2 = vi.fn();
|
|
170
|
+
const unobserve2 = observeSelectDeep(db, ["position", "velocity"])(observer2);
|
|
171
|
+
await assert({
|
|
172
|
+
given: "a late subscriber after mutations",
|
|
173
|
+
should: "receive the current cached value synchronously",
|
|
174
|
+
actual: observer2.mock.calls[0][0],
|
|
175
|
+
expected: [{ id: e1, position: 999, velocity: 5 }],
|
|
176
|
+
});
|
|
177
|
+
await assert({
|
|
178
|
+
given: "a late subscriber",
|
|
179
|
+
should: "emit exactly once (cached value only)",
|
|
180
|
+
actual: observer2.mock.calls.length,
|
|
181
|
+
expected: 1,
|
|
182
|
+
});
|
|
183
|
+
unobserve1();
|
|
184
|
+
unobserve2();
|
|
185
|
+
});
|
|
186
|
+
});
|
|
187
|
+
//# sourceMappingURL=observe-select-deep.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"observe-select-deep.test.js","sourceRoot":"","sources":["../../../../src/ecs/database/public/observe-select-deep.test.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,sDAAsD;AACtD,MAAM,KAAK,GAAG,GAAG,EAAE,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAEvD,MAAM,YAAY,GAAG,GAAG,EAAE,CACtB,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACnC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/LICENSE for details.
|
|
2
|
+
import { Database } from "../database.js";
|
|
3
|
+
import { observeSelectDeep } from "./observe-select-deep.js";
|
|
4
|
+
/**
|
|
5
|
+
* Type-only tests for observeSelectDeep type inference.
|
|
6
|
+
*
|
|
7
|
+
* These tests verify that:
|
|
8
|
+
* 1. observeSelectDeep infers entity data types from included components
|
|
9
|
+
* 2. Only queried components appear in the result type
|
|
10
|
+
* 3. RequiredComponents (id) is always included
|
|
11
|
+
*
|
|
12
|
+
* Note: These are compile-time type checks only — they don't need to execute.
|
|
13
|
+
*/
|
|
14
|
+
// ============================================================================
|
|
15
|
+
// BASIC INFERENCE FROM DATABASE
|
|
16
|
+
// ============================================================================
|
|
17
|
+
function testObserveSelectDeepBasicInference() {
|
|
18
|
+
const plugin = Database.Plugin.create({
|
|
19
|
+
components: {
|
|
20
|
+
position: { type: "number" },
|
|
21
|
+
velocity: { type: "number" },
|
|
22
|
+
name: { type: "string" },
|
|
23
|
+
},
|
|
24
|
+
archetypes: {
|
|
25
|
+
Moving: ["position", "velocity"],
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
const db = Database.create(plugin);
|
|
29
|
+
// Querying position and velocity should infer correct entity data
|
|
30
|
+
const observed = observeSelectDeep(db, ["position", "velocity"]);
|
|
31
|
+
}
|
|
32
|
+
// ============================================================================
|
|
33
|
+
// SINGLE COMPONENT QUERY
|
|
34
|
+
// ============================================================================
|
|
35
|
+
function testObserveSelectDeepSingleComponent() {
|
|
36
|
+
const plugin = Database.Plugin.create({
|
|
37
|
+
components: {
|
|
38
|
+
position: { type: "number" },
|
|
39
|
+
name: { type: "string" },
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
const db = Database.create(plugin);
|
|
43
|
+
// Querying only name should produce id + name
|
|
44
|
+
const observed = observeSelectDeep(db, ["name"]);
|
|
45
|
+
}
|
|
46
|
+
// ============================================================================
|
|
47
|
+
// INVALID COMPONENT NAMES REJECTED
|
|
48
|
+
// ============================================================================
|
|
49
|
+
function testObserveSelectDeepRejectsInvalidComponents() {
|
|
50
|
+
const plugin = Database.Plugin.create({
|
|
51
|
+
components: {
|
|
52
|
+
position: { type: "number" },
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
const db = Database.create(plugin);
|
|
56
|
+
// @ts-expect-error - "nonexistent" is not a valid component name
|
|
57
|
+
observeSelectDeep(db, ["nonexistent"]);
|
|
58
|
+
}
|
|
59
|
+
// ============================================================================
|
|
60
|
+
// WITH OPTIONS (where/order)
|
|
61
|
+
// ============================================================================
|
|
62
|
+
function testObserveSelectDeepWithOptions() {
|
|
63
|
+
const plugin = Database.Plugin.create({
|
|
64
|
+
components: {
|
|
65
|
+
position: { type: "number" },
|
|
66
|
+
velocity: { type: "number" },
|
|
67
|
+
name: { type: "string" },
|
|
68
|
+
},
|
|
69
|
+
archetypes: {
|
|
70
|
+
Moving: ["position", "velocity"],
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
const db = Database.create(plugin);
|
|
74
|
+
// Should accept where/order options scoped to included components
|
|
75
|
+
const observed = observeSelectDeep(db, ["position", "velocity"], {
|
|
76
|
+
where: { position: { ">": 0 } },
|
|
77
|
+
order: { velocity: true },
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
// ============================================================================
|
|
81
|
+
// EXTENDED PLUGIN INFERENCE
|
|
82
|
+
// ============================================================================
|
|
83
|
+
function testObserveSelectDeepWithExtendedPlugin() {
|
|
84
|
+
const basePlugin = Database.Plugin.create({
|
|
85
|
+
components: {
|
|
86
|
+
position: { type: "number" },
|
|
87
|
+
},
|
|
88
|
+
archetypes: {
|
|
89
|
+
Positioned: ["position"],
|
|
90
|
+
},
|
|
91
|
+
});
|
|
92
|
+
const extendedPlugin = Database.Plugin.create({
|
|
93
|
+
extends: basePlugin,
|
|
94
|
+
components: {
|
|
95
|
+
velocity: { type: "number" },
|
|
96
|
+
},
|
|
97
|
+
archetypes: {
|
|
98
|
+
Moving: ["position", "velocity"],
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
const db = Database.create(extendedPlugin);
|
|
102
|
+
// Should work with components from both base and extended plugins
|
|
103
|
+
const observed = observeSelectDeep(db, ["position", "velocity"]);
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=observe-select-deep.type-test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"observe-select-deep.type-test.js","sourceRoot":"","sources":["../../../../src/ecs/database/public/observe-select-deep.type-test.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAIvD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D;;;;;;;;;GASG;AAEH,+EAA+E;AAC/E,gCAAgC;AAChC,+EAA+E;AAE/E,SAAS,mCAAmC;IACxC,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAClC,UAAU,EAAE;YACR,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC5B,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC5B,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SAC3B;QACD,UAAU,EAAE;YACR,MAAM,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC;SACnC;KACJ,CAAC,CAAC;IAEH,MAAM,EAAE,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAEnC,kEAAkE;IAClE,MAAM,QAAQ,GAAG,iBAAiB,CAAC,EAAE,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC;AAQrE,CAAC;AAED,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAE/E,SAAS,oCAAoC;IACzC,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAClC,UAAU,EAAE;YACR,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EA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EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE;QAC/B,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;KAC5B,CAAC,CAAC;AAQP,CAAC;AAED,+EAA+E;AAC/E,4BAA4B;AAC5B,+EAA+E;AAE/E,SAAS,uCAAuC;IAC5C,MAAM,UAAU,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QACtC,UAAU,EAAE;YACR,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SAC/B;QACD,UAAU,EAAE;YACR,UAAU,EAAE,CAAC,UAAU,CAAC;SAC3B;KACJ,CAAC,CAAC;IAEH,MAAM,cAAc,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;QAC1C,OAAO,EAAE,UAAU;QACnB,UAAU,EAAE;YACR,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SAC/B;QACD,UAAU,EAAE;YACR,MAAM,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC;SACnC;KACJ,CAAC,CAAC;IAEH,MAAM,EAAE,GAAG,QAAQ,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;IAE3C,kEAAkE;IAClE,MAAM,QAAQ,GAAG,iBAAiB,CAAC,EAAE,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC;AAQrE,CAAC"}
|
|
@@ -11,6 +11,6 @@ export * from "./resource-schemas.js";
|
|
|
11
11
|
export * from "./undo-redo-service/index.js";
|
|
12
12
|
export * from "./persistence-service/index.js";
|
|
13
13
|
export { applyOperations } from "./database/transactional-store/apply-operations.js";
|
|
14
|
-
export
|
|
14
|
+
export * from "./plugins/index.js";
|
|
15
15
|
export * from "./store/transaction-functions.js";
|
|
16
16
|
export { Entity } from "./entity.js";
|
|
@@ -9,7 +9,7 @@ export * from "./resource-schemas.js";
|
|
|
9
9
|
export * from "./undo-redo-service/index.js";
|
|
10
10
|
export * from "./persistence-service/index.js";
|
|
11
11
|
export { applyOperations } from "./database/transactional-store/apply-operations.js";
|
|
12
|
-
export
|
|
12
|
+
export * from "./plugins/index.js";
|
|
13
13
|
export * from "./store/transaction-functions.js";
|
|
14
14
|
// Export Entity type and namespace
|
|
15
15
|
export { Entity } from "./entity.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ecs/index.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AAGzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,oDAAoD,CAAC;AACrF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ecs/index.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AAGzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,oDAAoD,CAAC;AACrF,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AAEjD,mCAAmC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type SchedulerState = "running" | "paused" | "disposed";
|
|
2
|
+
export declare const scheduler: import("../../index.js").CombinePlugins<[import("../../index.js").Database.Plugin<{}, {}, {}, {}, never, {}, {}, {}>, import("../../index.js").Database.Plugin<{}, {
|
|
3
|
+
readonly schedulerState: {
|
|
4
|
+
readonly default: SchedulerState;
|
|
5
|
+
};
|
|
6
|
+
}, {}, {}, "schedulerSystem", import("../../index.js").ActionDeclarations<import("../../../schema/from-schemas.js").FromSchemas<{}>, import("../../../schema/from-schemas.js").FromSchemas<{
|
|
7
|
+
readonly schedulerState: {
|
|
8
|
+
readonly default: SchedulerState;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, import("../../index.js").ToTransactionFunctions<{}>, "schedulerSystem">, {}, {}>]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scheduler.js","sourceRoot":"","sources":["../../../../src/ecs/plugins/scheduler/scheduler.ts"],"names":[],"mappings":"AAAA,uDAAuD;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAI/D,MAAM,CAAC,MAAM,SAAS,GAAG,YAAY,CAAC;IAClC,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,yFAAyF;4BACzF,MAAM,OAAO,CAAC,GAAG,CACb,IAAI;iCACC,MAAM,CAAC,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI,KAAK,iBAAiB,CAAC;iCACpD,GAAG,CAAC,CAAC,IAAY,EAAE,EAAE;gCAClB,MAAM,QAAQ,GAAG,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,IAAwC,CAAC,CAAC;gCAC/E,IAAI,QAAQ,IAAI,IAAI,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;oCAC7C,6EAA6E;oCAC7E,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;gCAC7B,CAAC;gCACD,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE,CAAC;oCACjC,MAAM,IAAI,KAAK,CACX,WAAW,IAAI,uBAAuB;wCACtC,sBAAsB,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACtE,CAAC;gCACN,CAAC;gCACD,OAAO,QAAQ,EAAE,CAAC;4BACtB,CAAC,CAAC,CACT,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,2FAA2F;gBAC3F,qBAAqB,CAAC,YAAY,CAAC,CAAC;gBAEpC,yEAAyE;gBACzE,OAAO,GAAG,EAAE;oBACR,6DAA6D;gBACjE,CAAC,CAAC;YACN,CAAC;SACJ;KACJ;CACJ,CAAC,CAAC"}
|
|
@@ -2,3 +2,4 @@ export * from "./store.js";
|
|
|
2
2
|
export * from "./archetype-components.js";
|
|
3
3
|
export type { EntityReadValues, EntityUpdateValues, ArchetypeQueryOptions } from "./core/core.js";
|
|
4
4
|
export type { EntitySelectOptions } from "./entity-select-options.js";
|
|
5
|
+
export * from "./action-functions.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ecs/store/index.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,cAAc,YAAY,CAAC;AAC3B,cAAc,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ecs/store/index.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,cAAc,YAAY,CAAC;AAC3B,cAAc,2BAA2B,CAAC;AAG1C,cAAc,uBAAuB,CAAC"}
|