@adobe/data 0.7.3 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blob/blob-handle.d.ts +2 -2
- package/dist/blob/blob-meta.d.ts +2 -2
- package/dist/cache/blob-store.d.ts +2 -2
- package/dist/cache/data-cache.d.ts +1 -1
- package/dist/cache/functions/memoize.d.ts +1 -3
- package/dist/cache/functions/memoize.js +1 -3
- package/dist/cache/functions/memoize.js.map +1 -1
- package/dist/cache/managed-array.d.ts +2 -2
- package/dist/cache/managed-array.js.map +1 -1
- package/dist/cache/memory-allocator.d.ts +1 -1
- package/dist/cache/memory-allocator.js +2 -2
- package/dist/cache/memory-allocator.js.map +1 -1
- package/dist/ecs/archetype/create-archetype.d.ts +2 -2
- package/dist/ecs/archetype/create-archetype.js.map +1 -1
- package/dist/ecs/archetype/create-archetype.test.js +9 -9
- package/dist/ecs/archetype/create-archetype.test.js.map +1 -1
- package/dist/ecs/archetype/delete-row.test.js +4 -4
- package/dist/ecs/archetype/delete-row.test.js.map +1 -1
- package/dist/ecs/component-schemas.d.ts +1 -1
- package/dist/ecs/database/create-database.test.js +136 -6
- package/dist/ecs/database/create-database.test.js.map +1 -1
- package/dist/ecs/database/database-schema/create-database-schema.d.ts +1 -1
- package/dist/ecs/database/database-schema/database-schema.d.ts +1 -1
- package/dist/ecs/database/database.d.ts +2 -1
- package/dist/ecs/database/index.d.ts +1 -1
- package/dist/ecs/database/index.js +0 -1
- package/dist/ecs/database/index.js.map +1 -1
- package/dist/ecs/database/observe-dependent-value.js +3 -3
- package/dist/ecs/database/observe-dependent-value.js.map +1 -1
- package/dist/ecs/database/observe-select-entities.d.ts +2 -2
- package/dist/ecs/database/observe-select-entities.js +2 -2
- package/dist/ecs/database/observe-select-entities.js.map +1 -1
- package/dist/ecs/database/observe-select-entities.performance.test.js +6 -6
- package/dist/ecs/database/observe-select-entities.performance.test.js.map +1 -1
- package/dist/ecs/database/observe-select-entities.test.js +6 -6
- package/dist/ecs/database/observe-select-entities.test.js.map +1 -1
- package/dist/ecs/database/observed/create-observed-database.js +10 -2
- package/dist/ecs/database/observed/create-observed-database.js.map +1 -1
- package/dist/ecs/database/reconciling/create-reconciling-database.d.ts +8 -1
- package/dist/ecs/database/reconciling/create-reconciling-database.js +50 -19
- package/dist/ecs/database/reconciling/create-reconciling-database.js.map +1 -1
- package/dist/ecs/database/reconciling/create-reconciling-database.test.js +297 -0
- package/dist/ecs/database/reconciling/create-reconciling-database.test.js.map +1 -1
- package/dist/ecs/database/transactional-store/coalesce-transactions.d.ts +5 -1
- package/dist/ecs/database/transactional-store/coalesce-transactions.js +17 -28
- package/dist/ecs/database/transactional-store/coalesce-transactions.js.map +1 -1
- package/dist/ecs/database/transactional-store/coalesce-transactions.test.js +84 -7
- package/dist/ecs/database/transactional-store/coalesce-transactions.test.js.map +1 -1
- package/dist/ecs/database/transactional-store/create-transactional-store.js +7 -2
- package/dist/ecs/database/transactional-store/create-transactional-store.js.map +1 -1
- package/dist/ecs/database/transactional-store/create-transactional-store.test.js +11 -9
- package/dist/ecs/database/transactional-store/create-transactional-store.test.js.map +1 -1
- package/dist/ecs/entity-location-table/create-entity-location-table.js +13 -1
- package/dist/ecs/entity-location-table/create-entity-location-table.js.map +1 -1
- package/dist/ecs/entity-location-table/create-entity-location-table.test.js +1 -2
- package/dist/ecs/entity-location-table/create-entity-location-table.test.js.map +1 -1
- package/dist/ecs/entity-location-table/entity-location.d.ts +2 -2
- package/dist/ecs/entity-location-table/entity-location.js +3 -3
- package/dist/ecs/entity-location-table/entity-location.js.map +1 -1
- package/dist/ecs/entity.d.ts +2 -2
- package/dist/ecs/entity.js +2 -2
- package/dist/ecs/entity.js.map +1 -1
- package/dist/ecs/index.d.ts +5 -2
- package/dist/ecs/index.js +3 -2
- package/dist/ecs/index.js.map +1 -1
- package/dist/ecs/resource-schemas.d.ts +1 -1
- package/dist/ecs/store/core/core.d.ts +14 -13
- package/dist/ecs/store/core/create-core.d.ts +2 -2
- package/dist/ecs/store/core/create-core.js +19 -13
- package/dist/ecs/store/core/create-core.js.map +1 -1
- package/dist/ecs/store/core/create-core.test.js +54 -6
- package/dist/ecs/store/core/create-core.test.js.map +1 -1
- package/dist/ecs/store/core/select-entities.d.ts +2 -1
- package/dist/ecs/store/core/select-entities.js.map +1 -1
- package/dist/ecs/store/core/select-entities.test.js +3 -3
- package/dist/ecs/store/core/select-entities.test.js.map +1 -1
- package/dist/ecs/store/create-store.d.ts +2 -2
- package/dist/ecs/store/create-store.js.map +1 -1
- package/dist/ecs/store/create-store.test.js +8 -8
- package/dist/ecs/store/create-store.test.js.map +1 -1
- package/dist/ecs/store/index.d.ts +2 -0
- package/dist/ecs/store/store.d.ts +10 -9
- package/dist/ecs/store/store.js.map +1 -1
- package/dist/ecs/undo-redo-service/create-undo-redo-service.js +5 -7
- package/dist/ecs/undo-redo-service/create-undo-redo-service.js.map +1 -1
- package/dist/ecs/undo-redo-service/create-undo-redo-service.test.js +27 -27
- package/dist/ecs/undo-redo-service/create-undo-redo-service.test.js.map +1 -1
- package/dist/ecs/undo-redo-service/undo-redo-service.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/is-data.d.ts +3 -4
- package/dist/lit/hooks/use-drag-observe.d.ts +2 -1
- package/dist/lit/hooks/use-drag-observe.js +2 -2
- package/dist/lit/hooks/use-drag-observe.js.map +1 -1
- package/dist/lit/hooks/use-drag-transaction.js +3 -3
- package/dist/lit/hooks/use-drag-transaction.js.map +1 -1
- package/dist/lit/hooks/use-draggable.d.ts +1 -1
- package/dist/lit/hooks/use-draggable.js +1 -1
- package/dist/lit/hooks/use-draggable.js.map +1 -1
- package/dist/lit/hooks/use-observable-values.d.ts +1 -2
- package/dist/lit/hooks/use-observable-values.js +2 -2
- package/dist/lit/hooks/use-observable-values.js.map +1 -1
- package/dist/lit/index.d.ts +1 -0
- package/dist/math/aabb/center.d.ts +3 -0
- package/dist/math/aabb/center.js +6 -0
- package/dist/math/aabb/center.js.map +1 -0
- package/dist/math/aabb/face/aabb-face.test.d.ts +1 -0
- package/dist/math/aabb/face/aabb-face.test.js +55 -0
- package/dist/math/aabb/face/aabb-face.test.js.map +1 -0
- package/dist/math/aabb/face/functions.d.ts +47 -0
- package/dist/math/aabb/face/functions.js +148 -0
- package/dist/math/aabb/face/functions.js.map +1 -0
- package/dist/math/aabb/face/index.d.ts +4 -0
- package/dist/math/aabb/face/index.js +23 -0
- package/dist/math/aabb/face/index.js.map +1 -0
- package/dist/math/aabb/face/public.d.ts +2 -0
- package/dist/math/aabb/face/public.js +24 -0
- package/dist/math/aabb/face/public.js.map +1 -0
- package/dist/math/aabb/face/schema.d.ts +5 -0
- package/dist/math/aabb/face/schema.js +27 -0
- package/dist/math/aabb/face/schema.js.map +1 -0
- package/dist/math/aabb/index.d.ts +4 -0
- package/dist/math/aabb/index.js +23 -0
- package/dist/math/aabb/index.js.map +1 -0
- package/dist/math/aabb/layout.d.ts +1 -0
- package/dist/math/aabb/layout.js +25 -0
- package/dist/math/aabb/layout.js.map +1 -0
- package/dist/math/aabb/line-intersection.d.ts +10 -0
- package/dist/math/aabb/line-intersection.js +42 -0
- package/dist/math/aabb/line-intersection.js.map +1 -0
- package/dist/math/aabb/line-intersection.test.js +1 -1
- package/dist/math/aabb/line-intersection.test.js.map +1 -1
- package/dist/math/aabb/public.d.ts +6 -0
- package/dist/math/aabb/public.js +28 -0
- package/dist/math/aabb/public.js.map +1 -0
- package/dist/math/aabb/schema.d.ts +33 -0
- package/dist/math/aabb/schema.js +36 -0
- package/dist/math/aabb/schema.js.map +1 -0
- package/dist/math/aabb/unit.d.ts +5 -0
- package/dist/math/aabb/unit.js +8 -0
- package/dist/math/aabb/unit.js.map +1 -0
- package/dist/math/f32/index.d.ts +4 -0
- package/dist/math/f32/index.js +23 -0
- package/dist/math/f32/index.js.map +1 -0
- package/dist/math/f32/public.d.ts +1 -0
- package/dist/math/f32/public.js +23 -0
- package/dist/math/f32/public.js.map +1 -0
- package/dist/math/f32/schema.d.ts +5 -0
- package/dist/math/f32/schema.js +27 -0
- package/dist/math/f32/schema.js.map +1 -0
- package/dist/math/f64/index.d.ts +4 -0
- package/dist/math/f64/index.js +2 -0
- package/dist/math/f64/index.js.map +1 -0
- package/dist/math/f64/public.d.ts +1 -0
- package/dist/math/f64/public.js +23 -0
- package/dist/math/f64/public.js.map +1 -0
- package/dist/math/f64/schema.d.ts +5 -0
- package/dist/math/f64/schema.js +6 -0
- package/dist/math/f64/schema.js.map +1 -0
- package/dist/math/i32/index.d.ts +4 -0
- package/dist/math/i32/index.js +23 -0
- package/dist/math/i32/index.js.map +1 -0
- package/dist/math/i32/public.d.ts +1 -0
- package/dist/math/i32/public.js +23 -0
- package/dist/math/i32/public.js.map +1 -0
- package/dist/math/i32/schema.d.ts +6 -0
- package/dist/math/i32/schema.js +28 -0
- package/dist/math/i32/schema.js.map +1 -0
- package/dist/math/index.d.ts +14 -13
- package/dist/math/index.js +14 -13
- package/dist/math/index.js.map +1 -1
- package/dist/math/line2/functions.d.ts +5 -0
- package/dist/math/line2/functions.js +61 -0
- package/dist/math/line2/functions.js.map +1 -0
- package/dist/math/line2/index.d.ts +4 -0
- package/dist/math/line2/index.js +23 -0
- package/dist/math/line2/index.js.map +1 -0
- package/dist/math/line2/layout.d.ts +1 -0
- package/dist/math/line2/layout.js +25 -0
- package/dist/math/line2/layout.js.map +1 -0
- package/dist/math/line2/public.d.ts +3 -0
- package/dist/math/line2/public.js +25 -0
- package/dist/math/line2/public.js.map +1 -0
- package/dist/math/line2/schema.d.ts +33 -0
- package/dist/math/line2/schema.js +37 -0
- package/dist/math/line2/schema.js.map +1 -0
- package/dist/math/line3/functions.d.ts +17 -0
- package/dist/math/line3/functions.js +70 -0
- package/dist/math/line3/functions.js.map +1 -0
- package/dist/math/line3/index.d.ts +4 -0
- package/dist/math/line3/index.js +23 -0
- package/dist/math/line3/index.js.map +1 -0
- package/dist/math/line3/layout.d.ts +1 -0
- package/dist/math/line3/layout.js +25 -0
- package/dist/math/line3/layout.js.map +1 -0
- package/dist/math/line3/public.d.ts +3 -0
- package/dist/math/line3/public.js +25 -0
- package/dist/math/line3/public.js.map +1 -0
- package/dist/math/line3/schema.d.ts +33 -0
- package/dist/math/line3/schema.js +37 -0
- package/dist/math/line3/schema.js.map +1 -0
- package/dist/math/mat4x4/functions.d.ts +23 -0
- package/dist/math/mat4x4/functions.js +236 -0
- package/dist/math/mat4x4/functions.js.map +1 -0
- package/dist/math/mat4x4/index.d.ts +26 -0
- package/dist/math/mat4x4/index.js +45 -0
- package/dist/math/mat4x4/index.js.map +1 -0
- package/dist/math/mat4x4/layout.d.ts +1 -0
- package/dist/math/mat4x4/layout.js +25 -0
- package/dist/math/mat4x4/layout.js.map +1 -0
- package/dist/math/mat4x4/public.d.ts +3 -0
- package/dist/math/mat4x4/public.js +25 -0
- package/dist/math/mat4x4/public.js.map +1 -0
- package/dist/math/mat4x4/schema.d.ts +11 -0
- package/dist/math/mat4x4/schema.js +30 -0
- package/dist/math/mat4x4/schema.js.map +1 -0
- package/dist/math/plane/functions.d.ts +16 -0
- package/dist/math/plane/functions.js +55 -0
- package/dist/math/plane/functions.js.map +1 -0
- package/dist/math/plane/index.d.ts +4 -0
- package/dist/math/plane/index.js +23 -0
- package/dist/math/plane/index.js.map +1 -0
- package/dist/math/plane/layout.d.ts +1 -0
- package/dist/math/plane/layout.js +25 -0
- package/dist/math/plane/layout.js.map +1 -0
- package/dist/math/plane/public.d.ts +3 -0
- package/dist/math/plane/public.js +25 -0
- package/dist/math/plane/public.js.map +1 -0
- package/dist/math/plane/schema.d.ts +24 -0
- package/dist/math/plane/schema.js +34 -0
- package/dist/math/plane/schema.js.map +1 -0
- package/dist/math/quat/constants/functions.d.ts +43 -0
- package/dist/math/quat/constants/functions.js +258 -0
- package/dist/math/quat/constants/functions.js.map +1 -0
- package/dist/math/quat/functions.d.ts +43 -0
- package/dist/math/quat/functions.js +258 -0
- package/dist/math/quat/functions.js.map +1 -0
- package/dist/math/quat/index.d.ts +4 -0
- package/dist/math/quat/index.js +23 -0
- package/dist/math/quat/index.js.map +1 -0
- package/dist/math/quat/layout.d.ts +1 -0
- package/dist/math/quat/layout.js +25 -0
- package/dist/math/quat/layout.js.map +1 -0
- package/dist/math/quat/public.d.ts +3 -0
- package/dist/math/quat/public.js +25 -0
- package/dist/math/quat/public.js.map +1 -0
- package/dist/math/quat/schema.d.ts +11 -0
- package/dist/math/quat/schema.js +30 -0
- package/dist/math/quat/schema.js.map +1 -0
- package/dist/math/u32/index.d.ts +4 -0
- package/dist/math/u32/index.js +23 -0
- package/dist/math/u32/index.js.map +1 -0
- package/dist/math/u32/public.d.ts +1 -0
- package/dist/math/u32/public.js +23 -0
- package/dist/math/u32/public.js.map +1 -0
- package/dist/math/u32/schema.d.ts +6 -0
- package/dist/math/u32/schema.js +28 -0
- package/dist/math/u32/schema.js.map +1 -0
- package/dist/math/vec2/functions.d.ts +48 -0
- package/dist/math/vec2/functions.js +104 -0
- package/dist/math/vec2/functions.js.map +1 -0
- package/dist/math/vec2/index.d.ts +4 -0
- package/dist/math/vec2/index.js +23 -0
- package/dist/math/vec2/index.js.map +1 -0
- package/dist/math/vec2/layout.d.ts +1 -0
- package/dist/math/vec2/layout.js +25 -0
- package/dist/math/vec2/layout.js.map +1 -0
- package/dist/math/vec2/public.d.ts +3 -0
- package/dist/math/vec2/public.js +25 -0
- package/dist/math/vec2/public.js.map +1 -0
- package/dist/math/vec2/schema.d.ts +11 -0
- package/dist/math/vec2/schema.js +30 -0
- package/dist/math/vec2/schema.js.map +1 -0
- package/dist/math/vec3/functions.d.ts +59 -0
- package/dist/math/vec3/functions.js +159 -0
- package/dist/math/vec3/functions.js.map +1 -0
- package/dist/math/vec3/index.d.ts +4 -0
- package/dist/math/vec3/index.js +23 -0
- package/dist/math/vec3/index.js.map +1 -0
- package/dist/math/vec3/layout.d.ts +1 -0
- package/dist/math/vec3/layout.js +25 -0
- package/dist/math/vec3/layout.js.map +1 -0
- package/dist/math/vec3/public.d.ts +3 -0
- package/dist/math/vec3/public.js +25 -0
- package/dist/math/vec3/public.js.map +1 -0
- package/dist/math/vec3/schema.d.ts +11 -0
- package/dist/math/vec3/schema.js +30 -0
- package/dist/math/vec3/schema.js.map +1 -0
- package/dist/math/vec4/functions.d.ts +49 -0
- package/dist/math/vec4/functions.js +150 -0
- package/dist/math/vec4/functions.js.map +1 -0
- package/dist/math/vec4/index.d.ts +4 -0
- package/dist/math/vec4/index.js +23 -0
- package/dist/math/vec4/index.js.map +1 -0
- package/dist/math/vec4/layout.d.ts +1 -0
- package/dist/math/vec4/layout.js +25 -0
- package/dist/math/vec4/layout.js.map +1 -0
- package/dist/math/vec4/public.d.ts +3 -0
- package/dist/math/vec4/public.js +25 -0
- package/dist/math/vec4/public.js.map +1 -0
- package/dist/math/vec4/schema.d.ts +11 -0
- package/dist/math/vec4/schema.js +30 -0
- package/dist/math/vec4/schema.js.map +1 -0
- package/dist/mutable.d.ts +3 -4
- package/dist/observe/create-event.d.ts +10 -0
- package/dist/observe/create-event.js +22 -0
- package/dist/observe/create-event.js.map +1 -0
- package/dist/observe/create-persisted-state.d.ts +1 -1
- package/dist/observe/create-persisted-state.js +2 -2
- package/dist/observe/create-persisted-state.js.map +1 -1
- package/dist/observe/create-query-state.d.ts +2 -3
- package/dist/observe/create-query-state.js +2 -2
- package/dist/observe/create-query-state.js.map +1 -1
- package/dist/observe/create-state.d.ts +7 -0
- package/dist/observe/create-state.js +27 -0
- package/dist/observe/create-state.js.map +1 -0
- package/dist/observe/from-array.d.ts +1 -1
- package/dist/observe/from-constant.d.ts +1 -1
- package/dist/observe/from-element-id.d.ts +1 -1
- package/dist/observe/from-element-properties-and-events.d.ts +1 -1
- package/dist/observe/from-element-property.d.ts +1 -1
- package/dist/observe/from-promise-with-error.d.ts +1 -1
- package/dist/observe/from-promise.d.ts +1 -1
- package/dist/observe/from-properties.d.ts +1 -1
- package/dist/observe/index.d.ts +16 -30
- package/dist/observe/index.js +1 -32
- package/dist/observe/index.js.map +1 -1
- package/dist/observe/observe.test.js +4 -4
- package/dist/observe/observe.test.js.map +1 -1
- package/dist/observe/public.d.ts +28 -0
- package/dist/observe/public.js +50 -0
- package/dist/observe/public.js.map +1 -0
- package/dist/observe/to-async-generator.d.ts +1 -1
- package/dist/observe/to-promise.d.ts +2 -2
- package/dist/observe/to-promise.js +1 -1
- package/dist/observe/to-properties.d.ts +1 -1
- package/dist/observe/with-async-map.d.ts +1 -1
- package/dist/observe/with-batch.d.ts +1 -1
- package/dist/observe/with-batch.test.js +5 -5
- package/dist/observe/with-batch.test.js.map +1 -1
- package/dist/observe/with-cache.d.ts +1 -1
- package/dist/observe/with-copy.d.ts +1 -1
- package/dist/observe/with-deduplicate-data.d.ts +1 -1
- package/dist/observe/with-deduplicate.d.ts +1 -1
- package/dist/observe/with-default.d.ts +1 -1
- package/dist/observe/with-filter.d.ts +1 -1
- package/dist/observe/with-lazy.d.ts +1 -1
- package/dist/observe/with-lazy.test.js +3 -3
- package/dist/observe/with-lazy.test.js.map +1 -1
- package/dist/observe/with-map-data.d.ts +1 -1
- package/dist/observe/with-map.d.ts +1 -1
- package/dist/observe/with-optional.d.ts +1 -1
- package/dist/observe/with-unwrap.d.ts +1 -1
- package/dist/old-ecs/action-ecs/action-ecs.js +2 -2
- package/dist/old-ecs/action-ecs/action-ecs.js.map +1 -1
- package/dist/old-ecs/action-ecs/action-ecs.test.js +3 -3
- package/dist/old-ecs/action-ecs/action-ecs.test.js.map +1 -1
- package/dist/old-ecs/action-ecs/action-types.d.ts +4 -4
- package/dist/old-ecs/core-ecs/core-ecs-serialization.test.js +3 -3
- package/dist/old-ecs/core-ecs/core-ecs-serialization.test.js.map +1 -1
- package/dist/old-ecs/core-ecs/core-ecs-types.d.ts +3 -3
- package/dist/old-ecs/core-ecs/core-ecs.js +2 -2
- package/dist/old-ecs/core-ecs/core-ecs.js.map +1 -1
- package/dist/old-ecs/core-ecs/core-ecs.test.js +2 -2
- package/dist/old-ecs/core-ecs/core-ecs.test.js.map +1 -1
- package/dist/old-ecs/ecs/ecs-types.d.ts +3 -3
- package/dist/old-ecs/ecs/ecs.test.js +3 -3
- package/dist/old-ecs/ecs/ecs.test.js.map +1 -1
- package/dist/old-ecs/entity.d.ts +2 -2
- package/dist/old-ecs/entity.js +2 -2
- package/dist/old-ecs/entity.js.map +1 -1
- package/dist/old-ecs/transaction-ecs/transaction-types.d.ts +4 -4
- package/dist/perftest/ecs-perf.js +11 -11
- package/dist/perftest/ecs-perf.js.map +1 -1
- package/dist/samples/todo/elements/todo-toolbar/todo-toolbar.js +3 -3
- package/dist/samples/todo/elements/todo-toolbar/todo-toolbar.js.map +1 -1
- package/dist/samples/todo/services/dependent-state-service/create-dependent-state-service.d.ts +3 -3
- package/dist/samples/todo/services/dependent-state-service/dependent-state/all-todos.d.ts +1 -1
- package/dist/samples/todo/services/dependent-state-service/dependent-state/complete-todos.d.ts +1 -1
- package/dist/samples/todo/services/dependent-state-service/dependent-state/incomplete-todos.d.ts +1 -1
- package/dist/samples/todo/services/state-service/create-todo-database.d.ts +2 -2
- package/dist/samples/todo/services/state-service/create-todo-store.d.ts +2 -2
- package/dist/samples/todo/services/state-service/create-todo-store.js +5 -4
- package/dist/samples/todo/services/state-service/create-todo-store.js.map +1 -1
- package/dist/schema/FromSchemas.d.ts +4 -0
- package/dist/schema/FromSchemas.js +2 -0
- package/dist/schema/FromSchemas.js.map +1 -0
- package/dist/schema/boolean/index.d.ts +4 -0
- package/dist/schema/boolean/index.js +23 -0
- package/dist/schema/boolean/index.js.map +1 -0
- package/dist/schema/boolean/public.d.ts +1 -0
- package/dist/schema/boolean/public.js +23 -0
- package/dist/schema/boolean/public.js.map +1 -0
- package/dist/schema/boolean/schema.d.ts +3 -0
- package/dist/schema/boolean/schema.js +4 -0
- package/dist/schema/boolean/schema.js.map +1 -0
- package/dist/schema/from-schemas.d.ts +5 -0
- package/dist/schema/from-schemas.js +2 -0
- package/dist/schema/from-schemas.js.map +1 -0
- package/dist/schema/index.d.ts +9 -8
- package/dist/schema/index.js +6 -7
- package/dist/schema/index.js.map +1 -1
- package/dist/schema/public.d.ts +4 -0
- package/dist/schema/public.js +26 -0
- package/dist/schema/public.js.map +1 -0
- package/dist/schema/schema copy.d.ts +147 -0
- package/dist/schema/schema copy.js +34 -0
- package/dist/schema/schema copy.js.map +1 -0
- package/dist/schema/schema.d.ts +2 -80
- package/dist/schema/schema.js +0 -10
- package/dist/schema/schema.js.map +1 -1
- package/dist/schema/time/index.d.ts +4 -0
- package/dist/schema/time/index.js +23 -0
- package/dist/schema/time/index.js.map +1 -0
- package/dist/schema/time/public.d.ts +1 -0
- package/dist/schema/time/public.js +23 -0
- package/dist/schema/time/public.js.map +1 -0
- package/dist/schema/time/schema.d.ts +5 -0
- package/dist/schema/time/schema.js +24 -0
- package/dist/schema/time/schema.js.map +1 -0
- package/dist/schema/to-type.d.ts +77 -0
- package/dist/schema/to-type.js +33 -0
- package/dist/schema/to-type.js.map +1 -0
- package/dist/schema/to-vertex-buffer-layout.d.ts +2 -2
- package/dist/schema/to-vertex-buffer-layout.js +28 -14
- package/dist/schema/to-vertex-buffer-layout.js.map +1 -1
- package/dist/schema/to-vertex-buffer-layout.test.js +18 -18
- package/dist/schema/to-vertex-buffer-layout.test.js.map +1 -1
- package/dist/schema/true/index.d.ts +4 -0
- package/dist/schema/true/index.js +23 -0
- package/dist/schema/true/index.js.map +1 -0
- package/dist/schema/true/public.d.ts +1 -0
- package/dist/schema/true/public.js +23 -0
- package/dist/schema/true/public.js.map +1 -0
- package/dist/schema/true/schema.d.ts +5 -0
- package/dist/schema/true/schema.js +2 -0
- package/dist/schema/true/schema.js.map +1 -0
- package/dist/schema/type.d.ts +76 -0
- package/dist/schema/type.js +33 -0
- package/dist/schema/type.js.map +1 -0
- package/dist/schema/validation/with-validation.d.ts +2 -2
- package/dist/schema/validation/with-validation.js.map +1 -1
- package/dist/schema/validation/with-validation.test.js.map +1 -1
- package/dist/service/add-observable-actions.d.ts +5 -5
- package/dist/service/add-observable-actions.js +2 -2
- package/dist/service/add-observable-actions.js.map +1 -1
- package/dist/service/index.d.ts +1 -1
- package/dist/service/index.js.map +1 -1
- package/dist/service/progressive-result.d.ts +2 -3
- package/dist/table/add-row.d.ts +2 -2
- package/dist/table/add-row.js +2 -2
- package/dist/table/create-table.d.ts +2 -2
- package/dist/table/create-table.js.map +1 -1
- package/dist/table/delete-row.d.ts +2 -2
- package/dist/table/delete-row.js +2 -2
- package/dist/table/row-index.d.ts +2 -2
- package/dist/table/row-index.js +2 -2
- package/dist/table/row-index.js.map +1 -1
- package/dist/table/table-compact.test.js +9 -9
- package/dist/table/table-compact.test.js.map +1 -1
- package/dist/table/update-row.d.ts +4 -3
- package/dist/table/update-row.js +4 -3
- package/dist/table/update-row.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/typed-buffer/create-array-buffer.d.ts +2 -2
- package/dist/typed-buffer/create-const-buffer.d.ts +1 -1
- package/dist/typed-buffer/create-number-buffer.d.ts +1 -1
- package/dist/typed-buffer/create-number-buffer.js +4 -4
- package/dist/typed-buffer/create-number-buffer.js.map +1 -1
- package/dist/typed-buffer/create-number-buffer.test.js +2 -2
- package/dist/typed-buffer/create-number-buffer.test.js.map +1 -1
- package/dist/typed-buffer/create-struct-buffer.d.ts +3 -3
- package/dist/typed-buffer/create-struct-buffer.js.map +1 -1
- package/dist/typed-buffer/create-struct-buffer.test.js +10 -10
- package/dist/typed-buffer/create-struct-buffer.test.js.map +1 -1
- package/dist/typed-buffer/create-typed-buffer.d.ts +3 -3
- package/dist/typed-buffer/create-typed-buffer.js.map +1 -1
- package/dist/typed-buffer/index.d.ts +1 -0
- package/dist/typed-buffer/structs/assert-struct.d.ts +1 -1
- package/dist/typed-buffer/structs/get-struct-layout.d.ts +1 -1
- package/dist/typed-buffer/structs/get-struct-layout.js +4 -4
- package/dist/typed-buffer/structs/get-struct-layout.js.map +1 -1
- package/dist/typed-buffer/structs/get-struct-layout.test.js +12 -12
- package/dist/typed-buffer/structs/get-struct-layout.test.js.map +1 -1
- package/dist/typed-buffer/structs/struct-layout.d.ts +1 -1
- package/dist/typed-buffer/typed-buffer.d.ts +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/types.d.ts +1 -2
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*MIT License
|
|
2
|
+
|
|
3
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.*/
|
|
22
|
+
export * as Line2 from "./public.js";
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/math/line2/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAOX,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const layout: import("../../typed-buffer/index.js").StructLayout;
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { getStructLayout } from "../../typed-buffer/index.js";
|
|
23
|
+
import { schema } from "./schema.js";
|
|
24
|
+
export const layout = getStructLayout(schema);
|
|
25
|
+
//# sourceMappingURL=layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../../src/math/line2/layout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAEX,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,CAAC,MAAM,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*MIT License
|
|
2
|
+
|
|
3
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.*/
|
|
22
|
+
export * from "./functions.js";
|
|
23
|
+
export * from "./layout.js";
|
|
24
|
+
export * from "./schema.js";
|
|
25
|
+
//# sourceMappingURL=public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.js","sourceRoot":"","sources":["../../../src/math/line2/public.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAEX,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const schema: {
|
|
2
|
+
readonly type: "object";
|
|
3
|
+
readonly properties: {
|
|
4
|
+
readonly a: {
|
|
5
|
+
readonly type: "array";
|
|
6
|
+
readonly items: {
|
|
7
|
+
readonly type: "number";
|
|
8
|
+
readonly precision: 1;
|
|
9
|
+
readonly default: number;
|
|
10
|
+
};
|
|
11
|
+
readonly minItems: 2;
|
|
12
|
+
readonly maxItems: 2;
|
|
13
|
+
readonly default: readonly [0, 0];
|
|
14
|
+
};
|
|
15
|
+
readonly b: {
|
|
16
|
+
readonly type: "array";
|
|
17
|
+
readonly items: {
|
|
18
|
+
readonly type: "number";
|
|
19
|
+
readonly precision: 1;
|
|
20
|
+
readonly default: number;
|
|
21
|
+
};
|
|
22
|
+
readonly minItems: 2;
|
|
23
|
+
readonly maxItems: 2;
|
|
24
|
+
readonly default: readonly [0, 0];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
readonly required: readonly ["a", "b"];
|
|
28
|
+
readonly additionalProperties: false;
|
|
29
|
+
readonly default: {
|
|
30
|
+
readonly a: readonly [0, 0];
|
|
31
|
+
readonly b: readonly [0, 0];
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
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 { Vec2 } from "../vec2/index.js";
|
|
23
|
+
const { schema: Vec2Schema } = Vec2;
|
|
24
|
+
export const schema = {
|
|
25
|
+
type: 'object',
|
|
26
|
+
properties: {
|
|
27
|
+
a: Vec2Schema,
|
|
28
|
+
b: Vec2Schema,
|
|
29
|
+
},
|
|
30
|
+
required: ['a', 'b'],
|
|
31
|
+
additionalProperties: false,
|
|
32
|
+
default: {
|
|
33
|
+
a: Vec2Schema.default,
|
|
34
|
+
b: Vec2Schema.default,
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/math/line2/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAGX,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;AAEpC,MAAM,CAAC,MAAM,MAAM,GAAG;IAClB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,CAAC,EAAE,UAAU;QACb,CAAC,EAAE,UAAU;KAChB;IACD,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;IACpB,oBAAoB,EAAE,KAAK;IAC3B,OAAO,EAAE;QACL,CAAC,EAAE,UAAU,CAAC,OAAO;QACrB,CAAC,EAAE,UAAU,CAAC,OAAO;KACxB;CACsB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Line3 } from "./index.js";
|
|
2
|
+
import type { Vec3 } from "../vec3/index.js";
|
|
3
|
+
export declare const interpolate: (line: Line3, alpha: number) => Vec3;
|
|
4
|
+
/**
|
|
5
|
+
* Calculates the alpha value (0-1) representing the closest point on a line to a given point.
|
|
6
|
+
*
|
|
7
|
+
* @param line - The line segment
|
|
8
|
+
* @param point - The point in 3D space
|
|
9
|
+
* @returns Alpha value, usually between 0 and 1, where 0 is line.a and 1 is line.b
|
|
10
|
+
*/
|
|
11
|
+
export declare const closestPointOnLine: (line: Line3, point: Vec3) => number;
|
|
12
|
+
export declare const subLine: (line: Line3, alpha: number, beta: number) => Line3;
|
|
13
|
+
/**
|
|
14
|
+
* Returns a unit vector pointing from line.a to line.b. If the line has zero length,
|
|
15
|
+
* returns the provided default direction (defaults to [0,0,1]).
|
|
16
|
+
*/
|
|
17
|
+
export declare const direction: (line: Line3) => Vec3;
|
|
@@ -0,0 +1,70 @@
|
|
|
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 { Vec3 as Vec3Namespace } from "../vec3/index.js";
|
|
23
|
+
// Line3 utility functions
|
|
24
|
+
export const interpolate = (line, alpha) => {
|
|
25
|
+
const a = line.a;
|
|
26
|
+
const b = line.b;
|
|
27
|
+
return [a[0] + alpha * (b[0] - a[0]), a[1] + alpha * (b[1] - a[1]), a[2] + alpha * (b[2] - a[2])];
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Calculates the alpha value (0-1) representing the closest point on a line to a given point.
|
|
31
|
+
*
|
|
32
|
+
* @param line - The line segment
|
|
33
|
+
* @param point - The point in 3D space
|
|
34
|
+
* @returns Alpha value, usually between 0 and 1, where 0 is line.a and 1 is line.b
|
|
35
|
+
*/
|
|
36
|
+
export const closestPointOnLine = (line, point) => {
|
|
37
|
+
const { a, b } = line;
|
|
38
|
+
// Calculate the direction vector of the line
|
|
39
|
+
const lineDirection = Vec3Namespace.subtract(b, a);
|
|
40
|
+
// Calculate the vector from line start to the point
|
|
41
|
+
const pointToStart = Vec3Namespace.subtract(point, a);
|
|
42
|
+
// Calculate the dot product to find the projection
|
|
43
|
+
const dotProduct = Vec3Namespace.dot(pointToStart, lineDirection);
|
|
44
|
+
const lineLengthSquared = Vec3Namespace.dot(lineDirection, lineDirection);
|
|
45
|
+
// Avoid division by zero
|
|
46
|
+
if (lineLengthSquared === 0) {
|
|
47
|
+
return 0;
|
|
48
|
+
}
|
|
49
|
+
// Calculate alpha (projection parameter)
|
|
50
|
+
const alpha = dotProduct / lineLengthSquared;
|
|
51
|
+
// Do not clamp alpha, it can be outside of [0, 1]
|
|
52
|
+
// User can clamp after if they want to.
|
|
53
|
+
return alpha;
|
|
54
|
+
};
|
|
55
|
+
export const subLine = (line, alpha, beta) => {
|
|
56
|
+
return {
|
|
57
|
+
a: interpolate(line, alpha),
|
|
58
|
+
b: interpolate(line, beta),
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Returns a unit vector pointing from line.a to line.b. If the line has zero length,
|
|
63
|
+
* returns the provided default direction (defaults to [0,0,1]).
|
|
64
|
+
*/
|
|
65
|
+
export const direction = (line) => {
|
|
66
|
+
const delta = Vec3Namespace.subtract(line.b, line.a);
|
|
67
|
+
const len = Vec3Namespace.length(delta);
|
|
68
|
+
return len === 0 ? [0, 0, 1] : Vec3Namespace.normalize(delta);
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=functions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../src/math/line3/functions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAIX,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEzD,0BAA0B;AAC1B,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAW,EAAE,KAAa,EAAQ,EAAE;IAC5D,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;IACjB,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;IACjB,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACtG,CAAC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAW,EAAE,KAAW,EAAU,EAAE;IACnE,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC;IAEtB,6CAA6C;IAC7C,MAAM,aAAa,GAAG,aAAa,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAEnD,oDAAoD;IACpD,MAAM,YAAY,GAAG,aAAa,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IAEtD,mDAAmD;IACnD,MAAM,UAAU,GAAG,aAAa,CAAC,GAAG,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC;IAClE,MAAM,iBAAiB,GAAG,aAAa,CAAC,GAAG,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC;IAE1E,yBAAyB;IACzB,IAAI,iBAAiB,KAAK,CAAC,EAAE,CAAC;QAC1B,OAAO,CAAC,CAAC;IACb,CAAC;IAED,yCAAyC;IACzC,MAAM,KAAK,GAAG,UAAU,GAAG,iBAAiB,CAAC;IAE7C,kDAAkD;IAClD,wCAAwC;IACxC,OAAO,KAAK,CAAC;AACjB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,IAAW,EAAE,KAAa,EAAE,IAAY,EAAS,EAAE;IACvE,OAAO;QACH,CAAC,EAAE,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC;QAC3B,CAAC,EAAE,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC;KAC7B,CAAC;AACN,CAAC,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,IAAW,EAAQ,EAAE;IAC3C,MAAM,KAAK,GAAG,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IACrD,MAAM,GAAG,GAAG,aAAa,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACxC,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAClE,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*MIT License
|
|
2
|
+
|
|
3
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.*/
|
|
22
|
+
export * as Line3 from "./public.js";
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/math/line3/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAOX,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const layout: import("../../typed-buffer/index.js").StructLayout;
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { getStructLayout } from "../../typed-buffer/index.js";
|
|
23
|
+
import { schema } from "./schema.js";
|
|
24
|
+
export const layout = getStructLayout(schema);
|
|
25
|
+
//# sourceMappingURL=layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../../src/math/line3/layout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAEX,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,CAAC,MAAM,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*MIT License
|
|
2
|
+
|
|
3
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.*/
|
|
22
|
+
export * from "./functions.js";
|
|
23
|
+
export * from "./layout.js";
|
|
24
|
+
export * from "./schema.js";
|
|
25
|
+
//# sourceMappingURL=public.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.js","sourceRoot":"","sources":["../../../src/math/line3/public.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAEX,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const schema: {
|
|
2
|
+
readonly type: "object";
|
|
3
|
+
readonly properties: {
|
|
4
|
+
readonly a: {
|
|
5
|
+
readonly type: "array";
|
|
6
|
+
readonly items: {
|
|
7
|
+
readonly type: "number";
|
|
8
|
+
readonly precision: 1;
|
|
9
|
+
readonly default: number;
|
|
10
|
+
};
|
|
11
|
+
readonly minItems: 3;
|
|
12
|
+
readonly maxItems: 3;
|
|
13
|
+
readonly default: readonly [0, 0, 0];
|
|
14
|
+
};
|
|
15
|
+
readonly b: {
|
|
16
|
+
readonly type: "array";
|
|
17
|
+
readonly items: {
|
|
18
|
+
readonly type: "number";
|
|
19
|
+
readonly precision: 1;
|
|
20
|
+
readonly default: number;
|
|
21
|
+
};
|
|
22
|
+
readonly minItems: 3;
|
|
23
|
+
readonly maxItems: 3;
|
|
24
|
+
readonly default: readonly [0, 0, 0];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
readonly required: readonly ["a", "b"];
|
|
28
|
+
readonly additionalProperties: false;
|
|
29
|
+
readonly default: {
|
|
30
|
+
readonly a: readonly [0, 0, 0];
|
|
31
|
+
readonly b: readonly [0, 0, 0];
|
|
32
|
+
};
|
|
33
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
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 { Vec3 } from "../vec3/index.js";
|
|
23
|
+
const { schema: Vec3Schema } = Vec3;
|
|
24
|
+
export const schema = {
|
|
25
|
+
type: 'object',
|
|
26
|
+
properties: {
|
|
27
|
+
a: Vec3Schema,
|
|
28
|
+
b: Vec3Schema,
|
|
29
|
+
},
|
|
30
|
+
required: ['a', 'b'],
|
|
31
|
+
additionalProperties: false,
|
|
32
|
+
default: {
|
|
33
|
+
a: Vec3Schema.default,
|
|
34
|
+
b: Vec3Schema.default,
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/math/line3/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAGX,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;AAEpC,MAAM,CAAC,MAAM,MAAM,GAAG;IAClB,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,CAAC,EAAE,UAAU;QACb,CAAC,EAAE,UAAU;KAChB;IACD,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;IACpB,oBAAoB,EAAE,KAAK;IAC3B,OAAO,EAAE;QACL,CAAC,EAAE,UAAU,CAAC,OAAO;QACrB,CAAC,EAAE,UAAU,CAAC,OAAO;KACxB;CACsB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Mat4x4 } from "./index.js";
|
|
2
|
+
import type { Vec3 } from "../vec3/index.js";
|
|
3
|
+
import type { Vec4 } from "../vec4/index.js";
|
|
4
|
+
export type Index = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
5
|
+
export declare const identity: Mat4x4;
|
|
6
|
+
export declare const zero: Mat4x4;
|
|
7
|
+
export declare const add: (a: Mat4x4, b: Mat4x4) => Mat4x4;
|
|
8
|
+
export declare const subtract: (a: Mat4x4, b: Mat4x4) => Mat4x4;
|
|
9
|
+
export declare const multiply: (a: Mat4x4, b: Mat4x4) => Mat4x4;
|
|
10
|
+
export declare const scale: (m: Mat4x4, s: number) => Mat4x4;
|
|
11
|
+
export declare const multiplyVec4: (m: Mat4x4, v: Vec4) => Vec4;
|
|
12
|
+
export declare const multiplyVec3: (m: Mat4x4, v: Vec3) => Vec3;
|
|
13
|
+
export declare const determinant: (m: Mat4x4) => number;
|
|
14
|
+
export declare const inverse: (m: Mat4x4) => Mat4x4;
|
|
15
|
+
export declare const transpose: (m: Mat4x4) => Mat4x4;
|
|
16
|
+
export declare const translation: (x: number, y: number, z: number) => Mat4x4;
|
|
17
|
+
export declare const scaling: (x: number, y: number, z: number) => Mat4x4;
|
|
18
|
+
export declare const rotationX: (angle: number) => Mat4x4;
|
|
19
|
+
export declare const rotationY: (angle: number) => Mat4x4;
|
|
20
|
+
export declare const rotationZ: (angle: number) => Mat4x4;
|
|
21
|
+
export declare const perspective: (fovy: number, aspect: number, near: number, far: number) => Mat4x4;
|
|
22
|
+
export declare const orthographic: (left: number, right: number, bottom: number, top: number, near: number, far: number) => Mat4x4;
|
|
23
|
+
export declare const lookAt: (eye: Vec3, center: Vec3, up: Vec3) => Mat4x4;
|