@adobe/data 0.5.3 → 0.5.5
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/ecs/database/create-database.d.ts +2 -2
- package/dist/ecs/database/database-schema/create-database-schema-test.d.ts +1 -0
- package/dist/ecs/database/database-schema/create-database-schema-test.js +42 -0
- package/dist/ecs/database/database-schema/create-database-schema-test.js.map +1 -0
- package/dist/ecs/database/database-schema/create-database-schema.d.ts +14 -0
- package/dist/ecs/database/database-schema/create-database-schema.js +32 -0
- package/dist/ecs/database/database-schema/create-database-schema.js.map +1 -0
- package/dist/ecs/database/database-schema/database-schema.d.ts +13 -0
- package/dist/ecs/database/database-schema/database-schema.js +23 -0
- package/dist/ecs/database/database-schema/database-schema.js.map +1 -0
- package/dist/ecs/database/database-schema/index.d.ts +2 -0
- package/dist/{services → ecs/database/database-schema}/index.js +2 -3
- package/dist/ecs/database/database-schema/index.js.map +1 -0
- package/dist/ecs/database/database.d.ts +3 -1
- package/dist/ecs/database/index.d.ts +1 -0
- package/dist/ecs/database/index.js +1 -0
- package/dist/ecs/database/index.js.map +1 -1
- package/dist/ecs/index.d.ts +2 -1
- package/dist/ecs/index.js +2 -1
- package/dist/ecs/index.js.map +1 -1
- package/dist/ecs/store/archetype-components.d.ts +3 -1
- package/dist/ecs/store/core/core.d.ts +1 -8
- package/dist/ecs/store/core/create-core.js +9 -4
- package/dist/ecs/store/core/create-core.js.map +1 -1
- package/dist/ecs/store/core/create-core.test.js +0 -109
- package/dist/ecs/store/core/create-core.test.js.map +1 -1
- package/dist/ecs/store/create-store.js +21 -0
- package/dist/ecs/store/create-store.js.map +1 -1
- package/dist/ecs/store/store-schema/create-store-schema-test.js +4 -7
- package/dist/ecs/store/store-schema/create-store-schema-test.js.map +1 -1
- package/dist/ecs/store/store-schema/create-store-schema.d.ts +2 -0
- package/dist/ecs/store/store-schema/create-store-schema.js +5 -0
- package/dist/ecs/store/store-schema/create-store-schema.js.map +1 -1
- package/dist/ecs/store/store-schema/index.d.ts +1 -1
- package/dist/ecs/store/store-schema/index.js +1 -1
- package/dist/ecs/store/store-schema/index.js.map +1 -1
- package/dist/ecs/store/store-schema/store-schema.d.ts +1 -1
- package/dist/ecs/world/create-world.d.ts +7 -0
- package/dist/ecs/world/create-world.js +108 -0
- package/dist/ecs/world/create-world.js.map +1 -0
- package/dist/ecs/world/create-world.test.d.ts +1 -0
- package/dist/ecs/world/create-world.test.js +499 -0
- package/dist/ecs/world/create-world.test.js.map +1 -0
- package/dist/ecs/world/index.d.ts +4 -0
- package/dist/ecs/world/index.js +26 -0
- package/dist/ecs/world/index.js.map +1 -0
- package/dist/ecs/world/system.d.ts +20 -0
- package/dist/ecs/world/system.js +2 -0
- package/dist/ecs/world/system.js.map +1 -0
- package/dist/ecs/world/world-schema/create-world-schema-test.d.ts +1 -0
- package/dist/ecs/world/world-schema/create-world-schema-test.js +55 -0
- package/dist/ecs/world/world-schema/create-world-schema-test.js.map +1 -0
- package/dist/ecs/world/world-schema/create-world-schema.d.ts +19 -0
- package/dist/ecs/world/world-schema/create-world-schema.js +33 -0
- package/dist/ecs/world/world-schema/create-world-schema.js.map +1 -0
- package/dist/ecs/world/world-schema/index.d.ts +2 -0
- package/dist/ecs/world/world-schema/index.js +24 -0
- package/dist/ecs/world/world-schema/index.js.map +1 -0
- package/dist/ecs/world/world-schema/world-schema.d.ts +18 -0
- package/dist/ecs/world/world-schema/world-schema.js +23 -0
- package/dist/ecs/world/world-schema/world-schema.js.map +1 -0
- package/dist/ecs/world/world.d.ts +9 -0
- package/dist/ecs/world/world.js +2 -0
- package/dist/ecs/world/world.js.map +1 -0
- package/dist/functions/serialization/serialization.test.js +78 -0
- package/dist/functions/serialization/serialization.test.js.map +1 -1
- package/dist/graphics/camera/camera.d.ts +62 -0
- package/dist/graphics/camera/camera.js +17 -0
- package/dist/graphics/camera/camera.js.map +1 -0
- package/dist/graphics/camera/index.d.ts +4 -0
- package/dist/graphics/camera/index.js +5 -0
- package/dist/graphics/camera/index.js.map +1 -0
- package/dist/graphics/camera/screen-to-world-ray.d.ts +12 -0
- package/dist/graphics/camera/screen-to-world-ray.js +49 -0
- package/dist/graphics/camera/screen-to-world-ray.js.map +1 -0
- package/dist/graphics/camera/screen-to-world-ray.test.d.ts +1 -0
- package/dist/graphics/camera/screen-to-world-ray.test.js +171 -0
- package/dist/graphics/camera/screen-to-world-ray.test.js.map +1 -0
- package/dist/graphics/camera/to-view-projection.d.ts +3 -0
- package/dist/graphics/camera/to-view-projection.js +8 -0
- package/dist/graphics/camera/to-view-projection.js.map +1 -0
- package/dist/graphics/camera/world-to-screen.d.ts +12 -0
- package/dist/graphics/camera/world-to-screen.js +38 -0
- package/dist/graphics/camera/world-to-screen.js.map +1 -0
- package/dist/graphics/camera/world-to-screen.test.d.ts +1 -0
- package/dist/graphics/camera/world-to-screen.test.js +124 -0
- package/dist/graphics/camera/world-to-screen.test.js.map +1 -0
- package/dist/graphics/create-struct-gpu-buffer.d.ts +7 -0
- package/dist/graphics/create-struct-gpu-buffer.js +17 -0
- package/dist/graphics/create-struct-gpu-buffer.js.map +1 -0
- package/dist/graphics/extract-wgsl-bindings.d.ts +5 -0
- package/dist/graphics/extract-wgsl-bindings.js +10 -0
- package/dist/graphics/extract-wgsl-bindings.js.map +1 -0
- package/dist/graphics/frame.d.ts +22 -0
- package/dist/graphics/frame.js +12 -0
- package/dist/graphics/frame.js.map +1 -0
- package/dist/graphics/get-web-gpu-device-and-context.d.ts +2 -0
- package/dist/graphics/get-web-gpu-device-and-context.js +21 -0
- package/dist/graphics/get-web-gpu-device-and-context.js.map +1 -0
- package/dist/graphics/graphics-context.d.ts +5 -0
- package/dist/graphics/graphics-context.js +2 -0
- package/dist/graphics/graphics-context.js.map +1 -0
- package/dist/graphics/index.d.ts +5 -0
- package/dist/graphics/index.js +5 -0
- package/dist/graphics/index.js.map +1 -0
- package/dist/graphics/to-gpu-buffer.d.ts +2 -0
- package/dist/graphics/to-gpu-buffer.js +14 -0
- package/dist/graphics/to-gpu-buffer.js.map +1 -0
- package/dist/internal/array/index.d.ts +1 -0
- package/dist/internal/array/index.js +23 -0
- package/dist/internal/array/index.js.map +1 -0
- package/dist/internal/array/topological-sort.d.ts +26 -0
- package/dist/internal/array/topological-sort.js +79 -0
- package/dist/internal/array/topological-sort.js.map +1 -0
- package/dist/internal/array/topological-sort.test.d.ts +1 -0
- package/dist/internal/array/topological-sort.test.js +100 -0
- package/dist/internal/array/topological-sort.test.js.map +1 -0
- package/dist/internal/function/debounce.d.ts +70 -0
- package/dist/internal/function/debounce.js +155 -0
- package/dist/internal/function/debounce.js.map +1 -0
- package/dist/internal/function/debounce.test.d.ts +1 -0
- package/dist/internal/function/debounce.test.js +306 -0
- package/dist/internal/function/debounce.test.js.map +1 -0
- package/dist/lit/elements/application-element.d.ts +9 -0
- package/dist/lit/elements/application-element.js +62 -0
- package/dist/lit/elements/application-element.js.map +1 -0
- package/dist/lit/elements/application-host.d.ts +16 -0
- package/dist/lit/elements/application-host.js +59 -0
- package/dist/lit/elements/application-host.js.map +1 -0
- package/dist/lit/elements/index.d.ts +2 -0
- package/dist/lit/elements/index.js +2 -0
- package/dist/lit/elements/index.js.map +1 -1
- package/dist/lit/elements/service-application.js +4 -1
- package/dist/lit/elements/service-application.js.map +1 -1
- package/dist/lit/functions/index.d.ts +1 -0
- package/dist/lit/functions/index.js +23 -0
- package/dist/lit/functions/index.js.map +1 -0
- package/dist/lit/functions/iterate-self-and-ancestors.d.ts +1 -0
- package/dist/lit/functions/iterate-self-and-ancestors.js +44 -0
- package/dist/lit/functions/iterate-self-and-ancestors.js.map +1 -0
- package/dist/lit/hooks/attach-decorator.d.ts +4 -0
- package/dist/lit/hooks/attach-decorator.js +46 -0
- package/dist/lit/hooks/attach-decorator.js.map +1 -0
- package/dist/lit/hooks/index.d.ts +4 -0
- package/dist/lit/hooks/index.js +4 -0
- package/dist/lit/hooks/index.js.map +1 -1
- package/dist/lit/hooks/use-drag-observe.d.ts +22 -0
- package/dist/lit/hooks/use-drag-observe.js +55 -0
- package/dist/lit/hooks/use-drag-observe.js.map +1 -0
- package/dist/lit/hooks/use-drag-transaction.d.ts +7 -0
- package/dist/lit/hooks/use-drag-transaction.js +56 -0
- package/dist/lit/hooks/use-drag-transaction.js.map +1 -0
- package/dist/lit/hooks/use-draggable.d.ts +16 -0
- package/dist/lit/hooks/use-draggable.js +122 -0
- package/dist/lit/hooks/use-draggable.js.map +1 -0
- package/dist/math/aabb/aabb.d.ts +48 -0
- package/dist/math/aabb/aabb.js +86 -0
- package/dist/math/aabb/aabb.js.map +1 -0
- package/dist/math/aabb/line-intersection.test.d.ts +1 -0
- package/dist/math/aabb/line-intersection.test.js +210 -0
- package/dist/math/aabb/line-intersection.test.js.map +1 -0
- package/dist/math/constants.d.ts +4 -0
- package/dist/math/constants.js +26 -0
- package/dist/math/constants.js.map +1 -0
- package/dist/math/index.d.ts +18 -0
- package/dist/math/index.js +40 -0
- package/dist/math/index.js.map +1 -0
- package/dist/math/line2/intersects.test.d.ts +1 -0
- package/dist/math/line2/intersects.test.js +104 -0
- package/dist/math/line2/intersects.test.js.map +1 -0
- package/dist/math/line2/line2.d.ts +42 -0
- package/dist/math/line2/line2.js +78 -0
- package/dist/math/line2/line2.js.map +1 -0
- package/dist/math/line3/closest-point-on-line.test.d.ts +1 -0
- package/dist/math/line3/closest-point-on-line.test.js +107 -0
- package/dist/math/line3/closest-point-on-line.test.js.map +1 -0
- package/dist/math/line3/interpolate.test.d.ts +1 -0
- package/dist/math/line3/interpolate.test.js +66 -0
- package/dist/math/line3/interpolate.test.js.map +1 -0
- package/dist/math/line3/line3.d.ts +49 -0
- package/dist/math/line3/line3.js +77 -0
- package/dist/math/line3/line3.js.map +1 -0
- package/dist/math/line3/sub-line.test.d.ts +1 -0
- package/dist/math/line3/sub-line.test.js +70 -0
- package/dist/math/line3/sub-line.test.js.map +1 -0
- package/dist/math/mat4x4/mat4x4.d.ts +37 -0
- package/dist/math/mat4x4/mat4x4.js +246 -0
- package/dist/math/mat4x4/mat4x4.js.map +1 -0
- package/dist/math/picking/index.d.ts +1 -0
- package/dist/math/picking/index.js +23 -0
- package/dist/math/picking/index.js.map +1 -0
- package/dist/math/picking/pick-from-tables.d.ts +18 -0
- package/dist/math/picking/pick-from-tables.js +154 -0
- package/dist/math/picking/pick-from-tables.js.map +1 -0
- package/dist/math/picking/pick-result.d.ts +7 -0
- package/dist/{services/service.js → math/picking/pick-result.js} +1 -1
- package/dist/math/picking/pick-result.js.map +1 -0
- package/dist/math/quat/quat.d.ts +42 -0
- package/dist/math/quat/quat.js +220 -0
- package/dist/math/quat/quat.js.map +1 -0
- package/dist/math/vec2/vec2.d.ts +63 -0
- package/dist/math/vec2/vec2.js +114 -0
- package/dist/math/vec2/vec2.js.map +1 -0
- package/dist/math/vec3/vec3.d.ts +65 -0
- package/dist/math/vec3/vec3.js +154 -0
- package/dist/math/vec3/vec3.js.map +1 -0
- package/dist/math/vec4/vec4.d.ts +63 -0
- package/dist/math/vec4/vec4.js +154 -0
- package/dist/math/vec4/vec4.js.map +1 -0
- package/dist/observe/to-async-generator.js +4 -0
- package/dist/observe/to-async-generator.js.map +1 -1
- package/dist/observe/with-filter.d.ts +1 -1
- package/dist/observe/with-filter.js.map +1 -1
- package/dist/samples/index.d.ts +13 -0
- package/dist/samples/index.js +27 -0
- package/dist/samples/index.js.map +1 -0
- package/dist/samples/todo/elements/todo-list/todo-list-presentation.d.ts +25 -0
- package/dist/samples/todo/elements/todo-list/todo-list-presentation.js +12 -0
- package/dist/samples/todo/elements/todo-list/todo-list-presentation.js.map +1 -0
- package/dist/samples/todo/elements/todo-list/todo-list.css.d.ts +18 -0
- package/dist/samples/todo/elements/todo-list/todo-list.css.js +27 -0
- package/dist/samples/todo/elements/todo-list/todo-list.css.js.map +1 -0
- package/dist/samples/todo/elements/todo-list/todo-list.d.ts +12 -0
- package/dist/samples/todo/elements/todo-list/todo-list.js +60 -0
- package/dist/samples/todo/elements/todo-list/todo-list.js.map +1 -0
- package/dist/samples/todo/elements/todo-row/index.d.ts +18 -0
- package/dist/samples/todo/elements/todo-row/index.js +19 -0
- package/dist/samples/todo/elements/todo-row/index.js.map +1 -0
- package/dist/samples/todo/elements/todo-row/todo-row-presentation.d.ts +18 -0
- package/dist/samples/todo/elements/todo-row/todo-row-presentation.js +66 -0
- package/dist/samples/todo/elements/todo-row/todo-row-presentation.js.map +1 -0
- package/dist/samples/todo/elements/todo-row/todo-row.css.d.ts +1 -0
- package/dist/samples/todo/elements/todo-row/todo-row.css.js +65 -0
- package/dist/samples/todo/elements/todo-row/todo-row.css.js.map +1 -0
- package/dist/samples/todo/elements/todo-row/todo-row.d.ts +14 -0
- package/dist/samples/todo/elements/todo-row/todo-row.js +60 -0
- package/dist/samples/todo/elements/todo-row/todo-row.js.map +1 -0
- package/dist/samples/todo/elements/todo-toolbar/index.d.ts +18 -0
- package/dist/samples/todo/elements/todo-toolbar/index.js +19 -0
- package/dist/samples/todo/elements/todo-toolbar/index.js.map +1 -0
- package/dist/samples/todo/elements/todo-toolbar/todo-toolbar-presentation.d.ts +22 -0
- package/dist/samples/todo/elements/todo-toolbar/todo-toolbar-presentation.js +57 -0
- package/dist/samples/todo/elements/todo-toolbar/todo-toolbar-presentation.js.map +1 -0
- package/dist/samples/todo/elements/todo-toolbar/todo-toolbar.css.d.ts +1 -0
- package/dist/samples/todo/elements/todo-toolbar/todo-toolbar.css.js +50 -0
- package/dist/samples/todo/elements/todo-toolbar/todo-toolbar.css.js.map +1 -0
- package/dist/samples/todo/elements/todo-toolbar/todo-toolbar.d.ts +11 -0
- package/dist/samples/todo/elements/todo-toolbar/todo-toolbar.js +77 -0
- package/dist/samples/todo/elements/todo-toolbar/todo-toolbar.js.map +1 -0
- package/dist/samples/todo/elements/todo-undo-redo/index.d.ts +18 -0
- package/dist/samples/todo/elements/todo-undo-redo/index.js +19 -0
- package/dist/samples/todo/elements/todo-undo-redo/index.js.map +1 -0
- package/dist/samples/todo/elements/todo-undo-redo/todo-undo-redo-presentation.d.ts +17 -0
- package/dist/samples/todo/elements/todo-undo-redo/todo-undo-redo-presentation.js +45 -0
- package/dist/samples/todo/elements/todo-undo-redo/todo-undo-redo-presentation.js.map +1 -0
- package/dist/samples/todo/elements/todo-undo-redo/todo-undo-redo.css.d.ts +1 -0
- package/dist/samples/todo/elements/todo-undo-redo/todo-undo-redo.css.js +28 -0
- package/dist/samples/todo/elements/todo-undo-redo/todo-undo-redo.css.js.map +1 -0
- package/dist/samples/todo/elements/todo-undo-redo/todo-undo-redo.d.ts +11 -0
- package/dist/samples/todo/elements/todo-undo-redo/todo-undo-redo.js +52 -0
- package/dist/samples/todo/elements/todo-undo-redo/todo-undo-redo.js.map +1 -0
- package/dist/samples/todo/services/dependent-state-service/create-dependent-state-service.d.ts +6 -0
- package/dist/samples/todo/services/dependent-state-service/create-dependent-state-service.js +21 -0
- package/dist/samples/todo/services/dependent-state-service/create-dependent-state-service.js.map +1 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state/all-todos.d.ts +19 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state/all-todos.js +2 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state/all-todos.js.map +1 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state/complete-todos.d.ts +19 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state/complete-todos.js +2 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state/complete-todos.js.map +1 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state/incomplete-todos.d.ts +19 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state/incomplete-todos.js +2 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state/incomplete-todos.js.map +1 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state/index.d.ts +20 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state/index.js +21 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state/index.js.map +1 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state-service.d.ts +19 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state-service.js +2 -0
- package/dist/samples/todo/services/dependent-state-service/dependent-state-service.js.map +1 -0
- package/dist/samples/todo/services/main-service/create-main-service.d.ts +25 -0
- package/dist/samples/todo/services/main-service/create-main-service.js +39 -0
- package/dist/samples/todo/services/main-service/create-main-service.js.map +1 -0
- package/dist/samples/todo/services/main-service/todo-main-service.d.ts +35 -0
- package/dist/samples/todo/services/main-service/todo-main-service.js +2 -0
- package/dist/samples/todo/services/main-service/todo-main-service.js.map +1 -0
- package/dist/samples/todo/services/state-service/create-todo-database.d.ts +13 -0
- package/dist/samples/todo/services/state-service/create-todo-database.js +26 -0
- package/dist/samples/todo/services/state-service/create-todo-database.js.map +1 -0
- package/dist/samples/todo/services/state-service/create-todo-store.d.ts +13 -0
- package/dist/samples/todo/services/state-service/create-todo-store.js +41 -0
- package/dist/samples/todo/services/state-service/create-todo-store.js.map +1 -0
- package/dist/samples/todo/services/state-service/todo-state-service.d.ts +22 -0
- package/dist/samples/todo/services/state-service/todo-state-service.js +2 -0
- package/dist/samples/todo/services/state-service/todo-state-service.js.map +1 -0
- package/dist/samples/todo/services/state-service/transactions/create-bulk-todos.d.ts +2 -0
- package/dist/samples/todo/services/state-service/transactions/create-bulk-todos.js +26 -0
- package/dist/samples/todo/services/state-service/transactions/create-bulk-todos.js.map +1 -0
- package/dist/samples/todo/services/state-service/transactions/create-todo.d.ts +22 -0
- package/dist/samples/todo/services/state-service/transactions/create-todo.js +13 -0
- package/dist/samples/todo/services/state-service/transactions/create-todo.js.map +1 -0
- package/dist/samples/todo/services/state-service/transactions/create-todo.test.d.ts +1 -0
- package/dist/samples/todo/services/state-service/transactions/create-todo.test.js +32 -0
- package/dist/samples/todo/services/state-service/transactions/create-todo.test.js.map +1 -0
- package/dist/samples/todo/services/state-service/transactions/delete-all-todos.d.ts +19 -0
- package/dist/samples/todo/services/state-service/transactions/delete-all-todos.js +16 -0
- package/dist/samples/todo/services/state-service/transactions/delete-all-todos.js.map +1 -0
- package/dist/samples/todo/services/state-service/transactions/delete-todo.d.ts +3 -0
- package/dist/samples/todo/services/state-service/transactions/delete-todo.js +24 -0
- package/dist/samples/todo/services/state-service/transactions/delete-todo.js.map +1 -0
- package/dist/samples/todo/services/state-service/transactions/delete-todo.test.d.ts +1 -0
- package/dist/samples/todo/services/state-service/transactions/delete-todo.test.js +40 -0
- package/dist/samples/todo/services/state-service/transactions/delete-todo.test.js.map +1 -0
- package/dist/samples/todo/services/state-service/transactions/drag-todo.d.ts +7 -0
- package/dist/samples/todo/services/state-service/transactions/drag-todo.js +33 -0
- package/dist/samples/todo/services/state-service/transactions/drag-todo.js.map +1 -0
- package/dist/samples/todo/services/state-service/transactions/index.d.ts +23 -0
- package/dist/samples/todo/services/state-service/transactions/index.js +25 -0
- package/dist/samples/todo/services/state-service/transactions/index.js.map +1 -0
- package/dist/samples/todo/services/state-service/transactions/reorder-todos.d.ts +23 -0
- package/dist/samples/todo/services/state-service/transactions/reorder-todos.js +11 -0
- package/dist/samples/todo/services/state-service/transactions/reorder-todos.js.map +1 -0
- package/dist/samples/todo/services/state-service/transactions/toggle-complete.d.ts +20 -0
- package/dist/samples/todo/services/state-service/transactions/toggle-complete.js +11 -0
- package/dist/samples/todo/services/state-service/transactions/toggle-complete.js.map +1 -0
- package/dist/samples/todo/services/state-service/transactions/toggle-complete.test.d.ts +1 -0
- package/dist/samples/todo/services/state-service/transactions/toggle-complete.test.js +81 -0
- package/dist/samples/todo/services/state-service/transactions/toggle-complete.test.js.map +1 -0
- package/dist/samples/todo/todo-element.d.ts +21 -0
- package/dist/samples/todo/todo-element.js +4 -0
- package/dist/samples/todo/todo-element.js.map +1 -0
- package/dist/samples/todo/todo-host.d.ts +8 -0
- package/dist/samples/todo/todo-host.js +55 -0
- package/dist/samples/todo/todo-host.js.map +1 -0
- package/dist/samples/todo/todo-main-element.d.ts +27 -0
- package/dist/samples/todo/todo-main-element.js +63 -0
- package/dist/samples/todo/todo-main-element.js.map +1 -0
- package/dist/samples/todo/todo-sample.d.ts +3 -0
- package/dist/samples/todo/todo-sample.js +39 -0
- package/dist/samples/todo/todo-sample.js.map +1 -0
- package/dist/schema/schema.d.ts +7 -6
- package/dist/schema/schema.js.map +1 -1
- package/dist/service/disposable.d.ts +4 -0
- package/dist/{services/is-service.js → service/disposable.js} +3 -3
- package/dist/service/disposable.js.map +1 -0
- package/dist/service/progressive-result.d.ts +7 -10
- package/dist/service/progressive-result.js +0 -6
- package/dist/service/progressive-result.js.map +1 -1
- package/dist/service/service.d.ts +11 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/typed-buffer/register-typed-buffer-codecs.js +39 -22
- package/dist/typed-buffer/register-typed-buffer-codecs.js.map +1 -1
- package/dist/typed-buffer/structs/get-struct-layout.js +3 -0
- package/dist/typed-buffer/structs/get-struct-layout.js.map +1 -1
- package/package.json +20 -3
- package/dist/services/add-observable-actions.d.ts +0 -29
- package/dist/services/add-observable-actions.js +0 -108
- package/dist/services/add-observable-actions.js.map +0 -1
- package/dist/services/index.d.ts +0 -4
- package/dist/services/index.js.map +0 -1
- package/dist/services/is-service.d.ts +0 -2
- package/dist/services/is-service.js.map +0 -1
- package/dist/services/progressive-result.d.ts +0 -96
- package/dist/services/progressive-result.js +0 -99
- package/dist/services/progressive-result.js.map +0 -1
- package/dist/services/service.d.ts +0 -4
- package/dist/services/service.js.map +0 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { FromSchema } from "../../schema/index.js";
|
|
2
|
+
import { Vec3, Vec4 } from "../index.js";
|
|
3
|
+
export declare const schema: {
|
|
4
|
+
readonly type: "array";
|
|
5
|
+
readonly items: {
|
|
6
|
+
readonly type: "number";
|
|
7
|
+
readonly precision: 1;
|
|
8
|
+
readonly default: number;
|
|
9
|
+
};
|
|
10
|
+
readonly minItems: 16;
|
|
11
|
+
readonly maxItems: 16;
|
|
12
|
+
readonly default: readonly [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|
|
13
|
+
};
|
|
14
|
+
export type Type = FromSchema<typeof schema>;
|
|
15
|
+
type Mat4x4 = Type;
|
|
16
|
+
export declare const layout: import("../../typed-buffer/index.js").StructLayout;
|
|
17
|
+
export type Index = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
18
|
+
export declare const identity: () => Mat4x4;
|
|
19
|
+
export declare const zero: () => Mat4x4;
|
|
20
|
+
export declare const add: (a: Mat4x4, b: Mat4x4) => Mat4x4;
|
|
21
|
+
export declare const subtract: (a: Mat4x4, b: Mat4x4) => Mat4x4;
|
|
22
|
+
export declare const multiply: (a: Mat4x4, b: Mat4x4) => Mat4x4;
|
|
23
|
+
export declare const scale: (m: Mat4x4, s: number) => Mat4x4;
|
|
24
|
+
export declare const multiplyVec4: (m: Mat4x4, v: Vec4) => Vec4;
|
|
25
|
+
export declare const multiplyVec3: (m: Mat4x4, v: Vec3) => Vec3;
|
|
26
|
+
export declare const determinant: (m: Mat4x4) => number;
|
|
27
|
+
export declare const inverse: (m: Mat4x4) => Mat4x4;
|
|
28
|
+
export declare const transpose: (m: Mat4x4) => Mat4x4;
|
|
29
|
+
export declare const translation: (x: number, y: number, z: number) => Mat4x4;
|
|
30
|
+
export declare const scaling: (x: number, y: number, z: number) => Mat4x4;
|
|
31
|
+
export declare const rotationX: (angle: number) => Mat4x4;
|
|
32
|
+
export declare const rotationY: (angle: number) => Mat4x4;
|
|
33
|
+
export declare const rotationZ: (angle: number) => Mat4x4;
|
|
34
|
+
export declare const perspective: (fovy: number, aspect: number, near: number, far: number) => Mat4x4;
|
|
35
|
+
export declare const orthographic: (left: number, right: number, bottom: number, top: number, near: number, far: number) => Mat4x4;
|
|
36
|
+
export declare const lookAt: (eye: Vec3, center: Vec3, up: Vec3) => Mat4x4;
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
/*MIT License
|
|
2
|
+
|
|
3
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.*/
|
|
22
|
+
import { F32Schema } from "../../schema/index.js";
|
|
23
|
+
import { getStructLayout } from "../../typed-buffer/index.js";
|
|
24
|
+
import { Vec3 } from "../index.js";
|
|
25
|
+
export const schema = {
|
|
26
|
+
type: 'array',
|
|
27
|
+
items: F32Schema,
|
|
28
|
+
minItems: 16,
|
|
29
|
+
maxItems: 16,
|
|
30
|
+
default: [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], // identity matrix
|
|
31
|
+
};
|
|
32
|
+
export const layout = getStructLayout(schema);
|
|
33
|
+
// Basic Matrix Operations
|
|
34
|
+
export const identity = () => [
|
|
35
|
+
1, 0, 0, 0,
|
|
36
|
+
0, 1, 0, 0,
|
|
37
|
+
0, 0, 1, 0,
|
|
38
|
+
0, 0, 0, 1
|
|
39
|
+
];
|
|
40
|
+
export const zero = () => [
|
|
41
|
+
0, 0, 0, 0,
|
|
42
|
+
0, 0, 0, 0,
|
|
43
|
+
0, 0, 0, 0,
|
|
44
|
+
0, 0, 0, 0
|
|
45
|
+
];
|
|
46
|
+
// Matrix-Matrix Operations
|
|
47
|
+
export const add = (a, b) => [
|
|
48
|
+
a[0] + b[0], a[1] + b[1], a[2] + b[2], a[3] + b[3],
|
|
49
|
+
a[4] + b[4], a[5] + b[5], a[6] + b[6], a[7] + b[7],
|
|
50
|
+
a[8] + b[8], a[9] + b[9], a[10] + b[10], a[11] + b[11],
|
|
51
|
+
a[12] + b[12], a[13] + b[13], a[14] + b[14], a[15] + b[15]
|
|
52
|
+
];
|
|
53
|
+
export const subtract = (a, b) => [
|
|
54
|
+
a[0] - b[0], a[1] - b[1], a[2] - b[2], a[3] - b[3],
|
|
55
|
+
a[4] - b[4], a[5] - b[5], a[6] - b[6], a[7] - b[7],
|
|
56
|
+
a[8] - b[8], a[9] - b[9], a[10] - b[10], a[11] - b[11],
|
|
57
|
+
a[12] - b[12], a[13] - b[13], a[14] - b[14], a[15] - b[15]
|
|
58
|
+
];
|
|
59
|
+
export const multiply = (a, b) => {
|
|
60
|
+
const result = new Array(16);
|
|
61
|
+
for (let i = 0; i < 4; i++) {
|
|
62
|
+
for (let j = 0; j < 4; j++) {
|
|
63
|
+
let sum = 0;
|
|
64
|
+
for (let k = 0; k < 4; k++) {
|
|
65
|
+
sum += a[k * 4 + i] * b[j * 4 + k];
|
|
66
|
+
}
|
|
67
|
+
result[j * 4 + i] = sum;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return result;
|
|
71
|
+
};
|
|
72
|
+
// Matrix-Scalar Operations
|
|
73
|
+
export const scale = (m, s) => [
|
|
74
|
+
m[0] * s, m[1] * s, m[2] * s, m[3] * s,
|
|
75
|
+
m[4] * s, m[5] * s, m[6] * s, m[7] * s,
|
|
76
|
+
m[8] * s, m[9] * s, m[10] * s, m[11] * s,
|
|
77
|
+
m[12] * s, m[13] * s, m[14] * s, m[15] * s
|
|
78
|
+
];
|
|
79
|
+
// Matrix-Vector Operations
|
|
80
|
+
export const multiplyVec4 = (m, v) => [
|
|
81
|
+
m[0] * v[0] + m[4] * v[1] + m[8] * v[2] + m[12] * v[3],
|
|
82
|
+
m[1] * v[0] + m[5] * v[1] + m[9] * v[2] + m[13] * v[3],
|
|
83
|
+
m[2] * v[0] + m[6] * v[1] + m[10] * v[2] + m[14] * v[3],
|
|
84
|
+
m[3] * v[0] + m[7] * v[1] + m[11] * v[2] + m[15] * v[3]
|
|
85
|
+
];
|
|
86
|
+
export const multiplyVec3 = (m, v) => [
|
|
87
|
+
m[0] * v[0] + m[4] * v[1] + m[8] * v[2] + m[12],
|
|
88
|
+
m[1] * v[0] + m[5] * v[1] + m[9] * v[2] + m[13],
|
|
89
|
+
m[2] * v[0] + m[6] * v[1] + m[10] * v[2] + m[14]
|
|
90
|
+
];
|
|
91
|
+
// Matrix Properties
|
|
92
|
+
export const determinant = (m) => {
|
|
93
|
+
const [m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33] = m;
|
|
94
|
+
const b00 = m00 * m11 - m01 * m10;
|
|
95
|
+
const b01 = m00 * m12 - m02 * m10;
|
|
96
|
+
const b02 = m00 * m13 - m03 * m10;
|
|
97
|
+
const b03 = m01 * m12 - m02 * m11;
|
|
98
|
+
const b04 = m01 * m13 - m03 * m11;
|
|
99
|
+
const b05 = m02 * m13 - m03 * m12;
|
|
100
|
+
const b06 = m20 * m31 - m21 * m30;
|
|
101
|
+
const b07 = m20 * m32 - m22 * m30;
|
|
102
|
+
const b08 = m20 * m33 - m23 * m30;
|
|
103
|
+
const b09 = m21 * m32 - m22 * m31;
|
|
104
|
+
const b10 = m21 * m33 - m23 * m31;
|
|
105
|
+
const b11 = m22 * m33 - m23 * m32;
|
|
106
|
+
return b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;
|
|
107
|
+
};
|
|
108
|
+
export const inverse = (m) => {
|
|
109
|
+
const det = determinant(m);
|
|
110
|
+
if (det === 0) {
|
|
111
|
+
throw new Error('Matrix is not invertible');
|
|
112
|
+
}
|
|
113
|
+
const [m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33] = m;
|
|
114
|
+
const b00 = m00 * m11 - m01 * m10;
|
|
115
|
+
const b01 = m00 * m12 - m02 * m10;
|
|
116
|
+
const b02 = m00 * m13 - m03 * m10;
|
|
117
|
+
const b03 = m01 * m12 - m02 * m11;
|
|
118
|
+
const b04 = m01 * m13 - m03 * m11;
|
|
119
|
+
const b05 = m02 * m13 - m03 * m12;
|
|
120
|
+
const b06 = m20 * m31 - m21 * m30;
|
|
121
|
+
const b07 = m20 * m32 - m22 * m30;
|
|
122
|
+
const b08 = m20 * m33 - m23 * m30;
|
|
123
|
+
const b09 = m21 * m32 - m22 * m31;
|
|
124
|
+
const b10 = m21 * m33 - m23 * m31;
|
|
125
|
+
const b11 = m22 * m33 - m23 * m32;
|
|
126
|
+
const invDet = 1.0 / det;
|
|
127
|
+
return [
|
|
128
|
+
(m11 * b11 - m12 * b10 + m13 * b09) * invDet,
|
|
129
|
+
(m02 * b10 - m01 * b11 - m03 * b09) * invDet,
|
|
130
|
+
(m31 * b05 - m32 * b04 + m33 * b03) * invDet,
|
|
131
|
+
(m22 * b04 - m21 * b05 - m23 * b03) * invDet,
|
|
132
|
+
(m12 * b08 - m10 * b11 - m13 * b07) * invDet,
|
|
133
|
+
(m00 * b11 - m02 * b08 + m03 * b07) * invDet,
|
|
134
|
+
(m32 * b02 - m30 * b05 - m33 * b01) * invDet,
|
|
135
|
+
(m20 * b05 - m22 * b02 + m23 * b01) * invDet,
|
|
136
|
+
(m10 * b10 - m11 * b08 + m13 * b06) * invDet,
|
|
137
|
+
(m01 * b08 - m00 * b10 - m03 * b06) * invDet,
|
|
138
|
+
(m30 * b04 - m31 * b02 + m33 * b00) * invDet,
|
|
139
|
+
(m21 * b02 - m20 * b04 - m23 * b00) * invDet,
|
|
140
|
+
(m11 * b07 - m10 * b09 - m12 * b06) * invDet,
|
|
141
|
+
(m00 * b09 - m01 * b07 + m02 * b06) * invDet,
|
|
142
|
+
(m31 * b01 - m30 * b03 - m32 * b00) * invDet,
|
|
143
|
+
(m20 * b03 - m21 * b01 + m22 * b00) * invDet
|
|
144
|
+
];
|
|
145
|
+
};
|
|
146
|
+
export const transpose = (m) => [
|
|
147
|
+
m[0], m[4], m[8], m[12],
|
|
148
|
+
m[1], m[5], m[9], m[13],
|
|
149
|
+
m[2], m[6], m[10], m[14],
|
|
150
|
+
m[3], m[7], m[11], m[15]
|
|
151
|
+
];
|
|
152
|
+
// Transformation Matrices
|
|
153
|
+
export const translation = (x, y, z) => [
|
|
154
|
+
1, 0, 0, 0,
|
|
155
|
+
0, 1, 0, 0,
|
|
156
|
+
0, 0, 1, 0,
|
|
157
|
+
x, y, z, 1
|
|
158
|
+
];
|
|
159
|
+
export const scaling = (x, y, z) => [
|
|
160
|
+
x, 0, 0, 0,
|
|
161
|
+
0, y, 0, 0,
|
|
162
|
+
0, 0, z, 0,
|
|
163
|
+
0, 0, 0, 1
|
|
164
|
+
];
|
|
165
|
+
export const rotationX = (angle) => {
|
|
166
|
+
const c = Math.cos(angle);
|
|
167
|
+
const s = Math.sin(angle);
|
|
168
|
+
return [
|
|
169
|
+
1, 0, 0, 0,
|
|
170
|
+
0, c, s, 0,
|
|
171
|
+
0, -s, c, 0,
|
|
172
|
+
0, 0, 0, 1
|
|
173
|
+
];
|
|
174
|
+
};
|
|
175
|
+
export const rotationY = (angle) => {
|
|
176
|
+
const c = Math.cos(angle);
|
|
177
|
+
const s = Math.sin(angle);
|
|
178
|
+
return [
|
|
179
|
+
c, 0, s, 0,
|
|
180
|
+
0, 1, 0, 0,
|
|
181
|
+
-s, 0, c, 0,
|
|
182
|
+
0, 0, 0, 1
|
|
183
|
+
];
|
|
184
|
+
};
|
|
185
|
+
export const rotationZ = (angle) => {
|
|
186
|
+
const c = Math.cos(angle);
|
|
187
|
+
const s = Math.sin(angle);
|
|
188
|
+
return [
|
|
189
|
+
c, -s, 0, 0,
|
|
190
|
+
s, c, 0, 0,
|
|
191
|
+
0, 0, 1, 0,
|
|
192
|
+
0, 0, 0, 1
|
|
193
|
+
];
|
|
194
|
+
};
|
|
195
|
+
// Projection Matrices
|
|
196
|
+
export const perspective = (fovy, aspect, near, far) => {
|
|
197
|
+
if (fovy <= 0)
|
|
198
|
+
throw new Error('Field of view must be greater than 0');
|
|
199
|
+
if (aspect <= 0)
|
|
200
|
+
throw new Error('Aspect ratio must be greater than 0');
|
|
201
|
+
if (near <= 0)
|
|
202
|
+
throw new Error('Near plane must be greater than 0');
|
|
203
|
+
if (far <= near)
|
|
204
|
+
throw new Error('Far plane must be greater than near plane');
|
|
205
|
+
const f = 1.0 / Math.tan(fovy / 2);
|
|
206
|
+
const nf = near / (near - far);
|
|
207
|
+
return [
|
|
208
|
+
f / aspect, 0, 0, 0,
|
|
209
|
+
0, f, 0, 0,
|
|
210
|
+
0, 0, nf, -1,
|
|
211
|
+
0, 0, near * nf, 0
|
|
212
|
+
];
|
|
213
|
+
};
|
|
214
|
+
export const orthographic = (left, right, bottom, top, near, far) => {
|
|
215
|
+
const lr = 1 / (left - right);
|
|
216
|
+
const bt = 1 / (bottom - top);
|
|
217
|
+
const nf = 1 / (near - far);
|
|
218
|
+
return [
|
|
219
|
+
-2 * lr, 0, 0, 0,
|
|
220
|
+
0, -2 * bt, 0, 0,
|
|
221
|
+
0, 0, 2 * nf, 0,
|
|
222
|
+
(left + right) * lr, (bottom + top) * bt, (far + near) * nf, 1
|
|
223
|
+
];
|
|
224
|
+
};
|
|
225
|
+
// View Matrix
|
|
226
|
+
export const lookAt = (eye, center, up) => {
|
|
227
|
+
// Validate inputs
|
|
228
|
+
if (Vec3.length(up) === 0)
|
|
229
|
+
throw new Error('Up vector cannot be zero');
|
|
230
|
+
const forward = Vec3.subtract(center, eye);
|
|
231
|
+
if (Vec3.length(forward) === 0)
|
|
232
|
+
throw new Error('Eye and center cannot be the same position');
|
|
233
|
+
const f = Vec3.normalize(forward);
|
|
234
|
+
const s = Vec3.normalize(Vec3.cross(f, up));
|
|
235
|
+
// Check if up vector is parallel to view direction
|
|
236
|
+
if (Vec3.length(s) === 0)
|
|
237
|
+
throw new Error('Up vector cannot be parallel to view direction');
|
|
238
|
+
const u = Vec3.normalize(Vec3.cross(s, f));
|
|
239
|
+
return [
|
|
240
|
+
s[0], u[0], -f[0], 0,
|
|
241
|
+
s[1], u[1], -f[1], 0,
|
|
242
|
+
s[2], u[2], -f[2], 0,
|
|
243
|
+
-Vec3.dot(s, eye), -Vec3.dot(u, eye), Vec3.dot(f, eye), 1
|
|
244
|
+
];
|
|
245
|
+
};
|
|
246
|
+
//# sourceMappingURL=mat4x4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mat4x4.js","sourceRoot":"","sources":["../../../src/math/mat4x4/mat4x4.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAEX,OAAO,EAAE,SAAS,EAAsB,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAQ,MAAM,aAAa,CAAC;AAEzC,MAAM,CAAC,MAAM,MAAM,GAAG;IAClB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,SAAS;IAChB,QAAQ,EAAE,EAAE;IACZ,QAAQ,EAAE,EAAE;IACZ,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,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
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.*/
|
|
22
|
+
export * from "./pick-from-tables.js";
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/math/picking/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAGX,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Table } from "../../table/index.js";
|
|
2
|
+
import { Aabb } from "../index.js";
|
|
3
|
+
import { Line3 } from "../index.js";
|
|
4
|
+
import { Entity } from "../../ecs/index.js";
|
|
5
|
+
import { PickResult } from "./pick-result.js";
|
|
6
|
+
/**
|
|
7
|
+
* Picks the closest intersecting row from a table.
|
|
8
|
+
* @returns The entity id and picked position, or null if no entity is found.
|
|
9
|
+
*/
|
|
10
|
+
export declare function pickFromTables<T extends Table<{
|
|
11
|
+
id: Entity;
|
|
12
|
+
boundingBox: Aabb;
|
|
13
|
+
}>>(options: {
|
|
14
|
+
tables: readonly T[];
|
|
15
|
+
line: Line3;
|
|
16
|
+
radius?: number;
|
|
17
|
+
predicate?: (table: T, row: number) => boolean;
|
|
18
|
+
}): PickResult | null;
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/*MIT License
|
|
2
|
+
|
|
3
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.*/
|
|
22
|
+
import { Aabb } from "../index.js";
|
|
23
|
+
import { Line3 } from "../index.js";
|
|
24
|
+
import { Vec3 } from "../index.js";
|
|
25
|
+
/**
|
|
26
|
+
* Determines which face of a cube was hit based on the intersection point
|
|
27
|
+
* @param position World position of the intersection
|
|
28
|
+
* @param aabb Bounding box of the cube
|
|
29
|
+
* @returns Face index: 0=POS_Z, 1=POS_X, 2=NEG_Z, 3=NEG_X, 4=POS_Y, 5=NEG_Y
|
|
30
|
+
*/
|
|
31
|
+
function determineFaceFromPosition(position, aabb) {
|
|
32
|
+
const aabbCenter = Aabb.center(aabb);
|
|
33
|
+
const localPos = [
|
|
34
|
+
position[0] - aabbCenter[0],
|
|
35
|
+
position[1] - aabbCenter[1],
|
|
36
|
+
position[2] - aabbCenter[2]
|
|
37
|
+
];
|
|
38
|
+
// Find the face with the largest absolute coordinate (closest to cube surface)
|
|
39
|
+
const absX = Math.abs(localPos[0]);
|
|
40
|
+
const absY = Math.abs(localPos[1]);
|
|
41
|
+
const absZ = Math.abs(localPos[2]);
|
|
42
|
+
if (absX >= absY && absX >= absZ) {
|
|
43
|
+
// X-axis face (NEG_X or POS_X)
|
|
44
|
+
return localPos[0] > 0 ? 1 : 3; // 1=POS_X, 3=NEG_X
|
|
45
|
+
}
|
|
46
|
+
else if (absY >= absZ) {
|
|
47
|
+
// Y-axis face (NEG_Y or POS_Y)
|
|
48
|
+
return localPos[1] > 0 ? 4 : 5; // 4=POS_Y, 5=NEG_Y
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
// Z-axis face (NEG_Z or POS_Z)
|
|
52
|
+
return localPos[2] > 0 ? 0 : 2; // 0=POS_Z, 2=NEG_Z
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
function getIntersectingEntities(options) {
|
|
56
|
+
const { tables, line, radius = 0, predicate } = options;
|
|
57
|
+
const rows = new Map();
|
|
58
|
+
for (const table of tables) {
|
|
59
|
+
for (let row = 0; row < table.rowCount; row++) {
|
|
60
|
+
const boundingBox = table.columns.boundingBox.get(row);
|
|
61
|
+
if (Aabb.lineIntersection(boundingBox, line, radius) !== -1 && (predicate?.(table, row) ?? true)) {
|
|
62
|
+
rows.set(table.columns.id.get(row), boundingBox);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return rows;
|
|
67
|
+
}
|
|
68
|
+
function getClosestEntityToPoint(rows, point) {
|
|
69
|
+
let closestRow = -1;
|
|
70
|
+
let closestDistanceSquared = Infinity;
|
|
71
|
+
let closestAabb = null;
|
|
72
|
+
for (const [row, aabb] of rows) {
|
|
73
|
+
const distSquared = Vec3.distanceSquared(point, Aabb.center(aabb));
|
|
74
|
+
if (distSquared < closestDistanceSquared) {
|
|
75
|
+
closestDistanceSquared = distSquared;
|
|
76
|
+
closestRow = row;
|
|
77
|
+
closestAabb = aabb;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
if (closestRow !== -1 && closestAabb) {
|
|
81
|
+
// For direct intersection, use the intersection point if possible
|
|
82
|
+
// We'll use the intersection alpha from Aabb.lineIntersection
|
|
83
|
+
// If the line starts inside, alpha=0, so position is line.a
|
|
84
|
+
// Otherwise, Line3.interpolate at alpha
|
|
85
|
+
return {
|
|
86
|
+
entity: closestRow,
|
|
87
|
+
position: point,
|
|
88
|
+
face: determineFaceFromPosition(point, closestAabb),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
function getClosestEntityToLine(rows, line) {
|
|
94
|
+
let closestEntity = null;
|
|
95
|
+
let closestDistanceSquared = Infinity;
|
|
96
|
+
let closestAlpha = Infinity;
|
|
97
|
+
let pickedPosition = null;
|
|
98
|
+
for (const [id, aabb] of rows) {
|
|
99
|
+
const aabbCenter = Aabb.center(aabb);
|
|
100
|
+
const alpha = Line3.closestPointOnLine(line, aabbCenter);
|
|
101
|
+
const closestPointOnLineSegment = Line3.interpolate(line, alpha);
|
|
102
|
+
const distSquared = Vec3.distanceSquared(aabbCenter, closestPointOnLineSegment);
|
|
103
|
+
if (distSquared < closestDistanceSquared ||
|
|
104
|
+
(distSquared === closestDistanceSquared && alpha < closestAlpha)) {
|
|
105
|
+
closestDistanceSquared = distSquared;
|
|
106
|
+
closestAlpha = alpha;
|
|
107
|
+
closestEntity = id;
|
|
108
|
+
pickedPosition = closestPointOnLineSegment;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
if (closestEntity !== null && pickedPosition) {
|
|
112
|
+
return {
|
|
113
|
+
entity: closestEntity,
|
|
114
|
+
position: pickedPosition,
|
|
115
|
+
face: determineFaceFromPosition(pickedPosition, rows.get(closestEntity)),
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
return null;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Picks the closest intersecting row from a table.
|
|
122
|
+
* @returns The entity id and picked position, or null if no entity is found.
|
|
123
|
+
*/
|
|
124
|
+
export function pickFromTables(options) {
|
|
125
|
+
const { tables, line, radius = 0, predicate } = options;
|
|
126
|
+
let rows = getIntersectingEntities({ tables, line, radius: 0, predicate });
|
|
127
|
+
if (rows.size > 0) {
|
|
128
|
+
// For direct intersection, find the alpha for the closest intersecting entity
|
|
129
|
+
let best = null;
|
|
130
|
+
for (const [id, aabb] of rows) {
|
|
131
|
+
const alpha = Aabb.lineIntersection(aabb, line, 0);
|
|
132
|
+
if (alpha !== -1 && (best === null || alpha < best.alpha)) {
|
|
133
|
+
best = { id, alpha };
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
if (best) {
|
|
137
|
+
return {
|
|
138
|
+
entity: best.id,
|
|
139
|
+
position: Line3.interpolate(line, best.alpha),
|
|
140
|
+
face: determineFaceFromPosition(Line3.interpolate(line, best.alpha), rows.get(best.id)),
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
// fallback (should not happen):
|
|
144
|
+
return getClosestEntityToPoint(rows, line.a);
|
|
145
|
+
}
|
|
146
|
+
else if (radius > 0) {
|
|
147
|
+
rows = getIntersectingEntities({ tables, line, radius, predicate });
|
|
148
|
+
if (rows.size > 0) {
|
|
149
|
+
return getClosestEntityToLine(rows, line);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
return null;
|
|
153
|
+
}
|
|
154
|
+
//# sourceMappingURL=pick-from-tables.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pick-from-tables.js","sourceRoot":"","sources":["../../../src/math/picking/pick-from-tables.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAIX,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAInC;;;;;GAKG;AACH,SAAS,yBAAyB,CAAC,QAAc,EAAE,IAAU;IACzD,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACrC,MAAM,QAAQ,GAAG;QACb,QAAQ,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;QAC3B,QAAQ,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;QAC3B,QAAQ,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;KAC9B,CAAC;IAEF,+EAA+E;IAC/E,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IACnC,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IACnC,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IAEnC,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QAC/B,+BAA+B;QAC/B,OAAO,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CA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I,KAAK,IAAI,IAAI,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;gBACxD,IAAI,GAAG,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC;YACzB,CAAC;QACL,CAAC;QACD,IAAI,IAAI,EAAE,CAAC;YACP,OAAO;gBACH,MAAM,EAAE,IAAI,CAAC,EAAE;gBACf,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC;gBAC7C,IAAI,EAAE,yBAAyB,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAE,CAAC;aAC3F,CAAC;QACN,CAAC;QACD,gCAAgC;QAChC,OAAO,uBAAuB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IACjD,CAAC;SAAM,IAAI,MAAM,GAAG,CAAC,EAAE,CAAC;QACpB,IAAI,GAAG,uBAAuB,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;QACpE,IAAI,IAAI,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC;YAChB,OAAO,sBAAsB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAC9C,CAAC;IACL,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC"}
|
|
@@ -20,4 +20,4 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.*/
|
|
22
22
|
export {};
|
|
23
|
-
//# sourceMappingURL=
|
|
23
|
+
//# sourceMappingURL=pick-result.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pick-result.js","sourceRoot":"","sources":["../../../src/math/picking/pick-result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { FromSchema } from "../../schema/index.js";
|
|
2
|
+
import { Vec3, Mat4x4 } from "../index.js";
|
|
3
|
+
export declare const schema: {
|
|
4
|
+
readonly type: "array";
|
|
5
|
+
readonly items: {
|
|
6
|
+
readonly type: "number";
|
|
7
|
+
readonly precision: 1;
|
|
8
|
+
readonly default: number;
|
|
9
|
+
};
|
|
10
|
+
readonly minItems: 4;
|
|
11
|
+
readonly maxItems: 4;
|
|
12
|
+
readonly default: readonly [0, 0, 0, 1];
|
|
13
|
+
};
|
|
14
|
+
export type Type = FromSchema<typeof schema>;
|
|
15
|
+
type Quat = Type;
|
|
16
|
+
export declare const layout: import("../../typed-buffer/index.js").StructLayout;
|
|
17
|
+
export declare const add: ([x1, y1, z1, w1]: Quat, [x2, y2, z2, w2]: Quat) => Quat;
|
|
18
|
+
export declare const subtract: ([x1, y1, z1, w1]: Quat, [x2, y2, z2, w2]: Quat) => Quat;
|
|
19
|
+
export declare const scale: ([x, y, z, w]: Quat, s: number) => Quat;
|
|
20
|
+
export declare const negate: ([x, y, z, w]: Quat) => Quat;
|
|
21
|
+
export declare const conjugate: ([x, y, z, w]: Quat) => Quat;
|
|
22
|
+
export declare const multiply: ([x1, y1, z1, w1]: Quat, [x2, y2, z2, w2]: Quat) => Quat;
|
|
23
|
+
export declare const length: ([x, y, z, w]: Quat) => number;
|
|
24
|
+
export declare const lengthSquared: ([x, y, z, w]: Quat) => number;
|
|
25
|
+
export declare const normalize: (q: Quat) => Quat;
|
|
26
|
+
export declare const dot: ([x1, y1, z1, w1]: Quat, [x2, y2, z2, w2]: Quat) => number;
|
|
27
|
+
export declare const distance: (a: Quat, b: Quat) => number;
|
|
28
|
+
export declare const fromAxisAngle: (axis: Vec3, angle: number) => Quat;
|
|
29
|
+
export declare const toAxisAngle: ([x, y, z, w]: Quat) => {
|
|
30
|
+
axis: Vec3;
|
|
31
|
+
angle: number;
|
|
32
|
+
};
|
|
33
|
+
export declare const fromEuler: (x: number, y: number, z: number) => Quat;
|
|
34
|
+
export declare const toEuler: ([x, y, z, w]: Quat) => Vec3;
|
|
35
|
+
export declare const rotateVec3: ([x, y, z, w]: Quat, v: Vec3) => Vec3;
|
|
36
|
+
export declare const slerp: (q1: Quat, q2: Quat, t: number) => Quat;
|
|
37
|
+
export declare const lerp: (q1: Quat, q2: Quat, t: number) => Quat;
|
|
38
|
+
export declare const toMat4: ([x, y, z, w]: Quat) => Mat4x4;
|
|
39
|
+
export declare const identity: () => Quat;
|
|
40
|
+
export declare const inverse: (q: Quat) => Quat;
|
|
41
|
+
export declare const lookAt: (forward: Vec3, up: Vec3) => Quat;
|
|
42
|
+
export {};
|