@adobe/ecs 0.0.0-stage → 0.2.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/LICENSE +21 -0
- package/README.md +57 -2
- package/dist/implementation/compiler/access.d.ts +6 -0
- package/dist/implementation/compiler/access.js +159 -0
- package/dist/implementation/compiler/access.js.map +1 -0
- package/dist/implementation/compiler/archetypes.d.ts +17 -0
- package/dist/implementation/compiler/archetypes.js +141 -0
- package/dist/implementation/compiler/archetypes.js.map +1 -0
- package/dist/implementation/compiler/assign.d.ts +7 -0
- package/dist/implementation/compiler/assign.js +162 -0
- package/dist/implementation/compiler/assign.js.map +1 -0
- package/dist/implementation/compiler/augmentations.d.ts +25 -0
- package/dist/implementation/compiler/augmentations.js +943 -0
- package/dist/implementation/compiler/augmentations.js.map +1 -0
- package/dist/implementation/compiler/bind.d.ts +9 -0
- package/dist/implementation/compiler/bind.js +83 -0
- package/dist/implementation/compiler/bind.js.map +1 -0
- package/dist/implementation/compiler/body-access.d.ts +32 -0
- package/dist/implementation/compiler/body-access.js +479 -0
- package/dist/implementation/compiler/body-access.js.map +1 -0
- package/dist/implementation/compiler/booleans.d.ts +8 -0
- package/dist/implementation/compiler/booleans.js +35 -0
- package/dist/implementation/compiler/booleans.js.map +1 -0
- package/dist/implementation/compiler/branches.d.ts +16 -0
- package/dist/implementation/compiler/branches.js +38 -0
- package/dist/implementation/compiler/branches.js.map +1 -0
- package/dist/implementation/compiler/calls.d.ts +6 -0
- package/dist/implementation/compiler/calls.js +401 -0
- package/dist/implementation/compiler/calls.js.map +1 -0
- package/dist/implementation/compiler/columns.d.ts +26 -0
- package/dist/implementation/compiler/columns.js +53 -0
- package/dist/implementation/compiler/columns.js.map +1 -0
- package/dist/implementation/compiler/compile-kernel.d.ts +37 -0
- package/dist/implementation/compiler/compile-kernel.js +183 -0
- package/dist/implementation/compiler/compile-kernel.js.map +1 -0
- package/dist/implementation/compiler/compiler.d.ts +6 -0
- package/dist/implementation/compiler/compiler.js +7 -0
- package/dist/implementation/compiler/compiler.js.map +1 -0
- package/dist/implementation/compiler/data.d.ts +30 -0
- package/dist/implementation/compiler/data.js +77 -0
- package/dist/implementation/compiler/data.js.map +1 -0
- package/dist/implementation/compiler/describe.d.ts +41 -0
- package/dist/implementation/compiler/describe.js +510 -0
- package/dist/implementation/compiler/describe.js.map +1 -0
- package/dist/implementation/compiler/estree.d.ts +18 -0
- package/dist/implementation/compiler/estree.js +62 -0
- package/dist/implementation/compiler/estree.js.map +1 -0
- package/dist/implementation/compiler/expression.d.ts +6 -0
- package/dist/implementation/compiler/expression.js +153 -0
- package/dist/implementation/compiler/expression.js.map +1 -0
- package/dist/implementation/compiler/failure.d.ts +27 -0
- package/dist/implementation/compiler/failure.js +24 -0
- package/dist/implementation/compiler/failure.js.map +1 -0
- package/dist/implementation/compiler/identify.d.ts +43 -0
- package/dist/implementation/compiler/identify.js +207 -0
- package/dist/implementation/compiler/identify.js.map +1 -0
- package/dist/implementation/compiler/index.d.ts +5 -0
- package/dist/implementation/compiler/index.js +7 -0
- package/dist/implementation/compiler/index.js.map +1 -0
- package/dist/implementation/compiler/inferred.d.ts +32 -0
- package/dist/implementation/compiler/inferred.js +185 -0
- package/dist/implementation/compiler/inferred.js.map +1 -0
- package/dist/implementation/compiler/inline-kernels.d.ts +7 -0
- package/dist/implementation/compiler/inline-kernels.js +16 -0
- package/dist/implementation/compiler/inline-kernels.js.map +1 -0
- package/dist/implementation/compiler/input-schemas.d.ts +23 -0
- package/dist/implementation/compiler/input-schemas.js +102 -0
- package/dist/implementation/compiler/input-schemas.js.map +1 -0
- package/dist/implementation/compiler/ir.d.ts +226 -0
- package/dist/implementation/compiler/ir.js +28 -0
- package/dist/implementation/compiler/ir.js.map +1 -0
- package/dist/implementation/compiler/kernel-id.d.ts +17 -0
- package/dist/implementation/compiler/kernel-id.js +28 -0
- package/dist/implementation/compiler/kernel-id.js.map +1 -0
- package/dist/implementation/compiler/key.d.ts +21 -0
- package/dist/implementation/compiler/key.js +21 -0
- package/dist/implementation/compiler/key.js.map +1 -0
- package/dist/implementation/compiler/link.d.ts +83 -0
- package/dist/implementation/compiler/link.js +186 -0
- package/dist/implementation/compiler/link.js.map +1 -0
- package/dist/implementation/compiler/lists.d.ts +50 -0
- package/dist/implementation/compiler/lists.js +210 -0
- package/dist/implementation/compiler/lists.js.map +1 -0
- package/dist/implementation/compiler/lookups.d.ts +24 -0
- package/dist/implementation/compiler/lookups.js +118 -0
- package/dist/implementation/compiler/lookups.js.map +1 -0
- package/dist/implementation/compiler/math.d.ts +3 -0
- package/dist/implementation/compiler/math.js +10 -0
- package/dist/implementation/compiler/math.js.map +1 -0
- package/dist/implementation/compiler/memory-compiler.d.ts +61 -0
- package/dist/implementation/compiler/memory-compiler.js +271 -0
- package/dist/implementation/compiler/memory-compiler.js.map +1 -0
- package/dist/implementation/compiler/module-scope.d.ts +53 -0
- package/dist/implementation/compiler/module-scope.js +121 -0
- package/dist/implementation/compiler/module-scope.js.map +1 -0
- package/dist/implementation/compiler/module-value.d.ts +15 -0
- package/dist/implementation/compiler/module-value.js +139 -0
- package/dist/implementation/compiler/module-value.js.map +1 -0
- package/dist/implementation/compiler/out.d.ts +4 -0
- package/dist/implementation/compiler/out.js +2 -0
- package/dist/implementation/compiler/out.js.map +1 -0
- package/dist/implementation/compiler/oxc.d.ts +41 -0
- package/dist/implementation/compiler/oxc.js +80 -0
- package/dist/implementation/compiler/oxc.js.map +1 -0
- package/dist/implementation/compiler/package-copies.d.ts +60 -0
- package/dist/implementation/compiler/package-copies.js +140 -0
- package/dist/implementation/compiler/package-copies.js.map +1 -0
- package/dist/implementation/compiler/passes.d.ts +25 -0
- package/dist/implementation/compiler/passes.js +24 -0
- package/dist/implementation/compiler/passes.js.map +1 -0
- package/dist/implementation/compiler/paths.d.ts +5 -0
- package/dist/implementation/compiler/paths.js +20 -0
- package/dist/implementation/compiler/paths.js.map +1 -0
- package/dist/implementation/compiler/plugin.d.ts +18 -0
- package/dist/implementation/compiler/plugin.js +397 -0
- package/dist/implementation/compiler/plugin.js.map +1 -0
- package/dist/implementation/compiler/posix.d.ts +8 -0
- package/dist/implementation/compiler/posix.js +205 -0
- package/dist/implementation/compiler/posix.js.map +1 -0
- package/dist/implementation/compiler/predicates.d.ts +11 -0
- package/dist/implementation/compiler/predicates.js +281 -0
- package/dist/implementation/compiler/predicates.js.map +1 -0
- package/dist/implementation/compiler/print.d.ts +12 -0
- package/dist/implementation/compiler/print.js +116 -0
- package/dist/implementation/compiler/print.js.map +1 -0
- package/dist/implementation/compiler/program.d.ts +10 -0
- package/dist/implementation/compiler/program.js +258 -0
- package/dist/implementation/compiler/program.js.map +1 -0
- package/dist/implementation/compiler/public.d.ts +1 -0
- package/dist/implementation/compiler/public.js +3 -0
- package/dist/implementation/compiler/public.js.map +1 -0
- package/dist/implementation/compiler/scalar.d.ts +8 -0
- package/dist/implementation/compiler/scalar.js +47 -0
- package/dist/implementation/compiler/scalar.js.map +1 -0
- package/dist/implementation/compiler/scope.d.ts +24 -0
- package/dist/implementation/compiler/scope.js +4 -0
- package/dist/implementation/compiler/scope.js.map +1 -0
- package/dist/implementation/compiler/serialize.d.ts +2 -0
- package/dist/implementation/compiler/serialize.js +15 -0
- package/dist/implementation/compiler/serialize.js.map +1 -0
- package/dist/implementation/compiler/signature.d.ts +60 -0
- package/dist/implementation/compiler/signature.js +188 -0
- package/dist/implementation/compiler/signature.js.map +1 -0
- package/dist/implementation/compiler/snapshot.d.ts +23 -0
- package/dist/implementation/compiler/snapshot.js +18 -0
- package/dist/implementation/compiler/snapshot.js.map +1 -0
- package/dist/implementation/compiler/source-map.d.ts +34 -0
- package/dist/implementation/compiler/source-map.js +131 -0
- package/dist/implementation/compiler/source-map.js.map +1 -0
- package/dist/implementation/compiler/spawns.d.ts +41 -0
- package/dist/implementation/compiler/spawns.js +164 -0
- package/dist/implementation/compiler/spawns.js.map +1 -0
- package/dist/implementation/compiler/stamps.d.ts +13 -0
- package/dist/implementation/compiler/stamps.js +44 -0
- package/dist/implementation/compiler/stamps.js.map +1 -0
- package/dist/implementation/compiler/statement.d.ts +7 -0
- package/dist/implementation/compiler/statement.js +112 -0
- package/dist/implementation/compiler/statement.js.map +1 -0
- package/dist/implementation/compiler/terminal.d.ts +8 -0
- package/dist/implementation/compiler/terminal.js +51 -0
- package/dist/implementation/compiler/terminal.js.map +1 -0
- package/dist/implementation/compiler/transform.d.ts +81 -0
- package/dist/implementation/compiler/transform.js +483 -0
- package/dist/implementation/compiler/transform.js.map +1 -0
- package/dist/implementation/compiler/type-schemas.d.ts +130 -0
- package/dist/implementation/compiler/type-schemas.js +701 -0
- package/dist/implementation/compiler/type-schemas.js.map +1 -0
- package/dist/implementation/compiler/unit.d.ts +108 -0
- package/dist/implementation/compiler/unit.js +39 -0
- package/dist/implementation/compiler/unit.js.map +1 -0
- package/dist/implementation/compiler/value.d.ts +115 -0
- package/dist/implementation/compiler/value.js +9 -0
- package/dist/implementation/compiler/value.js.map +1 -0
- package/dist/implementation/compiler/wat.d.ts +12 -0
- package/dist/implementation/compiler/wat.js +379 -0
- package/dist/implementation/compiler/wat.js.map +1 -0
- package/dist/implementation/index.d.ts +2 -0
- package/dist/implementation/index.js +4 -0
- package/dist/implementation/index.js.map +1 -0
- package/dist/implementation/world/activate.d.ts +21 -0
- package/dist/implementation/world/activate.js +137 -0
- package/dist/implementation/world/activate.js.map +1 -0
- package/dist/implementation/world/archetype.d.ts +191 -0
- package/dist/implementation/world/archetype.js +402 -0
- package/dist/implementation/world/archetype.js.map +1 -0
- package/dist/implementation/world/arrays.d.ts +29 -0
- package/dist/implementation/world/arrays.js +34 -0
- package/dist/implementation/world/arrays.js.map +1 -0
- package/dist/implementation/world/arrivals.d.ts +52 -0
- package/dist/implementation/world/arrivals.js +146 -0
- package/dist/implementation/world/arrivals.js.map +1 -0
- package/dist/implementation/world/attach-kernel.d.ts +10 -0
- package/dist/implementation/world/attach-kernel.js +30 -0
- package/dist/implementation/world/attach-kernel.js.map +1 -0
- package/dist/implementation/world/batches.d.ts +18 -0
- package/dist/implementation/world/batches.js +208 -0
- package/dist/implementation/world/batches.js.map +1 -0
- package/dist/implementation/world/buffer.d.ts +60 -0
- package/dist/implementation/world/buffer.js +138 -0
- package/dist/implementation/world/buffer.js.map +1 -0
- package/dist/implementation/world/cascade.d.ts +28 -0
- package/dist/implementation/world/cascade.js +139 -0
- package/dist/implementation/world/cascade.js.map +1 -0
- package/dist/implementation/world/cells.d.ts +7 -0
- package/dist/implementation/world/cells.js +22 -0
- package/dist/implementation/world/cells.js.map +1 -0
- package/dist/implementation/world/check-kernel.d.ts +12 -0
- package/dist/implementation/world/check-kernel.js +119 -0
- package/dist/implementation/world/check-kernel.js.map +1 -0
- package/dist/implementation/world/claims.d.ts +13 -0
- package/dist/implementation/world/claims.js +51 -0
- package/dist/implementation/world/claims.js.map +1 -0
- package/dist/implementation/world/closure.d.ts +12 -0
- package/dist/implementation/world/closure.js +44 -0
- package/dist/implementation/world/closure.js.map +1 -0
- package/dist/implementation/world/command-ring.d.ts +97 -0
- package/dist/implementation/world/command-ring.js +439 -0
- package/dist/implementation/world/command-ring.js.map +1 -0
- package/dist/implementation/world/commands.d.ts +25 -0
- package/dist/implementation/world/commands.js +96 -0
- package/dist/implementation/world/commands.js.map +1 -0
- package/dist/implementation/world/create.d.ts +101 -0
- package/dist/implementation/world/create.js +1009 -0
- package/dist/implementation/world/create.js.map +1 -0
- package/dist/implementation/world/directories.d.ts +28 -0
- package/dist/implementation/world/directories.js +68 -0
- package/dist/implementation/world/directories.js.map +1 -0
- package/dist/implementation/world/entities.d.ts +77 -0
- package/dist/implementation/world/entities.js +137 -0
- package/dist/implementation/world/entities.js.map +1 -0
- package/dist/implementation/world/execute.d.ts +30 -0
- package/dist/implementation/world/execute.js +757 -0
- package/dist/implementation/world/execute.js.map +1 -0
- package/dist/implementation/world/failures.d.ts +53 -0
- package/dist/implementation/world/failures.js +37 -0
- package/dist/implementation/world/failures.js.map +1 -0
- package/dist/implementation/world/finalizers.d.ts +65 -0
- package/dist/implementation/world/finalizers.js +436 -0
- package/dist/implementation/world/finalizers.js.map +1 -0
- package/dist/implementation/world/gpu.d.ts +64 -0
- package/dist/implementation/world/gpu.js +326 -0
- package/dist/implementation/world/gpu.js.map +1 -0
- package/dist/implementation/world/holders.d.ts +21 -0
- package/dist/implementation/world/holders.js +66 -0
- package/dist/implementation/world/holders.js.map +1 -0
- package/dist/implementation/world/index-build.d.ts +88 -0
- package/dist/implementation/world/index-build.js +405 -0
- package/dist/implementation/world/index-build.js.map +1 -0
- package/dist/implementation/world/index-hash.d.ts +138 -0
- package/dist/implementation/world/index-hash.js +809 -0
- package/dist/implementation/world/index-hash.js.map +1 -0
- package/dist/implementation/world/index-keys.d.ts +75 -0
- package/dist/implementation/world/index-keys.js +252 -0
- package/dist/implementation/world/index-keys.js.map +1 -0
- package/dist/implementation/world/index-lookups.d.ts +76 -0
- package/dist/implementation/world/index-lookups.js +572 -0
- package/dist/implementation/world/index-lookups.js.map +1 -0
- package/dist/implementation/world/index-order.d.ts +21 -0
- package/dist/implementation/world/index-order.js +174 -0
- package/dist/implementation/world/index-order.js.map +1 -0
- package/dist/implementation/world/index-readers.d.ts +101 -0
- package/dist/implementation/world/index-readers.js +341 -0
- package/dist/implementation/world/index-readers.js.map +1 -0
- package/dist/implementation/world/index-sorted.d.ts +120 -0
- package/dist/implementation/world/index-sorted.js +637 -0
- package/dist/implementation/world/index-sorted.js.map +1 -0
- package/dist/implementation/world/indexes.d.ts +134 -0
- package/dist/implementation/world/indexes.js +1116 -0
- package/dist/implementation/world/indexes.js.map +1 -0
- package/dist/implementation/world/input.d.ts +3 -0
- package/dist/implementation/world/input.js +17 -0
- package/dist/implementation/world/input.js.map +1 -0
- package/dist/implementation/world/intrinsics.d.ts +5 -0
- package/dist/implementation/world/intrinsics.js +33 -0
- package/dist/implementation/world/intrinsics.js.map +1 -0
- package/dist/implementation/world/join.d.ts +26 -0
- package/dist/implementation/world/join.js +766 -0
- package/dist/implementation/world/join.js.map +1 -0
- package/dist/implementation/world/joined-observer.d.ts +208 -0
- package/dist/implementation/world/joined-observer.js +810 -0
- package/dist/implementation/world/joined-observer.js.map +1 -0
- package/dist/implementation/world/joining.d.ts +392 -0
- package/dist/implementation/world/joining.js +187 -0
- package/dist/implementation/world/joining.js.map +1 -0
- package/dist/implementation/world/journal.d.ts +22 -0
- package/dist/implementation/world/journal.js +25 -0
- package/dist/implementation/world/journal.js.map +1 -0
- package/dist/implementation/world/kernel-indexes.d.ts +37 -0
- package/dist/implementation/world/kernel-indexes.js +182 -0
- package/dist/implementation/world/kernel-indexes.js.map +1 -0
- package/dist/implementation/world/kernel.d.ts +392 -0
- package/dist/implementation/world/kernel.js +5 -0
- package/dist/implementation/world/kernel.js.map +1 -0
- package/dist/implementation/world/kernels.d.ts +88 -0
- package/dist/implementation/world/kernels.js +356 -0
- package/dist/implementation/world/kernels.js.map +1 -0
- package/dist/implementation/world/layout-directory.d.ts +123 -0
- package/dist/implementation/world/layout-directory.js +273 -0
- package/dist/implementation/world/layout-directory.js.map +1 -0
- package/dist/implementation/world/lists.d.ts +86 -0
- package/dist/implementation/world/lists.js +258 -0
- package/dist/implementation/world/lists.js.map +1 -0
- package/dist/implementation/world/lookup-keys.d.ts +20 -0
- package/dist/implementation/world/lookup-keys.js +48 -0
- package/dist/implementation/world/lookup-keys.js.map +1 -0
- package/dist/implementation/world/loop.d.ts +73 -0
- package/dist/implementation/world/loop.js +252 -0
- package/dist/implementation/world/loop.js.map +1 -0
- package/dist/implementation/world/memory.d.ts +40 -0
- package/dist/implementation/world/memory.js +65 -0
- package/dist/implementation/world/memory.js.map +1 -0
- package/dist/implementation/world/mirror.d.ts +125 -0
- package/dist/implementation/world/mirror.js +570 -0
- package/dist/implementation/world/mirror.js.map +1 -0
- package/dist/implementation/world/move-log.d.ts +107 -0
- package/dist/implementation/world/move-log.js +165 -0
- package/dist/implementation/world/move-log.js.map +1 -0
- package/dist/implementation/world/observer.d.ts +16 -0
- package/dist/implementation/world/observer.js +130 -0
- package/dist/implementation/world/observer.js.map +1 -0
- package/dist/implementation/world/order.d.ts +38 -0
- package/dist/implementation/world/order.js +324 -0
- package/dist/implementation/world/order.js.map +1 -0
- package/dist/implementation/world/out-of-band.d.ts +28 -0
- package/dist/implementation/world/out-of-band.js +66 -0
- package/dist/implementation/world/out-of-band.js.map +1 -0
- package/dist/implementation/world/plan.d.ts +50 -0
- package/dist/implementation/world/plan.js +20 -0
- package/dist/implementation/world/plan.js.map +1 -0
- package/dist/implementation/world/pool.d.ts +70 -0
- package/dist/implementation/world/pool.js +264 -0
- package/dist/implementation/world/pool.js.map +1 -0
- package/dist/implementation/world/port.d.ts +62 -0
- package/dist/implementation/world/port.js +109 -0
- package/dist/implementation/world/port.js.map +1 -0
- package/dist/implementation/world/prepared-lookup.d.ts +11 -0
- package/dist/implementation/world/prepared-lookup.js +99 -0
- package/dist/implementation/world/prepared-lookup.js.map +1 -0
- package/dist/implementation/world/prepared-spawn.d.ts +39 -0
- package/dist/implementation/world/prepared-spawn.js +119 -0
- package/dist/implementation/world/prepared-spawn.js.map +1 -0
- package/dist/implementation/world/program.d.ts +11 -0
- package/dist/implementation/world/program.js +12 -0
- package/dist/implementation/world/program.js.map +1 -0
- package/dist/implementation/world/protocol.d.ts +192 -0
- package/dist/implementation/world/protocol.js +41 -0
- package/dist/implementation/world/protocol.js.map +1 -0
- package/dist/implementation/world/publish.d.ts +9 -0
- package/dist/implementation/world/publish.js +28 -0
- package/dist/implementation/world/publish.js.map +1 -0
- package/dist/implementation/world/ranges.d.ts +21 -0
- package/dist/implementation/world/ranges.js +130 -0
- package/dist/implementation/world/ranges.js.map +1 -0
- package/dist/implementation/world/reclaim.d.ts +27 -0
- package/dist/implementation/world/reclaim.js +176 -0
- package/dist/implementation/world/reclaim.js.map +1 -0
- package/dist/implementation/world/reductions.d.ts +33 -0
- package/dist/implementation/world/reductions.js +92 -0
- package/dist/implementation/world/reductions.js.map +1 -0
- package/dist/implementation/world/register.d.ts +64 -0
- package/dist/implementation/world/register.js +368 -0
- package/dist/implementation/world/register.js.map +1 -0
- package/dist/implementation/world/remote-systems.d.ts +144 -0
- package/dist/implementation/world/remote-systems.js +556 -0
- package/dist/implementation/world/remote-systems.js.map +1 -0
- package/dist/implementation/world/remote.d.ts +25 -0
- package/dist/implementation/world/remote.js +138 -0
- package/dist/implementation/world/remote.js.map +1 -0
- package/dist/implementation/world/render-order.d.ts +19 -0
- package/dist/implementation/world/render-order.js +126 -0
- package/dist/implementation/world/render-order.js.map +1 -0
- package/dist/implementation/world/required.d.ts +3 -0
- package/dist/implementation/world/required.js +9 -0
- package/dist/implementation/world/required.js.map +1 -0
- package/dist/implementation/world/resources.d.ts +23 -0
- package/dist/implementation/world/resources.js +66 -0
- package/dist/implementation/world/resources.js.map +1 -0
- package/dist/implementation/world/rows.d.ts +111 -0
- package/dist/implementation/world/rows.js +549 -0
- package/dist/implementation/world/rows.js.map +1 -0
- package/dist/implementation/world/runner.d.ts +133 -0
- package/dist/implementation/world/runner.js +1334 -0
- package/dist/implementation/world/runner.js.map +1 -0
- package/dist/implementation/world/shared.d.ts +55 -0
- package/dist/implementation/world/shared.js +301 -0
- package/dist/implementation/world/shared.js.map +1 -0
- package/dist/implementation/world/sharing.d.ts +48 -0
- package/dist/implementation/world/sharing.js +611 -0
- package/dist/implementation/world/sharing.js.map +1 -0
- package/dist/implementation/world/staging.d.ts +83 -0
- package/dist/implementation/world/staging.js +195 -0
- package/dist/implementation/world/staging.js.map +1 -0
- package/dist/implementation/world/state.d.ts +320 -0
- package/dist/implementation/world/state.js +459 -0
- package/dist/implementation/world/state.js.map +1 -0
- package/dist/implementation/world/stop-lists.d.ts +137 -0
- package/dist/implementation/world/stop-lists.js +305 -0
- package/dist/implementation/world/stop-lists.js.map +1 -0
- package/dist/implementation/world/strings.d.ts +48 -0
- package/dist/implementation/world/strings.js +214 -0
- package/dist/implementation/world/strings.js.map +1 -0
- package/dist/implementation/world/structure.d.ts +39 -0
- package/dist/implementation/world/structure.js +42 -0
- package/dist/implementation/world/structure.js.map +1 -0
- package/dist/implementation/world/synchronize.d.ts +32 -0
- package/dist/implementation/world/synchronize.js +910 -0
- package/dist/implementation/world/synchronize.js.map +1 -0
- package/dist/implementation/world/tail-blocks.d.ts +43 -0
- package/dist/implementation/world/tail-blocks.js +59 -0
- package/dist/implementation/world/tail-blocks.js.map +1 -0
- package/dist/implementation/world/tails.d.ts +119 -0
- package/dist/implementation/world/tails.js +448 -0
- package/dist/implementation/world/tails.js.map +1 -0
- package/dist/implementation/world/terminal.d.ts +7 -0
- package/dist/implementation/world/terminal.js +13 -0
- package/dist/implementation/world/terminal.js.map +1 -0
- package/dist/implementation/world/thread-directory.d.ts +72 -0
- package/dist/implementation/world/thread-directory.js +243 -0
- package/dist/implementation/world/thread-directory.js.map +1 -0
- package/dist/implementation/world/thread-finalizers.d.ts +51 -0
- package/dist/implementation/world/thread-finalizers.js +376 -0
- package/dist/implementation/world/thread-finalizers.js.map +1 -0
- package/dist/implementation/world/thread-indexes.d.ts +28 -0
- package/dist/implementation/world/thread-indexes.js +72 -0
- package/dist/implementation/world/thread-indexes.js.map +1 -0
- package/dist/implementation/world/thread-observer.d.ts +43 -0
- package/dist/implementation/world/thread-observer.js +223 -0
- package/dist/implementation/world/thread-observer.js.map +1 -0
- package/dist/implementation/world/thread-systems.d.ts +121 -0
- package/dist/implementation/world/thread-systems.js +1487 -0
- package/dist/implementation/world/thread-systems.js.map +1 -0
- package/dist/implementation/world/thread-tasks.d.ts +65 -0
- package/dist/implementation/world/thread-tasks.js +74 -0
- package/dist/implementation/world/thread-tasks.js.map +1 -0
- package/dist/implementation/world/transfers.d.ts +30 -0
- package/dist/implementation/world/transfers.js +101 -0
- package/dist/implementation/world/transfers.js.map +1 -0
- package/dist/implementation/world/up.d.ts +35 -0
- package/dist/implementation/world/up.js +939 -0
- package/dist/implementation/world/up.js.map +1 -0
- package/dist/implementation/world/wasm.d.ts +143 -0
- package/dist/implementation/world/wasm.js +2460 -0
- package/dist/implementation/world/wasm.js.map +1 -0
- package/dist/implementation/world/wgsl.d.ts +22 -0
- package/dist/implementation/world/wgsl.js +497 -0
- package/dist/implementation/world/wgsl.js.map +1 -0
- package/dist/implementation/world/where.d.ts +74 -0
- package/dist/implementation/world/where.js +202 -0
- package/dist/implementation/world/where.js.map +1 -0
- package/dist/implementation/world/worker-platform.d.ts +37 -0
- package/dist/implementation/world/worker-platform.js +80 -0
- package/dist/implementation/world/worker-platform.js.map +1 -0
- package/dist/implementation/world/worker-window.d.ts +7 -0
- package/dist/implementation/world/worker-window.js +47 -0
- package/dist/implementation/world/worker-window.js.map +1 -0
- package/dist/implementation/world/worker.d.ts +1 -0
- package/dist/implementation/world/worker.js +496 -0
- package/dist/implementation/world/worker.js.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -0
- package/dist/interface/component/component.d.ts +2 -0
- package/dist/interface/component/component.js +3 -0
- package/dist/interface/component/component.js.map +1 -0
- package/dist/interface/component/index.d.ts +2 -0
- package/dist/interface/component/index.js +2 -0
- package/dist/interface/component/index.js.map +1 -0
- package/dist/interface/component/key.d.ts +2 -0
- package/dist/interface/component/key.js +2 -0
- package/dist/interface/component/key.js.map +1 -0
- package/dist/interface/component/types.d.ts +6 -0
- package/dist/interface/component/types.js +2 -0
- package/dist/interface/component/types.js.map +1 -0
- package/dist/interface/component/value.d.ts +39 -0
- package/dist/interface/component/value.js +2 -0
- package/dist/interface/component/value.js.map +1 -0
- package/dist/interface/component/values.d.ts +6 -0
- package/dist/interface/component/values.js +2 -0
- package/dist/interface/component/values.js.map +1 -0
- package/dist/interface/entity/entity.d.ts +9 -0
- package/dist/interface/entity/entity.js +2 -0
- package/dist/interface/entity/entity.js.map +1 -0
- package/dist/interface/entity/index.d.ts +10 -0
- package/dist/interface/entity/index.js +7 -0
- package/dist/interface/entity/index.js.map +1 -0
- package/dist/interface/finalizer/body.d.ts +53 -0
- package/dist/interface/finalizer/body.js +2 -0
- package/dist/interface/finalizer/body.js.map +1 -0
- package/dist/interface/finalizer/create.d.ts +43 -0
- package/dist/interface/finalizer/create.js +130 -0
- package/dist/interface/finalizer/create.js.map +1 -0
- package/dist/interface/finalizer/created.d.ts +16 -0
- package/dist/interface/finalizer/created.js +2 -0
- package/dist/interface/finalizer/created.js.map +1 -0
- package/dist/interface/finalizer/declaration.d.ts +58 -0
- package/dist/interface/finalizer/declaration.js +2 -0
- package/dist/interface/finalizer/declaration.js.map +1 -0
- package/dist/interface/finalizer/finalizer.d.ts +8 -0
- package/dist/interface/finalizer/finalizer.js +2 -0
- package/dist/interface/finalizer/finalizer.js.map +1 -0
- package/dist/interface/finalizer/index.d.ts +1 -0
- package/dist/interface/finalizer/index.js +3 -0
- package/dist/interface/finalizer/index.js.map +1 -0
- package/dist/interface/gpu/accessors.d.ts +15 -0
- package/dist/interface/gpu/accessors.js +87 -0
- package/dist/interface/gpu/accessors.js.map +1 -0
- package/dist/interface/gpu/gpu.d.ts +3 -0
- package/dist/interface/gpu/gpu.js +2 -0
- package/dist/interface/gpu/gpu.js.map +1 -0
- package/dist/interface/gpu/index.d.ts +2 -0
- package/dist/interface/gpu/index.js +4 -0
- package/dist/interface/gpu/index.js.map +1 -0
- package/dist/interface/gpu/layout.d.ts +5 -0
- package/dist/interface/gpu/layout.js +22 -0
- package/dist/interface/gpu/layout.js.map +1 -0
- package/dist/interface/gpu/record.d.ts +5 -0
- package/dist/interface/gpu/record.js +7 -0
- package/dist/interface/gpu/record.js.map +1 -0
- package/dist/interface/gpu/wgsl.d.ts +9 -0
- package/dist/interface/gpu/wgsl.js +24 -0
- package/dist/interface/gpu/wgsl.js.map +1 -0
- package/dist/interface/index.d.ts +16 -0
- package/dist/interface/index.js +12 -0
- package/dist/interface/index.js.map +1 -0
- package/dist/interface/indexes/create.d.ts +39 -0
- package/dist/interface/indexes/create.js +82 -0
- package/dist/interface/indexes/create.js.map +1 -0
- package/dist/interface/indexes/created.d.ts +7 -0
- package/dist/interface/indexes/created.js +2 -0
- package/dist/interface/indexes/created.js.map +1 -0
- package/dist/interface/indexes/declaration.d.ts +18 -0
- package/dist/interface/indexes/declaration.js +2 -0
- package/dist/interface/indexes/declaration.js.map +1 -0
- package/dist/interface/indexes/index-type.d.ts +12 -0
- package/dist/interface/indexes/index-type.js +2 -0
- package/dist/interface/indexes/index-type.js.map +1 -0
- package/dist/interface/indexes/index.d.ts +1 -0
- package/dist/interface/indexes/index.js +3 -0
- package/dist/interface/indexes/index.js.map +1 -0
- package/dist/interface/math/f32/default.d.ts +4 -0
- package/dist/interface/math/f32/default.js +4 -0
- package/dist/interface/math/f32/default.js.map +1 -0
- package/dist/interface/math/f32/index.d.ts +4 -0
- package/dist/interface/math/f32/index.js +2 -0
- package/dist/interface/math/f32/index.js.map +1 -0
- package/dist/interface/math/f32/public.d.ts +2 -0
- package/dist/interface/math/f32/public.js +4 -0
- package/dist/interface/math/f32/public.js.map +1 -0
- package/dist/interface/math/f32/round-half-even.d.ts +2 -0
- package/dist/interface/math/f32/round-half-even.js +7 -0
- package/dist/interface/math/f32/round-half-even.js.map +1 -0
- package/dist/interface/math/f32/schema.d.ts +4 -0
- package/dist/interface/math/f32/schema.js +2 -0
- package/dist/interface/math/f32/schema.js.map +1 -0
- package/dist/interface/math/i32/default.d.ts +4 -0
- package/dist/interface/math/i32/default.js +4 -0
- package/dist/interface/math/i32/default.js.map +1 -0
- package/dist/interface/math/i32/index.d.ts +5 -0
- package/dist/interface/math/i32/index.js +2 -0
- package/dist/interface/math/i32/index.js.map +1 -0
- package/dist/interface/math/i32/public.d.ts +3 -0
- package/dist/interface/math/i32/public.js +5 -0
- package/dist/interface/math/i32/public.js.map +1 -0
- package/dist/interface/math/i32/schema.d.ts +5 -0
- package/dist/interface/math/i32/schema.js +2 -0
- package/dist/interface/math/i32/schema.js.map +1 -0
- package/dist/interface/math/i32/shift-right.d.ts +2 -0
- package/dist/interface/math/i32/shift-right.js +2 -0
- package/dist/interface/math/i32/shift-right.js.map +1 -0
- package/dist/interface/math/index.d.ts +8 -0
- package/dist/interface/math/index.js +10 -0
- package/dist/interface/math/index.js.map +1 -0
- package/dist/interface/math/intrinsic.d.ts +13 -0
- package/dist/interface/math/intrinsic.js +10 -0
- package/dist/interface/math/intrinsic.js.map +1 -0
- package/dist/interface/math/mat4x4/add.d.ts +2 -0
- package/dist/interface/math/mat4x4/add.js +8 -0
- package/dist/interface/math/mat4x4/add.js.map +1 -0
- package/dist/interface/math/mat4x4/determinant.d.ts +2 -0
- package/dist/interface/math/mat4x4/determinant.js +18 -0
- package/dist/interface/math/mat4x4/determinant.js.map +1 -0
- package/dist/interface/math/mat4x4/identity.d.ts +2 -0
- package/dist/interface/math/mat4x4/identity.js +7 -0
- package/dist/interface/math/mat4x4/identity.js.map +1 -0
- package/dist/interface/math/mat4x4/index.d.ts +26 -0
- package/dist/interface/math/mat4x4/index.js +24 -0
- package/dist/interface/math/mat4x4/index.js.map +1 -0
- package/dist/interface/math/mat4x4/inverse.d.ts +2 -0
- package/dist/interface/math/mat4x4/inverse.js +40 -0
- package/dist/interface/math/mat4x4/inverse.js.map +1 -0
- package/dist/interface/math/mat4x4/look-at.d.ts +3 -0
- package/dist/interface/math/mat4x4/look-at.js +22 -0
- package/dist/interface/math/mat4x4/look-at.js.map +1 -0
- package/dist/interface/math/mat4x4/multiply-vec3.d.ts +3 -0
- package/dist/interface/math/mat4x4/multiply-vec3.js +6 -0
- package/dist/interface/math/mat4x4/multiply-vec3.js.map +1 -0
- package/dist/interface/math/mat4x4/multiply-vec4.d.ts +3 -0
- package/dist/interface/math/mat4x4/multiply-vec4.js +8 -0
- package/dist/interface/math/mat4x4/multiply-vec4.js.map +1 -0
- package/dist/interface/math/mat4x4/multiply.d.ts +3 -0
- package/dist/interface/math/mat4x4/multiply.js +21 -0
- package/dist/interface/math/mat4x4/multiply.js.map +1 -0
- package/dist/interface/math/mat4x4/orthographic.d.ts +2 -0
- package/dist/interface/math/mat4x4/orthographic.js +12 -0
- package/dist/interface/math/mat4x4/orthographic.js.map +1 -0
- package/dist/interface/math/mat4x4/perspective.d.ts +2 -0
- package/dist/interface/math/mat4x4/perspective.js +22 -0
- package/dist/interface/math/mat4x4/perspective.js.map +1 -0
- package/dist/interface/math/mat4x4/public.d.ts +21 -0
- package/dist/interface/math/mat4x4/public.js +23 -0
- package/dist/interface/math/mat4x4/public.js.map +1 -0
- package/dist/interface/math/mat4x4/rotation-x.d.ts +2 -0
- package/dist/interface/math/mat4x4/rotation-x.js +11 -0
- package/dist/interface/math/mat4x4/rotation-x.js.map +1 -0
- package/dist/interface/math/mat4x4/rotation-y.d.ts +2 -0
- package/dist/interface/math/mat4x4/rotation-y.js +11 -0
- package/dist/interface/math/mat4x4/rotation-y.js.map +1 -0
- package/dist/interface/math/mat4x4/rotation-z.d.ts +2 -0
- package/dist/interface/math/mat4x4/rotation-z.js +11 -0
- package/dist/interface/math/mat4x4/rotation-z.js.map +1 -0
- package/dist/interface/math/mat4x4/scale.d.ts +2 -0
- package/dist/interface/math/mat4x4/scale.js +8 -0
- package/dist/interface/math/mat4x4/scale.js.map +1 -0
- package/dist/interface/math/mat4x4/scaling.d.ts +2 -0
- package/dist/interface/math/mat4x4/scaling.js +7 -0
- package/dist/interface/math/mat4x4/scaling.js.map +1 -0
- package/dist/interface/math/mat4x4/schema.d.ts +9 -0
- package/dist/interface/math/mat4x4/schema.js +3 -0
- package/dist/interface/math/mat4x4/schema.js.map +1 -0
- package/dist/interface/math/mat4x4/subtract.d.ts +2 -0
- package/dist/interface/math/mat4x4/subtract.js +8 -0
- package/dist/interface/math/mat4x4/subtract.js.map +1 -0
- package/dist/interface/math/mat4x4/translation.d.ts +2 -0
- package/dist/interface/math/mat4x4/translation.js +7 -0
- package/dist/interface/math/mat4x4/translation.js.map +1 -0
- package/dist/interface/math/mat4x4/transpose.d.ts +2 -0
- package/dist/interface/math/mat4x4/transpose.js +8 -0
- package/dist/interface/math/mat4x4/transpose.js.map +1 -0
- package/dist/interface/math/mat4x4/zero.d.ts +2 -0
- package/dist/interface/math/mat4x4/zero.js +7 -0
- package/dist/interface/math/mat4x4/zero.js.map +1 -0
- package/dist/interface/math/quat/add.d.ts +2 -0
- package/dist/interface/math/quat/add.js +8 -0
- package/dist/interface/math/quat/add.js.map +1 -0
- package/dist/interface/math/quat/align-to.d.ts +12 -0
- package/dist/interface/math/quat/align-to.js +42 -0
- package/dist/interface/math/quat/align-to.js.map +1 -0
- package/dist/interface/math/quat/conjugate.d.ts +2 -0
- package/dist/interface/math/quat/conjugate.js +2 -0
- package/dist/interface/math/quat/conjugate.js.map +1 -0
- package/dist/interface/math/quat/distance.d.ts +2 -0
- package/dist/interface/math/quat/distance.js +4 -0
- package/dist/interface/math/quat/distance.js.map +1 -0
- package/dist/interface/math/quat/dot.d.ts +2 -0
- package/dist/interface/math/quat/dot.js +3 -0
- package/dist/interface/math/quat/dot.js.map +1 -0
- package/dist/interface/math/quat/from-axis-angle.d.ts +3 -0
- package/dist/interface/math/quat/from-axis-angle.js +13 -0
- package/dist/interface/math/quat/from-axis-angle.js.map +1 -0
- package/dist/interface/math/quat/from-euler.d.ts +2 -0
- package/dist/interface/math/quat/from-euler.js +15 -0
- package/dist/interface/math/quat/from-euler.js.map +1 -0
- package/dist/interface/math/quat/identity.d.ts +2 -0
- package/dist/interface/math/quat/identity.js +2 -0
- package/dist/interface/math/quat/identity.js.map +1 -0
- package/dist/interface/math/quat/index.d.ts +4 -0
- package/dist/interface/math/quat/index.js +2 -0
- package/dist/interface/math/quat/index.js.map +1 -0
- package/dist/interface/math/quat/inverse.d.ts +2 -0
- package/dist/interface/math/quat/inverse.js +10 -0
- package/dist/interface/math/quat/inverse.js.map +1 -0
- package/dist/interface/math/quat/length-squared.d.ts +2 -0
- package/dist/interface/math/quat/length-squared.js +2 -0
- package/dist/interface/math/quat/length-squared.js.map +1 -0
- package/dist/interface/math/quat/length.d.ts +2 -0
- package/dist/interface/math/quat/length.js +3 -0
- package/dist/interface/math/quat/length.js.map +1 -0
- package/dist/interface/math/quat/lerp.d.ts +2 -0
- package/dist/interface/math/quat/lerp.js +7 -0
- package/dist/interface/math/quat/lerp.js.map +1 -0
- package/dist/interface/math/quat/look-at.d.ts +3 -0
- package/dist/interface/math/quat/look-at.js +49 -0
- package/dist/interface/math/quat/look-at.js.map +1 -0
- package/dist/interface/math/quat/multiply.d.ts +2 -0
- package/dist/interface/math/quat/multiply.js +7 -0
- package/dist/interface/math/quat/multiply.js.map +1 -0
- package/dist/interface/math/quat/negate.d.ts +2 -0
- package/dist/interface/math/quat/negate.js +3 -0
- package/dist/interface/math/quat/negate.js.map +1 -0
- package/dist/interface/math/quat/normalize.d.ts +2 -0
- package/dist/interface/math/quat/normalize.js +7 -0
- package/dist/interface/math/quat/normalize.js.map +1 -0
- package/dist/interface/math/quat/public.d.ts +25 -0
- package/dist/interface/math/quat/public.js +27 -0
- package/dist/interface/math/quat/public.js.map +1 -0
- package/dist/interface/math/quat/rotate-vec3.d.ts +3 -0
- package/dist/interface/math/quat/rotate-vec3.js +14 -0
- package/dist/interface/math/quat/rotate-vec3.js.map +1 -0
- package/dist/interface/math/quat/scale.d.ts +2 -0
- package/dist/interface/math/quat/scale.js +3 -0
- package/dist/interface/math/quat/scale.js.map +1 -0
- package/dist/interface/math/quat/schema.d.ts +9 -0
- package/dist/interface/math/quat/schema.js +3 -0
- package/dist/interface/math/quat/schema.js.map +1 -0
- package/dist/interface/math/quat/slerp.d.ts +2 -0
- package/dist/interface/math/quat/slerp.js +21 -0
- package/dist/interface/math/quat/slerp.js.map +1 -0
- package/dist/interface/math/quat/subtract.d.ts +2 -0
- package/dist/interface/math/quat/subtract.js +8 -0
- package/dist/interface/math/quat/subtract.js.map +1 -0
- package/dist/interface/math/quat/to-axis-angle.d.ts +6 -0
- package/dist/interface/math/quat/to-axis-angle.js +12 -0
- package/dist/interface/math/quat/to-axis-angle.js.map +1 -0
- package/dist/interface/math/quat/to-euler.d.ts +3 -0
- package/dist/interface/math/quat/to-euler.js +21 -0
- package/dist/interface/math/quat/to-euler.js.map +1 -0
- package/dist/interface/math/quat/to-mat4.d.ts +8 -0
- package/dist/interface/math/quat/to-mat4.js +24 -0
- package/dist/interface/math/quat/to-mat4.js.map +1 -0
- package/dist/interface/math/u32/count-leading-zeros.d.ts +2 -0
- package/dist/interface/math/u32/count-leading-zeros.js +3 -0
- package/dist/interface/math/u32/count-leading-zeros.js.map +1 -0
- package/dist/interface/math/u32/count-one-bits.d.ts +2 -0
- package/dist/interface/math/u32/count-one-bits.js +9 -0
- package/dist/interface/math/u32/count-one-bits.js.map +1 -0
- package/dist/interface/math/u32/count-trailing-zeros.d.ts +2 -0
- package/dist/interface/math/u32/count-trailing-zeros.js +6 -0
- package/dist/interface/math/u32/count-trailing-zeros.js.map +1 -0
- package/dist/interface/math/u32/default.d.ts +4 -0
- package/dist/interface/math/u32/default.js +4 -0
- package/dist/interface/math/u32/default.js.map +1 -0
- package/dist/interface/math/u32/index.d.ts +5 -0
- package/dist/interface/math/u32/index.js +2 -0
- package/dist/interface/math/u32/index.js.map +1 -0
- package/dist/interface/math/u32/public.d.ts +7 -0
- package/dist/interface/math/u32/public.js +9 -0
- package/dist/interface/math/u32/public.js.map +1 -0
- package/dist/interface/math/u32/reverse-bits.d.ts +2 -0
- package/dist/interface/math/u32/reverse-bits.js +10 -0
- package/dist/interface/math/u32/reverse-bits.js.map +1 -0
- package/dist/interface/math/u32/schema.d.ts +5 -0
- package/dist/interface/math/u32/schema.js +2 -0
- package/dist/interface/math/u32/schema.js.map +1 -0
- package/dist/interface/math/u32/shift-right.d.ts +2 -0
- package/dist/interface/math/u32/shift-right.js +2 -0
- package/dist/interface/math/u32/shift-right.js.map +1 -0
- package/dist/interface/math/vec2/f32/abs.d.ts +2 -0
- package/dist/interface/math/vec2/f32/abs.js +3 -0
- package/dist/interface/math/vec2/f32/abs.js.map +1 -0
- package/dist/interface/math/vec2/f32/acos.d.ts +2 -0
- package/dist/interface/math/vec2/f32/acos.js +3 -0
- package/dist/interface/math/vec2/f32/acos.js.map +1 -0
- package/dist/interface/math/vec2/f32/acosh.d.ts +2 -0
- package/dist/interface/math/vec2/f32/acosh.js +3 -0
- package/dist/interface/math/vec2/f32/acosh.js.map +1 -0
- package/dist/interface/math/vec2/f32/add.d.ts +2 -0
- package/dist/interface/math/vec2/f32/add.js +3 -0
- package/dist/interface/math/vec2/f32/add.js.map +1 -0
- package/dist/interface/math/vec2/f32/asin.d.ts +2 -0
- package/dist/interface/math/vec2/f32/asin.js +3 -0
- package/dist/interface/math/vec2/f32/asin.js.map +1 -0
- package/dist/interface/math/vec2/f32/asinh.d.ts +2 -0
- package/dist/interface/math/vec2/f32/asinh.js +3 -0
- package/dist/interface/math/vec2/f32/asinh.js.map +1 -0
- package/dist/interface/math/vec2/f32/atan.d.ts +2 -0
- package/dist/interface/math/vec2/f32/atan.js +3 -0
- package/dist/interface/math/vec2/f32/atan.js.map +1 -0
- package/dist/interface/math/vec2/f32/atanh.d.ts +2 -0
- package/dist/interface/math/vec2/f32/atanh.js +3 -0
- package/dist/interface/math/vec2/f32/atanh.js.map +1 -0
- package/dist/interface/math/vec2/f32/ceil.d.ts +2 -0
- package/dist/interface/math/vec2/f32/ceil.js +3 -0
- package/dist/interface/math/vec2/f32/ceil.js.map +1 -0
- package/dist/interface/math/vec2/f32/clamp.d.ts +2 -0
- package/dist/interface/math/vec2/f32/clamp.js +5 -0
- package/dist/interface/math/vec2/f32/clamp.js.map +1 -0
- package/dist/interface/math/vec2/f32/cos.d.ts +2 -0
- package/dist/interface/math/vec2/f32/cos.js +3 -0
- package/dist/interface/math/vec2/f32/cos.js.map +1 -0
- package/dist/interface/math/vec2/f32/cosh.d.ts +2 -0
- package/dist/interface/math/vec2/f32/cosh.js +3 -0
- package/dist/interface/math/vec2/f32/cosh.js.map +1 -0
- package/dist/interface/math/vec2/f32/distance.d.ts +2 -0
- package/dist/interface/math/vec2/f32/distance.js +5 -0
- package/dist/interface/math/vec2/f32/distance.js.map +1 -0
- package/dist/interface/math/vec2/f32/dot.d.ts +2 -0
- package/dist/interface/math/vec2/f32/dot.js +3 -0
- package/dist/interface/math/vec2/f32/dot.js.map +1 -0
- package/dist/interface/math/vec2/f32/equals.d.ts +2 -0
- package/dist/interface/math/vec2/f32/equals.js +2 -0
- package/dist/interface/math/vec2/f32/equals.js.map +1 -0
- package/dist/interface/math/vec2/f32/exp.d.ts +2 -0
- package/dist/interface/math/vec2/f32/exp.js +3 -0
- package/dist/interface/math/vec2/f32/exp.js.map +1 -0
- package/dist/interface/math/vec2/f32/exp2.d.ts +2 -0
- package/dist/interface/math/vec2/f32/exp2.js +3 -0
- package/dist/interface/math/vec2/f32/exp2.js.map +1 -0
- package/dist/interface/math/vec2/f32/f32.d.ts +4 -0
- package/dist/interface/math/vec2/f32/f32.js +2 -0
- package/dist/interface/math/vec2/f32/f32.js.map +1 -0
- package/dist/interface/math/vec2/f32/faceforward.d.ts +2 -0
- package/dist/interface/math/vec2/f32/faceforward.js +5 -0
- package/dist/interface/math/vec2/f32/faceforward.js.map +1 -0
- package/dist/interface/math/vec2/f32/floor.d.ts +2 -0
- package/dist/interface/math/vec2/f32/floor.js +3 -0
- package/dist/interface/math/vec2/f32/floor.js.map +1 -0
- package/dist/interface/math/vec2/f32/fract.d.ts +2 -0
- package/dist/interface/math/vec2/f32/fract.js +3 -0
- package/dist/interface/math/vec2/f32/fract.js.map +1 -0
- package/dist/interface/math/vec2/f32/length.d.ts +2 -0
- package/dist/interface/math/vec2/f32/length.js +3 -0
- package/dist/interface/math/vec2/f32/length.js.map +1 -0
- package/dist/interface/math/vec2/f32/log.d.ts +2 -0
- package/dist/interface/math/vec2/f32/log.js +3 -0
- package/dist/interface/math/vec2/f32/log.js.map +1 -0
- package/dist/interface/math/vec2/f32/log2.d.ts +2 -0
- package/dist/interface/math/vec2/f32/log2.js +3 -0
- package/dist/interface/math/vec2/f32/log2.js.map +1 -0
- package/dist/interface/math/vec2/f32/max.d.ts +2 -0
- package/dist/interface/math/vec2/f32/max.js +3 -0
- package/dist/interface/math/vec2/f32/max.js.map +1 -0
- package/dist/interface/math/vec2/f32/min.d.ts +2 -0
- package/dist/interface/math/vec2/f32/min.js +3 -0
- package/dist/interface/math/vec2/f32/min.js.map +1 -0
- package/dist/interface/math/vec2/f32/mix.d.ts +2 -0
- package/dist/interface/math/vec2/f32/mix.js +6 -0
- package/dist/interface/math/vec2/f32/mix.js.map +1 -0
- package/dist/interface/math/vec2/f32/mod.d.ts +2 -0
- package/dist/interface/math/vec2/f32/mod.js +2 -0
- package/dist/interface/math/vec2/f32/mod.js.map +1 -0
- package/dist/interface/math/vec2/f32/modf.d.ts +5 -0
- package/dist/interface/math/vec2/f32/modf.js +5 -0
- package/dist/interface/math/vec2/f32/modf.js.map +1 -0
- package/dist/interface/math/vec2/f32/negate.d.ts +2 -0
- package/dist/interface/math/vec2/f32/negate.js +3 -0
- package/dist/interface/math/vec2/f32/negate.js.map +1 -0
- package/dist/interface/math/vec2/f32/normalize.d.ts +2 -0
- package/dist/interface/math/vec2/f32/normalize.js +5 -0
- package/dist/interface/math/vec2/f32/normalize.js.map +1 -0
- package/dist/interface/math/vec2/f32/pow.d.ts +3 -0
- package/dist/interface/math/vec2/f32/pow.js +7 -0
- package/dist/interface/math/vec2/f32/pow.js.map +1 -0
- package/dist/interface/math/vec2/f32/public.d.ts +48 -0
- package/dist/interface/math/vec2/f32/public.js +50 -0
- package/dist/interface/math/vec2/f32/public.js.map +1 -0
- package/dist/interface/math/vec2/f32/reflect.d.ts +2 -0
- package/dist/interface/math/vec2/f32/reflect.js +9 -0
- package/dist/interface/math/vec2/f32/reflect.js.map +1 -0
- package/dist/interface/math/vec2/f32/refract.d.ts +2 -0
- package/dist/interface/math/vec2/f32/refract.js +14 -0
- package/dist/interface/math/vec2/f32/refract.js.map +1 -0
- package/dist/interface/math/vec2/f32/round.d.ts +2 -0
- package/dist/interface/math/vec2/f32/round.js +4 -0
- package/dist/interface/math/vec2/f32/round.js.map +1 -0
- package/dist/interface/math/vec2/f32/scale.d.ts +2 -0
- package/dist/interface/math/vec2/f32/scale.js +3 -0
- package/dist/interface/math/vec2/f32/scale.js.map +1 -0
- package/dist/interface/math/vec2/f32/schema.d.ts +9 -0
- package/dist/interface/math/vec2/f32/schema.js +3 -0
- package/dist/interface/math/vec2/f32/schema.js.map +1 -0
- package/dist/interface/math/vec2/f32/sign.d.ts +2 -0
- package/dist/interface/math/vec2/f32/sign.js +3 -0
- package/dist/interface/math/vec2/f32/sign.js.map +1 -0
- package/dist/interface/math/vec2/f32/sin.d.ts +2 -0
- package/dist/interface/math/vec2/f32/sin.js +3 -0
- package/dist/interface/math/vec2/f32/sin.js.map +1 -0
- package/dist/interface/math/vec2/f32/sinh.d.ts +2 -0
- package/dist/interface/math/vec2/f32/sinh.js +3 -0
- package/dist/interface/math/vec2/f32/sinh.js.map +1 -0
- package/dist/interface/math/vec2/f32/smoothstep.d.ts +2 -0
- package/dist/interface/math/vec2/f32/smoothstep.js +7 -0
- package/dist/interface/math/vec2/f32/smoothstep.js.map +1 -0
- package/dist/interface/math/vec2/f32/sqrt.d.ts +2 -0
- package/dist/interface/math/vec2/f32/sqrt.js +3 -0
- package/dist/interface/math/vec2/f32/sqrt.js.map +1 -0
- package/dist/interface/math/vec2/f32/step.d.ts +2 -0
- package/dist/interface/math/vec2/f32/step.js +6 -0
- package/dist/interface/math/vec2/f32/step.js.map +1 -0
- package/dist/interface/math/vec2/f32/subtract.d.ts +2 -0
- package/dist/interface/math/vec2/f32/subtract.js +3 -0
- package/dist/interface/math/vec2/f32/subtract.js.map +1 -0
- package/dist/interface/math/vec2/f32/tan.d.ts +2 -0
- package/dist/interface/math/vec2/f32/tan.js +3 -0
- package/dist/interface/math/vec2/f32/tan.js.map +1 -0
- package/dist/interface/math/vec2/f32/tanh.d.ts +2 -0
- package/dist/interface/math/vec2/f32/tanh.js +3 -0
- package/dist/interface/math/vec2/f32/tanh.js.map +1 -0
- package/dist/interface/math/vec2/f32/trunc.d.ts +2 -0
- package/dist/interface/math/vec2/f32/trunc.js +3 -0
- package/dist/interface/math/vec2/f32/trunc.js.map +1 -0
- package/dist/interface/math/vec2/f32/zero.d.ts +2 -0
- package/dist/interface/math/vec2/f32/zero.js +2 -0
- package/dist/interface/math/vec2/f32/zero.js.map +1 -0
- package/dist/interface/math/vec2/i32/abs.d.ts +2 -0
- package/dist/interface/math/vec2/i32/abs.js +3 -0
- package/dist/interface/math/vec2/i32/abs.js.map +1 -0
- package/dist/interface/math/vec2/i32/add.d.ts +2 -0
- package/dist/interface/math/vec2/i32/add.js +3 -0
- package/dist/interface/math/vec2/i32/add.js.map +1 -0
- package/dist/interface/math/vec2/i32/bitwise-and.d.ts +2 -0
- package/dist/interface/math/vec2/i32/bitwise-and.js +3 -0
- package/dist/interface/math/vec2/i32/bitwise-and.js.map +1 -0
- package/dist/interface/math/vec2/i32/bitwise-not.d.ts +2 -0
- package/dist/interface/math/vec2/i32/bitwise-not.js +3 -0
- package/dist/interface/math/vec2/i32/bitwise-not.js.map +1 -0
- package/dist/interface/math/vec2/i32/bitwise-or.d.ts +2 -0
- package/dist/interface/math/vec2/i32/bitwise-or.js +3 -0
- package/dist/interface/math/vec2/i32/bitwise-or.js.map +1 -0
- package/dist/interface/math/vec2/i32/bitwise-xor.d.ts +2 -0
- package/dist/interface/math/vec2/i32/bitwise-xor.js +3 -0
- package/dist/interface/math/vec2/i32/bitwise-xor.js.map +1 -0
- package/dist/interface/math/vec2/i32/clamp.d.ts +2 -0
- package/dist/interface/math/vec2/i32/clamp.js +5 -0
- package/dist/interface/math/vec2/i32/clamp.js.map +1 -0
- package/dist/interface/math/vec2/i32/count-leading-zeros.d.ts +2 -0
- package/dist/interface/math/vec2/i32/count-leading-zeros.js +7 -0
- package/dist/interface/math/vec2/i32/count-leading-zeros.js.map +1 -0
- package/dist/interface/math/vec2/i32/count-one-bits.d.ts +2 -0
- package/dist/interface/math/vec2/i32/count-one-bits.js +7 -0
- package/dist/interface/math/vec2/i32/count-one-bits.js.map +1 -0
- package/dist/interface/math/vec2/i32/count-trailing-zeros.d.ts +2 -0
- package/dist/interface/math/vec2/i32/count-trailing-zeros.js +7 -0
- package/dist/interface/math/vec2/i32/count-trailing-zeros.js.map +1 -0
- package/dist/interface/math/vec2/i32/equals.d.ts +2 -0
- package/dist/interface/math/vec2/i32/equals.js +2 -0
- package/dist/interface/math/vec2/i32/equals.js.map +1 -0
- package/dist/interface/math/vec2/i32/i32.d.ts +5 -0
- package/dist/interface/math/vec2/i32/i32.js +2 -0
- package/dist/interface/math/vec2/i32/i32.js.map +1 -0
- package/dist/interface/math/vec2/i32/max.d.ts +2 -0
- package/dist/interface/math/vec2/i32/max.js +3 -0
- package/dist/interface/math/vec2/i32/max.js.map +1 -0
- package/dist/interface/math/vec2/i32/min.d.ts +2 -0
- package/dist/interface/math/vec2/i32/min.js +3 -0
- package/dist/interface/math/vec2/i32/min.js.map +1 -0
- package/dist/interface/math/vec2/i32/negate.d.ts +2 -0
- package/dist/interface/math/vec2/i32/negate.js +3 -0
- package/dist/interface/math/vec2/i32/negate.js.map +1 -0
- package/dist/interface/math/vec2/i32/public.d.ts +22 -0
- package/dist/interface/math/vec2/i32/public.js +24 -0
- package/dist/interface/math/vec2/i32/public.js.map +1 -0
- package/dist/interface/math/vec2/i32/reverse-bits.d.ts +2 -0
- package/dist/interface/math/vec2/i32/reverse-bits.js +4 -0
- package/dist/interface/math/vec2/i32/reverse-bits.js.map +1 -0
- package/dist/interface/math/vec2/i32/scale.d.ts +3 -0
- package/dist/interface/math/vec2/i32/scale.js +3 -0
- package/dist/interface/math/vec2/i32/scale.js.map +1 -0
- package/dist/interface/math/vec2/i32/schema.d.ts +10 -0
- package/dist/interface/math/vec2/i32/schema.js +3 -0
- package/dist/interface/math/vec2/i32/schema.js.map +1 -0
- package/dist/interface/math/vec2/i32/shift-left.d.ts +2 -0
- package/dist/interface/math/vec2/i32/shift-left.js +2 -0
- package/dist/interface/math/vec2/i32/shift-left.js.map +1 -0
- package/dist/interface/math/vec2/i32/shift-right.d.ts +2 -0
- package/dist/interface/math/vec2/i32/shift-right.js +6 -0
- package/dist/interface/math/vec2/i32/shift-right.js.map +1 -0
- package/dist/interface/math/vec2/i32/subtract.d.ts +2 -0
- package/dist/interface/math/vec2/i32/subtract.js +3 -0
- package/dist/interface/math/vec2/i32/subtract.js.map +1 -0
- package/dist/interface/math/vec2/i32/zero.d.ts +2 -0
- package/dist/interface/math/vec2/i32/zero.js +2 -0
- package/dist/interface/math/vec2/i32/zero.js.map +1 -0
- package/dist/interface/math/vec2/index.d.ts +4 -0
- package/dist/interface/math/vec2/index.js +2 -0
- package/dist/interface/math/vec2/index.js.map +1 -0
- package/dist/interface/math/vec2/public.d.ts +5 -0
- package/dist/interface/math/vec2/public.js +7 -0
- package/dist/interface/math/vec2/public.js.map +1 -0
- package/dist/interface/math/vec2/u32/add.d.ts +2 -0
- package/dist/interface/math/vec2/u32/add.js +6 -0
- package/dist/interface/math/vec2/u32/add.js.map +1 -0
- package/dist/interface/math/vec2/u32/bitwise-and.d.ts +2 -0
- package/dist/interface/math/vec2/u32/bitwise-and.js +6 -0
- package/dist/interface/math/vec2/u32/bitwise-and.js.map +1 -0
- package/dist/interface/math/vec2/u32/bitwise-not.d.ts +2 -0
- package/dist/interface/math/vec2/u32/bitwise-not.js +3 -0
- package/dist/interface/math/vec2/u32/bitwise-not.js.map +1 -0
- package/dist/interface/math/vec2/u32/bitwise-or.d.ts +2 -0
- package/dist/interface/math/vec2/u32/bitwise-or.js +6 -0
- package/dist/interface/math/vec2/u32/bitwise-or.js.map +1 -0
- package/dist/interface/math/vec2/u32/bitwise-xor.d.ts +2 -0
- package/dist/interface/math/vec2/u32/bitwise-xor.js +6 -0
- package/dist/interface/math/vec2/u32/bitwise-xor.js.map +1 -0
- package/dist/interface/math/vec2/u32/clamp.d.ts +2 -0
- package/dist/interface/math/vec2/u32/clamp.js +5 -0
- package/dist/interface/math/vec2/u32/clamp.js.map +1 -0
- package/dist/interface/math/vec2/u32/count-leading-zeros.d.ts +2 -0
- package/dist/interface/math/vec2/u32/count-leading-zeros.js +7 -0
- package/dist/interface/math/vec2/u32/count-leading-zeros.js.map +1 -0
- package/dist/interface/math/vec2/u32/count-one-bits.d.ts +2 -0
- package/dist/interface/math/vec2/u32/count-one-bits.js +7 -0
- package/dist/interface/math/vec2/u32/count-one-bits.js.map +1 -0
- package/dist/interface/math/vec2/u32/count-trailing-zeros.d.ts +2 -0
- package/dist/interface/math/vec2/u32/count-trailing-zeros.js +7 -0
- package/dist/interface/math/vec2/u32/count-trailing-zeros.js.map +1 -0
- package/dist/interface/math/vec2/u32/equals.d.ts +2 -0
- package/dist/interface/math/vec2/u32/equals.js +2 -0
- package/dist/interface/math/vec2/u32/equals.js.map +1 -0
- package/dist/interface/math/vec2/u32/max.d.ts +2 -0
- package/dist/interface/math/vec2/u32/max.js +6 -0
- package/dist/interface/math/vec2/u32/max.js.map +1 -0
- package/dist/interface/math/vec2/u32/min.d.ts +2 -0
- package/dist/interface/math/vec2/u32/min.js +6 -0
- package/dist/interface/math/vec2/u32/min.js.map +1 -0
- package/dist/interface/math/vec2/u32/negate.d.ts +2 -0
- package/dist/interface/math/vec2/u32/negate.js +2 -0
- package/dist/interface/math/vec2/u32/negate.js.map +1 -0
- package/dist/interface/math/vec2/u32/public.d.ts +21 -0
- package/dist/interface/math/vec2/u32/public.js +23 -0
- package/dist/interface/math/vec2/u32/public.js.map +1 -0
- package/dist/interface/math/vec2/u32/reverse-bits.d.ts +2 -0
- package/dist/interface/math/vec2/u32/reverse-bits.js +7 -0
- package/dist/interface/math/vec2/u32/reverse-bits.js.map +1 -0
- package/dist/interface/math/vec2/u32/scale.d.ts +3 -0
- package/dist/interface/math/vec2/u32/scale.js +3 -0
- package/dist/interface/math/vec2/u32/scale.js.map +1 -0
- package/dist/interface/math/vec2/u32/schema.d.ts +10 -0
- package/dist/interface/math/vec2/u32/schema.js +3 -0
- package/dist/interface/math/vec2/u32/schema.js.map +1 -0
- package/dist/interface/math/vec2/u32/shift-left.d.ts +2 -0
- package/dist/interface/math/vec2/u32/shift-left.js +2 -0
- package/dist/interface/math/vec2/u32/shift-left.js.map +1 -0
- package/dist/interface/math/vec2/u32/shift-right.d.ts +2 -0
- package/dist/interface/math/vec2/u32/shift-right.js +6 -0
- package/dist/interface/math/vec2/u32/shift-right.js.map +1 -0
- package/dist/interface/math/vec2/u32/subtract.d.ts +2 -0
- package/dist/interface/math/vec2/u32/subtract.js +6 -0
- package/dist/interface/math/vec2/u32/subtract.js.map +1 -0
- package/dist/interface/math/vec2/u32/u32.d.ts +5 -0
- package/dist/interface/math/vec2/u32/u32.js +2 -0
- package/dist/interface/math/vec2/u32/u32.js.map +1 -0
- package/dist/interface/math/vec2/u32/zero.d.ts +2 -0
- package/dist/interface/math/vec2/u32/zero.js +2 -0
- package/dist/interface/math/vec2/u32/zero.js.map +1 -0
- package/dist/interface/math/vec3/f32/abs.d.ts +2 -0
- package/dist/interface/math/vec3/f32/abs.js +3 -0
- package/dist/interface/math/vec3/f32/abs.js.map +1 -0
- package/dist/interface/math/vec3/f32/acos.d.ts +2 -0
- package/dist/interface/math/vec3/f32/acos.js +3 -0
- package/dist/interface/math/vec3/f32/acos.js.map +1 -0
- package/dist/interface/math/vec3/f32/acosh.d.ts +2 -0
- package/dist/interface/math/vec3/f32/acosh.js +3 -0
- package/dist/interface/math/vec3/f32/acosh.js.map +1 -0
- package/dist/interface/math/vec3/f32/add.d.ts +2 -0
- package/dist/interface/math/vec3/f32/add.js +7 -0
- package/dist/interface/math/vec3/f32/add.js.map +1 -0
- package/dist/interface/math/vec3/f32/asin.d.ts +2 -0
- package/dist/interface/math/vec3/f32/asin.js +3 -0
- package/dist/interface/math/vec3/f32/asin.js.map +1 -0
- package/dist/interface/math/vec3/f32/asinh.d.ts +2 -0
- package/dist/interface/math/vec3/f32/asinh.js +3 -0
- package/dist/interface/math/vec3/f32/asinh.js.map +1 -0
- package/dist/interface/math/vec3/f32/atan.d.ts +2 -0
- package/dist/interface/math/vec3/f32/atan.js +3 -0
- package/dist/interface/math/vec3/f32/atan.js.map +1 -0
- package/dist/interface/math/vec3/f32/atanh.d.ts +2 -0
- package/dist/interface/math/vec3/f32/atanh.js +3 -0
- package/dist/interface/math/vec3/f32/atanh.js.map +1 -0
- package/dist/interface/math/vec3/f32/ceil.d.ts +2 -0
- package/dist/interface/math/vec3/f32/ceil.js +3 -0
- package/dist/interface/math/vec3/f32/ceil.js.map +1 -0
- package/dist/interface/math/vec3/f32/clamp.d.ts +2 -0
- package/dist/interface/math/vec3/f32/clamp.js +5 -0
- package/dist/interface/math/vec3/f32/clamp.js.map +1 -0
- package/dist/interface/math/vec3/f32/cos.d.ts +2 -0
- package/dist/interface/math/vec3/f32/cos.js +3 -0
- package/dist/interface/math/vec3/f32/cos.js.map +1 -0
- package/dist/interface/math/vec3/f32/cosh.d.ts +2 -0
- package/dist/interface/math/vec3/f32/cosh.js +3 -0
- package/dist/interface/math/vec3/f32/cosh.js.map +1 -0
- package/dist/interface/math/vec3/f32/cross.d.ts +2 -0
- package/dist/interface/math/vec3/f32/cross.js +7 -0
- package/dist/interface/math/vec3/f32/cross.js.map +1 -0
- package/dist/interface/math/vec3/f32/distance-squared.d.ts +2 -0
- package/dist/interface/math/vec3/f32/distance-squared.js +7 -0
- package/dist/interface/math/vec3/f32/distance-squared.js.map +1 -0
- package/dist/interface/math/vec3/f32/distance.d.ts +2 -0
- package/dist/interface/math/vec3/f32/distance.js +5 -0
- package/dist/interface/math/vec3/f32/distance.js.map +1 -0
- package/dist/interface/math/vec3/f32/dot.d.ts +2 -0
- package/dist/interface/math/vec3/f32/dot.js +3 -0
- package/dist/interface/math/vec3/f32/dot.js.map +1 -0
- package/dist/interface/math/vec3/f32/equals.d.ts +2 -0
- package/dist/interface/math/vec3/f32/equals.js +2 -0
- package/dist/interface/math/vec3/f32/equals.js.map +1 -0
- package/dist/interface/math/vec3/f32/exp.d.ts +2 -0
- package/dist/interface/math/vec3/f32/exp.js +3 -0
- package/dist/interface/math/vec3/f32/exp.js.map +1 -0
- package/dist/interface/math/vec3/f32/exp2.d.ts +2 -0
- package/dist/interface/math/vec3/f32/exp2.js +3 -0
- package/dist/interface/math/vec3/f32/exp2.js.map +1 -0
- package/dist/interface/math/vec3/f32/f32.d.ts +4 -0
- package/dist/interface/math/vec3/f32/f32.js +2 -0
- package/dist/interface/math/vec3/f32/f32.js.map +1 -0
- package/dist/interface/math/vec3/f32/faceforward.d.ts +2 -0
- package/dist/interface/math/vec3/f32/faceforward.js +5 -0
- package/dist/interface/math/vec3/f32/faceforward.js.map +1 -0
- package/dist/interface/math/vec3/f32/floor.d.ts +2 -0
- package/dist/interface/math/vec3/f32/floor.js +3 -0
- package/dist/interface/math/vec3/f32/floor.js.map +1 -0
- package/dist/interface/math/vec3/f32/fract.d.ts +2 -0
- package/dist/interface/math/vec3/f32/fract.js +7 -0
- package/dist/interface/math/vec3/f32/fract.js.map +1 -0
- package/dist/interface/math/vec3/f32/length-squared.d.ts +2 -0
- package/dist/interface/math/vec3/f32/length-squared.js +3 -0
- package/dist/interface/math/vec3/f32/length-squared.js.map +1 -0
- package/dist/interface/math/vec3/f32/length.d.ts +2 -0
- package/dist/interface/math/vec3/f32/length.js +3 -0
- package/dist/interface/math/vec3/f32/length.js.map +1 -0
- package/dist/interface/math/vec3/f32/log.d.ts +2 -0
- package/dist/interface/math/vec3/f32/log.js +3 -0
- package/dist/interface/math/vec3/f32/log.js.map +1 -0
- package/dist/interface/math/vec3/f32/log2.d.ts +2 -0
- package/dist/interface/math/vec3/f32/log2.js +3 -0
- package/dist/interface/math/vec3/f32/log2.js.map +1 -0
- package/dist/interface/math/vec3/f32/max.d.ts +2 -0
- package/dist/interface/math/vec3/f32/max.js +7 -0
- package/dist/interface/math/vec3/f32/max.js.map +1 -0
- package/dist/interface/math/vec3/f32/min.d.ts +2 -0
- package/dist/interface/math/vec3/f32/min.js +7 -0
- package/dist/interface/math/vec3/f32/min.js.map +1 -0
- package/dist/interface/math/vec3/f32/mix.d.ts +2 -0
- package/dist/interface/math/vec3/f32/mix.js +7 -0
- package/dist/interface/math/vec3/f32/mix.js.map +1 -0
- package/dist/interface/math/vec3/f32/mod.d.ts +2 -0
- package/dist/interface/math/vec3/f32/mod.js +6 -0
- package/dist/interface/math/vec3/f32/mod.js.map +1 -0
- package/dist/interface/math/vec3/f32/modf.d.ts +5 -0
- package/dist/interface/math/vec3/f32/modf.js +5 -0
- package/dist/interface/math/vec3/f32/modf.js.map +1 -0
- package/dist/interface/math/vec3/f32/multiply.d.ts +5 -0
- package/dist/interface/math/vec3/f32/multiply.js +10 -0
- package/dist/interface/math/vec3/f32/multiply.js.map +1 -0
- package/dist/interface/math/vec3/f32/negate.d.ts +2 -0
- package/dist/interface/math/vec3/f32/negate.js +3 -0
- package/dist/interface/math/vec3/f32/negate.js.map +1 -0
- package/dist/interface/math/vec3/f32/normalize.d.ts +2 -0
- package/dist/interface/math/vec3/f32/normalize.js +5 -0
- package/dist/interface/math/vec3/f32/normalize.js.map +1 -0
- package/dist/interface/math/vec3/f32/one.d.ts +2 -0
- package/dist/interface/math/vec3/f32/one.js +2 -0
- package/dist/interface/math/vec3/f32/one.js.map +1 -0
- package/dist/interface/math/vec3/f32/pow.d.ts +3 -0
- package/dist/interface/math/vec3/f32/pow.js +8 -0
- package/dist/interface/math/vec3/f32/pow.js.map +1 -0
- package/dist/interface/math/vec3/f32/public.d.ts +54 -0
- package/dist/interface/math/vec3/f32/public.js +56 -0
- package/dist/interface/math/vec3/f32/public.js.map +1 -0
- package/dist/interface/math/vec3/f32/random.d.ts +2 -0
- package/dist/interface/math/vec3/f32/random.js +4 -0
- package/dist/interface/math/vec3/f32/random.js.map +1 -0
- package/dist/interface/math/vec3/f32/reflect.d.ts +2 -0
- package/dist/interface/math/vec3/f32/reflect.js +9 -0
- package/dist/interface/math/vec3/f32/reflect.js.map +1 -0
- package/dist/interface/math/vec3/f32/refract.d.ts +2 -0
- package/dist/interface/math/vec3/f32/refract.js +14 -0
- package/dist/interface/math/vec3/f32/refract.js.map +1 -0
- package/dist/interface/math/vec3/f32/round.d.ts +2 -0
- package/dist/interface/math/vec3/f32/round.js +8 -0
- package/dist/interface/math/vec3/f32/round.js.map +1 -0
- package/dist/interface/math/vec3/f32/scale.d.ts +2 -0
- package/dist/interface/math/vec3/f32/scale.js +3 -0
- package/dist/interface/math/vec3/f32/scale.js.map +1 -0
- package/dist/interface/math/vec3/f32/schema.d.ts +9 -0
- package/dist/interface/math/vec3/f32/schema.js +3 -0
- package/dist/interface/math/vec3/f32/schema.js.map +1 -0
- package/dist/interface/math/vec3/f32/sign.d.ts +2 -0
- package/dist/interface/math/vec3/f32/sign.js +3 -0
- package/dist/interface/math/vec3/f32/sign.js.map +1 -0
- package/dist/interface/math/vec3/f32/sin.d.ts +2 -0
- package/dist/interface/math/vec3/f32/sin.js +3 -0
- package/dist/interface/math/vec3/f32/sin.js.map +1 -0
- package/dist/interface/math/vec3/f32/sinh.d.ts +2 -0
- package/dist/interface/math/vec3/f32/sinh.js +3 -0
- package/dist/interface/math/vec3/f32/sinh.js.map +1 -0
- package/dist/interface/math/vec3/f32/smoothstep.d.ts +2 -0
- package/dist/interface/math/vec3/f32/smoothstep.js +12 -0
- package/dist/interface/math/vec3/f32/smoothstep.js.map +1 -0
- package/dist/interface/math/vec3/f32/sqrt.d.ts +2 -0
- package/dist/interface/math/vec3/f32/sqrt.js +3 -0
- package/dist/interface/math/vec3/f32/sqrt.js.map +1 -0
- package/dist/interface/math/vec3/f32/step.d.ts +2 -0
- package/dist/interface/math/vec3/f32/step.js +7 -0
- package/dist/interface/math/vec3/f32/step.js.map +1 -0
- package/dist/interface/math/vec3/f32/subtract.d.ts +2 -0
- package/dist/interface/math/vec3/f32/subtract.js +7 -0
- package/dist/interface/math/vec3/f32/subtract.js.map +1 -0
- package/dist/interface/math/vec3/f32/tan.d.ts +2 -0
- package/dist/interface/math/vec3/f32/tan.js +3 -0
- package/dist/interface/math/vec3/f32/tan.js.map +1 -0
- package/dist/interface/math/vec3/f32/tanh.d.ts +2 -0
- package/dist/interface/math/vec3/f32/tanh.js +3 -0
- package/dist/interface/math/vec3/f32/tanh.js.map +1 -0
- package/dist/interface/math/vec3/f32/trunc.d.ts +2 -0
- package/dist/interface/math/vec3/f32/trunc.js +3 -0
- package/dist/interface/math/vec3/f32/trunc.js.map +1 -0
- package/dist/interface/math/vec3/f32/zero.d.ts +2 -0
- package/dist/interface/math/vec3/f32/zero.js +2 -0
- package/dist/interface/math/vec3/f32/zero.js.map +1 -0
- package/dist/interface/math/vec3/i32/abs.d.ts +2 -0
- package/dist/interface/math/vec3/i32/abs.js +7 -0
- package/dist/interface/math/vec3/i32/abs.js.map +1 -0
- package/dist/interface/math/vec3/i32/add.d.ts +2 -0
- package/dist/interface/math/vec3/i32/add.js +7 -0
- package/dist/interface/math/vec3/i32/add.js.map +1 -0
- package/dist/interface/math/vec3/i32/bitwise-and.d.ts +2 -0
- package/dist/interface/math/vec3/i32/bitwise-and.js +7 -0
- package/dist/interface/math/vec3/i32/bitwise-and.js.map +1 -0
- package/dist/interface/math/vec3/i32/bitwise-not.d.ts +2 -0
- package/dist/interface/math/vec3/i32/bitwise-not.js +3 -0
- package/dist/interface/math/vec3/i32/bitwise-not.js.map +1 -0
- package/dist/interface/math/vec3/i32/bitwise-or.d.ts +2 -0
- package/dist/interface/math/vec3/i32/bitwise-or.js +7 -0
- package/dist/interface/math/vec3/i32/bitwise-or.js.map +1 -0
- package/dist/interface/math/vec3/i32/bitwise-xor.d.ts +2 -0
- package/dist/interface/math/vec3/i32/bitwise-xor.js +7 -0
- package/dist/interface/math/vec3/i32/bitwise-xor.js.map +1 -0
- package/dist/interface/math/vec3/i32/clamp.d.ts +2 -0
- package/dist/interface/math/vec3/i32/clamp.js +5 -0
- package/dist/interface/math/vec3/i32/clamp.js.map +1 -0
- package/dist/interface/math/vec3/i32/count-leading-zeros.d.ts +2 -0
- package/dist/interface/math/vec3/i32/count-leading-zeros.js +8 -0
- package/dist/interface/math/vec3/i32/count-leading-zeros.js.map +1 -0
- package/dist/interface/math/vec3/i32/count-one-bits.d.ts +2 -0
- package/dist/interface/math/vec3/i32/count-one-bits.js +8 -0
- package/dist/interface/math/vec3/i32/count-one-bits.js.map +1 -0
- package/dist/interface/math/vec3/i32/count-trailing-zeros.d.ts +2 -0
- package/dist/interface/math/vec3/i32/count-trailing-zeros.js +8 -0
- package/dist/interface/math/vec3/i32/count-trailing-zeros.js.map +1 -0
- package/dist/interface/math/vec3/i32/equals.d.ts +2 -0
- package/dist/interface/math/vec3/i32/equals.js +2 -0
- package/dist/interface/math/vec3/i32/equals.js.map +1 -0
- package/dist/interface/math/vec3/i32/i32.d.ts +5 -0
- package/dist/interface/math/vec3/i32/i32.js +2 -0
- package/dist/interface/math/vec3/i32/i32.js.map +1 -0
- package/dist/interface/math/vec3/i32/max.d.ts +2 -0
- package/dist/interface/math/vec3/i32/max.js +7 -0
- package/dist/interface/math/vec3/i32/max.js.map +1 -0
- package/dist/interface/math/vec3/i32/min.d.ts +2 -0
- package/dist/interface/math/vec3/i32/min.js +7 -0
- package/dist/interface/math/vec3/i32/min.js.map +1 -0
- package/dist/interface/math/vec3/i32/multiply.d.ts +2 -0
- package/dist/interface/math/vec3/i32/multiply.js +7 -0
- package/dist/interface/math/vec3/i32/multiply.js.map +1 -0
- package/dist/interface/math/vec3/i32/negate.d.ts +2 -0
- package/dist/interface/math/vec3/i32/negate.js +7 -0
- package/dist/interface/math/vec3/i32/negate.js.map +1 -0
- package/dist/interface/math/vec3/i32/one.d.ts +2 -0
- package/dist/interface/math/vec3/i32/one.js +2 -0
- package/dist/interface/math/vec3/i32/one.js.map +1 -0
- package/dist/interface/math/vec3/i32/public.d.ts +24 -0
- package/dist/interface/math/vec3/i32/public.js +26 -0
- package/dist/interface/math/vec3/i32/public.js.map +1 -0
- package/dist/interface/math/vec3/i32/reverse-bits.d.ts +2 -0
- package/dist/interface/math/vec3/i32/reverse-bits.js +8 -0
- package/dist/interface/math/vec3/i32/reverse-bits.js.map +1 -0
- package/dist/interface/math/vec3/i32/scale.d.ts +3 -0
- package/dist/interface/math/vec3/i32/scale.js +7 -0
- package/dist/interface/math/vec3/i32/scale.js.map +1 -0
- package/dist/interface/math/vec3/i32/schema.d.ts +10 -0
- package/dist/interface/math/vec3/i32/schema.js +3 -0
- package/dist/interface/math/vec3/i32/schema.js.map +1 -0
- package/dist/interface/math/vec3/i32/shift-left.d.ts +2 -0
- package/dist/interface/math/vec3/i32/shift-left.js +2 -0
- package/dist/interface/math/vec3/i32/shift-left.js.map +1 -0
- package/dist/interface/math/vec3/i32/shift-right.d.ts +2 -0
- package/dist/interface/math/vec3/i32/shift-right.js +7 -0
- package/dist/interface/math/vec3/i32/shift-right.js.map +1 -0
- package/dist/interface/math/vec3/i32/subtract.d.ts +2 -0
- package/dist/interface/math/vec3/i32/subtract.js +7 -0
- package/dist/interface/math/vec3/i32/subtract.js.map +1 -0
- package/dist/interface/math/vec3/i32/zero.d.ts +2 -0
- package/dist/interface/math/vec3/i32/zero.js +2 -0
- package/dist/interface/math/vec3/i32/zero.js.map +1 -0
- package/dist/interface/math/vec3/index.d.ts +4 -0
- package/dist/interface/math/vec3/index.js +2 -0
- package/dist/interface/math/vec3/index.js.map +1 -0
- package/dist/interface/math/vec3/public.d.ts +5 -0
- package/dist/interface/math/vec3/public.js +7 -0
- package/dist/interface/math/vec3/public.js.map +1 -0
- package/dist/interface/math/vec3/u32/add.d.ts +2 -0
- package/dist/interface/math/vec3/u32/add.js +7 -0
- package/dist/interface/math/vec3/u32/add.js.map +1 -0
- package/dist/interface/math/vec3/u32/bitwise-and.d.ts +2 -0
- package/dist/interface/math/vec3/u32/bitwise-and.js +7 -0
- package/dist/interface/math/vec3/u32/bitwise-and.js.map +1 -0
- package/dist/interface/math/vec3/u32/bitwise-not.d.ts +2 -0
- package/dist/interface/math/vec3/u32/bitwise-not.js +3 -0
- package/dist/interface/math/vec3/u32/bitwise-not.js.map +1 -0
- package/dist/interface/math/vec3/u32/bitwise-or.d.ts +2 -0
- package/dist/interface/math/vec3/u32/bitwise-or.js +7 -0
- package/dist/interface/math/vec3/u32/bitwise-or.js.map +1 -0
- package/dist/interface/math/vec3/u32/bitwise-xor.d.ts +2 -0
- package/dist/interface/math/vec3/u32/bitwise-xor.js +7 -0
- package/dist/interface/math/vec3/u32/bitwise-xor.js.map +1 -0
- package/dist/interface/math/vec3/u32/clamp.d.ts +2 -0
- package/dist/interface/math/vec3/u32/clamp.js +5 -0
- package/dist/interface/math/vec3/u32/clamp.js.map +1 -0
- package/dist/interface/math/vec3/u32/count-leading-zeros.d.ts +2 -0
- package/dist/interface/math/vec3/u32/count-leading-zeros.js +8 -0
- package/dist/interface/math/vec3/u32/count-leading-zeros.js.map +1 -0
- package/dist/interface/math/vec3/u32/count-one-bits.d.ts +2 -0
- package/dist/interface/math/vec3/u32/count-one-bits.js +8 -0
- package/dist/interface/math/vec3/u32/count-one-bits.js.map +1 -0
- package/dist/interface/math/vec3/u32/count-trailing-zeros.d.ts +2 -0
- package/dist/interface/math/vec3/u32/count-trailing-zeros.js +8 -0
- package/dist/interface/math/vec3/u32/count-trailing-zeros.js.map +1 -0
- package/dist/interface/math/vec3/u32/equals.d.ts +2 -0
- package/dist/interface/math/vec3/u32/equals.js +2 -0
- package/dist/interface/math/vec3/u32/equals.js.map +1 -0
- package/dist/interface/math/vec3/u32/max.d.ts +2 -0
- package/dist/interface/math/vec3/u32/max.js +7 -0
- package/dist/interface/math/vec3/u32/max.js.map +1 -0
- package/dist/interface/math/vec3/u32/min.d.ts +2 -0
- package/dist/interface/math/vec3/u32/min.js +7 -0
- package/dist/interface/math/vec3/u32/min.js.map +1 -0
- package/dist/interface/math/vec3/u32/multiply.d.ts +2 -0
- package/dist/interface/math/vec3/u32/multiply.js +7 -0
- package/dist/interface/math/vec3/u32/multiply.js.map +1 -0
- package/dist/interface/math/vec3/u32/negate.d.ts +2 -0
- package/dist/interface/math/vec3/u32/negate.js +2 -0
- package/dist/interface/math/vec3/u32/negate.js.map +1 -0
- package/dist/interface/math/vec3/u32/one.d.ts +2 -0
- package/dist/interface/math/vec3/u32/one.js +2 -0
- package/dist/interface/math/vec3/u32/one.js.map +1 -0
- package/dist/interface/math/vec3/u32/public.d.ts +24 -0
- package/dist/interface/math/vec3/u32/public.js +26 -0
- package/dist/interface/math/vec3/u32/public.js.map +1 -0
- package/dist/interface/math/vec3/u32/reverse-bits.d.ts +2 -0
- package/dist/interface/math/vec3/u32/reverse-bits.js +8 -0
- package/dist/interface/math/vec3/u32/reverse-bits.js.map +1 -0
- package/dist/interface/math/vec3/u32/scale.d.ts +3 -0
- package/dist/interface/math/vec3/u32/scale.js +7 -0
- package/dist/interface/math/vec3/u32/scale.js.map +1 -0
- package/dist/interface/math/vec3/u32/schema.d.ts +10 -0
- package/dist/interface/math/vec3/u32/schema.js +3 -0
- package/dist/interface/math/vec3/u32/schema.js.map +1 -0
- package/dist/interface/math/vec3/u32/shift-left.d.ts +2 -0
- package/dist/interface/math/vec3/u32/shift-left.js +6 -0
- package/dist/interface/math/vec3/u32/shift-left.js.map +1 -0
- package/dist/interface/math/vec3/u32/shift-right.d.ts +2 -0
- package/dist/interface/math/vec3/u32/shift-right.js +7 -0
- package/dist/interface/math/vec3/u32/shift-right.js.map +1 -0
- package/dist/interface/math/vec3/u32/subtract.d.ts +2 -0
- package/dist/interface/math/vec3/u32/subtract.js +7 -0
- package/dist/interface/math/vec3/u32/subtract.js.map +1 -0
- package/dist/interface/math/vec3/u32/u32.d.ts +5 -0
- package/dist/interface/math/vec3/u32/u32.js +2 -0
- package/dist/interface/math/vec3/u32/u32.js.map +1 -0
- package/dist/interface/math/vec3/u32/volume.d.ts +2 -0
- package/dist/interface/math/vec3/u32/volume.js +2 -0
- package/dist/interface/math/vec3/u32/volume.js.map +1 -0
- package/dist/interface/math/vec3/u32/zero.d.ts +2 -0
- package/dist/interface/math/vec3/u32/zero.js +2 -0
- package/dist/interface/math/vec3/u32/zero.js.map +1 -0
- package/dist/interface/math/vec4/f32/abs.d.ts +2 -0
- package/dist/interface/math/vec4/f32/abs.js +3 -0
- package/dist/interface/math/vec4/f32/abs.js.map +1 -0
- package/dist/interface/math/vec4/f32/acos.d.ts +2 -0
- package/dist/interface/math/vec4/f32/acos.js +3 -0
- package/dist/interface/math/vec4/f32/acos.js.map +1 -0
- package/dist/interface/math/vec4/f32/acosh.d.ts +2 -0
- package/dist/interface/math/vec4/f32/acosh.js +3 -0
- package/dist/interface/math/vec4/f32/acosh.js.map +1 -0
- package/dist/interface/math/vec4/f32/add.d.ts +2 -0
- package/dist/interface/math/vec4/f32/add.js +8 -0
- package/dist/interface/math/vec4/f32/add.js.map +1 -0
- package/dist/interface/math/vec4/f32/asin.d.ts +2 -0
- package/dist/interface/math/vec4/f32/asin.js +3 -0
- package/dist/interface/math/vec4/f32/asin.js.map +1 -0
- package/dist/interface/math/vec4/f32/asinh.d.ts +2 -0
- package/dist/interface/math/vec4/f32/asinh.js +3 -0
- package/dist/interface/math/vec4/f32/asinh.js.map +1 -0
- package/dist/interface/math/vec4/f32/atan.d.ts +2 -0
- package/dist/interface/math/vec4/f32/atan.js +3 -0
- package/dist/interface/math/vec4/f32/atan.js.map +1 -0
- package/dist/interface/math/vec4/f32/atanh.d.ts +2 -0
- package/dist/interface/math/vec4/f32/atanh.js +3 -0
- package/dist/interface/math/vec4/f32/atanh.js.map +1 -0
- package/dist/interface/math/vec4/f32/ceil.d.ts +2 -0
- package/dist/interface/math/vec4/f32/ceil.js +3 -0
- package/dist/interface/math/vec4/f32/ceil.js.map +1 -0
- package/dist/interface/math/vec4/f32/clamp.d.ts +2 -0
- package/dist/interface/math/vec4/f32/clamp.js +5 -0
- package/dist/interface/math/vec4/f32/clamp.js.map +1 -0
- package/dist/interface/math/vec4/f32/cos.d.ts +2 -0
- package/dist/interface/math/vec4/f32/cos.js +3 -0
- package/dist/interface/math/vec4/f32/cos.js.map +1 -0
- package/dist/interface/math/vec4/f32/cosh.d.ts +2 -0
- package/dist/interface/math/vec4/f32/cosh.js +3 -0
- package/dist/interface/math/vec4/f32/cosh.js.map +1 -0
- package/dist/interface/math/vec4/f32/default.d.ts +4 -0
- package/dist/interface/math/vec4/f32/default.js +4 -0
- package/dist/interface/math/vec4/f32/default.js.map +1 -0
- package/dist/interface/math/vec4/f32/distance.d.ts +2 -0
- package/dist/interface/math/vec4/f32/distance.js +5 -0
- package/dist/interface/math/vec4/f32/distance.js.map +1 -0
- package/dist/interface/math/vec4/f32/dot.d.ts +2 -0
- package/dist/interface/math/vec4/f32/dot.js +3 -0
- package/dist/interface/math/vec4/f32/dot.js.map +1 -0
- package/dist/interface/math/vec4/f32/exp.d.ts +2 -0
- package/dist/interface/math/vec4/f32/exp.js +3 -0
- package/dist/interface/math/vec4/f32/exp.js.map +1 -0
- package/dist/interface/math/vec4/f32/exp2.d.ts +2 -0
- package/dist/interface/math/vec4/f32/exp2.js +3 -0
- package/dist/interface/math/vec4/f32/exp2.js.map +1 -0
- package/dist/interface/math/vec4/f32/f32.d.ts +4 -0
- package/dist/interface/math/vec4/f32/f32.js +2 -0
- package/dist/interface/math/vec4/f32/f32.js.map +1 -0
- package/dist/interface/math/vec4/f32/faceforward.d.ts +2 -0
- package/dist/interface/math/vec4/f32/faceforward.js +5 -0
- package/dist/interface/math/vec4/f32/faceforward.js.map +1 -0
- package/dist/interface/math/vec4/f32/floor.d.ts +2 -0
- package/dist/interface/math/vec4/f32/floor.js +3 -0
- package/dist/interface/math/vec4/f32/floor.js.map +1 -0
- package/dist/interface/math/vec4/f32/fract.d.ts +2 -0
- package/dist/interface/math/vec4/f32/fract.js +8 -0
- package/dist/interface/math/vec4/f32/fract.js.map +1 -0
- package/dist/interface/math/vec4/f32/length.d.ts +2 -0
- package/dist/interface/math/vec4/f32/length.js +3 -0
- package/dist/interface/math/vec4/f32/length.js.map +1 -0
- package/dist/interface/math/vec4/f32/log.d.ts +2 -0
- package/dist/interface/math/vec4/f32/log.js +3 -0
- package/dist/interface/math/vec4/f32/log.js.map +1 -0
- package/dist/interface/math/vec4/f32/log2.d.ts +2 -0
- package/dist/interface/math/vec4/f32/log2.js +3 -0
- package/dist/interface/math/vec4/f32/log2.js.map +1 -0
- package/dist/interface/math/vec4/f32/max.d.ts +2 -0
- package/dist/interface/math/vec4/f32/max.js +8 -0
- package/dist/interface/math/vec4/f32/max.js.map +1 -0
- package/dist/interface/math/vec4/f32/min.d.ts +2 -0
- package/dist/interface/math/vec4/f32/min.js +8 -0
- package/dist/interface/math/vec4/f32/min.js.map +1 -0
- package/dist/interface/math/vec4/f32/mix.d.ts +2 -0
- package/dist/interface/math/vec4/f32/mix.js +8 -0
- package/dist/interface/math/vec4/f32/mix.js.map +1 -0
- package/dist/interface/math/vec4/f32/mod.d.ts +2 -0
- package/dist/interface/math/vec4/f32/mod.js +7 -0
- package/dist/interface/math/vec4/f32/mod.js.map +1 -0
- package/dist/interface/math/vec4/f32/modf.d.ts +5 -0
- package/dist/interface/math/vec4/f32/modf.js +5 -0
- package/dist/interface/math/vec4/f32/modf.js.map +1 -0
- package/dist/interface/math/vec4/f32/multiply.d.ts +2 -0
- package/dist/interface/math/vec4/f32/multiply.js +8 -0
- package/dist/interface/math/vec4/f32/multiply.js.map +1 -0
- package/dist/interface/math/vec4/f32/negate.d.ts +2 -0
- package/dist/interface/math/vec4/f32/negate.js +3 -0
- package/dist/interface/math/vec4/f32/negate.js.map +1 -0
- package/dist/interface/math/vec4/f32/normalize.d.ts +2 -0
- package/dist/interface/math/vec4/f32/normalize.js +5 -0
- package/dist/interface/math/vec4/f32/normalize.js.map +1 -0
- package/dist/interface/math/vec4/f32/pow.d.ts +3 -0
- package/dist/interface/math/vec4/f32/pow.js +9 -0
- package/dist/interface/math/vec4/f32/pow.js.map +1 -0
- package/dist/interface/math/vec4/f32/public.d.ts +47 -0
- package/dist/interface/math/vec4/f32/public.js +49 -0
- package/dist/interface/math/vec4/f32/public.js.map +1 -0
- package/dist/interface/math/vec4/f32/reflect.d.ts +2 -0
- package/dist/interface/math/vec4/f32/reflect.js +9 -0
- package/dist/interface/math/vec4/f32/reflect.js.map +1 -0
- package/dist/interface/math/vec4/f32/refract.d.ts +2 -0
- package/dist/interface/math/vec4/f32/refract.js +14 -0
- package/dist/interface/math/vec4/f32/refract.js.map +1 -0
- package/dist/interface/math/vec4/f32/round.d.ts +2 -0
- package/dist/interface/math/vec4/f32/round.js +9 -0
- package/dist/interface/math/vec4/f32/round.js.map +1 -0
- package/dist/interface/math/vec4/f32/scale.d.ts +2 -0
- package/dist/interface/math/vec4/f32/scale.js +3 -0
- package/dist/interface/math/vec4/f32/scale.js.map +1 -0
- package/dist/interface/math/vec4/f32/schema.d.ts +9 -0
- package/dist/interface/math/vec4/f32/schema.js +3 -0
- package/dist/interface/math/vec4/f32/schema.js.map +1 -0
- package/dist/interface/math/vec4/f32/sign.d.ts +2 -0
- package/dist/interface/math/vec4/f32/sign.js +3 -0
- package/dist/interface/math/vec4/f32/sign.js.map +1 -0
- package/dist/interface/math/vec4/f32/sin.d.ts +2 -0
- package/dist/interface/math/vec4/f32/sin.js +3 -0
- package/dist/interface/math/vec4/f32/sin.js.map +1 -0
- package/dist/interface/math/vec4/f32/sinh.d.ts +2 -0
- package/dist/interface/math/vec4/f32/sinh.js +3 -0
- package/dist/interface/math/vec4/f32/sinh.js.map +1 -0
- package/dist/interface/math/vec4/f32/smoothstep.d.ts +2 -0
- package/dist/interface/math/vec4/f32/smoothstep.js +14 -0
- package/dist/interface/math/vec4/f32/smoothstep.js.map +1 -0
- package/dist/interface/math/vec4/f32/sqrt.d.ts +2 -0
- package/dist/interface/math/vec4/f32/sqrt.js +3 -0
- package/dist/interface/math/vec4/f32/sqrt.js.map +1 -0
- package/dist/interface/math/vec4/f32/step.d.ts +2 -0
- package/dist/interface/math/vec4/f32/step.js +8 -0
- package/dist/interface/math/vec4/f32/step.js.map +1 -0
- package/dist/interface/math/vec4/f32/subtract.d.ts +2 -0
- package/dist/interface/math/vec4/f32/subtract.js +8 -0
- package/dist/interface/math/vec4/f32/subtract.js.map +1 -0
- package/dist/interface/math/vec4/f32/tan.d.ts +2 -0
- package/dist/interface/math/vec4/f32/tan.js +3 -0
- package/dist/interface/math/vec4/f32/tan.js.map +1 -0
- package/dist/interface/math/vec4/f32/tanh.d.ts +2 -0
- package/dist/interface/math/vec4/f32/tanh.js +3 -0
- package/dist/interface/math/vec4/f32/tanh.js.map +1 -0
- package/dist/interface/math/vec4/f32/trunc.d.ts +2 -0
- package/dist/interface/math/vec4/f32/trunc.js +3 -0
- package/dist/interface/math/vec4/f32/trunc.js.map +1 -0
- package/dist/interface/math/vec4/i32/abs.d.ts +2 -0
- package/dist/interface/math/vec4/i32/abs.js +8 -0
- package/dist/interface/math/vec4/i32/abs.js.map +1 -0
- package/dist/interface/math/vec4/i32/add.d.ts +2 -0
- package/dist/interface/math/vec4/i32/add.js +8 -0
- package/dist/interface/math/vec4/i32/add.js.map +1 -0
- package/dist/interface/math/vec4/i32/bitwise-and.d.ts +2 -0
- package/dist/interface/math/vec4/i32/bitwise-and.js +8 -0
- package/dist/interface/math/vec4/i32/bitwise-and.js.map +1 -0
- package/dist/interface/math/vec4/i32/bitwise-not.d.ts +2 -0
- package/dist/interface/math/vec4/i32/bitwise-not.js +3 -0
- package/dist/interface/math/vec4/i32/bitwise-not.js.map +1 -0
- package/dist/interface/math/vec4/i32/bitwise-or.d.ts +2 -0
- package/dist/interface/math/vec4/i32/bitwise-or.js +8 -0
- package/dist/interface/math/vec4/i32/bitwise-or.js.map +1 -0
- package/dist/interface/math/vec4/i32/bitwise-xor.d.ts +2 -0
- package/dist/interface/math/vec4/i32/bitwise-xor.js +8 -0
- package/dist/interface/math/vec4/i32/bitwise-xor.js.map +1 -0
- package/dist/interface/math/vec4/i32/clamp.d.ts +2 -0
- package/dist/interface/math/vec4/i32/clamp.js +5 -0
- package/dist/interface/math/vec4/i32/clamp.js.map +1 -0
- package/dist/interface/math/vec4/i32/count-leading-zeros.d.ts +2 -0
- package/dist/interface/math/vec4/i32/count-leading-zeros.js +9 -0
- package/dist/interface/math/vec4/i32/count-leading-zeros.js.map +1 -0
- package/dist/interface/math/vec4/i32/count-one-bits.d.ts +2 -0
- package/dist/interface/math/vec4/i32/count-one-bits.js +9 -0
- package/dist/interface/math/vec4/i32/count-one-bits.js.map +1 -0
- package/dist/interface/math/vec4/i32/count-trailing-zeros.d.ts +2 -0
- package/dist/interface/math/vec4/i32/count-trailing-zeros.js +9 -0
- package/dist/interface/math/vec4/i32/count-trailing-zeros.js.map +1 -0
- package/dist/interface/math/vec4/i32/equals.d.ts +2 -0
- package/dist/interface/math/vec4/i32/equals.js +2 -0
- package/dist/interface/math/vec4/i32/equals.js.map +1 -0
- package/dist/interface/math/vec4/i32/i32.d.ts +5 -0
- package/dist/interface/math/vec4/i32/i32.js +2 -0
- package/dist/interface/math/vec4/i32/i32.js.map +1 -0
- package/dist/interface/math/vec4/i32/max.d.ts +2 -0
- package/dist/interface/math/vec4/i32/max.js +8 -0
- package/dist/interface/math/vec4/i32/max.js.map +1 -0
- package/dist/interface/math/vec4/i32/min.d.ts +2 -0
- package/dist/interface/math/vec4/i32/min.js +8 -0
- package/dist/interface/math/vec4/i32/min.js.map +1 -0
- package/dist/interface/math/vec4/i32/multiply.d.ts +2 -0
- package/dist/interface/math/vec4/i32/multiply.js +8 -0
- package/dist/interface/math/vec4/i32/multiply.js.map +1 -0
- package/dist/interface/math/vec4/i32/negate.d.ts +2 -0
- package/dist/interface/math/vec4/i32/negate.js +8 -0
- package/dist/interface/math/vec4/i32/negate.js.map +1 -0
- package/dist/interface/math/vec4/i32/one.d.ts +2 -0
- package/dist/interface/math/vec4/i32/one.js +2 -0
- package/dist/interface/math/vec4/i32/one.js.map +1 -0
- package/dist/interface/math/vec4/i32/public.d.ts +24 -0
- package/dist/interface/math/vec4/i32/public.js +26 -0
- package/dist/interface/math/vec4/i32/public.js.map +1 -0
- package/dist/interface/math/vec4/i32/reverse-bits.d.ts +2 -0
- package/dist/interface/math/vec4/i32/reverse-bits.js +9 -0
- package/dist/interface/math/vec4/i32/reverse-bits.js.map +1 -0
- package/dist/interface/math/vec4/i32/scale.d.ts +3 -0
- package/dist/interface/math/vec4/i32/scale.js +8 -0
- package/dist/interface/math/vec4/i32/scale.js.map +1 -0
- package/dist/interface/math/vec4/i32/schema.d.ts +10 -0
- package/dist/interface/math/vec4/i32/schema.js +3 -0
- package/dist/interface/math/vec4/i32/schema.js.map +1 -0
- package/dist/interface/math/vec4/i32/shift-left.d.ts +2 -0
- package/dist/interface/math/vec4/i32/shift-left.js +2 -0
- package/dist/interface/math/vec4/i32/shift-left.js.map +1 -0
- package/dist/interface/math/vec4/i32/shift-right.d.ts +2 -0
- package/dist/interface/math/vec4/i32/shift-right.js +8 -0
- package/dist/interface/math/vec4/i32/shift-right.js.map +1 -0
- package/dist/interface/math/vec4/i32/subtract.d.ts +2 -0
- package/dist/interface/math/vec4/i32/subtract.js +8 -0
- package/dist/interface/math/vec4/i32/subtract.js.map +1 -0
- package/dist/interface/math/vec4/i32/zero.d.ts +2 -0
- package/dist/interface/math/vec4/i32/zero.js +2 -0
- package/dist/interface/math/vec4/i32/zero.js.map +1 -0
- package/dist/interface/math/vec4/index.d.ts +4 -0
- package/dist/interface/math/vec4/index.js +2 -0
- package/dist/interface/math/vec4/index.js.map +1 -0
- package/dist/interface/math/vec4/public.d.ts +5 -0
- package/dist/interface/math/vec4/public.js +7 -0
- package/dist/interface/math/vec4/public.js.map +1 -0
- package/dist/interface/math/vec4/u32/add.d.ts +2 -0
- package/dist/interface/math/vec4/u32/add.js +8 -0
- package/dist/interface/math/vec4/u32/add.js.map +1 -0
- package/dist/interface/math/vec4/u32/bitwise-and.d.ts +2 -0
- package/dist/interface/math/vec4/u32/bitwise-and.js +8 -0
- package/dist/interface/math/vec4/u32/bitwise-and.js.map +1 -0
- package/dist/interface/math/vec4/u32/bitwise-not.d.ts +2 -0
- package/dist/interface/math/vec4/u32/bitwise-not.js +3 -0
- package/dist/interface/math/vec4/u32/bitwise-not.js.map +1 -0
- package/dist/interface/math/vec4/u32/bitwise-or.d.ts +2 -0
- package/dist/interface/math/vec4/u32/bitwise-or.js +8 -0
- package/dist/interface/math/vec4/u32/bitwise-or.js.map +1 -0
- package/dist/interface/math/vec4/u32/bitwise-xor.d.ts +2 -0
- package/dist/interface/math/vec4/u32/bitwise-xor.js +8 -0
- package/dist/interface/math/vec4/u32/bitwise-xor.js.map +1 -0
- package/dist/interface/math/vec4/u32/clamp.d.ts +2 -0
- package/dist/interface/math/vec4/u32/clamp.js +5 -0
- package/dist/interface/math/vec4/u32/clamp.js.map +1 -0
- package/dist/interface/math/vec4/u32/count-leading-zeros.d.ts +2 -0
- package/dist/interface/math/vec4/u32/count-leading-zeros.js +9 -0
- package/dist/interface/math/vec4/u32/count-leading-zeros.js.map +1 -0
- package/dist/interface/math/vec4/u32/count-one-bits.d.ts +2 -0
- package/dist/interface/math/vec4/u32/count-one-bits.js +9 -0
- package/dist/interface/math/vec4/u32/count-one-bits.js.map +1 -0
- package/dist/interface/math/vec4/u32/count-trailing-zeros.d.ts +2 -0
- package/dist/interface/math/vec4/u32/count-trailing-zeros.js +9 -0
- package/dist/interface/math/vec4/u32/count-trailing-zeros.js.map +1 -0
- package/dist/interface/math/vec4/u32/equals.d.ts +2 -0
- package/dist/interface/math/vec4/u32/equals.js +2 -0
- package/dist/interface/math/vec4/u32/equals.js.map +1 -0
- package/dist/interface/math/vec4/u32/max.d.ts +2 -0
- package/dist/interface/math/vec4/u32/max.js +8 -0
- package/dist/interface/math/vec4/u32/max.js.map +1 -0
- package/dist/interface/math/vec4/u32/min.d.ts +2 -0
- package/dist/interface/math/vec4/u32/min.js +8 -0
- package/dist/interface/math/vec4/u32/min.js.map +1 -0
- package/dist/interface/math/vec4/u32/multiply.d.ts +2 -0
- package/dist/interface/math/vec4/u32/multiply.js +8 -0
- package/dist/interface/math/vec4/u32/multiply.js.map +1 -0
- package/dist/interface/math/vec4/u32/negate.d.ts +2 -0
- package/dist/interface/math/vec4/u32/negate.js +2 -0
- package/dist/interface/math/vec4/u32/negate.js.map +1 -0
- package/dist/interface/math/vec4/u32/one.d.ts +2 -0
- package/dist/interface/math/vec4/u32/one.js +2 -0
- package/dist/interface/math/vec4/u32/one.js.map +1 -0
- package/dist/interface/math/vec4/u32/public.d.ts +23 -0
- package/dist/interface/math/vec4/u32/public.js +25 -0
- package/dist/interface/math/vec4/u32/public.js.map +1 -0
- package/dist/interface/math/vec4/u32/reverse-bits.d.ts +2 -0
- package/dist/interface/math/vec4/u32/reverse-bits.js +9 -0
- package/dist/interface/math/vec4/u32/reverse-bits.js.map +1 -0
- package/dist/interface/math/vec4/u32/scale.d.ts +3 -0
- package/dist/interface/math/vec4/u32/scale.js +8 -0
- package/dist/interface/math/vec4/u32/scale.js.map +1 -0
- package/dist/interface/math/vec4/u32/schema.d.ts +10 -0
- package/dist/interface/math/vec4/u32/schema.js +3 -0
- package/dist/interface/math/vec4/u32/schema.js.map +1 -0
- package/dist/interface/math/vec4/u32/shift-left.d.ts +2 -0
- package/dist/interface/math/vec4/u32/shift-left.js +7 -0
- package/dist/interface/math/vec4/u32/shift-left.js.map +1 -0
- package/dist/interface/math/vec4/u32/shift-right.d.ts +2 -0
- package/dist/interface/math/vec4/u32/shift-right.js +8 -0
- package/dist/interface/math/vec4/u32/shift-right.js.map +1 -0
- package/dist/interface/math/vec4/u32/subtract.d.ts +2 -0
- package/dist/interface/math/vec4/u32/subtract.js +8 -0
- package/dist/interface/math/vec4/u32/subtract.js.map +1 -0
- package/dist/interface/math/vec4/u32/u32.d.ts +5 -0
- package/dist/interface/math/vec4/u32/u32.js +2 -0
- package/dist/interface/math/vec4/u32/u32.js.map +1 -0
- package/dist/interface/math/vec4/u32/zero.d.ts +2 -0
- package/dist/interface/math/vec4/u32/zero.js +2 -0
- package/dist/interface/math/vec4/u32/zero.js.map +1 -0
- package/dist/interface/platform/platform.d.ts +28 -0
- package/dist/interface/platform/platform.js +2 -0
- package/dist/interface/platform/platform.js.map +1 -0
- package/dist/interface/registry/archetypes.d.ts +29 -0
- package/dist/interface/registry/archetypes.js +52 -0
- package/dist/interface/registry/archetypes.js.map +1 -0
- package/dist/interface/registry/declarations.d.ts +25 -0
- package/dist/interface/registry/declarations.js +217 -0
- package/dist/interface/registry/declarations.js.map +1 -0
- package/dist/interface/registry/finalizer-order.d.ts +6 -0
- package/dist/interface/registry/finalizer-order.js +66 -0
- package/dist/interface/registry/finalizer-order.js.map +1 -0
- package/dist/interface/registry/ids.d.ts +35 -0
- package/dist/interface/registry/ids.js +70 -0
- package/dist/interface/registry/ids.js.map +1 -0
- package/dist/interface/registry/index.d.ts +29 -0
- package/dist/interface/registry/index.js +16 -0
- package/dist/interface/registry/index.js.map +1 -0
- package/dist/interface/registry/indexes.d.ts +38 -0
- package/dist/interface/registry/indexes.js +63 -0
- package/dist/interface/registry/indexes.js.map +1 -0
- package/dist/interface/registry/items.d.ts +38 -0
- package/dist/interface/registry/items.js +79 -0
- package/dist/interface/registry/items.js.map +1 -0
- package/dist/interface/registry/layout.d.ts +61 -0
- package/dist/interface/registry/layout.js +318 -0
- package/dist/interface/registry/layout.js.map +1 -0
- package/dist/interface/registry/names.d.ts +46 -0
- package/dist/interface/registry/names.js +153 -0
- package/dist/interface/registry/names.js.map +1 -0
- package/dist/interface/registry/program.d.ts +36 -0
- package/dist/interface/registry/program.js +96 -0
- package/dist/interface/registry/program.js.map +1 -0
- package/dist/interface/registry/reduction.d.ts +5 -0
- package/dist/interface/registry/reduction.js +5 -0
- package/dist/interface/registry/reduction.js.map +1 -0
- package/dist/interface/registry/schedule.d.ts +36 -0
- package/dist/interface/registry/schedule.js +202 -0
- package/dist/interface/registry/schedule.js.map +1 -0
- package/dist/interface/registry/schemas.d.ts +22 -0
- package/dist/interface/registry/schemas.js +122 -0
- package/dist/interface/registry/schemas.js.map +1 -0
- package/dist/interface/registry/strata.d.ts +29 -0
- package/dist/interface/registry/strata.js +95 -0
- package/dist/interface/registry/strata.js.map +1 -0
- package/dist/interface/registry/threads.d.ts +34 -0
- package/dist/interface/registry/threads.js +53 -0
- package/dist/interface/registry/threads.js.map +1 -0
- package/dist/interface/registry/traits.d.ts +4 -0
- package/dist/interface/registry/traits.js +11 -0
- package/dist/interface/registry/traits.js.map +1 -0
- package/dist/interface/registry/written.d.ts +4 -0
- package/dist/interface/registry/written.js +14 -0
- package/dist/interface/registry/written.js.map +1 -0
- package/dist/interface/resource/condition.d.ts +8 -0
- package/dist/interface/resource/condition.js +2 -0
- package/dist/interface/resource/condition.js.map +1 -0
- package/dist/interface/resource/index.d.ts +2 -0
- package/dist/interface/resource/index.js +2 -0
- package/dist/interface/resource/index.js.map +1 -0
- package/dist/interface/resource/key.d.ts +2 -0
- package/dist/interface/resource/key.js +2 -0
- package/dist/interface/resource/key.js.map +1 -0
- package/dist/interface/resource/reduction.d.ts +14 -0
- package/dist/interface/resource/reduction.js +2 -0
- package/dist/interface/resource/reduction.js.map +1 -0
- package/dist/interface/resource/resource.d.ts +2 -0
- package/dist/interface/resource/resource.js +3 -0
- package/dist/interface/resource/resource.js.map +1 -0
- package/dist/interface/resource/types.d.ts +6 -0
- package/dist/interface/resource/types.js +2 -0
- package/dist/interface/resource/types.js.map +1 -0
- package/dist/interface/resource/value.d.ts +21 -0
- package/dist/interface/resource/value.js +2 -0
- package/dist/interface/resource/value.js.map +1 -0
- package/dist/interface/resource/written.d.ts +3 -0
- package/dist/interface/resource/written.js +2 -0
- package/dist/interface/resource/written.js.map +1 -0
- package/dist/interface/resources/always.d.ts +9 -0
- package/dist/interface/resources/always.js +6 -0
- package/dist/interface/resources/always.js.map +1 -0
- package/dist/interface/resources/cadence.d.ts +21 -0
- package/dist/interface/resources/cadence.js +18 -0
- package/dist/interface/resources/cadence.js.map +1 -0
- package/dist/interface/resources/clock.d.ts +16 -0
- package/dist/interface/resources/clock.js +12 -0
- package/dist/interface/resources/clock.js.map +1 -0
- package/dist/interface/resources/gpu-device.d.ts +13 -0
- package/dist/interface/resources/gpu-device.js +10 -0
- package/dist/interface/resources/gpu-device.js.map +1 -0
- package/dist/interface/resources/index.d.ts +6 -0
- package/dist/interface/resources/index.js +8 -0
- package/dist/interface/resources/index.js.map +1 -0
- package/dist/interface/resources/wake.d.ts +13 -0
- package/dist/interface/resources/wake.js +9 -0
- package/dist/interface/resources/wake.js.map +1 -0
- package/dist/interface/resources/workers.d.ts +9 -0
- package/dist/interface/resources/workers.js +6 -0
- package/dist/interface/resources/workers.js.map +1 -0
- package/dist/interface/rule/create.d.ts +13 -0
- package/dist/interface/rule/create.js +27 -0
- package/dist/interface/rule/create.js.map +1 -0
- package/dist/interface/rule/created.d.ts +7 -0
- package/dist/interface/rule/created.js +2 -0
- package/dist/interface/rule/created.js.map +1 -0
- package/dist/interface/rule/declaration.d.ts +18 -0
- package/dist/interface/rule/declaration.js +2 -0
- package/dist/interface/rule/declaration.js.map +1 -0
- package/dist/interface/rule/index.d.ts +1 -0
- package/dist/interface/rule/index.js +3 -0
- package/dist/interface/rule/index.js.map +1 -0
- package/dist/interface/rule/rule.d.ts +2 -0
- package/dist/interface/rule/rule.js +2 -0
- package/dist/interface/rule/rule.js.map +1 -0
- package/dist/interface/schema/is-struct.d.ts +43 -0
- package/dist/interface/schema/is-struct.js +2 -0
- package/dist/interface/schema/is-struct.js.map +1 -0
- package/dist/interface/schema/schema.d.ts +171 -0
- package/dist/interface/schema/schema.js +2 -0
- package/dist/interface/schema/schema.js.map +1 -0
- package/dist/interface/system/access.d.ts +132 -0
- package/dist/interface/system/access.js +2 -0
- package/dist/interface/system/access.js.map +1 -0
- package/dist/interface/system/body.d.ts +83 -0
- package/dist/interface/system/body.js +2 -0
- package/dist/interface/system/body.js.map +1 -0
- package/dist/interface/system/check.d.ts +24 -0
- package/dist/interface/system/check.js +296 -0
- package/dist/interface/system/check.js.map +1 -0
- package/dist/interface/system/commands.d.ts +74 -0
- package/dist/interface/system/commands.js +2 -0
- package/dist/interface/system/commands.js.map +1 -0
- package/dist/interface/system/composite-declaration.d.ts +11 -0
- package/dist/interface/system/composite-declaration.js +2 -0
- package/dist/interface/system/composite-declaration.js.map +1 -0
- package/dist/interface/system/composite.d.ts +8 -0
- package/dist/interface/system/composite.js +2 -0
- package/dist/interface/system/composite.js.map +1 -0
- package/dist/interface/system/create-resolved.d.ts +9 -0
- package/dist/interface/system/create-resolved.js +18 -0
- package/dist/interface/system/create-resolved.js.map +1 -0
- package/dist/interface/system/create.d.ts +218 -0
- package/dist/interface/system/create.js +55 -0
- package/dist/interface/system/create.js.map +1 -0
- package/dist/interface/system/declaration.d.ts +75 -0
- package/dist/interface/system/declaration.js +2 -0
- package/dist/interface/system/declaration.js.map +1 -0
- package/dist/interface/system/definition.d.ts +4 -0
- package/dist/interface/system/definition.js +2 -0
- package/dist/interface/system/definition.js.map +1 -0
- package/dist/interface/system/index.d.ts +3 -0
- package/dist/interface/system/index.js +3 -0
- package/dist/interface/system/index.js.map +1 -0
- package/dist/interface/system/input.d.ts +59 -0
- package/dist/interface/system/input.js +2 -0
- package/dist/interface/system/input.js.map +1 -0
- package/dist/interface/system/leaf.d.ts +19 -0
- package/dist/interface/system/leaf.js +2 -0
- package/dist/interface/system/leaf.js.map +1 -0
- package/dist/interface/system/name.d.ts +6 -0
- package/dist/interface/system/name.js +2 -0
- package/dist/interface/system/name.js.map +1 -0
- package/dist/interface/system/property.d.ts +4 -0
- package/dist/interface/system/property.js +3 -0
- package/dist/interface/system/property.js.map +1 -0
- package/dist/interface/system/render.d.ts +84 -0
- package/dist/interface/system/render.js +46 -0
- package/dist/interface/system/render.js.map +1 -0
- package/dist/interface/system/resolve.d.ts +68 -0
- package/dist/interface/system/resolve.js +138 -0
- package/dist/interface/system/resolve.js.map +1 -0
- package/dist/interface/system/struct.d.ts +11 -0
- package/dist/interface/system/struct.js +2 -0
- package/dist/interface/system/struct.js.map +1 -0
- package/dist/interface/system/system.d.ts +12 -0
- package/dist/interface/system/system.js +2 -0
- package/dist/interface/system/system.js.map +1 -0
- package/dist/interface/system/threads.d.ts +47 -0
- package/dist/interface/system/threads.js +2 -0
- package/dist/interface/system/threads.js.map +1 -0
- package/dist/interface/system/values-of.d.ts +17 -0
- package/dist/interface/system/values-of.js +2 -0
- package/dist/interface/system/values-of.js.map +1 -0
- package/dist/interface/system/values.d.ts +73 -0
- package/dist/interface/system/values.js +2 -0
- package/dist/interface/system/values.js.map +1 -0
- package/dist/interface/thread/of.d.ts +11 -0
- package/dist/interface/thread/of.js +2 -0
- package/dist/interface/thread/of.js.map +1 -0
- package/dist/interface/thread/thread.d.ts +12 -0
- package/dist/interface/thread/thread.js +2 -0
- package/dist/interface/thread/thread.js.map +1 -0
- package/dist/interface/trait/key.d.ts +4 -0
- package/dist/interface/trait/key.js +2 -0
- package/dist/interface/trait/key.js.map +1 -0
- package/dist/interface/trait/types.d.ts +74 -0
- package/dist/interface/trait/types.js +2 -0
- package/dist/interface/trait/types.js.map +1 -0
- package/dist/interface/world/create.d.ts +21 -0
- package/dist/interface/world/create.js +2 -0
- package/dist/interface/world/create.js.map +1 -0
- package/dist/interface/world/declarations.d.ts +37 -0
- package/dist/interface/world/declarations.js +2 -0
- package/dist/interface/world/declarations.js.map +1 -0
- package/dist/interface/world/filter.d.ts +8 -0
- package/dist/interface/world/filter.js +3 -0
- package/dist/interface/world/filter.js.map +1 -0
- package/dist/interface/world/index.d.ts +1 -0
- package/dist/interface/world/index.js +2 -0
- package/dist/interface/world/index.js.map +1 -0
- package/dist/interface/world/join.d.ts +17 -0
- package/dist/interface/world/join.js +2 -0
- package/dist/interface/world/join.js.map +1 -0
- package/dist/interface/world/world.d.ts +73 -0
- package/dist/interface/world/world.js +2 -0
- package/dist/interface/world/world.js.map +1 -0
- package/package.json +79 -3
- package/src/exports.test.ts +276 -0
- package/src/guide/00-keys.md +34 -0
- package/src/guide/00-keys.out +1 -0
- package/src/guide/00-keys.ts +35 -0
- package/src/guide/00-setup.md +24 -0
- package/src/guide/01-resources.md +22 -0
- package/src/guide/01-resources.out +2 -0
- package/src/guide/01-resources.ts +33 -0
- package/src/guide/02-entities.md +19 -0
- package/src/guide/02-entities.out +2 -0
- package/src/guide/02-entities.ts +43 -0
- package/src/guide/03-systems.md +22 -0
- package/src/guide/03-systems.out +5 -0
- package/src/guide/03-systems.ts +68 -0
- package/src/guide/04-ticks.md +18 -0
- package/src/guide/04-ticks.out +3 -0
- package/src/guide/04-ticks.ts +53 -0
- package/src/guide/05-scheduling.md +14 -0
- package/src/guide/05-scheduling.out +2 -0
- package/src/guide/05-scheduling.ts +46 -0
- package/src/guide/06-sync-points.md +14 -0
- package/src/guide/06-sync-points.out +3 -0
- package/src/guide/06-sync-points.ts +42 -0
- package/src/guide/07-change-filters.md +14 -0
- package/src/guide/07-change-filters.out +6 -0
- package/src/guide/07-change-filters.ts +70 -0
- package/src/guide/08-input.md +12 -0
- package/src/guide/08-input.out +1 -0
- package/src/guide/08-input.ts +45 -0
- package/src/guide/09-rules.md +12 -0
- package/src/guide/09-rules.out +2 -0
- package/src/guide/09-rules.ts +50 -0
- package/src/guide/10-finalizers.md +13 -0
- package/src/guide/10-finalizers.out +4 -0
- package/src/guide/10-finalizers.ts +48 -0
- package/src/guide/11-traits.md +16 -0
- package/src/guide/11-traits.out +2 -0
- package/src/guide/11-traits.ts +51 -0
- package/src/guide/11-traits.type-test.ts +25 -0
- package/src/guide/12-lookups.md +14 -0
- package/src/guide/12-lookups.out +3 -0
- package/src/guide/12-lookups.ts +59 -0
- package/src/guide/13-indexes.md +21 -0
- package/src/guide/13-indexes.out +8 -0
- package/src/guide/13-indexes.ts +73 -0
- package/src/guide/14-kernels.md +15 -0
- package/src/guide/14-kernels.out +1 -0
- package/src/guide/14-kernels.ts +48 -0
- package/src/guide/15-reductions.md +12 -0
- package/src/guide/15-reductions.out +1 -0
- package/src/guide/15-reductions.ts +38 -0
- package/src/guide/16-gpu.md +18 -0
- package/src/guide/16-gpu.out +3 -0
- package/src/guide/16-gpu.ts +51 -0
- package/src/guide/17-hierarchies.md +11 -0
- package/src/guide/17-hierarchies.out +1 -0
- package/src/guide/17-hierarchies.ts +40 -0
- package/src/guide/18-identity.md +10 -0
- package/src/guide/18-identity.out +1 -0
- package/src/guide/18-identity.ts +11 -0
- package/src/guide/19-threads.md +16 -0
- package/src/guide/19-threads.out +2 -0
- package/src/guide/19-threads.ts +65 -0
- package/src/guide/20-shared.md +29 -0
- package/src/guide/20-shared.out +4 -0
- package/src/guide/20-shared.ts +118 -0
- package/src/guide/21-dom.md +22 -0
- package/src/guide/21-dom.out +5 -0
- package/src/guide/21-dom.ts +117 -0
- package/src/guide/22-canvas.md +15 -0
- package/src/guide/22-canvas.out +3 -0
- package/src/guide/22-canvas.ts +119 -0
- package/src/guide/CLAUDE.md +49 -0
- package/src/guide/README.md +42 -0
- package/src/guide/guide.test.ts +215 -0
- package/src/implementation/compiler/access.ts +149 -0
- package/src/implementation/compiler/archetypes.test.ts +64 -0
- package/src/implementation/compiler/archetypes.ts +134 -0
- package/src/implementation/compiler/assign.ts +168 -0
- package/src/implementation/compiler/augmentations.test.ts +418 -0
- package/src/implementation/compiler/augmentations.ts +871 -0
- package/src/implementation/compiler/bind.ts +89 -0
- package/src/implementation/compiler/body-access.ts +434 -0
- package/src/implementation/compiler/booleans.ts +39 -0
- package/src/implementation/compiler/branches.ts +46 -0
- package/src/implementation/compiler/calls.ts +395 -0
- package/src/implementation/compiler/columns.ts +62 -0
- package/src/implementation/compiler/compile-kernel.ts +204 -0
- package/src/implementation/compiler/compiler.ts +9 -0
- package/src/implementation/compiler/data.ts +95 -0
- package/src/implementation/compiler/describe.test-helper.ts +97 -0
- package/src/implementation/compiler/describe.test.ts +168 -0
- package/src/implementation/compiler/describe.ts +489 -0
- package/src/implementation/compiler/estree.ts +64 -0
- package/src/implementation/compiler/expression.ts +146 -0
- package/src/implementation/compiler/failure.ts +38 -0
- package/src/implementation/compiler/hygiene.test.ts +66 -0
- package/src/implementation/compiler/identify.test.ts +209 -0
- package/src/implementation/compiler/identify.ts +212 -0
- package/src/implementation/compiler/index.ts +6 -0
- package/src/implementation/compiler/inferred.test.ts +32 -0
- package/src/implementation/compiler/inferred.ts +197 -0
- package/src/implementation/compiler/inline-kernels.test.ts +10 -0
- package/src/implementation/compiler/inline-kernels.ts +21 -0
- package/src/implementation/compiler/input-schemas.test.ts +182 -0
- package/src/implementation/compiler/input-schemas.ts +107 -0
- package/src/implementation/compiler/ir.ts +106 -0
- package/src/implementation/compiler/kernel-id.ts +34 -0
- package/src/implementation/compiler/key.ts +33 -0
- package/src/implementation/compiler/link.test.ts +73 -0
- package/src/implementation/compiler/link.ts +231 -0
- package/src/implementation/compiler/lists.ts +230 -0
- package/src/implementation/compiler/lookups.ts +121 -0
- package/src/implementation/compiler/math.ts +10 -0
- package/src/implementation/compiler/memory-compiler.browser.test.ts +85 -0
- package/src/implementation/compiler/memory-compiler.test.ts +147 -0
- package/src/implementation/compiler/memory-compiler.ts +307 -0
- package/src/implementation/compiler/module-scope.ts +141 -0
- package/src/implementation/compiler/module-value.ts +136 -0
- package/src/implementation/compiler/out.ts +7 -0
- package/src/implementation/compiler/oxc.test-helper.ts +20 -0
- package/src/implementation/compiler/oxc.test.ts +69 -0
- package/src/implementation/compiler/oxc.ts +90 -0
- package/src/implementation/compiler/package-copies.ts +208 -0
- package/src/implementation/compiler/passes.ts +34 -0
- package/src/implementation/compiler/paths.ts +24 -0
- package/src/implementation/compiler/plugin.test.ts +686 -0
- package/src/implementation/compiler/plugin.ts +384 -0
- package/src/implementation/compiler/posix.test.ts +34 -0
- package/src/implementation/compiler/posix.ts +183 -0
- package/src/implementation/compiler/predicates.test.ts +90 -0
- package/src/implementation/compiler/predicates.ts +250 -0
- package/src/implementation/compiler/print.ts +124 -0
- package/src/implementation/compiler/program.ts +235 -0
- package/src/implementation/compiler/public.ts +2 -0
- package/src/implementation/compiler/scalar.ts +47 -0
- package/src/implementation/compiler/scope.ts +28 -0
- package/src/implementation/compiler/serialize.ts +11 -0
- package/src/implementation/compiler/shared-kernels.test.ts +57 -0
- package/src/implementation/compiler/signature.ts +210 -0
- package/src/implementation/compiler/snapshot.ts +37 -0
- package/src/implementation/compiler/source-map.test.ts +41 -0
- package/src/implementation/compiler/source-map.ts +135 -0
- package/src/implementation/compiler/spawns.ts +171 -0
- package/src/implementation/compiler/stamps.ts +46 -0
- package/src/implementation/compiler/statement.ts +103 -0
- package/src/implementation/compiler/subset.md +83 -0
- package/src/implementation/compiler/terminal.ts +50 -0
- package/src/implementation/compiler/transform.test.ts +1534 -0
- package/src/implementation/compiler/transform.ts +498 -0
- package/src/implementation/compiler/type-host.test-helper.ts +27 -0
- package/src/implementation/compiler/type-schemas.ts +714 -0
- package/src/implementation/compiler/unit.ts +132 -0
- package/src/implementation/compiler/value.ts +61 -0
- package/src/implementation/compiler/wat.test.ts +135 -0
- package/src/implementation/compiler/wat.ts +365 -0
- package/src/implementation/index.ts +3 -0
- package/src/implementation/world/activate.ts +134 -0
- package/src/implementation/world/archetype.ts +501 -0
- package/src/implementation/world/arrays.test.ts +25 -0
- package/src/implementation/world/arrays.ts +48 -0
- package/src/implementation/world/arrivals.test.ts +89 -0
- package/src/implementation/world/arrivals.ts +165 -0
- package/src/implementation/world/async-loading.test.ts +86 -0
- package/src/implementation/world/attach-kernel.test.ts +17 -0
- package/src/implementation/world/attach-kernel.ts +31 -0
- package/src/implementation/world/batches.test.ts +126 -0
- package/src/implementation/world/batches.ts +185 -0
- package/src/implementation/world/buffer.ts +176 -0
- package/src/implementation/world/builtins.test.ts +87 -0
- package/src/implementation/world/cascade.ts +145 -0
- package/src/implementation/world/cells.ts +25 -0
- package/src/implementation/world/change-blocks.browser.test.ts +76 -0
- package/src/implementation/world/change-blocks.cases.ts +14 -0
- package/src/implementation/world/change-blocks.fixture.ts +70 -0
- package/src/implementation/world/change-blocks.test.ts +264 -0
- package/src/implementation/world/changes-finalizers.test.ts +38 -0
- package/src/implementation/world/check-kernel.ts +100 -0
- package/src/implementation/world/claims.test.ts +42 -0
- package/src/implementation/world/claims.ts +51 -0
- package/src/implementation/world/closure.test.ts +40 -0
- package/src/implementation/world/closure.ts +41 -0
- package/src/implementation/world/command-ring.ts +475 -0
- package/src/implementation/world/command-rings.cases.ts +48 -0
- package/src/implementation/world/command-rings.fixture.ts +180 -0
- package/src/implementation/world/commands.test.ts +385 -0
- package/src/implementation/world/commands.ts +100 -0
- package/src/implementation/world/composite-input.test.ts +39 -0
- package/src/implementation/world/conditions.test.ts +113 -0
- package/src/implementation/world/constant-unions.test.ts +43 -0
- package/src/implementation/world/create.test.ts +362 -0
- package/src/implementation/world/create.ts +1061 -0
- package/src/implementation/world/defaults.test.ts +86 -0
- package/src/implementation/world/directories.ts +87 -0
- package/src/implementation/world/directory.test.ts +53 -0
- package/src/implementation/world/dispatch.cases.ts +33 -0
- package/src/implementation/world/dispatch.fixture.ts +163 -0
- package/src/implementation/world/entities.ts +190 -0
- package/src/implementation/world/entity-lookup-workers.cases.ts +19 -0
- package/src/implementation/world/entity-lookup-workers.fixture.ts +102 -0
- package/src/implementation/world/entity-lookups.browser.test.ts +51 -0
- package/src/implementation/world/entity-lookups.test-helper.ts +195 -0
- package/src/implementation/world/entity-lookups.test.ts +105 -0
- package/src/implementation/world/execute.ts +745 -0
- package/src/implementation/world/failing-worker.fixture.ts +3 -0
- package/src/implementation/world/failures.ts +71 -0
- package/src/implementation/world/finalizers.test.ts +302 -0
- package/src/implementation/world/finalizers.ts +451 -0
- package/src/implementation/world/fixtures.test-helper.ts +20 -0
- package/src/implementation/world/generated-code.md +144 -0
- package/src/implementation/world/gpu.browser.test.ts +701 -0
- package/src/implementation/world/gpu.test-helper.ts +12 -0
- package/src/implementation/world/gpu.ts +405 -0
- package/src/implementation/world/holders.ts +69 -0
- package/src/implementation/world/ids-changes.test-helper.ts +4 -0
- package/src/implementation/world/ids-keys.test-helper.ts +21 -0
- package/src/implementation/world/ids.test.ts +31 -0
- package/src/implementation/world/imported-lists.test-helper.ts +18 -0
- package/src/implementation/world/imported-lists.test.ts +44 -0
- package/src/implementation/world/index-buckets.test.ts +276 -0
- package/src/implementation/world/index-build-csp.test.ts +58 -0
- package/src/implementation/world/index-build.cases.ts +21 -0
- package/src/implementation/world/index-build.fixture.ts +122 -0
- package/src/implementation/world/index-build.ts +459 -0
- package/src/implementation/world/index-changed.test.ts +235 -0
- package/src/implementation/world/index-hash.test.ts +34 -0
- package/src/implementation/world/index-hash.ts +858 -0
- package/src/implementation/world/index-joined.test.ts +451 -0
- package/src/implementation/world/index-kernels.test.ts +195 -0
- package/src/implementation/world/index-keyless.test.ts +271 -0
- package/src/implementation/world/index-keys.ts +272 -0
- package/src/implementation/world/index-lookups-csp.test.ts +43 -0
- package/src/implementation/world/index-lookups.ts +629 -0
- package/src/implementation/world/index-order.test.ts +150 -0
- package/src/implementation/world/index-order.ts +183 -0
- package/src/implementation/world/index-readers.ts +325 -0
- package/src/implementation/world/index-sorted.test.ts +76 -0
- package/src/implementation/world/index-sorted.ts +656 -0
- package/src/implementation/world/index-workers.cases.ts +27 -0
- package/src/implementation/world/index-workers.fixture.ts +250 -0
- package/src/implementation/world/indexes.test.ts +719 -0
- package/src/implementation/world/indexes.ts +1163 -0
- package/src/implementation/world/input.ts +15 -0
- package/src/implementation/world/intrinsics-coverage.test.ts +26 -0
- package/src/implementation/world/intrinsics.browser.test.ts +544 -0
- package/src/implementation/world/intrinsics.ts +41 -0
- package/src/implementation/world/join.test.ts +309 -0
- package/src/implementation/world/join.ts +729 -0
- package/src/implementation/world/join.type-test.ts +29 -0
- package/src/implementation/world/joined-observer.test.ts +58 -0
- package/src/implementation/world/joined-observer.ts +875 -0
- package/src/implementation/world/joining-worker.fixture.ts +109 -0
- package/src/implementation/world/joining.cases.ts +88 -0
- package/src/implementation/world/joining.fixture.ts +238 -0
- package/src/implementation/world/joining.test-helper.ts +90 -0
- package/src/implementation/world/joining.ts +387 -0
- package/src/implementation/world/journal.ts +40 -0
- package/src/implementation/world/kernel-imports-sparks.test-helper.ts +16 -0
- package/src/implementation/world/kernel-imports-steer.test-helper.ts +10 -0
- package/src/implementation/world/kernel-imports.test.ts +71 -0
- package/src/implementation/world/kernel-indexes.ts +174 -0
- package/src/implementation/world/kernel-lookup.test-helper.ts +26 -0
- package/src/implementation/world/kernel-path.test-helper.ts +18 -0
- package/src/implementation/world/kernel-spawns.test.ts +148 -0
- package/src/implementation/world/kernel-tried.test-helper.ts +31 -0
- package/src/implementation/world/kernel.ts +268 -0
- package/src/implementation/world/kernels-csp.test.ts +42 -0
- package/src/implementation/world/kernels.test.ts +82 -0
- package/src/implementation/world/kernels.ts +398 -0
- package/src/implementation/world/layout-directory.browser.test.ts +195 -0
- package/src/implementation/world/layout-directory.cases.ts +38 -0
- package/src/implementation/world/layout-directory.fixture.ts +176 -0
- package/src/implementation/world/layout-directory.ts +282 -0
- package/src/implementation/world/lifetime.cases.ts +19 -0
- package/src/implementation/world/lifetime.fixture.ts +68 -0
- package/src/implementation/world/lifetime.test-helper.ts +79 -0
- package/src/implementation/world/lifetime.test.ts +80 -0
- package/src/implementation/world/lists.ts +303 -0
- package/src/implementation/world/lookup-keys.ts +49 -0
- package/src/implementation/world/loop.test.ts +193 -0
- package/src/implementation/world/loop.ts +295 -0
- package/src/implementation/world/memory.test.ts +42 -0
- package/src/implementation/world/memory.ts +90 -0
- package/src/implementation/world/mirror.ts +638 -0
- package/src/implementation/world/move-log.test.ts +429 -0
- package/src/implementation/world/move-log.ts +216 -0
- package/src/implementation/world/names.test.ts +80 -0
- package/src/implementation/world/observe-cases.browser.test.ts +97 -0
- package/src/implementation/world/observe-cases.test.ts +752 -0
- package/src/implementation/world/observe-factories.test.ts +301 -0
- package/src/implementation/world/observe-joined-cases.test.ts +221 -0
- package/src/implementation/world/observe-ticks-cases.test.ts +211 -0
- package/src/implementation/world/observe.test-helper.ts +14 -0
- package/src/implementation/world/observed-workers.cases.ts +13 -0
- package/src/implementation/world/observed-workers.fixture.ts +54 -0
- package/src/implementation/world/observer-contained-worker.fixture.ts +41 -0
- package/src/implementation/world/observer-contained.browser.test.ts +5 -0
- package/src/implementation/world/observer-contained.cases.ts +17 -0
- package/src/implementation/world/observer-contained.fixture.ts +121 -0
- package/src/implementation/world/observer-contained.test-helper.ts +42 -0
- package/src/implementation/world/observer-contained.test.ts +88 -0
- package/src/implementation/world/observer-joined-worker.fixture.ts +81 -0
- package/src/implementation/world/observer-joined.cases.ts +29 -0
- package/src/implementation/world/observer-joined.fixture.ts +288 -0
- package/src/implementation/world/observer-joined.test-helper.ts +171 -0
- package/src/implementation/world/observer-joined.test.ts +366 -0
- package/src/implementation/world/observer.browser.test.ts +73 -0
- package/src/implementation/world/observer.test.ts +291 -0
- package/src/implementation/world/observer.ts +139 -0
- package/src/implementation/world/optional-workers.cases.ts +19 -0
- package/src/implementation/world/optional-workers.fixture.ts +55 -0
- package/src/implementation/world/optional.test.ts +351 -0
- package/src/implementation/world/order.ts +352 -0
- package/src/implementation/world/out-of-band.ts +61 -0
- package/src/implementation/world/outcomes.test-helper.ts +138 -0
- package/src/implementation/world/package-id.test-helper.ts +9 -0
- package/src/implementation/world/perf.md +476 -0
- package/src/implementation/world/plan.md +81 -0
- package/src/implementation/world/plan.ts +72 -0
- package/src/implementation/world/platforms.test-helper.ts +68 -0
- package/src/implementation/world/pool-size.cases.ts +41 -0
- package/src/implementation/world/pool-size.fixture.ts +158 -0
- package/src/implementation/world/pool.cases.ts +31 -0
- package/src/implementation/world/pool.fixture.ts +55 -0
- package/src/implementation/world/pool.ts +324 -0
- package/src/implementation/world/port.test.ts +45 -0
- package/src/implementation/world/port.ts +148 -0
- package/src/implementation/world/ports.cases.ts +37 -0
- package/src/implementation/world/ports.fixture.ts +106 -0
- package/src/implementation/world/ports.type-test.ts +15 -0
- package/src/implementation/world/precision.test.ts +174 -0
- package/src/implementation/world/prepared-lookup.ts +96 -0
- package/src/implementation/world/prepared-spawn.ts +165 -0
- package/src/implementation/world/program.ts +14 -0
- package/src/implementation/world/protocol.ts +134 -0
- package/src/implementation/world/publish.ts +29 -0
- package/src/implementation/world/ranges.test.ts +66 -0
- package/src/implementation/world/ranges.ts +110 -0
- package/src/implementation/world/reads.test-helper.ts +30 -0
- package/src/implementation/world/reclaim.test.ts +214 -0
- package/src/implementation/world/reclaim.ts +170 -0
- package/src/implementation/world/reductions.cases.ts +23 -0
- package/src/implementation/world/reductions.fixture.ts +60 -0
- package/src/implementation/world/reductions.test.ts +266 -0
- package/src/implementation/world/reductions.ts +107 -0
- package/src/implementation/world/reevaluation.test-helper.ts +16 -0
- package/src/implementation/world/reevaluation.test.ts +33 -0
- package/src/implementation/world/register.ts +413 -0
- package/src/implementation/world/remote-finalizers-worker.fixture.ts +59 -0
- package/src/implementation/world/remote-finalizers.cases.ts +42 -0
- package/src/implementation/world/remote-finalizers.fixture.ts +215 -0
- package/src/implementation/world/remote-finalizers.test-helper.ts +252 -0
- package/src/implementation/world/remote-finalizers.test.ts +254 -0
- package/src/implementation/world/remote-objects-worker.fixture.ts +21 -0
- package/src/implementation/world/remote-objects.cases.ts +17 -0
- package/src/implementation/world/remote-objects.fixture.ts +61 -0
- package/src/implementation/world/remote-objects.test-helper.ts +106 -0
- package/src/implementation/world/remote-systems.ts +641 -0
- package/src/implementation/world/remote.test.ts +184 -0
- package/src/implementation/world/remote.ts +126 -0
- package/src/implementation/world/removal-worker.fixture.ts +21 -0
- package/src/implementation/world/removal.cases.ts +17 -0
- package/src/implementation/world/removal.fixture.ts +96 -0
- package/src/implementation/world/remove-joined.test.ts +182 -0
- package/src/implementation/world/remove.test-helper.ts +82 -0
- package/src/implementation/world/remove.test.ts +191 -0
- package/src/implementation/world/render-order.browser.test.ts +209 -0
- package/src/implementation/world/render-order.ts +150 -0
- package/src/implementation/world/required.ts +10 -0
- package/src/implementation/world/resources.ts +71 -0
- package/src/implementation/world/rows.test.ts +75 -0
- package/src/implementation/world/rows.ts +584 -0
- package/src/implementation/world/rules.test.ts +242 -0
- package/src/implementation/world/run-results.test.ts +374 -0
- package/src/implementation/world/runner.ts +1379 -0
- package/src/implementation/world/schedule.test.ts +122 -0
- package/src/implementation/world/semantics.test.ts +95 -0
- package/src/implementation/world/share.test.ts +18 -0
- package/src/implementation/world/shared-gpu.browser.test.ts +109 -0
- package/src/implementation/world/shared-kernels.test.ts +117 -0
- package/src/implementation/world/shared-workers.cases.ts +20 -0
- package/src/implementation/world/shared-workers.fixture.ts +74 -0
- package/src/implementation/world/shared.test.ts +348 -0
- package/src/implementation/world/shared.ts +316 -0
- package/src/implementation/world/sharing.ts +652 -0
- package/src/implementation/world/staging.ts +239 -0
- package/src/implementation/world/state.ts +678 -0
- package/src/implementation/world/stop-lists.ts +377 -0
- package/src/implementation/world/strings.test.ts +189 -0
- package/src/implementation/world/strings.ts +247 -0
- package/src/implementation/world/structure.ts +74 -0
- package/src/implementation/world/synchronize.test.ts +55 -0
- package/src/implementation/world/synchronize.ts +805 -0
- package/src/implementation/world/tail-blocks.ts +79 -0
- package/src/implementation/world/tails-worker.fixture.ts +62 -0
- package/src/implementation/world/tails.cases.ts +45 -0
- package/src/implementation/world/tails.fixture.ts +257 -0
- package/src/implementation/world/tails.test-helper.ts +173 -0
- package/src/implementation/world/tails.test.ts +109 -0
- package/src/implementation/world/tails.ts +490 -0
- package/src/implementation/world/target.test.ts +70 -0
- package/src/implementation/world/terminal.ts +14 -0
- package/src/implementation/world/thread-directory.ts +279 -0
- package/src/implementation/world/thread-finalizers.ts +424 -0
- package/src/implementation/world/thread-indexes.ts +92 -0
- package/src/implementation/world/thread-observer.ts +281 -0
- package/src/implementation/world/thread-systems-worker.fixture.ts +69 -0
- package/src/implementation/world/thread-systems.cases.ts +54 -0
- package/src/implementation/world/thread-systems.fixture.ts +234 -0
- package/src/implementation/world/thread-systems.test-helper.ts +330 -0
- package/src/implementation/world/thread-systems.test.ts +145 -0
- package/src/implementation/world/thread-systems.ts +1514 -0
- package/src/implementation/world/thread-tasks.ts +80 -0
- package/src/implementation/world/threads.browser.test.ts +51 -0
- package/src/implementation/world/threads.test.ts +83 -0
- package/src/implementation/world/ticks.browser.test.ts +43 -0
- package/src/implementation/world/ticks.test.ts +34 -0
- package/src/implementation/world/traits.test.ts +62 -0
- package/src/implementation/world/transfers-worker.fixture.ts +119 -0
- package/src/implementation/world/transfers.cases.ts +31 -0
- package/src/implementation/world/transfers.fixture.ts +140 -0
- package/src/implementation/world/transfers.test-helper.ts +101 -0
- package/src/implementation/world/transfers.test.ts +153 -0
- package/src/implementation/world/transfers.ts +105 -0
- package/src/implementation/world/unidentified-finalizers.test.ts +58 -0
- package/src/implementation/world/up-tree.test.ts +312 -0
- package/src/implementation/world/up-workers.cases.ts +14 -0
- package/src/implementation/world/up-workers.fixture.ts +63 -0
- package/src/implementation/world/up.browser.test.ts +75 -0
- package/src/implementation/world/up.test.ts +298 -0
- package/src/implementation/world/up.ts +912 -0
- package/src/implementation/world/wasm-kernels.test.ts +275 -0
- package/src/implementation/world/wasm.test.ts +559 -0
- package/src/implementation/world/wasm.ts +2365 -0
- package/src/implementation/world/wgsl.test.ts +42 -0
- package/src/implementation/world/wgsl.ts +481 -0
- package/src/implementation/world/where.test.ts +342 -0
- package/src/implementation/world/where.ts +236 -0
- package/src/implementation/world/worker-platform.ts +106 -0
- package/src/implementation/world/worker-window.test.ts +43 -0
- package/src/implementation/world/worker-window.ts +43 -0
- package/src/implementation/world/worker.ts +548 -0
- package/src/implementation/world/workers-follow.test.ts +51 -0
- package/src/implementation/world/workers.cases.ts +60 -0
- package/src/implementation/world/workers.fixture.ts +238 -0
- package/src/implementation/world/world-host.fixture.ts +11 -0
- package/src/index.ts +21 -0
- package/src/interface/CLAUDE.md +33 -0
- package/src/interface/component/component.ts +5 -0
- package/src/interface/component/index.ts +3 -0
- package/src/interface/component/key.ts +4 -0
- package/src/interface/component/key.type-test.ts +30 -0
- package/src/interface/component/register.test.ts +117 -0
- package/src/interface/component/types.ts +7 -0
- package/src/interface/component/value.ts +41 -0
- package/src/interface/component/values.ts +6 -0
- package/src/interface/entity/entity.ts +10 -0
- package/src/interface/entity/index.ts +12 -0
- package/src/interface/finalizer/body.ts +52 -0
- package/src/interface/finalizer/create.test.ts +143 -0
- package/src/interface/finalizer/create.ts +158 -0
- package/src/interface/finalizer/created.ts +22 -0
- package/src/interface/finalizer/declaration.ts +48 -0
- package/src/interface/finalizer/finalizer.ts +8 -0
- package/src/interface/finalizer/index.ts +2 -0
- package/src/interface/gpu/accessors.ts +90 -0
- package/src/interface/gpu/gpu.ts +5 -0
- package/src/interface/gpu/gpu.type-test.ts +27 -0
- package/src/interface/gpu/index.ts +3 -0
- package/src/interface/gpu/layout.ts +23 -0
- package/src/interface/gpu/record.ts +6 -0
- package/src/interface/gpu/wgsl.ts +23 -0
- package/src/interface/index.ts +17 -0
- package/src/interface/index.type-test.ts +52 -0
- package/src/interface/indexes/create.test.ts +146 -0
- package/src/interface/indexes/create.ts +88 -0
- package/src/interface/indexes/created.ts +5 -0
- package/src/interface/indexes/declaration.ts +15 -0
- package/src/interface/indexes/index-type.ts +13 -0
- package/src/interface/indexes/index.ts +2 -0
- package/src/interface/indexes/index.type-test.ts +244 -0
- package/src/interface/math/f32/default.ts +6 -0
- package/src/interface/math/f32/index.ts +7 -0
- package/src/interface/math/f32/public.ts +3 -0
- package/src/interface/math/f32/round-half-even.ts +6 -0
- package/src/interface/math/f32/schema.ts +4 -0
- package/src/interface/math/i32/default.ts +6 -0
- package/src/interface/math/i32/index.ts +8 -0
- package/src/interface/math/i32/public.ts +4 -0
- package/src/interface/math/i32/schema.ts +4 -0
- package/src/interface/math/i32/shift-right.ts +4 -0
- package/src/interface/math/index.ts +9 -0
- package/src/interface/math/intrinsic.ts +19 -0
- package/src/interface/math/mat4x4/add.ts +10 -0
- package/src/interface/math/mat4x4/determinant.ts +27 -0
- package/src/interface/math/mat4x4/identity.ts +9 -0
- package/src/interface/math/mat4x4/index.ts +29 -0
- package/src/interface/math/mat4x4/inverse.ts +50 -0
- package/src/interface/math/mat4x4/look-at.test.ts +14 -0
- package/src/interface/math/mat4x4/look-at.ts +27 -0
- package/src/interface/math/mat4x4/multiply-vec3.ts +9 -0
- package/src/interface/math/mat4x4/multiply-vec4.ts +11 -0
- package/src/interface/math/mat4x4/multiply.ts +23 -0
- package/src/interface/math/mat4x4/orthographic.ts +21 -0
- package/src/interface/math/mat4x4/perspective.ts +21 -0
- package/src/interface/math/mat4x4/public.ts +22 -0
- package/src/interface/math/mat4x4/rotation-x.ts +13 -0
- package/src/interface/math/mat4x4/rotation-y.ts +13 -0
- package/src/interface/math/mat4x4/rotation-z.ts +13 -0
- package/src/interface/math/mat4x4/rotation.test.ts +17 -0
- package/src/interface/math/mat4x4/scale.ts +10 -0
- package/src/interface/math/mat4x4/scaling.ts +9 -0
- package/src/interface/math/mat4x4/schema.ts +5 -0
- package/src/interface/math/mat4x4/subtract.ts +10 -0
- package/src/interface/math/mat4x4/translation.ts +9 -0
- package/src/interface/math/mat4x4/transpose.ts +10 -0
- package/src/interface/math/mat4x4/zero.ts +9 -0
- package/src/interface/math/math.type-test.ts +43 -0
- package/src/interface/math/quat/add.ts +10 -0
- package/src/interface/math/quat/align-to.ts +45 -0
- package/src/interface/math/quat/conjugate.ts +4 -0
- package/src/interface/math/quat/distance.ts +6 -0
- package/src/interface/math/quat/dot.ts +6 -0
- package/src/interface/math/quat/from-axis-angle.ts +15 -0
- package/src/interface/math/quat/from-euler.ts +18 -0
- package/src/interface/math/quat/identity.ts +4 -0
- package/src/interface/math/quat/index.ts +7 -0
- package/src/interface/math/quat/inverse.ts +11 -0
- package/src/interface/math/quat/length-squared.ts +4 -0
- package/src/interface/math/quat/length.ts +5 -0
- package/src/interface/math/quat/lerp.ts +9 -0
- package/src/interface/math/quat/look-at.ts +53 -0
- package/src/interface/math/quat/multiply.ts +9 -0
- package/src/interface/math/quat/negate.ts +5 -0
- package/src/interface/math/quat/normalize.ts +9 -0
- package/src/interface/math/quat/public.ts +26 -0
- package/src/interface/math/quat/rotate-vec3.ts +17 -0
- package/src/interface/math/quat/scale.ts +5 -0
- package/src/interface/math/quat/schema.ts +5 -0
- package/src/interface/math/quat/slerp.ts +27 -0
- package/src/interface/math/quat/subtract.ts +10 -0
- package/src/interface/math/quat/to-axis-angle.ts +15 -0
- package/src/interface/math/quat/to-euler.ts +26 -0
- package/src/interface/math/quat/to-mat4.ts +28 -0
- package/src/interface/math/semantics.test.ts +51 -0
- package/src/interface/math/u32/count-leading-zeros.ts +5 -0
- package/src/interface/math/u32/count-one-bits.ts +11 -0
- package/src/interface/math/u32/count-trailing-zeros.ts +8 -0
- package/src/interface/math/u32/default.ts +6 -0
- package/src/interface/math/u32/index.ts +8 -0
- package/src/interface/math/u32/public.ts +8 -0
- package/src/interface/math/u32/reverse-bits.ts +12 -0
- package/src/interface/math/u32/schema.ts +4 -0
- package/src/interface/math/u32/shift-right.ts +4 -0
- package/src/interface/math/vec2/f32/abs.ts +5 -0
- package/src/interface/math/vec2/f32/acos.ts +5 -0
- package/src/interface/math/vec2/f32/acosh.ts +5 -0
- package/src/interface/math/vec2/f32/add.ts +5 -0
- package/src/interface/math/vec2/f32/asin.ts +5 -0
- package/src/interface/math/vec2/f32/asinh.ts +5 -0
- package/src/interface/math/vec2/f32/atan.ts +5 -0
- package/src/interface/math/vec2/f32/atanh.ts +5 -0
- package/src/interface/math/vec2/f32/ceil.ts +5 -0
- package/src/interface/math/vec2/f32/clamp.ts +7 -0
- package/src/interface/math/vec2/f32/cos.ts +5 -0
- package/src/interface/math/vec2/f32/cosh.ts +5 -0
- package/src/interface/math/vec2/f32/distance.ts +7 -0
- package/src/interface/math/vec2/f32/dot.ts +5 -0
- package/src/interface/math/vec2/f32/equals.ts +4 -0
- package/src/interface/math/vec2/f32/exp.ts +5 -0
- package/src/interface/math/vec2/f32/exp2.ts +5 -0
- package/src/interface/math/vec2/f32/f32.ts +7 -0
- package/src/interface/math/vec2/f32/faceforward.ts +8 -0
- package/src/interface/math/vec2/f32/floor.ts +5 -0
- package/src/interface/math/vec2/f32/fract.ts +5 -0
- package/src/interface/math/vec2/f32/length.ts +5 -0
- package/src/interface/math/vec2/f32/log.ts +5 -0
- package/src/interface/math/vec2/f32/log2.ts +5 -0
- package/src/interface/math/vec2/f32/max.ts +5 -0
- package/src/interface/math/vec2/f32/min.ts +5 -0
- package/src/interface/math/vec2/f32/mix.ts +8 -0
- package/src/interface/math/vec2/f32/mod.ts +4 -0
- package/src/interface/math/vec2/f32/modf.ts +8 -0
- package/src/interface/math/vec2/f32/negate.ts +5 -0
- package/src/interface/math/vec2/f32/normalize.ts +7 -0
- package/src/interface/math/vec2/f32/pow.ts +9 -0
- package/src/interface/math/vec2/f32/public.ts +49 -0
- package/src/interface/math/vec2/f32/reflect.ts +11 -0
- package/src/interface/math/vec2/f32/refract.ts +16 -0
- package/src/interface/math/vec2/f32/round.ts +6 -0
- package/src/interface/math/vec2/f32/scale.ts +5 -0
- package/src/interface/math/vec2/f32/schema.ts +5 -0
- package/src/interface/math/vec2/f32/sign.ts +5 -0
- package/src/interface/math/vec2/f32/sin.ts +5 -0
- package/src/interface/math/vec2/f32/sinh.ts +5 -0
- package/src/interface/math/vec2/f32/smoothstep.ts +9 -0
- package/src/interface/math/vec2/f32/sqrt.ts +5 -0
- package/src/interface/math/vec2/f32/step.ts +8 -0
- package/src/interface/math/vec2/f32/subtract.ts +5 -0
- package/src/interface/math/vec2/f32/tan.ts +5 -0
- package/src/interface/math/vec2/f32/tanh.ts +5 -0
- package/src/interface/math/vec2/f32/trunc.ts +5 -0
- package/src/interface/math/vec2/f32/zero.ts +4 -0
- package/src/interface/math/vec2/i32/abs.ts +5 -0
- package/src/interface/math/vec2/i32/add.ts +5 -0
- package/src/interface/math/vec2/i32/bitwise-and.ts +5 -0
- package/src/interface/math/vec2/i32/bitwise-not.ts +5 -0
- package/src/interface/math/vec2/i32/bitwise-or.ts +5 -0
- package/src/interface/math/vec2/i32/bitwise-xor.ts +5 -0
- package/src/interface/math/vec2/i32/clamp.ts +7 -0
- package/src/interface/math/vec2/i32/count-leading-zeros.ts +9 -0
- package/src/interface/math/vec2/i32/count-one-bits.ts +9 -0
- package/src/interface/math/vec2/i32/count-trailing-zeros.ts +9 -0
- package/src/interface/math/vec2/i32/equals.ts +4 -0
- package/src/interface/math/vec2/i32/i32.ts +8 -0
- package/src/interface/math/vec2/i32/max.ts +5 -0
- package/src/interface/math/vec2/i32/min.ts +5 -0
- package/src/interface/math/vec2/i32/negate.ts +5 -0
- package/src/interface/math/vec2/i32/public.ts +23 -0
- package/src/interface/math/vec2/i32/reverse-bits.ts +6 -0
- package/src/interface/math/vec2/i32/scale.ts +6 -0
- package/src/interface/math/vec2/i32/schema.ts +5 -0
- package/src/interface/math/vec2/i32/shift-left.ts +4 -0
- package/src/interface/math/vec2/i32/shift-right.ts +8 -0
- package/src/interface/math/vec2/i32/subtract.ts +5 -0
- package/src/interface/math/vec2/i32/zero.ts +4 -0
- package/src/interface/math/vec2/index.ts +7 -0
- package/src/interface/math/vec2/public.ts +6 -0
- package/src/interface/math/vec2/u32/add.ts +8 -0
- package/src/interface/math/vec2/u32/bitwise-and.ts +8 -0
- package/src/interface/math/vec2/u32/bitwise-not.ts +5 -0
- package/src/interface/math/vec2/u32/bitwise-or.ts +8 -0
- package/src/interface/math/vec2/u32/bitwise-xor.ts +8 -0
- package/src/interface/math/vec2/u32/clamp.ts +7 -0
- package/src/interface/math/vec2/u32/count-leading-zeros.ts +9 -0
- package/src/interface/math/vec2/u32/count-one-bits.ts +9 -0
- package/src/interface/math/vec2/u32/count-trailing-zeros.ts +9 -0
- package/src/interface/math/vec2/u32/equals.ts +4 -0
- package/src/interface/math/vec2/u32/max.ts +8 -0
- package/src/interface/math/vec2/u32/min.ts +8 -0
- package/src/interface/math/vec2/u32/negate.ts +4 -0
- package/src/interface/math/vec2/u32/public.ts +22 -0
- package/src/interface/math/vec2/u32/reverse-bits.ts +9 -0
- package/src/interface/math/vec2/u32/scale.ts +6 -0
- package/src/interface/math/vec2/u32/schema.ts +5 -0
- package/src/interface/math/vec2/u32/shift-left.ts +4 -0
- package/src/interface/math/vec2/u32/shift-right.ts +8 -0
- package/src/interface/math/vec2/u32/subtract.ts +8 -0
- package/src/interface/math/vec2/u32/u32.ts +8 -0
- package/src/interface/math/vec2/u32/zero.ts +4 -0
- package/src/interface/math/vec3/f32/abs.ts +5 -0
- package/src/interface/math/vec3/f32/acos.ts +5 -0
- package/src/interface/math/vec3/f32/acosh.ts +5 -0
- package/src/interface/math/vec3/f32/add.ts +9 -0
- package/src/interface/math/vec3/f32/asin.ts +5 -0
- package/src/interface/math/vec3/f32/asinh.ts +5 -0
- package/src/interface/math/vec3/f32/atan.ts +5 -0
- package/src/interface/math/vec3/f32/atanh.ts +5 -0
- package/src/interface/math/vec3/f32/ceil.ts +5 -0
- package/src/interface/math/vec3/f32/clamp.ts +7 -0
- package/src/interface/math/vec3/f32/cos.ts +5 -0
- package/src/interface/math/vec3/f32/cosh.ts +5 -0
- package/src/interface/math/vec3/f32/cross.ts +9 -0
- package/src/interface/math/vec3/f32/distance-squared.ts +9 -0
- package/src/interface/math/vec3/f32/distance.ts +7 -0
- package/src/interface/math/vec3/f32/dot.ts +6 -0
- package/src/interface/math/vec3/f32/equals.ts +4 -0
- package/src/interface/math/vec3/f32/exp.ts +5 -0
- package/src/interface/math/vec3/f32/exp2.ts +5 -0
- package/src/interface/math/vec3/f32/f32.ts +7 -0
- package/src/interface/math/vec3/f32/faceforward.ts +8 -0
- package/src/interface/math/vec3/f32/floor.ts +5 -0
- package/src/interface/math/vec3/f32/fract.ts +9 -0
- package/src/interface/math/vec3/f32/length-squared.ts +5 -0
- package/src/interface/math/vec3/f32/length.ts +5 -0
- package/src/interface/math/vec3/f32/log.ts +5 -0
- package/src/interface/math/vec3/f32/log2.ts +5 -0
- package/src/interface/math/vec3/f32/max.ts +9 -0
- package/src/interface/math/vec3/f32/min.ts +9 -0
- package/src/interface/math/vec3/f32/mix.ts +9 -0
- package/src/interface/math/vec3/f32/mod.ts +8 -0
- package/src/interface/math/vec3/f32/modf.ts +8 -0
- package/src/interface/math/vec3/f32/multiply.ts +12 -0
- package/src/interface/math/vec3/f32/negate.ts +5 -0
- package/src/interface/math/vec3/f32/normalize.ts +7 -0
- package/src/interface/math/vec3/f32/one.ts +4 -0
- package/src/interface/math/vec3/f32/pow.ts +10 -0
- package/src/interface/math/vec3/f32/public.ts +55 -0
- package/src/interface/math/vec3/f32/random.ts +6 -0
- package/src/interface/math/vec3/f32/reflect.ts +11 -0
- package/src/interface/math/vec3/f32/refract.ts +16 -0
- package/src/interface/math/vec3/f32/round.ts +10 -0
- package/src/interface/math/vec3/f32/scale.ts +5 -0
- package/src/interface/math/vec3/f32/schema.ts +5 -0
- package/src/interface/math/vec3/f32/sign.ts +5 -0
- package/src/interface/math/vec3/f32/sin.ts +5 -0
- package/src/interface/math/vec3/f32/sinh.ts +5 -0
- package/src/interface/math/vec3/f32/smoothstep.ts +14 -0
- package/src/interface/math/vec3/f32/sqrt.ts +5 -0
- package/src/interface/math/vec3/f32/step.ts +9 -0
- package/src/interface/math/vec3/f32/subtract.ts +9 -0
- package/src/interface/math/vec3/f32/tan.ts +5 -0
- package/src/interface/math/vec3/f32/tanh.ts +5 -0
- package/src/interface/math/vec3/f32/trunc.ts +5 -0
- package/src/interface/math/vec3/f32/zero.ts +4 -0
- package/src/interface/math/vec3/i32/abs.ts +9 -0
- package/src/interface/math/vec3/i32/add.ts +9 -0
- package/src/interface/math/vec3/i32/bitwise-and.ts +9 -0
- package/src/interface/math/vec3/i32/bitwise-not.ts +5 -0
- package/src/interface/math/vec3/i32/bitwise-or.ts +9 -0
- package/src/interface/math/vec3/i32/bitwise-xor.ts +9 -0
- package/src/interface/math/vec3/i32/clamp.ts +7 -0
- package/src/interface/math/vec3/i32/count-leading-zeros.ts +10 -0
- package/src/interface/math/vec3/i32/count-one-bits.ts +10 -0
- package/src/interface/math/vec3/i32/count-trailing-zeros.ts +10 -0
- package/src/interface/math/vec3/i32/equals.ts +4 -0
- package/src/interface/math/vec3/i32/i32.ts +8 -0
- package/src/interface/math/vec3/i32/max.ts +9 -0
- package/src/interface/math/vec3/i32/min.ts +9 -0
- package/src/interface/math/vec3/i32/multiply.ts +9 -0
- package/src/interface/math/vec3/i32/negate.ts +9 -0
- package/src/interface/math/vec3/i32/one.ts +4 -0
- package/src/interface/math/vec3/i32/public.ts +25 -0
- package/src/interface/math/vec3/i32/reverse-bits.ts +10 -0
- package/src/interface/math/vec3/i32/scale.ts +10 -0
- package/src/interface/math/vec3/i32/schema.ts +5 -0
- package/src/interface/math/vec3/i32/shift-left.ts +4 -0
- package/src/interface/math/vec3/i32/shift-right.ts +9 -0
- package/src/interface/math/vec3/i32/subtract.ts +9 -0
- package/src/interface/math/vec3/i32/zero.ts +4 -0
- package/src/interface/math/vec3/index.ts +7 -0
- package/src/interface/math/vec3/public.ts +6 -0
- package/src/interface/math/vec3/u32/add.ts +9 -0
- package/src/interface/math/vec3/u32/bitwise-and.ts +9 -0
- package/src/interface/math/vec3/u32/bitwise-not.ts +5 -0
- package/src/interface/math/vec3/u32/bitwise-or.ts +9 -0
- package/src/interface/math/vec3/u32/bitwise-xor.ts +9 -0
- package/src/interface/math/vec3/u32/clamp.ts +7 -0
- package/src/interface/math/vec3/u32/count-leading-zeros.ts +10 -0
- package/src/interface/math/vec3/u32/count-one-bits.ts +10 -0
- package/src/interface/math/vec3/u32/count-trailing-zeros.ts +10 -0
- package/src/interface/math/vec3/u32/equals.ts +4 -0
- package/src/interface/math/vec3/u32/max.ts +9 -0
- package/src/interface/math/vec3/u32/min.ts +9 -0
- package/src/interface/math/vec3/u32/multiply.ts +9 -0
- package/src/interface/math/vec3/u32/negate.ts +4 -0
- package/src/interface/math/vec3/u32/one.ts +4 -0
- package/src/interface/math/vec3/u32/public.ts +25 -0
- package/src/interface/math/vec3/u32/reverse-bits.ts +10 -0
- package/src/interface/math/vec3/u32/scale.ts +10 -0
- package/src/interface/math/vec3/u32/schema.ts +5 -0
- package/src/interface/math/vec3/u32/shift-left.ts +8 -0
- package/src/interface/math/vec3/u32/shift-right.ts +9 -0
- package/src/interface/math/vec3/u32/subtract.ts +9 -0
- package/src/interface/math/vec3/u32/u32.ts +8 -0
- package/src/interface/math/vec3/u32/volume.ts +4 -0
- package/src/interface/math/vec3/u32/zero.ts +4 -0
- package/src/interface/math/vec4/f32/abs.ts +5 -0
- package/src/interface/math/vec4/f32/acos.ts +5 -0
- package/src/interface/math/vec4/f32/acosh.ts +5 -0
- package/src/interface/math/vec4/f32/add.ts +10 -0
- package/src/interface/math/vec4/f32/asin.ts +5 -0
- package/src/interface/math/vec4/f32/asinh.ts +5 -0
- package/src/interface/math/vec4/f32/atan.ts +5 -0
- package/src/interface/math/vec4/f32/atanh.ts +5 -0
- package/src/interface/math/vec4/f32/ceil.ts +5 -0
- package/src/interface/math/vec4/f32/clamp.ts +7 -0
- package/src/interface/math/vec4/f32/cos.ts +5 -0
- package/src/interface/math/vec4/f32/cosh.ts +5 -0
- package/src/interface/math/vec4/f32/default.ts +6 -0
- package/src/interface/math/vec4/f32/distance.ts +7 -0
- package/src/interface/math/vec4/f32/dot.ts +6 -0
- package/src/interface/math/vec4/f32/exp.ts +5 -0
- package/src/interface/math/vec4/f32/exp2.ts +5 -0
- package/src/interface/math/vec4/f32/f32.ts +7 -0
- package/src/interface/math/vec4/f32/faceforward.ts +8 -0
- package/src/interface/math/vec4/f32/floor.ts +5 -0
- package/src/interface/math/vec4/f32/fract.ts +10 -0
- package/src/interface/math/vec4/f32/length.ts +5 -0
- package/src/interface/math/vec4/f32/log.ts +5 -0
- package/src/interface/math/vec4/f32/log2.ts +5 -0
- package/src/interface/math/vec4/f32/max.ts +10 -0
- package/src/interface/math/vec4/f32/min.ts +10 -0
- package/src/interface/math/vec4/f32/mix.ts +10 -0
- package/src/interface/math/vec4/f32/mod.ts +9 -0
- package/src/interface/math/vec4/f32/modf.ts +8 -0
- package/src/interface/math/vec4/f32/multiply.ts +10 -0
- package/src/interface/math/vec4/f32/negate.ts +5 -0
- package/src/interface/math/vec4/f32/normalize.ts +7 -0
- package/src/interface/math/vec4/f32/pow.ts +11 -0
- package/src/interface/math/vec4/f32/public.ts +48 -0
- package/src/interface/math/vec4/f32/reflect.ts +11 -0
- package/src/interface/math/vec4/f32/refract.ts +16 -0
- package/src/interface/math/vec4/f32/round.ts +11 -0
- package/src/interface/math/vec4/f32/scale.ts +5 -0
- package/src/interface/math/vec4/f32/schema.ts +5 -0
- package/src/interface/math/vec4/f32/sign.ts +5 -0
- package/src/interface/math/vec4/f32/sin.ts +5 -0
- package/src/interface/math/vec4/f32/sinh.ts +5 -0
- package/src/interface/math/vec4/f32/smoothstep.ts +16 -0
- package/src/interface/math/vec4/f32/sqrt.ts +5 -0
- package/src/interface/math/vec4/f32/step.ts +10 -0
- package/src/interface/math/vec4/f32/subtract.ts +10 -0
- package/src/interface/math/vec4/f32/tan.ts +5 -0
- package/src/interface/math/vec4/f32/tanh.ts +5 -0
- package/src/interface/math/vec4/f32/trunc.ts +5 -0
- package/src/interface/math/vec4/i32/abs.ts +10 -0
- package/src/interface/math/vec4/i32/add.ts +10 -0
- package/src/interface/math/vec4/i32/bitwise-and.ts +10 -0
- package/src/interface/math/vec4/i32/bitwise-not.ts +5 -0
- package/src/interface/math/vec4/i32/bitwise-or.ts +10 -0
- package/src/interface/math/vec4/i32/bitwise-xor.ts +10 -0
- package/src/interface/math/vec4/i32/clamp.ts +7 -0
- package/src/interface/math/vec4/i32/count-leading-zeros.ts +11 -0
- package/src/interface/math/vec4/i32/count-one-bits.ts +11 -0
- package/src/interface/math/vec4/i32/count-trailing-zeros.ts +11 -0
- package/src/interface/math/vec4/i32/equals.ts +5 -0
- package/src/interface/math/vec4/i32/i32.ts +8 -0
- package/src/interface/math/vec4/i32/max.ts +10 -0
- package/src/interface/math/vec4/i32/min.ts +10 -0
- package/src/interface/math/vec4/i32/multiply.ts +10 -0
- package/src/interface/math/vec4/i32/negate.ts +10 -0
- package/src/interface/math/vec4/i32/one.ts +4 -0
- package/src/interface/math/vec4/i32/public.ts +25 -0
- package/src/interface/math/vec4/i32/reverse-bits.ts +11 -0
- package/src/interface/math/vec4/i32/scale.ts +11 -0
- package/src/interface/math/vec4/i32/schema.ts +5 -0
- package/src/interface/math/vec4/i32/shift-left.ts +4 -0
- package/src/interface/math/vec4/i32/shift-right.ts +10 -0
- package/src/interface/math/vec4/i32/subtract.ts +10 -0
- package/src/interface/math/vec4/i32/zero.ts +4 -0
- package/src/interface/math/vec4/index.ts +7 -0
- package/src/interface/math/vec4/public.ts +6 -0
- package/src/interface/math/vec4/u32/add.ts +10 -0
- package/src/interface/math/vec4/u32/bitwise-and.ts +10 -0
- package/src/interface/math/vec4/u32/bitwise-not.ts +5 -0
- package/src/interface/math/vec4/u32/bitwise-or.ts +10 -0
- package/src/interface/math/vec4/u32/bitwise-xor.ts +10 -0
- package/src/interface/math/vec4/u32/clamp.ts +7 -0
- package/src/interface/math/vec4/u32/count-leading-zeros.ts +11 -0
- package/src/interface/math/vec4/u32/count-one-bits.ts +11 -0
- package/src/interface/math/vec4/u32/count-trailing-zeros.ts +11 -0
- package/src/interface/math/vec4/u32/equals.ts +5 -0
- package/src/interface/math/vec4/u32/max.ts +10 -0
- package/src/interface/math/vec4/u32/min.ts +10 -0
- package/src/interface/math/vec4/u32/multiply.ts +10 -0
- package/src/interface/math/vec4/u32/negate.ts +4 -0
- package/src/interface/math/vec4/u32/one.ts +4 -0
- package/src/interface/math/vec4/u32/public.ts +24 -0
- package/src/interface/math/vec4/u32/reverse-bits.ts +11 -0
- package/src/interface/math/vec4/u32/scale.ts +11 -0
- package/src/interface/math/vec4/u32/schema.ts +5 -0
- package/src/interface/math/vec4/u32/shift-left.ts +9 -0
- package/src/interface/math/vec4/u32/shift-right.ts +10 -0
- package/src/interface/math/vec4/u32/subtract.ts +10 -0
- package/src/interface/math/vec4/u32/u32.ts +8 -0
- package/src/interface/math/vec4/u32/zero.ts +4 -0
- package/src/interface/platform/platform.ts +36 -0
- package/src/interface/registry/archetypes.test.ts +50 -0
- package/src/interface/registry/archetypes.ts +59 -0
- package/src/interface/registry/declarations.ts +196 -0
- package/src/interface/registry/declared.test.ts +40 -0
- package/src/interface/registry/finalizer-order.ts +53 -0
- package/src/interface/registry/ids.test-helper.ts +48 -0
- package/src/interface/registry/ids.test.ts +111 -0
- package/src/interface/registry/ids.ts +76 -0
- package/src/interface/registry/index.ts +30 -0
- package/src/interface/registry/indexes.ts +74 -0
- package/src/interface/registry/items.ts +95 -0
- package/src/interface/registry/layout.test.ts +106 -0
- package/src/interface/registry/layout.ts +372 -0
- package/src/interface/registry/names.test.ts +73 -0
- package/src/interface/registry/names.ts +174 -0
- package/src/interface/registry/program.ts +112 -0
- package/src/interface/registry/reduction.ts +8 -0
- package/src/interface/registry/schedule.ts +211 -0
- package/src/interface/registry/schemas.ts +119 -0
- package/src/interface/registry/strata.ts +94 -0
- package/src/interface/registry/threads.ts +74 -0
- package/src/interface/registry/traits.ts +13 -0
- package/src/interface/registry/written.ts +15 -0
- package/src/interface/resource/condition.ts +9 -0
- package/src/interface/resource/index.ts +3 -0
- package/src/interface/resource/key.ts +4 -0
- package/src/interface/resource/reduction.ts +12 -0
- package/src/interface/resource/register.test.ts +93 -0
- package/src/interface/resource/resource.ts +5 -0
- package/src/interface/resource/types.ts +7 -0
- package/src/interface/resource/value.ts +21 -0
- package/src/interface/resource/written.ts +5 -0
- package/src/interface/resources/always.ts +13 -0
- package/src/interface/resources/cadence.ts +28 -0
- package/src/interface/resources/clock.ts +19 -0
- package/src/interface/resources/gpu-device.ts +17 -0
- package/src/interface/resources/index.ts +7 -0
- package/src/interface/resources/wake.ts +16 -0
- package/src/interface/resources/workers.ts +13 -0
- package/src/interface/rule/create.ts +27 -0
- package/src/interface/rule/created.ts +5 -0
- package/src/interface/rule/declaration.ts +15 -0
- package/src/interface/rule/index.ts +2 -0
- package/src/interface/rule/rule.ts +4 -0
- package/src/interface/rule/rule.type-test.ts +107 -0
- package/src/interface/schema/is-struct.ts +36 -0
- package/src/interface/schema/schema.ts +190 -0
- package/src/interface/schema/schema.type-test.ts +155 -0
- package/src/interface/schema/schemas.type-test.ts +13 -0
- package/src/interface/system/access.ts +107 -0
- package/src/interface/system/body.ts +79 -0
- package/src/interface/system/check.ts +265 -0
- package/src/interface/system/commands.ts +71 -0
- package/src/interface/system/commands.type-test.ts +87 -0
- package/src/interface/system/composite-declaration.ts +13 -0
- package/src/interface/system/composite-input.type-test.ts +47 -0
- package/src/interface/system/composite.ts +6 -0
- package/src/interface/system/conditions.type-test.ts +57 -0
- package/src/interface/system/create-resolved.ts +21 -0
- package/src/interface/system/create.test.ts +210 -0
- package/src/interface/system/create.ts +208 -0
- package/src/interface/system/declaration.ts +73 -0
- package/src/interface/system/definition.ts +6 -0
- package/src/interface/system/index.ts +4 -0
- package/src/interface/system/input.ts +59 -0
- package/src/interface/system/leaf.ts +20 -0
- package/src/interface/system/lists.type-test.ts +53 -0
- package/src/interface/system/name.ts +7 -0
- package/src/interface/system/optional.type-test.ts +51 -0
- package/src/interface/system/property.ts +5 -0
- package/src/interface/system/render.ts +106 -0
- package/src/interface/system/resolve.test.ts +49 -0
- package/src/interface/system/resolve.ts +165 -0
- package/src/interface/system/shared.type-test.ts +205 -0
- package/src/interface/system/struct.ts +10 -0
- package/src/interface/system/system.ts +11 -0
- package/src/interface/system/system.type-test.ts +423 -0
- package/src/interface/system/threads.ts +47 -0
- package/src/interface/system/threads.type-test.ts +83 -0
- package/src/interface/system/up.type-test.ts +67 -0
- package/src/interface/system/values-of.ts +17 -0
- package/src/interface/system/values.ts +73 -0
- package/src/interface/thread/of.ts +9 -0
- package/src/interface/thread/thread.ts +14 -0
- package/src/interface/thread/thread.type-test.ts +75 -0
- package/src/interface/trait/key.ts +7 -0
- package/src/interface/trait/trait.type-test.ts +85 -0
- package/src/interface/trait/types.ts +69 -0
- package/src/interface/tsconfig.json +28 -0
- package/src/interface/world/create.ts +22 -0
- package/src/interface/world/declarations.ts +34 -0
- package/src/interface/world/filter.ts +10 -0
- package/src/interface/world/index.ts +3 -0
- package/src/interface/world/join.ts +17 -0
- package/src/interface/world/loop.type-test.ts +72 -0
- package/src/interface/world/run.type-test.ts +87 -0
- package/src/interface/world/share.type-test.ts +31 -0
- package/src/interface/world/world.ts +73 -0
- package/src/interface/world/world.type-test.ts +77 -0
- package/src/observe/compare.ts +87 -0
- package/src/observe/entity.ts +232 -0
- package/src/observe/index.ts +2 -0
- package/src/observe/members.ts +43 -0
- package/src/observe/observe.ts +25 -0
- package/src/observe/observe.type-test.ts +85 -0
- package/src/observe/plans.ts +273 -0
- package/src/observe/query.ts +27 -0
- package/src/observe/resource.ts +81 -0
- package/src/observe/select.ts +649 -0
- package/src/observe/to-promise.ts +23 -0
- package/src/observe/tsconfig.json +31 -0
- package/src/observe/values.ts +10 -0
- package/src/observe/world-state.ts +421 -0
- package/src/observe-imports.test.ts +49 -0
- package/src/perftest/benchmark.ts +107 -0
- package/src/perftest/benchmarks.ts +708 -0
- package/src/perftest/editor.ts +126 -0
- package/src/perftest/filters.ts +124 -0
- package/src/perftest/finalized.ts +170 -0
- package/src/perftest/flat.ts +57 -0
- package/src/perftest/growth.ts +47 -0
- package/src/perftest/handoff.ts +147 -0
- package/src/perftest/hierarchy.ts +115 -0
- package/src/perftest/indexes.ts +759 -0
- package/src/perftest/invariants.ts +63 -0
- package/src/perftest/joined.ts +103 -0
- package/src/perftest/journal.ts +55 -0
- package/src/perftest/keys.ts +101 -0
- package/src/perftest/log.ts +126 -0
- package/src/perftest/loop.ts +50 -0
- package/src/perftest/observed-gpu.ts +57 -0
- package/src/perftest/observed.ts +292 -0
- package/src/perftest/observer.ts +58 -0
- package/src/perftest/optional.ts +102 -0
- package/src/perftest/particles.ts +69 -0
- package/src/perftest/placed.ts +178 -0
- package/src/perftest/reads.ts +205 -0
- package/src/perftest/remote.ts +362 -0
- package/src/perftest/render-order.ts +86 -0
- package/src/perftest/run.ts +44 -0
- package/src/perftest/shared.ts +416 -0
- package/src/perftest/strings.ts +135 -0
- package/src/perftest/structural.ts +150 -0
- package/src/perftest/suite.perf-browser-test.ts +136 -0
- package/src/perftest/suite.perf-test.ts +8 -0
- package/src/perftest/suite.ts +214 -0
- package/src/perftest/systems.ts +132 -0
- package/src/perftest/tails.ts +298 -0
- package/src/perftest/transfers.ts +98 -0
- package/src/perftest/uploads.ts +80 -0
- package/src/perftest/values.ts +107 -0
- package/src/perftest/wake.ts +41 -0
- package/src/world.test.ts +46 -0
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import type { Program } from 'estree';
|
|
3
|
+
import { createModule, locateIn, type Module, type ModuleBinding } from './module-scope.js';
|
|
4
|
+
import type { PackageCopies } from './package-copies.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Why a specifier names no file the linker can read. `unreadable` marks one the build leaves unread, such as a package
|
|
8
|
+
* external to it, rather than one that fails to resolve.
|
|
9
|
+
*/
|
|
10
|
+
export type Unresolved = { readonly error: string; readonly unreadable?: boolean };
|
|
11
|
+
|
|
12
|
+
/** How the linker reaches other modules. Errors are reasons, reported only if a kernel uses what failed. */
|
|
13
|
+
export type LinkHost = {
|
|
14
|
+
/** The file an import specifier names from `importer`. */
|
|
15
|
+
readonly resolve: (specifier: string, importer: string) => Promise<string | Unresolved>;
|
|
16
|
+
/** A file's code as JavaScript, and how offsets in it map to source lines when it was compiled from another language. */
|
|
17
|
+
readonly load: (file: string) => Promise<{ readonly code: string; readonly locate?: Module["locate"] } | { readonly error: string }>;
|
|
18
|
+
/** The operator each resource a file declares with a `reduce` trait reduces with, by its key's binding. */
|
|
19
|
+
readonly reductions?: (file: string) => ReadonlyMap<string, string>;
|
|
20
|
+
/** The components a file declares `shared`, by their keys' bindings. */
|
|
21
|
+
readonly shared?: (file: string) => ReadonlySet<string>;
|
|
22
|
+
/** The copies of the package the files are in. */
|
|
23
|
+
readonly packages: PackageCopies;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Modules as the compiler sees them. Both answer from what the linker has loaded, and when it hasn't loaded something
|
|
28
|
+
* yet they throw a `Pending`, which `transformKernels` awaits before compiling the kernel again.
|
|
29
|
+
*/
|
|
30
|
+
export type Link = {
|
|
31
|
+
readonly module: (file: string) => Module | { readonly error: string };
|
|
32
|
+
readonly resolve: (specifier: string, importer: string) => string | Unresolved;
|
|
33
|
+
/** The operator the resource `binding` of `file` declares in its `reduce` trait, if the build can read one. */
|
|
34
|
+
readonly reductionOf?: (file: string, binding: string) => string | undefined;
|
|
35
|
+
/** Whether the component `binding` of `file` declares `shared: true`, so kernels read its value per call. */
|
|
36
|
+
readonly sharedOf?: (file: string, binding: string) => boolean;
|
|
37
|
+
/** The copies of the package the modules are in. */
|
|
38
|
+
readonly packages: PackageCopies;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** A cache of modules and resolutions shared across transforms. */
|
|
42
|
+
export type Linker = Link & {
|
|
43
|
+
/** Adds the module being transformed, so imports back into it resolve to the same module. */
|
|
44
|
+
readonly add: (module: Module) => void;
|
|
45
|
+
/** Drops a changed file, and with `resolutions` every resolution, for files that were created or deleted. */
|
|
46
|
+
readonly forget: (file: string, resolutions: boolean) => void;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
type Pending = { readonly pending: Promise<void> };
|
|
50
|
+
|
|
51
|
+
const reason = (error: unknown): string => error instanceof Error ? error.message : String(error);
|
|
52
|
+
|
|
53
|
+
const pending = (promise: Promise<void>): never => {
|
|
54
|
+
const signal: Pending = { pending: promise };
|
|
55
|
+
throw signal;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
export const isPending = (error: unknown): error is Pending =>
|
|
59
|
+
typeof error === "object" && error !== null && "pending" in error && error.pending instanceof Promise;
|
|
60
|
+
|
|
61
|
+
type Loaded = Module | { readonly error: string };
|
|
62
|
+
type Resolution = string | Unresolved;
|
|
63
|
+
|
|
64
|
+
export const createLinker = (host: LinkHost, parse: (code: string) => Program): Linker => {
|
|
65
|
+
const modules = new Map<string, Loaded>();
|
|
66
|
+
const loading = new Map<string, Promise<void>>();
|
|
67
|
+
const resolutions = new Map<string, Resolution>();
|
|
68
|
+
const resolving = new Map<string, Promise<void>>();
|
|
69
|
+
/** Bumped when a file changes, or every resolution is dropped, so loads and resolutions in flight are discarded. */
|
|
70
|
+
const versions = new Map<string, number>();
|
|
71
|
+
let resolutionVersion = 0;
|
|
72
|
+
/** Starts resolving `specifier` and loading its file, unless either is known or in flight. */
|
|
73
|
+
const prefetch = (specifier: string, importer: string): Promise<void> => {
|
|
74
|
+
const key = `${importer}\0${specifier}`;
|
|
75
|
+
const resolved = resolutions.get(key);
|
|
76
|
+
if (resolved !== undefined) return typeof resolved === "string" ? startLoad(resolved) : Promise.resolve();
|
|
77
|
+
let promise = resolving.get(key);
|
|
78
|
+
if (promise === undefined) {
|
|
79
|
+
const version = resolutionVersion;
|
|
80
|
+
promise = host.resolve(specifier, importer)
|
|
81
|
+
.catch((error: unknown) => ({ error: `${specifier} can't be resolved from ${importer}: ${reason(error)}` }))
|
|
82
|
+
.then(result => {
|
|
83
|
+
if (version !== resolutionVersion) return;
|
|
84
|
+
resolutions.set(key, result);
|
|
85
|
+
if (typeof result === "string") void startLoad(result);
|
|
86
|
+
})
|
|
87
|
+
.finally(() => resolving.delete(key));
|
|
88
|
+
resolving.set(key, promise);
|
|
89
|
+
}
|
|
90
|
+
return promise;
|
|
91
|
+
};
|
|
92
|
+
const startLoad = (file: string): Promise<void> => {
|
|
93
|
+
if (modules.has(file)) return Promise.resolve();
|
|
94
|
+
let promise = loading.get(file);
|
|
95
|
+
if (promise === undefined) {
|
|
96
|
+
promise = load(file).finally(() => loading.delete(file));
|
|
97
|
+
loading.set(file, promise);
|
|
98
|
+
}
|
|
99
|
+
return promise;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* Loads a module, then starts on the modules it re-exports: compiling stops at each module it doesn't have yet,
|
|
103
|
+
* and a namespace's members are usually found through re-exports.
|
|
104
|
+
*/
|
|
105
|
+
const load = async (file: string): Promise<void> => {
|
|
106
|
+
const version = versions.get(file) ?? 0;
|
|
107
|
+
const loaded = await host.load(file).catch((error: unknown) => ({ error: `${file} can't be read: ${reason(error)}` }));
|
|
108
|
+
if (version !== (versions.get(file) ?? 0)) return;
|
|
109
|
+
if ("error" in loaded) {
|
|
110
|
+
modules.set(file, loaded);
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
let module: Module;
|
|
114
|
+
try {
|
|
115
|
+
module = createModule(file, parse(loaded.code), loaded.locate ?? locateIn(loaded.code));
|
|
116
|
+
} catch (error) {
|
|
117
|
+
modules.set(file, { error: `${file} can't be parsed: ${reason(error)}` });
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
modules.set(file, module);
|
|
121
|
+
for (const exported of module.exports.values()) if (exported.kind !== "local") void prefetch(exported.specifier, file);
|
|
122
|
+
for (const star of module.stars) void prefetch(star, file);
|
|
123
|
+
};
|
|
124
|
+
const reductions = new Map<string, ReadonlyMap<string, string>>();
|
|
125
|
+
const shared = new Map<string, ReadonlySet<string>>();
|
|
126
|
+
return {
|
|
127
|
+
module: file => modules.get(file) ?? pending(startLoad(file)),
|
|
128
|
+
reductionOf: (file, binding) => {
|
|
129
|
+
let declared = reductions.get(file);
|
|
130
|
+
if (declared === undefined && host.reductions !== undefined) reductions.set(file, declared = host.reductions(file));
|
|
131
|
+
return declared?.get(binding);
|
|
132
|
+
},
|
|
133
|
+
sharedOf: (file, binding) => {
|
|
134
|
+
let declared = shared.get(file);
|
|
135
|
+
if (declared === undefined && host.shared !== undefined) shared.set(file, declared = host.shared(file));
|
|
136
|
+
return declared?.has(binding) === true;
|
|
137
|
+
},
|
|
138
|
+
resolve: (specifier, importer) => resolutions.get(`${importer}\0${specifier}`) ?? pending(prefetch(specifier, importer)),
|
|
139
|
+
packages: host.packages,
|
|
140
|
+
add: module => { modules.set(module.file, module); },
|
|
141
|
+
forget: (file, all) => {
|
|
142
|
+
modules.delete(file);
|
|
143
|
+
reductions.delete(file);
|
|
144
|
+
shared.delete(file);
|
|
145
|
+
loading.delete(file);
|
|
146
|
+
versions.set(file, (versions.get(file) ?? 0) + 1);
|
|
147
|
+
if (all) {
|
|
148
|
+
resolutions.clear();
|
|
149
|
+
resolving.clear();
|
|
150
|
+
resolutionVersion++;
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
/** A name as the linker resolves it: a definition in its module, a module namespace, or why it isn't one. */
|
|
157
|
+
export type Resolved =
|
|
158
|
+
| { readonly kind: "binding"; readonly module: Module; readonly name: string; readonly binding: Exclude<ModuleBinding, { kind: "import" | "importNamespace" }> }
|
|
159
|
+
| { readonly kind: "namespace"; readonly file: string }
|
|
160
|
+
/**
|
|
161
|
+
* `cause` tells a name a module doesn't export, one several `export *` provide, and one in a module the build leaves
|
|
162
|
+
* unread, from failing to tell.
|
|
163
|
+
*/
|
|
164
|
+
| { readonly kind: "error"; readonly error: string; readonly cause?: "missing" | "ambiguous" | "unreadable" };
|
|
165
|
+
|
|
166
|
+
/** A resolution that names no file, as a `Resolved`. */
|
|
167
|
+
const unresolved = ({ error, unreadable }: Unresolved): Resolved => unreadable === true ? { kind: "error", error, cause: "unreadable" } : { kind: "error", error };
|
|
168
|
+
|
|
169
|
+
const sameResolution = (a: Resolved, b: Resolved): boolean =>
|
|
170
|
+
a.kind === "binding" && b.kind === "binding" ? a.module === b.module && a.name === b.name
|
|
171
|
+
: a.kind === "namespace" && b.kind === "namespace" && a.file === b.file;
|
|
172
|
+
|
|
173
|
+
/** Follows a binding of `module` through imports to its definition. */
|
|
174
|
+
export const resolveBinding = (link: Link, module: Module, name: string, binding: ModuleBinding, seen: Set<string> = new Set()): Resolved => {
|
|
175
|
+
switch (binding.kind) {
|
|
176
|
+
case "import": case "importNamespace": {
|
|
177
|
+
const file = link.resolve(binding.specifier, module.file);
|
|
178
|
+
if (typeof file !== "string") return unresolved(file);
|
|
179
|
+
return binding.kind === "importNamespace" ? { kind: "namespace", file } : resolveExport(link, file, binding.imported, seen);
|
|
180
|
+
}
|
|
181
|
+
default:
|
|
182
|
+
return { kind: "binding", module, name, binding };
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
/** What `file` exports as `name`, following re-exports and `export *`. */
|
|
187
|
+
export const resolveExport = (link: Link, file: string, name: string, seen: Set<string> = new Set()): Resolved => {
|
|
188
|
+
const module = link.module(file);
|
|
189
|
+
if ("error" in module) return { kind: "error", error: module.error };
|
|
190
|
+
const missing: Resolved = { kind: "error", error: `${name} isn't exported by ${file}`, cause: "missing" };
|
|
191
|
+
const key = `${file}\0${name}`;
|
|
192
|
+
if (seen.has(key)) return missing;
|
|
193
|
+
seen.add(key);
|
|
194
|
+
const exported = module.exports.get(name);
|
|
195
|
+
if (exported !== undefined) {
|
|
196
|
+
switch (exported.kind) {
|
|
197
|
+
case "local": {
|
|
198
|
+
const binding = module.bindings.get(exported.local);
|
|
199
|
+
return binding === undefined ? missing : resolveBinding(link, module, exported.local, binding, seen);
|
|
200
|
+
}
|
|
201
|
+
case "reexport": case "namespace": {
|
|
202
|
+
const target = link.resolve(exported.specifier, file);
|
|
203
|
+
if (typeof target !== "string") return unresolved(target);
|
|
204
|
+
return exported.kind === "namespace" ? { kind: "namespace", file: target } : resolveExport(link, target, exported.imported, seen);
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
if (name === "default") return missing;
|
|
209
|
+
// Every star is searched, to find ambiguity; what isn't loaded yet is waited for together. A star that is
|
|
210
|
+
// ambiguous itself makes the name ambiguous, and one that fails is the reason when no other star exports it.
|
|
211
|
+
const found: Resolved[] = [];
|
|
212
|
+
const failures: Resolved[] = [];
|
|
213
|
+
const waiting: Promise<void>[] = [];
|
|
214
|
+
for (const star of module.stars) {
|
|
215
|
+
try {
|
|
216
|
+
const target = link.resolve(star, file);
|
|
217
|
+
const result: Resolved = typeof target === "string" ? resolveExport(link, target, name, new Set(seen)) : unresolved(target);
|
|
218
|
+
if (result.kind !== "error") {
|
|
219
|
+
if (!found.some(item => sameResolution(item, result))) found.push(result);
|
|
220
|
+
}
|
|
221
|
+
else if (result.cause === "ambiguous") return result;
|
|
222
|
+
else if (result.cause !== "missing") failures.push(result);
|
|
223
|
+
} catch (error) {
|
|
224
|
+
if (!isPending(error)) throw error;
|
|
225
|
+
waiting.push(error.pending);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
if (waiting.length > 0) pending(Promise.all(waiting).then(() => undefined));
|
|
229
|
+
if (found.length > 1) return { kind: "error", error: `${name} is exported by more than one export * of ${file}`, cause: "ambiguous" };
|
|
230
|
+
return found[0] ?? failures[0] ?? missing;
|
|
231
|
+
};
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import type { ArrayExpression, Expression, Node } from 'estree';
|
|
3
|
+
import { children } from './estree.js';
|
|
4
|
+
import { resolveBinding, resolveExport, type Link, type Resolved } from './link.js';
|
|
5
|
+
import type { Module, ModuleBinding } from './module-scope.js';
|
|
6
|
+
|
|
7
|
+
/** The keys a list names, each as an expression of the kernel's module; or why the node isn't a list the compiler can read. */
|
|
8
|
+
export type ListNames = readonly string[] | { readonly error: string };
|
|
9
|
+
|
|
10
|
+
/** How a kernel's module reads its lists of keys, wherever they are declared. */
|
|
11
|
+
export type Lists = {
|
|
12
|
+
/**
|
|
13
|
+
* The keys a list names: an array literal of the kernel's module-scope identifiers, or a constant, of the kernel's
|
|
14
|
+
* module or imported through any re-exports and namespaces, holding an array literal.
|
|
15
|
+
* A key of another module's list is named by the kernel's binding of the same definition, or else by the list
|
|
16
|
+
* itself, as `List[k]`.
|
|
17
|
+
*/
|
|
18
|
+
readonly names: (node: Node) => ListNames;
|
|
19
|
+
/**
|
|
20
|
+
* What a command's component argument names: a list, or one key by the expression the kernel's module names it with.
|
|
21
|
+
* A name is one key when its definition is a call of the global `Symbol`, identified or not, or a literal, which
|
|
22
|
+
* registration rejects for not being a symbol. A name defined in a module the build can't read, such as a package
|
|
23
|
+
* external to it, is taken as a key, and registration rejects a list there. Anything else fails with the reason.
|
|
24
|
+
*/
|
|
25
|
+
readonly component: (node: Node) => Named;
|
|
26
|
+
/** Whether the component the kernel's module names `name` is declared `shared`, read through the build from the module declaring it. */
|
|
27
|
+
readonly shared: (name: string) => boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The operator the resource the kernel's module names `name` reduces with, its declaration's `reduce` trait, read
|
|
30
|
+
* through the build from the module declaring it, undefined where the build can't read one, and that module's file;
|
|
31
|
+
* null for a name the module doesn't bind.
|
|
32
|
+
*/
|
|
33
|
+
readonly reduction: (name: string) => { readonly operator: string | undefined; readonly file: string } | null;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** What a command's component argument names, or why the compiler can't tell. */
|
|
37
|
+
export type Named = { readonly kind: "list" } | { readonly kind: "key"; readonly name: string } | { readonly kind: "error"; readonly error: string };
|
|
38
|
+
|
|
39
|
+
/** A list's array literal, the module it's written in, and how the kernel's module refers to it. */
|
|
40
|
+
type Found = { readonly literal: ArrayExpression; readonly module: Module; readonly reference: string };
|
|
41
|
+
|
|
42
|
+
/** What a name is defined as: a list, a key by its definition's identity (null where the build can't read it), or why it's neither. */
|
|
43
|
+
type Followed = Found | { readonly key: string | null } | { readonly error: string };
|
|
44
|
+
|
|
45
|
+
/** Whether a name may be one key as well as a list, which words the reasons it's neither. */
|
|
46
|
+
type Wanted = "list" | "either";
|
|
47
|
+
|
|
48
|
+
/** A call of the global `Symbol` in `module`. */
|
|
49
|
+
const isSymbolCall = (node: Expression, module: Module): boolean =>
|
|
50
|
+
node.type === "CallExpression" && node.callee.type === "Identifier" && node.callee.name === "Symbol" && !module.bindings.has("Symbol");
|
|
51
|
+
|
|
52
|
+
/** A key's definition: `Symbol(...)`, as the plugin identifies it, `identify$(Symbol(...), id)`, or a literal. */
|
|
53
|
+
const isKey = (node: Expression, module: Module): boolean => {
|
|
54
|
+
if (node.type === "Literal") return !("regex" in node);
|
|
55
|
+
if (isSymbolCall(node, module)) return true;
|
|
56
|
+
if (node.type !== "CallExpression" || node.callee.type !== "Identifier" || !/^identify\$\d*$/.test(node.callee.name)) return false;
|
|
57
|
+
const [symbol] = node.arguments;
|
|
58
|
+
return module.bindings.get(node.callee.name)?.kind === "function" && symbol !== undefined && symbol.type !== "SpreadElement" && isSymbolCall(symbol, module);
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/** A list's literal as the plugin gives it an index, `archetype$([...])` with its appended function: the literal, else null. */
|
|
62
|
+
const indexedList = (node: Expression, module: Module): ArrayExpression | null => {
|
|
63
|
+
if (node.type !== "CallExpression" || node.arguments.length !== 1 || node.callee.type !== "Identifier" || !/^archetype\$\d*$/.test(node.callee.name)) return null;
|
|
64
|
+
const [list] = node.arguments;
|
|
65
|
+
return module.bindings.get(node.callee.name)?.kind === "function" && list.type === "ArrayExpression" ? list : null;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
const fileOf = (module: Module, kernel: Module): string => module === kernel ? "this module" : module.file;
|
|
69
|
+
|
|
70
|
+
/** Follows a binding to the array literal or key its constant holds, through imports and constants naming another. */
|
|
71
|
+
const follow = (name: string, binding: ModuleBinding, module: Module, kernel: Module, link: Link | null, reference: string, wanted: Wanted, seen: Set<string>): Followed => {
|
|
72
|
+
const identity = `${module.file}\0${name}`;
|
|
73
|
+
if (seen.has(identity)) return { error: `${reference} refers to itself` };
|
|
74
|
+
seen.add(identity);
|
|
75
|
+
const unread = wanted === "list" ? "the compiler can't read its components" : "the compiler can't tell whether it's a key or a list";
|
|
76
|
+
switch (binding.kind) {
|
|
77
|
+
case "const": {
|
|
78
|
+
const { init } = binding;
|
|
79
|
+
if (init.type === "ArrayExpression") return { literal: init, module, reference };
|
|
80
|
+
const indexed = indexedList(init, module);
|
|
81
|
+
if (indexed !== null) return { literal: indexed, module, reference };
|
|
82
|
+
if (init.type === "Identifier") {
|
|
83
|
+
const aliased = module.bindings.get(init.name);
|
|
84
|
+
if (aliased !== undefined) return follow(init.name, aliased, module, kernel, link, reference, wanted, seen);
|
|
85
|
+
}
|
|
86
|
+
if (isKey(init, module)) return { key: identity };
|
|
87
|
+
const declare = wanted === "list" ? "declare it as an array literal, `as const`" : "declare a key as Symbol(...), or a list as an array literal, `as const`";
|
|
88
|
+
return { error: `${reference} is computed when ${fileOf(module, kernel)} runs, so ${unread}; ${declare}` };
|
|
89
|
+
}
|
|
90
|
+
case "import": case "importNamespace":
|
|
91
|
+
// Without a linker nothing imported can be read, so a name that may be one key is taken as one.
|
|
92
|
+
if (link === null) return wanted === "list" ? { error: `${reference} is imported, and this build doesn't link imports` } : { key: null };
|
|
93
|
+
return followResolved(resolveBinding(link, module, name, binding), kernel, link, reference, wanted, seen);
|
|
94
|
+
case "function": case "other":
|
|
95
|
+
return { error: `${reference} isn't a module-scope const, so ${unread}` };
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
const followResolved = (resolved: Resolved, kernel: Module, link: Link | null, reference: string, wanted: Wanted, seen: Set<string>): Followed => {
|
|
100
|
+
switch (resolved.kind) {
|
|
101
|
+
case "error": return wanted === "either" && resolved.cause === "unreadable" ? { key: null } : { error: resolved.error };
|
|
102
|
+
case "namespace": return { error: `${reference} is a module namespace, not ${wanted === "list" ? "a list of components" : "a key or a list of components"}` };
|
|
103
|
+
case "binding": return follow(resolved.name, resolved.binding, resolved.module, kernel, link, reference, wanted, seen);
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/** The names of a member chain of identifiers, `A.B.C`, outermost first; null for any other node. */
|
|
108
|
+
const chain = (node: Node): readonly string[] | null => {
|
|
109
|
+
if (node.type === "Identifier") return [node.name];
|
|
110
|
+
if (node.type !== "MemberExpression" || node.computed || node.property.type !== "Identifier") return null;
|
|
111
|
+
const object = chain(node.object);
|
|
112
|
+
return object === null ? null : [...object, node.property.name];
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
/** What a node names: an array literal, or the definition an identifier or a namespace member chain names. */
|
|
116
|
+
const find = (node: Node, kernel: Module, link: Link | null, wanted: Wanted): Followed => {
|
|
117
|
+
if (node.type === "ArrayExpression") return { literal: node, module: kernel, reference: "" };
|
|
118
|
+
const names = chain(node);
|
|
119
|
+
if (names === null) return { error: "commands and kernel declarations name a list as an array literal, or a constant holding one" };
|
|
120
|
+
const [first, ...members] = names;
|
|
121
|
+
const reference = names.join(".");
|
|
122
|
+
const binding = kernel.bindings.get(first);
|
|
123
|
+
if (binding === undefined) return { error: `${first} isn't bound at module scope` };
|
|
124
|
+
if (members.length === 0) return follow(first, binding, kernel, kernel, link, reference, wanted, new Set());
|
|
125
|
+
const what = wanted === "list" ? "a list" : "a key or a list";
|
|
126
|
+
if (binding.kind !== "importNamespace") return { error: `${first} isn't a module namespace, so ${reference} isn't ${what} the compiler can read` };
|
|
127
|
+
if (link === null) return wanted === "list" ? { error: `${reference} is imported, and this build doesn't link imports` } : { key: null };
|
|
128
|
+
let resolved = resolveBinding(link, kernel, first, binding);
|
|
129
|
+
for (const member of members) {
|
|
130
|
+
if (resolved.kind === "error") return followResolved(resolved, kernel, link, reference, wanted, new Set());
|
|
131
|
+
if (resolved.kind !== "namespace") return { error: `${reference} isn't ${what} the compiler can read` };
|
|
132
|
+
resolved = resolveExport(link, resolved.file, member);
|
|
133
|
+
}
|
|
134
|
+
return followResolved(resolved, kernel, link, reference, wanted, new Set());
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
/** The identity of what a binding of `module` defines: its module and name, through imports; null where it can't be followed. */
|
|
138
|
+
const definition = (module: Module, name: string, binding: ModuleBinding, link: Link | null): string | null => {
|
|
139
|
+
if (binding.kind !== "import" && binding.kind !== "importNamespace") return `${module.file}\0${name}`;
|
|
140
|
+
if (link === null) return null;
|
|
141
|
+
const resolved = resolveBinding(link, module, name, binding);
|
|
142
|
+
return resolved.kind === "binding" ? `${resolved.module.file}\0${resolved.name}` : null;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Lists as `kernel` reads them. `nodes` are the kernel's declaration and body: the kernel's names for keys of other
|
|
147
|
+
* modules' lists are found among the module-scope identifiers they use, so only those are followed.
|
|
148
|
+
*/
|
|
149
|
+
export const createLists = (kernel: Module, link: Link | null, nodes: readonly Node[]): Lists => {
|
|
150
|
+
/** Each key definition's name in the kernel's module, filled from the kernel's identifiers when a list of another module is first read. */
|
|
151
|
+
let named: Map<string, string> | null = null;
|
|
152
|
+
const nameOf = (identity: string, fallback: string): string => {
|
|
153
|
+
if (named === null) {
|
|
154
|
+
const found = new Map<string, string>();
|
|
155
|
+
const followed = new Set<string>();
|
|
156
|
+
const visit = (node: Node): void => {
|
|
157
|
+
if (node.type === "Identifier" && !followed.has(node.name)) {
|
|
158
|
+
followed.add(node.name);
|
|
159
|
+
const binding = kernel.bindings.get(node.name);
|
|
160
|
+
const defined = binding === undefined ? null : definition(kernel, node.name, binding, link);
|
|
161
|
+
if (defined !== null && !found.has(defined)) found.set(defined, node.name);
|
|
162
|
+
}
|
|
163
|
+
for (const child of children(node)) visit(child);
|
|
164
|
+
};
|
|
165
|
+
for (const node of nodes) visit(node);
|
|
166
|
+
named = found;
|
|
167
|
+
}
|
|
168
|
+
const name = named.get(identity);
|
|
169
|
+
if (name !== undefined) return name;
|
|
170
|
+
named.set(identity, fallback);
|
|
171
|
+
return fallback;
|
|
172
|
+
};
|
|
173
|
+
const names = (node: Node): ListNames => {
|
|
174
|
+
const found = find(node, kernel, link, "list");
|
|
175
|
+
if ("key" in found) {
|
|
176
|
+
const reference = chain(node)?.join(".") ?? "";
|
|
177
|
+
return { error: `${reference} is a key, not a list of components; list it as [${reference}]` };
|
|
178
|
+
}
|
|
179
|
+
if (!("literal" in found)) return found;
|
|
180
|
+
const { literal, module, reference } = found;
|
|
181
|
+
const result: string[] = [];
|
|
182
|
+
for (let k = 0; k < literal.elements.length; k++) {
|
|
183
|
+
const element = literal.elements[k];
|
|
184
|
+
// The kernel's own list may spread another it can read: `with: [...Unit, tagged]`.
|
|
185
|
+
if (element?.type === "SpreadElement" && module === kernel) {
|
|
186
|
+
const spread = names(element.argument);
|
|
187
|
+
if ("error" in spread) return spread;
|
|
188
|
+
result.push(...spread);
|
|
189
|
+
continue;
|
|
190
|
+
}
|
|
191
|
+
const binding = element?.type === "Identifier" ? module.bindings.get(element.name) : undefined;
|
|
192
|
+
if (element?.type !== "Identifier" || binding === undefined) {
|
|
193
|
+
return { error: module === kernel ? "lists name keys by identifiers bound at module scope" : `${reference} names a key by something other than an identifier bound at the scope of ${module.file}` };
|
|
194
|
+
}
|
|
195
|
+
if (module === kernel) {
|
|
196
|
+
result.push(element.name);
|
|
197
|
+
continue;
|
|
198
|
+
}
|
|
199
|
+
const fallback = `${reference}[${k}]`;
|
|
200
|
+
const identity = definition(module, element.name, binding, link);
|
|
201
|
+
result.push(identity === null ? fallback : nameOf(identity, fallback));
|
|
202
|
+
}
|
|
203
|
+
return result;
|
|
204
|
+
};
|
|
205
|
+
const component = (node: Node): Named => {
|
|
206
|
+
const found = find(node, kernel, link, "either");
|
|
207
|
+
if ("literal" in found) return { kind: "list" };
|
|
208
|
+
if ("error" in found) return { kind: "error", error: found.error };
|
|
209
|
+
const reference = chain(node)?.join(".") ?? "";
|
|
210
|
+
// A key named by an identifier is that identifier; one named through a namespace is the kernel's own binding of
|
|
211
|
+
// its definition where it has one.
|
|
212
|
+
return { kind: "key", name: node.type === "Identifier" || found.key === null ? reference : nameOf(found.key, reference) };
|
|
213
|
+
};
|
|
214
|
+
const reduction = (name: string): { readonly operator: string | undefined; readonly file: string } | null => {
|
|
215
|
+
const binding = kernel.bindings.get(name);
|
|
216
|
+
const identity = binding === undefined ? null : definition(kernel, name, binding, link);
|
|
217
|
+
if (identity === null) return null;
|
|
218
|
+
const [file = "", defined = ""] = identity.split("\0");
|
|
219
|
+
return { operator: link?.reductionOf?.(file, defined), file };
|
|
220
|
+
};
|
|
221
|
+
/** Whether a key the kernel names is a shared component, as its declaration's module says. */
|
|
222
|
+
const shared = (name: string): boolean => {
|
|
223
|
+
const binding = kernel.bindings.get(name);
|
|
224
|
+
const identity = binding === undefined ? null : definition(kernel, name, binding, link);
|
|
225
|
+
if (identity === null) return false;
|
|
226
|
+
const [file = "", defined = ""] = identity.split("\0");
|
|
227
|
+
return link?.sharedOf?.(file, defined) === true;
|
|
228
|
+
};
|
|
229
|
+
return { names, component, reduction, shared };
|
|
230
|
+
};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
import type { Expression, Node, ObjectExpression, Pattern, SpreadElement } from 'estree';
|
|
3
|
+
import { children, declaredIn } from './estree.js';
|
|
4
|
+
|
|
5
|
+
type Range = { readonly start: number; readonly end: number };
|
|
6
|
+
|
|
7
|
+
/** How a call passes a key part: as in `world/index-lookups.ts`'s `Shape`, `0` whole, `n` a tuple of `n` scalars, or a comparison's operators. */
|
|
8
|
+
type Form = number | readonly (readonly [string, number])[];
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* A call of an index lookup in a main-thread body: its callee's source, its key's shape, and the source ranges of the
|
|
12
|
+
* values it passes, literals flattened.
|
|
13
|
+
*/
|
|
14
|
+
export type LookupSite = Range & { readonly callee: Range; readonly shape: readonly Form[]; readonly values: readonly Range[] };
|
|
15
|
+
|
|
16
|
+
/** Arguments a site passes at most (`world/prepared-lookup.ts`). */
|
|
17
|
+
const maximumArguments = 16;
|
|
18
|
+
|
|
19
|
+
const operators: ReadonlySet<string> = new Set(["==", "!=", "<", ">", "<=", ">="]);
|
|
20
|
+
|
|
21
|
+
/** A property's plain name: an identifier or a string literal, not computed. */
|
|
22
|
+
const nameOf = (key: Node, computed: boolean): string | null =>
|
|
23
|
+
!computed && key.type === "Identifier" ? key.name : key.type === "Literal" && typeof key.value === "string" ? key.value : null;
|
|
24
|
+
|
|
25
|
+
/** The names of a declaration's lookups that go through an index: those declared as an object literal with `index`. */
|
|
26
|
+
const indexLookupsOf = (declaration: ObjectExpression): ReadonlySet<string> => {
|
|
27
|
+
const names = new Set<string>();
|
|
28
|
+
for (const property of declaration.properties) {
|
|
29
|
+
if (property.type !== "Property" || nameOf(property.key, property.computed) !== "lookup" || property.value.type !== "ObjectExpression") continue;
|
|
30
|
+
for (const lookup of property.value.properties) {
|
|
31
|
+
if (lookup.type !== "Property" || lookup.value.type !== "ObjectExpression") continue;
|
|
32
|
+
const name = nameOf(lookup.key, lookup.computed);
|
|
33
|
+
const indexed = lookup.value.properties.some(field => field.type === "Property" && nameOf(field.key, field.computed) === "index");
|
|
34
|
+
if (name !== null && indexed) names.add(name);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return names;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** How a body reaches its lookups: the context's name, a name bound to `lookup`, and names bound to lookups themselves. */
|
|
41
|
+
type Reach = { readonly context: string | null; readonly lookup: string | null; readonly direct: ReadonlyMap<string, string> };
|
|
42
|
+
|
|
43
|
+
const reachOf = (parameter: Pattern | undefined, names: ReadonlySet<string>): Reach | null => {
|
|
44
|
+
if (parameter?.type === "Identifier") return { context: parameter.name, lookup: null, direct: new Map() };
|
|
45
|
+
if (parameter?.type !== "ObjectPattern") return null;
|
|
46
|
+
for (const property of parameter.properties) {
|
|
47
|
+
if (property.type !== "Property" || nameOf(property.key, property.computed) !== "lookup") continue;
|
|
48
|
+
if (property.value.type === "Identifier") return { context: null, lookup: property.value.name, direct: new Map() };
|
|
49
|
+
if (property.value.type !== "ObjectPattern") return null;
|
|
50
|
+
const direct = new Map<string, string>();
|
|
51
|
+
for (const inner of property.value.properties) {
|
|
52
|
+
if (inner.type !== "Property" || inner.value.type !== "Identifier") continue;
|
|
53
|
+
const name = nameOf(inner.key, inner.computed);
|
|
54
|
+
if (name !== null && names.has(name)) direct.set(inner.value.name, name);
|
|
55
|
+
}
|
|
56
|
+
return { context: null, lookup: null, direct };
|
|
57
|
+
}
|
|
58
|
+
return null;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/** The form and values of one argument: a tuple or comparison literal flattened, anything else whole. */
|
|
62
|
+
const formOf = (argument: Expression): { readonly form: Form; readonly values: readonly Range[] } => {
|
|
63
|
+
if (argument.type === "ArrayExpression" && argument.elements.length > 0 && argument.elements.every(element => element !== null && element.type !== "SpreadElement")) {
|
|
64
|
+
return { form: argument.elements.length, values: argument.elements.flatMap(element => element === null ? [] : [{ start: element.start, end: element.end }]) };
|
|
65
|
+
}
|
|
66
|
+
if (argument.type === "ObjectExpression" && argument.properties.length > 0) {
|
|
67
|
+
const entries: [string, number][] = [];
|
|
68
|
+
const values: Range[] = [];
|
|
69
|
+
for (const property of argument.properties) {
|
|
70
|
+
if (property.type !== "Property" || property.kind !== "init" || property.method || property.computed) return { form: 0, values: [argument] };
|
|
71
|
+
const operator = nameOf(property.key, false);
|
|
72
|
+
if (operator === null || !operators.has(operator) || property.value.type === "AssignmentPattern" || property.value.type === "ObjectPattern"
|
|
73
|
+
|| property.value.type === "ArrayPattern" || property.value.type === "RestElement") return { form: 0, values: [argument] };
|
|
74
|
+
const operand = formOf(property.value);
|
|
75
|
+
entries.push([operator, typeof operand.form === "number" ? operand.form : 0]);
|
|
76
|
+
values.push(...typeof operand.form === "number" ? operand.values : [property.value]);
|
|
77
|
+
}
|
|
78
|
+
return { form: entries, values };
|
|
79
|
+
}
|
|
80
|
+
return { form: 0, values: [argument] };
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* The index lookup calls in a main-thread body, whose context is its parameter at `context`: `context.lookup.name(key)`,
|
|
85
|
+
* `lookup.name(key)` and `name(key)` as the parameter's pattern binds them, for lookups the declaration declares with
|
|
86
|
+
* `index` in an object literal. A body that redeclares the names it reaches them by is left alone, and so is a call
|
|
87
|
+
* with a spread argument or more than `maximumArguments` values, or one inside another's arguments.
|
|
88
|
+
*/
|
|
89
|
+
export const lookupSites = (body: Node, declaration: ObjectExpression, context: number): readonly LookupSite[] => {
|
|
90
|
+
if (body.type !== "ArrowFunctionExpression" && body.type !== "FunctionExpression") return [];
|
|
91
|
+
const names = indexLookupsOf(declaration);
|
|
92
|
+
if (names.size === 0) return [];
|
|
93
|
+
const reach = reachOf(body.params[context], names);
|
|
94
|
+
if (reach === null) return [];
|
|
95
|
+
const declared = new Set<string>();
|
|
96
|
+
declaredIn(body.body, name => declared.add(name));
|
|
97
|
+
if ((reach.context !== null && declared.has(reach.context)) || (reach.lookup !== null && declared.has(reach.lookup))) return [];
|
|
98
|
+
/** Whether a callee is one of the declaration's index lookups, as the body reaches it. */
|
|
99
|
+
const isLookup = (callee: Node): boolean => {
|
|
100
|
+
if (callee.type === "Identifier") return reach.direct.has(callee.name) && !declared.has(callee.name);
|
|
101
|
+
if (callee.type !== "MemberExpression" || callee.computed || callee.optional || callee.property.type !== "Identifier" || !names.has(callee.property.name)) return false;
|
|
102
|
+
const { object } = callee;
|
|
103
|
+
if (object.type === "Identifier") return reach.lookup !== null && object.name === reach.lookup;
|
|
104
|
+
return reach.context !== null && object.type === "MemberExpression" && !object.computed && !object.optional && object.object.type === "Identifier"
|
|
105
|
+
&& object.object.name === reach.context && object.property.type === "Identifier" && object.property.name === "lookup";
|
|
106
|
+
};
|
|
107
|
+
const sites: LookupSite[] = [];
|
|
108
|
+
const visit = (node: Node): void => {
|
|
109
|
+
if (node.type === "CallExpression" && !node.optional && isLookup(node.callee) && node.arguments.every((argument): argument is Expression => argument.type !== "SpreadElement")) {
|
|
110
|
+
const forms = node.arguments.map((argument: Expression | SpreadElement) => argument.type === "SpreadElement" ? { form: 0, values: [] } : formOf(argument));
|
|
111
|
+
const values = forms.flatMap(form => form.values);
|
|
112
|
+
if (values.length <= maximumArguments) {
|
|
113
|
+
sites.push({ start: node.start, end: node.end, callee: { start: node.callee.start, end: node.callee.end }, shape: forms.map(form => form.form), values });
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
for (const child of children(node)) visit(child);
|
|
118
|
+
};
|
|
119
|
+
visit(body.body);
|
|
120
|
+
return sites;
|
|
121
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// © 2026 Adobe. MIT License. See /LICENSE for details.
|
|
2
|
+
/** The `Math` functions allowed in kernels: pure and deterministic. */
|
|
3
|
+
export const mathFunctions: ReadonlySet<string> = new Set([
|
|
4
|
+
"abs", "sign", "floor", "ceil", "round", "trunc", "min", "max", "sqrt", "cbrt", "hypot",
|
|
5
|
+
"exp", "expm1", "log", "log1p", "log2", "log10", "pow",
|
|
6
|
+
"sin", "cos", "tan", "asin", "acos", "atan", "atan2", "sinh", "cosh", "tanh", "asinh", "acosh", "atanh",
|
|
7
|
+
"fround", "imul", "clz32",
|
|
8
|
+
]);
|
|
9
|
+
|
|
10
|
+
export const mathConstants: ReadonlySet<string> = new Set(["PI", "E", "LN2", "LN10", "LOG2E", "LOG10E", "SQRT2", "SQRT1_2"]);
|