@luma.gl/graph 10.0.0-alpha.9 → 10.0.0-beta.2
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 +4 -4
- package/THIRD-PARTY-NOTICES.md +19 -0
- package/dist/arrow/arrow-colors.cjs +99 -18
- package/dist/arrow/arrow-colors.d.ts +27 -10
- package/dist/arrow/arrow-colors.d.ts.map +1 -1
- package/dist/arrow/arrow-colors.js +107 -24
- package/dist/arrow/arrow-colors.js.map +1 -1
- package/dist/arrow/arrow-utils/arrow-paths.cjs +4 -3
- package/dist/arrow/arrow-utils/arrow-paths.d.ts.map +1 -1
- package/dist/arrow/arrow-utils/arrow-paths.js +5 -4
- package/dist/arrow/arrow-utils/arrow-paths.js.map +1 -1
- package/dist/arrow/cpu/arrow-coordinate-projection.cjs +30 -0
- package/dist/arrow/cpu/arrow-coordinate-projection.d.ts +5 -0
- package/dist/arrow/cpu/arrow-coordinate-projection.d.ts.map +1 -0
- package/dist/arrow/cpu/arrow-coordinate-projection.js +9 -0
- package/dist/arrow/cpu/arrow-coordinate-projection.js.map +1 -0
- package/dist/arrow/cpu/arrow-cpu-pipelines.cjs +31 -0
- package/dist/arrow/cpu/arrow-cpu-pipelines.d.ts +2 -0
- package/dist/arrow/cpu/arrow-cpu-pipelines.d.ts.map +1 -0
- package/dist/arrow/cpu/arrow-cpu-pipelines.js +5 -0
- package/dist/arrow/cpu/arrow-cpu-pipelines.js.map +1 -0
- package/dist/arrow/cpu/arrow-cpu-vector-adapters.cjs +99 -0
- package/dist/arrow/cpu/arrow-cpu-vector-adapters.d.ts +9 -0
- package/dist/arrow/cpu/arrow-cpu-vector-adapters.d.ts.map +1 -0
- package/dist/arrow/cpu/arrow-cpu-vector-adapters.js +100 -0
- package/dist/arrow/cpu/arrow-cpu-vector-adapters.js.map +1 -0
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.cjs +9 -371
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.d.ts +8 -28
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.d.ts.map +1 -1
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.js +4 -381
- package/dist/arrow/geoarrow/arrow-geoarrow-adapter.js.map +1 -1
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.cjs +11 -11
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.d.ts +2 -0
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.d.ts.map +1 -1
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.js +4 -4
- package/dist/arrow/geoarrow/arrow-geoarrow-conversion.js.map +1 -1
- package/dist/arrow/geoarrow/arrow-polygon-tessellation.cjs +2 -2
- package/dist/arrow/geoarrow/arrow-polygon-tessellation.js +1 -1
- package/dist/arrow/geoarrow/arrow-polygon-tessellation.js.map +1 -1
- package/dist/arrow/gpu/arrow-column-gpu-vector.cjs +27 -8
- package/dist/arrow/gpu/arrow-column-gpu-vector.d.ts +11 -1
- package/dist/arrow/gpu/arrow-column-gpu-vector.d.ts.map +1 -1
- package/dist/arrow/gpu/arrow-column-gpu-vector.js +33 -8
- package/dist/arrow/gpu/arrow-column-gpu-vector.js.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-table-conversion.cjs +68 -3
- package/dist/arrow/gpu/arrow-gpu-table-conversion.d.ts +9 -2
- package/dist/arrow/gpu/arrow-gpu-table-conversion.d.ts.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-table-conversion.js +76 -3
- package/dist/arrow/gpu/arrow-gpu-table-conversion.js.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-vector-adapters.cjs +8 -6
- package/dist/arrow/gpu/arrow-gpu-vector-adapters.d.ts +1 -0
- package/dist/arrow/gpu/arrow-gpu-vector-adapters.d.ts.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-vector-adapters.js +17 -7
- package/dist/arrow/gpu/arrow-gpu-vector-adapters.js.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.cjs +35 -5
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.d.ts +6 -1
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.d.ts.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.js +40 -5
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.js.map +1 -1
- package/dist/arrow/index.cjs +19 -2
- package/dist/arrow/index.cjs.map +3 -3
- package/dist/arrow/index.d.ts +5 -2
- package/dist/arrow/index.d.ts.map +1 -1
- package/dist/arrow/index.js +4 -1
- package/dist/arrow/index.js.map +1 -1
- package/dist/arrow/internal.cjs.map +2 -2
- package/dist/dist.dev.js +3820 -1646
- package/dist/dist.min.js +450 -136
- package/dist/experimental/index.cjs.map +1 -1
- package/dist/experimental/simulation/index.cjs.map +1 -1
- package/dist/experimental-models.cjs +21 -0
- package/dist/experimental-models.d.ts +2 -0
- package/dist/experimental-models.d.ts.map +1 -0
- package/dist/experimental-models.js +5 -0
- package/dist/experimental-models.js.map +1 -0
- package/dist/experimental-simulation.cjs +21 -0
- package/dist/experimental-simulation.d.ts +2 -0
- package/dist/experimental-simulation.d.ts.map +1 -0
- package/dist/experimental-simulation.js +5 -0
- package/dist/experimental-simulation.js.map +1 -0
- package/dist/geospatial/gpu-point-spatial-query.cjs +2 -15
- package/dist/geospatial/gpu-point-spatial-query.d.ts.map +1 -1
- package/dist/geospatial/gpu-point-spatial-query.js +2 -15
- package/dist/geospatial/gpu-point-spatial-query.js.map +1 -1
- package/dist/geospatial/index.cjs.map +2 -2
- package/dist/gpu-a5/index.cjs.map +1 -1
- package/dist/gpu-core/compiled-gpu-graph.cjs +47 -0
- package/dist/gpu-core/compiled-gpu-graph.d.ts +5 -0
- package/dist/gpu-core/compiled-gpu-graph.d.ts.map +1 -1
- package/dist/gpu-core/compiled-gpu-graph.js +54 -1
- package/dist/gpu-core/compiled-gpu-graph.js.map +1 -1
- package/dist/gpu-core/gpu-command-graph-compiler.cjs +11 -2
- package/dist/gpu-core/gpu-command-graph-compiler.d.ts +2 -1
- package/dist/gpu-core/gpu-command-graph-compiler.d.ts.map +1 -1
- package/dist/gpu-core/gpu-command-graph-compiler.js +13 -2
- package/dist/gpu-core/gpu-command-graph-compiler.js.map +1 -1
- package/dist/gpu-core/gpu-command-graph-types.d.ts +16 -1
- package/dist/gpu-core/gpu-command-graph-types.d.ts.map +1 -1
- package/dist/gpu-core/gpu-command-graph-types.js.map +1 -1
- package/dist/gpu-core/gpu-command-graph.cjs +34 -11
- package/dist/gpu-core/gpu-command-graph.d.ts +17 -8
- package/dist/gpu-core/gpu-command-graph.d.ts.map +1 -1
- package/dist/gpu-core/gpu-command-graph.js +39 -11
- package/dist/gpu-core/gpu-command-graph.js.map +1 -1
- package/dist/gpu-core/gpu-cpu-execution.cjs +279 -0
- package/dist/gpu-core/gpu-cpu-execution.d.ts +22 -0
- package/dist/gpu-core/gpu-cpu-execution.d.ts.map +1 -0
- package/dist/gpu-core/gpu-cpu-execution.js +294 -0
- package/dist/gpu-core/gpu-cpu-execution.js.map +1 -0
- package/dist/gpu-core/gpu-cpu-operation.cjs +54 -0
- package/dist/gpu-core/gpu-cpu-operation.d.ts +40 -0
- package/dist/gpu-core/gpu-cpu-operation.d.ts.map +1 -0
- package/dist/gpu-core/gpu-cpu-operation.js +35 -0
- package/dist/gpu-core/gpu-cpu-operation.js.map +1 -0
- package/dist/gpu-core/gpu-dispatch-utils.cjs +7 -3
- package/dist/gpu-core/gpu-dispatch-utils.d.ts +2 -0
- package/dist/gpu-core/gpu-dispatch-utils.d.ts.map +1 -1
- package/dist/gpu-core/gpu-dispatch-utils.js +4 -1
- package/dist/gpu-core/gpu-dispatch-utils.js.map +1 -1
- package/dist/gpu-core/gpu-expression-operation.cjs +2 -2
- package/dist/gpu-core/gpu-expression-operation.d.ts +1 -1
- package/dist/gpu-core/gpu-expression-operation.d.ts.map +1 -1
- package/dist/gpu-core/gpu-expression-operation.js +1 -1
- package/dist/gpu-core/gpu-expression-operation.js.map +1 -1
- package/dist/gpu-core/gpu-expression-plan.cjs +5 -1
- package/dist/gpu-core/gpu-expression-plan.d.ts +3 -2
- package/dist/gpu-core/gpu-expression-plan.d.ts.map +1 -1
- package/dist/gpu-core/gpu-expression-plan.js +7 -1
- package/dist/gpu-core/gpu-expression-plan.js.map +1 -1
- package/dist/gpu-core/gpu-graph-compiler.cjs +48 -0
- package/dist/gpu-core/gpu-graph-compiler.d.ts +1 -0
- package/dist/gpu-core/gpu-graph-compiler.d.ts.map +1 -1
- package/dist/gpu-core/gpu-graph-compiler.js +50 -0
- package/dist/gpu-core/gpu-graph-compiler.js.map +1 -1
- package/dist/gpu-core/gpu-graph.d.ts +2 -2
- package/dist/gpu-core/gpu-graph.d.ts.map +1 -1
- package/dist/gpu-core/gpu-graph.js.map +1 -1
- package/dist/gpu-core/gpu-grid-aggregation.cjs +2 -5
- package/dist/gpu-core/gpu-grid-aggregation.d.ts.map +1 -1
- package/dist/gpu-core/gpu-grid-aggregation.js +2 -5
- package/dist/gpu-core/gpu-grid-aggregation.js.map +1 -1
- package/dist/gpu-core/gpu-grid-binning.cjs +2 -5
- package/dist/gpu-core/gpu-grid-binning.d.ts.map +1 -1
- package/dist/gpu-core/gpu-grid-binning.js +2 -5
- package/dist/gpu-core/gpu-grid-binning.js.map +1 -1
- package/dist/gpu-core/gpu-grid-coordinate.cjs +41 -0
- package/dist/gpu-core/gpu-grid-coordinate.d.ts +7 -0
- package/dist/gpu-core/gpu-grid-coordinate.d.ts.map +1 -0
- package/dist/gpu-core/gpu-grid-coordinate.js +24 -0
- package/dist/gpu-core/gpu-grid-coordinate.js.map +1 -0
- package/dist/gpu-core/gpu-grid-index-internals.cjs +2 -15
- package/dist/gpu-core/gpu-grid-index-internals.d.ts.map +1 -1
- package/dist/gpu-core/gpu-grid-index-internals.js +2 -15
- package/dist/gpu-core/gpu-grid-index-internals.js.map +1 -1
- package/dist/gpu-core/gpu-grid-index-query.cjs +2 -16
- package/dist/gpu-core/gpu-grid-index-query.d.ts.map +1 -1
- package/dist/gpu-core/gpu-grid-index-query.js +2 -16
- package/dist/gpu-core/gpu-grid-index-query.js.map +1 -1
- package/dist/gpu-core/gpu-group-aggregation.cjs +7 -15
- package/dist/gpu-core/gpu-group-aggregation.d.ts.map +1 -1
- package/dist/gpu-core/gpu-group-aggregation.js +7 -18
- package/dist/gpu-core/gpu-group-aggregation.js.map +1 -1
- package/dist/gpu-core/gpu-operation.d.ts +4 -4
- package/dist/gpu-core/gpu-operation.d.ts.map +1 -1
- package/dist/gpu-core/gpu-operation.js.map +1 -1
- package/dist/gpu-core/gpu-reduction.cjs +6 -14
- package/dist/gpu-core/gpu-reduction.d.ts.map +1 -1
- package/dist/gpu-core/gpu-reduction.js +6 -15
- package/dist/gpu-core/gpu-reduction.js.map +1 -1
- package/dist/gpu-core/gpu-render-operation.cjs +39 -0
- package/dist/gpu-core/gpu-render-operation.d.ts +21 -0
- package/dist/gpu-core/gpu-render-operation.d.ts.map +1 -0
- package/dist/gpu-core/gpu-render-operation.js +22 -0
- package/dist/gpu-core/gpu-render-operation.js.map +1 -0
- package/dist/gpu-core/gpu-scan.cjs +46 -32
- package/dist/gpu-core/gpu-scan.d.ts.map +1 -1
- package/dist/gpu-core/gpu-scan.js +56 -44
- package/dist/gpu-core/gpu-scan.js.map +1 -1
- package/dist/gpu-core/gpu-segmented-reduction.cjs +12 -9
- package/dist/gpu-core/gpu-segmented-reduction.d.ts +1 -1
- package/dist/gpu-core/gpu-segmented-reduction.d.ts.map +1 -1
- package/dist/gpu-core/gpu-segmented-reduction.js +12 -9
- package/dist/gpu-core/gpu-segmented-reduction.js.map +1 -1
- package/dist/gpu-core/gpu-segmented-scan.cjs +73 -16
- package/dist/gpu-core/gpu-segmented-scan.d.ts.map +1 -1
- package/dist/gpu-core/gpu-segmented-scan.js +73 -16
- package/dist/gpu-core/gpu-segmented-scan.js.map +1 -1
- package/dist/gpu-core/gpu-semantic-aggregation-operation.cjs +112 -0
- package/dist/gpu-core/gpu-semantic-aggregation-operation.d.ts +71 -0
- package/dist/gpu-core/gpu-semantic-aggregation-operation.d.ts.map +1 -0
- package/dist/gpu-core/gpu-semantic-aggregation-operation.js +92 -0
- package/dist/gpu-core/gpu-semantic-aggregation-operation.js.map +1 -0
- package/dist/gpu-core/gpu-shader-pass-kernel.cjs +267 -0
- package/dist/gpu-core/gpu-shader-pass-kernel.d.ts +29 -0
- package/dist/gpu-core/gpu-shader-pass-kernel.d.ts.map +1 -0
- package/dist/gpu-core/gpu-shader-pass-kernel.js +260 -0
- package/dist/gpu-core/gpu-shader-pass-kernel.js.map +1 -0
- package/dist/gpu-core/gpu-shader-pass-operation.cjs +85 -0
- package/dist/gpu-core/gpu-shader-pass-operation.d.ts +32 -0
- package/dist/gpu-core/gpu-shader-pass-operation.d.ts.map +1 -0
- package/dist/gpu-core/gpu-shader-pass-operation.js +74 -0
- package/dist/gpu-core/gpu-shader-pass-operation.js.map +1 -0
- package/dist/gpu-core/gpu-texture-plan.d.ts +3 -2
- package/dist/gpu-core/gpu-texture-plan.d.ts.map +1 -1
- package/dist/gpu-core/gpu-texture-plan.js.map +1 -1
- package/dist/gpu-core/index.cjs +32 -0
- package/dist/gpu-core/index.cjs.map +3 -3
- package/dist/gpu-core/index.d.ts +21 -1
- package/dist/gpu-core/index.d.ts.map +1 -1
- package/dist/gpu-core/index.js +10 -0
- package/dist/gpu-core/index.js.map +1 -1
- package/dist/gpu-data/color-conversion.cjs +105 -0
- package/dist/gpu-data/color-conversion.d.ts +30 -0
- package/dist/gpu-data/color-conversion.d.ts.map +1 -0
- package/dist/gpu-data/color-conversion.js +109 -0
- package/dist/gpu-data/color-conversion.js.map +1 -0
- package/dist/gpu-data/cpu-data.cjs +60 -0
- package/dist/gpu-data/cpu-data.d.ts +28 -0
- package/dist/gpu-data/cpu-data.d.ts.map +1 -0
- package/dist/gpu-data/cpu-data.js +41 -0
- package/dist/gpu-data/cpu-data.js.map +1 -0
- package/dist/gpu-data/cpu-gpu-vector-transfer.cjs +98 -0
- package/dist/gpu-data/cpu-gpu-vector-transfer.d.ts +9 -0
- package/dist/gpu-data/cpu-gpu-vector-transfer.d.ts.map +1 -0
- package/dist/gpu-data/cpu-gpu-vector-transfer.js +85 -0
- package/dist/gpu-data/cpu-gpu-vector-transfer.js.map +1 -0
- package/dist/gpu-data/cpu-vector.cjs +42 -0
- package/dist/gpu-data/cpu-vector.d.ts +17 -0
- package/dist/gpu-data/cpu-vector.d.ts.map +1 -0
- package/dist/gpu-data/cpu-vector.js +21 -0
- package/dist/gpu-data/cpu-vector.js.map +1 -0
- package/dist/gpu-data/gpu-data-buffer-props.cjs +41 -0
- package/dist/gpu-data/gpu-data-buffer-props.d.ts +5 -0
- package/dist/gpu-data/gpu-data-buffer-props.d.ts.map +1 -0
- package/dist/gpu-data/gpu-data-buffer-props.js +19 -0
- package/dist/gpu-data/gpu-data-buffer-props.js.map +1 -0
- package/dist/gpu-data/gpu-vector-wgsl-layout.cjs +50 -0
- package/dist/gpu-data/gpu-vector-wgsl-layout.d.ts +41 -0
- package/dist/gpu-data/gpu-vector-wgsl-layout.d.ts.map +1 -0
- package/dist/gpu-data/gpu-vector-wgsl-layout.js +45 -0
- package/dist/gpu-data/gpu-vector-wgsl-layout.js.map +1 -0
- package/dist/gpu-data/index.cjs +21 -2
- package/dist/gpu-data/index.cjs.map +3 -3
- package/dist/gpu-data/index.d.ts +6 -0
- package/dist/gpu-data/index.d.ts.map +1 -1
- package/dist/gpu-data/index.js +5 -0
- package/dist/gpu-data/index.js.map +1 -1
- package/dist/gpu-dataframe/gpu-data-frame-query.cjs +8 -19
- package/dist/gpu-dataframe/gpu-data-frame-query.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-data-frame-query.js +14 -26
- package/dist/gpu-dataframe/gpu-data-frame-query.js.map +1 -1
- package/dist/gpu-dataframe/gpu-expression-shader.cjs +87 -5
- package/dist/gpu-dataframe/gpu-expression-shader.d.ts +2 -1
- package/dist/gpu-dataframe/gpu-expression-shader.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-expression-shader.js +101 -5
- package/dist/gpu-dataframe/gpu-expression-shader.js.map +1 -1
- package/dist/gpu-dataframe/gpu-expression.cjs +177 -2
- package/dist/gpu-dataframe/gpu-expression.d.ts +60 -2
- package/dist/gpu-dataframe/gpu-expression.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-expression.js +187 -0
- package/dist/gpu-dataframe/gpu-expression.js.map +1 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.cjs +0 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.js +0 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-query.cjs +2 -2
- package/dist/gpu-dataframe/gpu-global-aggregation-query.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-query.js +5 -3
- package/dist/gpu-dataframe/gpu-global-aggregation-query.js.map +1 -1
- package/dist/gpu-dataframe/gpu-global-sort-compiler.cjs +23 -11
- package/dist/gpu-dataframe/gpu-global-sort-compiler.d.ts +1 -1
- package/dist/gpu-dataframe/gpu-global-sort-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-global-sort-compiler.js +24 -12
- package/dist/gpu-dataframe/gpu-global-sort-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.cjs +0 -1
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.js +0 -1
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-group-by-query.cjs +2 -2
- package/dist/gpu-dataframe/gpu-group-by-query.js +5 -3
- package/dist/gpu-dataframe/gpu-group-by-query.js.map +1 -1
- package/dist/gpu-dataframe/gpu-histogram-compiler.cjs +0 -1
- package/dist/gpu-dataframe/gpu-histogram-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-histogram-compiler.js +0 -1
- package/dist/gpu-dataframe/gpu-histogram-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-join-compiler.cjs +0 -2
- package/dist/gpu-dataframe/gpu-join-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-join-compiler.js +0 -2
- package/dist/gpu-dataframe/gpu-join-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-query-compiler.cjs +3 -1
- package/dist/gpu-dataframe/gpu-query-compiler.d.ts +0 -1
- package/dist/gpu-dataframe/gpu-query-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-query-compiler.js +3 -1
- package/dist/gpu-dataframe/gpu-query-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-sort-compiler.cjs +0 -1
- package/dist/gpu-dataframe/gpu-sort-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-sort-compiler.js +0 -1
- package/dist/gpu-dataframe/gpu-sort-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-sort-query.cjs +13 -5
- package/dist/gpu-dataframe/gpu-sort-query.d.ts +4 -1
- package/dist/gpu-dataframe/gpu-sort-query.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-sort-query.js +14 -5
- package/dist/gpu-dataframe/gpu-sort-query.js.map +1 -1
- package/dist/gpu-dataframe/index.cjs +20 -2
- package/dist/gpu-dataframe/index.cjs.map +3 -3
- package/dist/gpu-dataframe/index.d.ts +6 -2
- package/dist/gpu-dataframe/index.d.ts.map +1 -1
- package/dist/gpu-dataframe/index.js +3 -1
- package/dist/gpu-dataframe/index.js.map +1 -1
- package/dist/gpu-dataframe/portable-expression.cjs +167 -0
- package/dist/gpu-dataframe/portable-expression.d.ts +21 -0
- package/dist/gpu-dataframe/portable-expression.d.ts.map +1 -0
- package/dist/gpu-dataframe/portable-expression.js +162 -0
- package/dist/gpu-dataframe/portable-expression.js.map +1 -0
- package/dist/gpu-dggs/benchmarks.cjs.map +1 -1
- package/dist/gpu-dggs/index.cjs.map +1 -1
- package/dist/gpu-dggs-benchmarks.cjs +21 -0
- package/dist/gpu-dggs-benchmarks.d.ts +2 -0
- package/dist/gpu-dggs-benchmarks.d.ts.map +1 -0
- package/dist/gpu-dggs-benchmarks.js +5 -0
- package/dist/gpu-dggs-benchmarks.js.map +1 -0
- package/dist/gpu-geometry/index.cjs.map +1 -1
- package/dist/gpu-graph/index.cjs +8 -0
- package/dist/gpu-graph/index.cjs.map +3 -3
- package/dist/gpu-graph/index.d.ts +4 -0
- package/dist/gpu-graph/index.d.ts.map +1 -1
- package/dist/gpu-graph/index.js +2 -0
- package/dist/gpu-graph/index.js.map +1 -1
- package/dist/gpu-graph-algorithms/benchmarks.cjs.map +2 -2
- package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.cjs +2 -15
- package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.d.ts.map +1 -1
- package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.js +2 -15
- package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.js.map +1 -1
- package/dist/gpu-graph-algorithms/index.cjs.map +2 -2
- package/dist/gpu-graph-algorithms-benchmarks.cjs +21 -0
- package/dist/gpu-graph-algorithms-benchmarks.d.ts +2 -0
- package/dist/gpu-graph-algorithms-benchmarks.d.ts.map +1 -0
- package/dist/gpu-graph-algorithms-benchmarks.js +5 -0
- package/dist/gpu-graph-algorithms-benchmarks.js.map +1 -0
- package/dist/gpu-h3/index.cjs.map +1 -1
- package/dist/gpu-physics/gpu-physics-ensemble-terrain.cjs +116 -0
- package/dist/gpu-physics/gpu-physics-ensemble-terrain.d.ts +42 -0
- package/dist/gpu-physics/gpu-physics-ensemble-terrain.d.ts.map +1 -0
- package/dist/gpu-physics/gpu-physics-ensemble-terrain.js +90 -0
- package/dist/gpu-physics/gpu-physics-ensemble-terrain.js.map +1 -0
- package/dist/gpu-physics/gpu-physics-ensemble.cjs +97 -5
- package/dist/gpu-physics/gpu-physics-ensemble.d.ts +31 -2
- package/dist/gpu-physics/gpu-physics-ensemble.d.ts.map +1 -1
- package/dist/gpu-physics/gpu-physics-ensemble.js +99 -3
- package/dist/gpu-physics/gpu-physics-ensemble.js.map +1 -1
- package/dist/gpu-physics/gpu-rigid-body-world.cjs +568 -77
- package/dist/gpu-physics/gpu-rigid-body-world.d.ts +86 -0
- package/dist/gpu-physics/gpu-rigid-body-world.d.ts.map +1 -1
- package/dist/gpu-physics/gpu-rigid-body-world.js +617 -76
- package/dist/gpu-physics/gpu-rigid-body-world.js.map +1 -1
- package/dist/gpu-physics/index.cjs +23 -2
- package/dist/gpu-physics/index.cjs.map +3 -3
- package/dist/gpu-physics/index.d.ts +9 -2
- package/dist/gpu-physics/index.d.ts.map +1 -1
- package/dist/gpu-physics/index.js +6 -1
- package/dist/gpu-physics/index.js.map +1 -1
- package/dist/gpu-physics/rigid-body-bounds-shaders.cjs +21 -8
- package/dist/gpu-physics/rigid-body-bounds-shaders.d.ts +2 -1
- package/dist/gpu-physics/rigid-body-bounds-shaders.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-bounds-shaders.js +15 -1
- package/dist/gpu-physics/rigid-body-bounds-shaders.js.map +1 -1
- package/dist/gpu-physics/rigid-body-convex-shaders.cjs +3 -2
- package/dist/gpu-physics/rigid-body-convex-shaders.d.ts +1 -1
- package/dist/gpu-physics/rigid-body-convex-shaders.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-convex-shaders.js +3 -2
- package/dist/gpu-physics/rigid-body-convex-shaders.js.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-reset.cjs +36 -7
- package/dist/gpu-physics/rigid-body-ensemble-reset.d.ts +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-reset.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-reset.js +42 -7
- package/dist/gpu-physics/rigid-body-ensemble-reset.js.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-transaction.cjs +23 -1
- package/dist/gpu-physics/rigid-body-ensemble-transaction.d.ts +4 -1
- package/dist/gpu-physics/rigid-body-ensemble-transaction.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-transaction.js +25 -1
- package/dist/gpu-physics/rigid-body-ensemble-transaction.js.map +1 -1
- package/dist/gpu-physics/rigid-body-geometry.cjs +41 -4
- package/dist/gpu-physics/rigid-body-geometry.d.ts +10 -1
- package/dist/gpu-physics/rigid-body-geometry.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-geometry.js +44 -3
- package/dist/gpu-physics/rigid-body-geometry.js.map +1 -1
- package/dist/gpu-physics/rigid-body-height-field-shader.cjs +80 -0
- package/dist/gpu-physics/rigid-body-height-field-shader.d.ts +3 -0
- package/dist/gpu-physics/rigid-body-height-field-shader.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-height-field-shader.js +56 -0
- package/dist/gpu-physics/rigid-body-height-field-shader.js.map +1 -0
- package/dist/gpu-physics/rigid-body-height-field.cjs +166 -0
- package/dist/gpu-physics/rigid-body-height-field.d.ts +55 -0
- package/dist/gpu-physics/rigid-body-height-field.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-height-field.js +184 -0
- package/dist/gpu-physics/rigid-body-height-field.js.map +1 -0
- package/dist/gpu-physics/rigid-body-mesh-query-shaders.cjs +4 -2
- package/dist/gpu-physics/rigid-body-mesh-query-shaders.d.ts +1 -1
- package/dist/gpu-physics/rigid-body-mesh-query-shaders.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-mesh-query-shaders.js +4 -2
- package/dist/gpu-physics/rigid-body-mesh-query-shaders.js.map +1 -1
- package/dist/gpu-physics/rigid-body-mesh.cjs +72 -17
- package/dist/gpu-physics/rigid-body-mesh.d.ts +3 -0
- package/dist/gpu-physics/rigid-body-mesh.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-mesh.js +76 -20
- package/dist/gpu-physics/rigid-body-mesh.js.map +1 -1
- package/dist/gpu-physics/rigid-body-parallel-shaders.cjs +24 -9
- package/dist/gpu-physics/rigid-body-parallel-shaders.d.ts +1 -1
- package/dist/gpu-physics/rigid-body-parallel-shaders.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-parallel-shaders.js +28 -9
- package/dist/gpu-physics/rigid-body-parallel-shaders.js.map +1 -1
- package/dist/gpu-physics/rigid-body-properties.cjs +4 -4
- package/dist/gpu-physics/rigid-body-properties.d.ts +6 -0
- package/dist/gpu-physics/rigid-body-properties.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-properties.js +1 -1
- package/dist/gpu-physics/rigid-body-properties.js.map +1 -1
- package/dist/gpu-physics/rigid-body-publication.cjs +2 -2
- package/dist/gpu-physics/rigid-body-publication.js +1 -1
- package/dist/gpu-physics/rigid-body-publication.js.map +1 -1
- package/dist/gpu-physics/rigid-body-query-geometry.cjs +22 -4
- package/dist/gpu-physics/rigid-body-query-geometry.d.ts +1 -1
- package/dist/gpu-physics/rigid-body-query-geometry.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-query-geometry.js +22 -4
- package/dist/gpu-physics/rigid-body-query-geometry.js.map +1 -1
- package/dist/gpu-physics/rigid-body-shaders.cjs +12 -6
- package/dist/gpu-physics/rigid-body-shaders.d.ts +1 -1
- package/dist/gpu-physics/rigid-body-shaders.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-shaders.js +15 -7
- package/dist/gpu-physics/rigid-body-shaders.js.map +1 -1
- package/dist/gpu-physics/rigid-body-shape-properties.cjs +2 -0
- package/dist/gpu-physics/rigid-body-shape-properties.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-shape-properties.js +2 -0
- package/dist/gpu-physics/rigid-body-shape-properties.js.map +1 -1
- package/dist/gpu-physics/rigid-body-terrain-atlas.cjs +287 -0
- package/dist/gpu-physics/rigid-body-terrain-atlas.d.ts +87 -0
- package/dist/gpu-physics/rigid-body-terrain-atlas.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-terrain-atlas.js +275 -0
- package/dist/gpu-physics/rigid-body-terrain-atlas.js.map +1 -0
- package/dist/gpu-physics/rigid-body-terrain-lod.cjs +240 -0
- package/dist/gpu-physics/rigid-body-terrain-lod.d.ts +76 -0
- package/dist/gpu-physics/rigid-body-terrain-lod.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-terrain-lod.js +247 -0
- package/dist/gpu-physics/rigid-body-terrain-lod.js.map +1 -0
- package/dist/gpu-physics/rigid-body-terrain-stitch.cjs +215 -0
- package/dist/gpu-physics/rigid-body-terrain-stitch.d.ts +25 -0
- package/dist/gpu-physics/rigid-body-terrain-stitch.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-terrain-stitch.js +218 -0
- package/dist/gpu-physics/rigid-body-terrain-stitch.js.map +1 -0
- package/dist/gpu-physics/rigid-body-terrain-stream.cjs +263 -0
- package/dist/gpu-physics/rigid-body-terrain-stream.d.ts +97 -0
- package/dist/gpu-physics/rigid-body-terrain-stream.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-terrain-stream.js +250 -0
- package/dist/gpu-physics/rigid-body-terrain-stream.js.map +1 -0
- package/dist/gpu-physics/rigid-body-triggers.cjs +1 -0
- package/dist/gpu-physics/rigid-body-triggers.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-triggers.js +1 -0
- package/dist/gpu-physics/rigid-body-triggers.js.map +1 -1
- package/dist/gpu-physics/rigid-body-vehicle.cjs +145 -0
- package/dist/gpu-physics/rigid-body-vehicle.d.ts +47 -0
- package/dist/gpu-physics/rigid-body-vehicle.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-vehicle.js +119 -0
- package/dist/gpu-physics/rigid-body-vehicle.js.map +1 -0
- package/dist/gpu-pointcloud/index.cjs.map +1 -1
- package/dist/gpu-project/benchmarks.cjs.map +2 -2
- package/dist/gpu-project/coordinate-projection-graph.cjs +59 -0
- package/dist/gpu-project/coordinate-projection-graph.d.ts +23 -0
- package/dist/gpu-project/coordinate-projection-graph.d.ts.map +1 -0
- package/dist/gpu-project/coordinate-projection-graph.js +40 -0
- package/dist/gpu-project/coordinate-projection-graph.js.map +1 -0
- package/dist/gpu-project/cpu-geoarrow.cjs +112 -0
- package/dist/gpu-project/cpu-geoarrow.d.ts +10 -0
- package/dist/gpu-project/cpu-geoarrow.d.ts.map +1 -0
- package/dist/gpu-project/cpu-geoarrow.js +103 -0
- package/dist/gpu-project/cpu-geoarrow.js.map +1 -0
- package/dist/gpu-project/cpu-geometry-pipelines.cjs +134 -0
- package/dist/gpu-project/cpu-geometry-pipelines.d.ts +19 -0
- package/dist/gpu-project/cpu-geometry-pipelines.d.ts.map +1 -0
- package/dist/gpu-project/cpu-geometry-pipelines.js +114 -0
- package/dist/gpu-project/cpu-geometry-pipelines.js.map +1 -0
- package/dist/gpu-project/cpu-projection-operation.cjs +54 -0
- package/dist/gpu-project/cpu-projection-operation.d.ts +14 -0
- package/dist/gpu-project/cpu-projection-operation.d.ts.map +1 -0
- package/dist/gpu-project/cpu-projection-operation.js +37 -0
- package/dist/gpu-project/cpu-projection-operation.js.map +1 -0
- package/dist/gpu-project/crs.cjs.map +3 -3
- package/dist/gpu-project/crs.d.ts +1 -1
- package/dist/gpu-project/geoarrow.cjs +36 -0
- package/dist/gpu-project/geoarrow.cjs.map +6 -0
- package/dist/gpu-project/geoarrow.d.ts +3 -0
- package/dist/gpu-project/geoarrow.d.ts.map +1 -0
- package/dist/gpu-project/geoarrow.js +7 -0
- package/dist/gpu-project/geoarrow.js.map +1 -0
- package/dist/gpu-project/graph.cjs +27 -0
- package/dist/gpu-project/graph.cjs.map +6 -0
- package/dist/gpu-project/graph.d.ts +2 -0
- package/dist/gpu-project/graph.d.ts.map +1 -0
- package/dist/gpu-project/graph.js +6 -0
- package/dist/gpu-project/graph.js.map +1 -0
- package/dist/gpu-project/index.cjs +3 -0
- package/dist/gpu-project/index.cjs.map +3 -3
- package/dist/gpu-project/index.d.ts +1 -0
- package/dist/gpu-project/index.d.ts.map +1 -1
- package/dist/gpu-project/index.js +1 -0
- package/dist/gpu-project/index.js.map +1 -1
- package/dist/gpu-project/projection-crs-benchmark.cjs +2 -2
- package/dist/gpu-project/projection-crs-benchmark.d.ts +1 -1
- package/dist/gpu-project/projection-crs-benchmark.js +1 -1
- package/dist/gpu-project/projection-crs-input.cjs +7 -7
- package/dist/gpu-project/projection-crs-input.d.ts +1 -1
- package/dist/gpu-project/projection-crs-input.js +4 -4
- package/dist/gpu-project/projection-engine.d.ts +2 -2
- package/dist/gpu-project-benchmarks.cjs +21 -0
- package/dist/gpu-project-benchmarks.d.ts +2 -0
- package/dist/gpu-project-benchmarks.d.ts.map +1 -0
- package/dist/gpu-project-benchmarks.js +5 -0
- package/dist/gpu-project-benchmarks.js.map +1 -0
- package/dist/gpu-project-crs.cjs +21 -0
- package/dist/gpu-project-crs.d.ts +2 -0
- package/dist/gpu-project-crs.d.ts.map +1 -0
- package/dist/gpu-project-crs.js +5 -0
- package/dist/gpu-project-crs.js.map +1 -0
- package/dist/gpu-project-geoarrow.cjs +21 -0
- package/dist/gpu-project-geoarrow.d.ts +2 -0
- package/dist/gpu-project-geoarrow.d.ts.map +1 -0
- package/dist/gpu-project-geoarrow.js +5 -0
- package/dist/gpu-project-geoarrow.js.map +1 -0
- package/dist/gpu-project-graph.cjs +21 -0
- package/dist/gpu-project-graph.d.ts +2 -0
- package/dist/gpu-project-graph.d.ts.map +1 -0
- package/dist/gpu-project-graph.js +5 -0
- package/dist/gpu-project-graph.js.map +1 -0
- package/dist/gpu-simple-graph/compiled-gpu-expression-graph.cjs +75 -5
- package/dist/gpu-simple-graph/compiled-gpu-expression-graph.d.ts +5 -1
- package/dist/gpu-simple-graph/compiled-gpu-expression-graph.d.ts.map +1 -1
- package/dist/gpu-simple-graph/compiled-gpu-expression-graph.js +86 -6
- package/dist/gpu-simple-graph/compiled-gpu-expression-graph.js.map +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph-lowering.cjs +9 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-lowering.d.ts +2 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-lowering.d.ts.map +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph-lowering.js +10 -0
- package/dist/gpu-simple-graph/gpu-simple-graph-lowering.js.map +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph-transfer.d.ts +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph-transfer.d.ts.map +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph-value.d.ts +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph-value.d.ts.map +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph.cjs +126 -10
- package/dist/gpu-simple-graph/gpu-simple-graph.d.ts +36 -11
- package/dist/gpu-simple-graph/gpu-simple-graph.d.ts.map +1 -1
- package/dist/gpu-simple-graph/gpu-simple-graph.js +137 -12
- package/dist/gpu-simple-graph/gpu-simple-graph.js.map +1 -1
- package/dist/gpu-simple-graph/index.cjs.map +3 -3
- package/dist/gpu-simple-graph/index.d.ts +1 -1
- package/dist/gpu-simple-graph/index.d.ts.map +1 -1
- package/dist/gpu-simple-graph/index.js.map +1 -1
- package/dist/gpu-simple-graph/operation/gpu-data-evaluator.cjs +25 -0
- package/dist/gpu-simple-graph/operation/gpu-data-evaluator.d.ts +7 -1
- package/dist/gpu-simple-graph/operation/gpu-data-evaluator.d.ts.map +1 -1
- package/dist/gpu-simple-graph/operation/gpu-data-evaluator.js +28 -0
- package/dist/gpu-simple-graph/operation/gpu-data-evaluator.js.map +1 -1
- package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.cjs +7 -0
- package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.d.ts +2 -0
- package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.d.ts.map +1 -1
- package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.js +7 -0
- package/dist/gpu-simple-graph/operation/gpu-vector-evaluator.js.map +1 -1
- package/dist/gpu-simple-graph/operation/operation.d.ts +1 -1
- package/dist/gpu-simple-graph/operation/operation.d.ts.map +1 -1
- package/dist/gpu-simple-graph/operations/convert-colors.cjs +6 -6
- package/dist/gpu-simple-graph/operations/convert-colors.d.ts +5 -1
- package/dist/gpu-simple-graph/operations/convert-colors.d.ts.map +1 -1
- package/dist/gpu-simple-graph/operations/convert-colors.js +12 -7
- package/dist/gpu-simple-graph/operations/convert-colors.js.map +1 -1
- package/dist/gpu-simple-graph/operations/cpu/convert-colors.cjs +16 -33
- package/dist/gpu-simple-graph/operations/cpu/convert-colors.d.ts.map +1 -1
- package/dist/gpu-simple-graph/operations/cpu/convert-colors.js +22 -35
- package/dist/gpu-simple-graph/operations/cpu/convert-colors.js.map +1 -1
- package/dist/gpu-simple-graph/operations/cpu/index.cjs.map +3 -3
- package/dist/gpu-simple-graph/operations/webgl/index.cjs.map +3 -3
- package/dist/gpu-simple-graph/operations/webgpu/convert-colors.cjs +31 -13
- package/dist/gpu-simple-graph/operations/webgpu/convert-colors.d.ts.map +1 -1
- package/dist/gpu-simple-graph/operations/webgpu/convert-colors.js +42 -13
- package/dist/gpu-simple-graph/operations/webgpu/convert-colors.js.map +1 -1
- package/dist/gpu-simple-graph/operations/webgpu/index.cjs.map +1 -1
- package/dist/gpu-simple-graph-cpu.cjs +21 -0
- package/dist/gpu-simple-graph-cpu.d.ts +2 -0
- package/dist/gpu-simple-graph-cpu.d.ts.map +1 -0
- package/dist/gpu-simple-graph-cpu.js +5 -0
- package/dist/gpu-simple-graph-cpu.js.map +1 -0
- package/dist/gpu-simple-graph-webgl.cjs +21 -0
- package/dist/gpu-simple-graph-webgl.d.ts +2 -0
- package/dist/gpu-simple-graph-webgl.d.ts.map +1 -0
- package/dist/gpu-simple-graph-webgl.js +5 -0
- package/dist/gpu-simple-graph-webgl.js.map +1 -0
- package/dist/gpu-simple-graph-webgpu.cjs +21 -0
- package/dist/gpu-simple-graph-webgpu.d.ts +2 -0
- package/dist/gpu-simple-graph-webgpu.d.ts.map +1 -0
- package/dist/gpu-simple-graph-webgpu.js +5 -0
- package/dist/gpu-simple-graph-webgpu.js.map +1 -0
- package/dist/gpu-sql/gpu-sql.cjs +159 -328
- package/dist/gpu-sql/gpu-sql.d.ts +1 -1
- package/dist/gpu-sql/gpu-sql.d.ts.map +1 -1
- package/dist/gpu-sql/gpu-sql.js +186 -340
- package/dist/gpu-sql/gpu-sql.js.map +1 -1
- package/dist/gpu-sql/index.cjs.map +3 -3
- package/dist/gpu-tables/index.cjs.map +2 -2
- package/dist/gpu-tables/table/gpu-table.cjs +2 -2
- package/dist/gpu-tables/table/gpu-table.d.ts.map +1 -1
- package/dist/gpu-tables/table/gpu-table.js +2 -2
- package/dist/gpu-tables/table/gpu-table.js.map +1 -1
- package/dist/gpu-timeseries/index.cjs.map +1 -1
- package/dist/index.cjs +11 -0
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +30 -16
- package/src/arrow/arrow-colors.ts +194 -33
- package/src/arrow/arrow-utils/arrow-paths.ts +5 -3
- package/src/arrow/cpu/arrow-coordinate-projection.ts +18 -0
- package/src/arrow/cpu/arrow-cpu-pipelines.ts +9 -0
- package/src/arrow/cpu/arrow-cpu-vector-adapters.ts +153 -0
- package/src/arrow/geoarrow/arrow-geoarrow-adapter.ts +21 -493
- package/src/arrow/geoarrow/arrow-geoarrow-conversion.ts +7 -5
- package/src/arrow/geoarrow/arrow-polygon-tessellation.ts +1 -1
- package/src/arrow/gpu/arrow-column-gpu-vector.ts +67 -14
- package/src/arrow/gpu/arrow-gpu-table-conversion.ts +96 -4
- package/src/arrow/gpu/arrow-gpu-vector-adapters.ts +20 -7
- package/src/arrow/gpu/arrow-gpu-vector-conversion.ts +49 -6
- package/src/arrow/index.ts +14 -0
- package/src/experimental-models.ts +5 -0
- package/src/experimental-simulation.ts +5 -0
- package/src/geospatial/gpu-point-spatial-query.ts +2 -15
- package/src/gpu-core/compiled-gpu-graph.ts +73 -1
- package/src/gpu-core/gpu-command-graph-compiler.ts +25 -2
- package/src/gpu-core/gpu-command-graph-types.ts +20 -0
- package/src/gpu-core/gpu-command-graph.ts +48 -11
- package/src/gpu-core/gpu-cpu-execution.ts +345 -0
- package/src/gpu-core/gpu-cpu-operation.ts +65 -0
- package/src/gpu-core/gpu-dispatch-utils.ts +13 -1
- package/src/gpu-core/gpu-expression-operation.ts +1 -1
- package/src/gpu-core/gpu-expression-plan.ts +11 -3
- package/src/gpu-core/gpu-graph-compiler.ts +61 -0
- package/src/gpu-core/gpu-graph.ts +3 -3
- package/src/gpu-core/gpu-grid-aggregation.ts +2 -5
- package/src/gpu-core/gpu-grid-binning.ts +2 -5
- package/src/gpu-core/gpu-grid-coordinate.ts +24 -0
- package/src/gpu-core/gpu-grid-index-internals.ts +2 -15
- package/src/gpu-core/gpu-grid-index-query.ts +2 -16
- package/src/gpu-core/gpu-group-aggregation.ts +38 -50
- package/src/gpu-core/gpu-operation.ts +9 -7
- package/src/gpu-core/gpu-reduction.ts +32 -42
- package/src/gpu-core/gpu-render-operation.ts +42 -0
- package/src/gpu-core/gpu-scan.ts +59 -45
- package/src/gpu-core/gpu-segmented-reduction.ts +20 -10
- package/src/gpu-core/gpu-segmented-scan.ts +82 -17
- package/src/gpu-core/gpu-semantic-aggregation-operation.ts +150 -0
- package/src/gpu-core/gpu-shader-pass-kernel.ts +307 -0
- package/src/gpu-core/gpu-shader-pass-operation.ts +103 -0
- package/src/gpu-core/gpu-texture-plan.ts +3 -2
- package/src/gpu-core/index.ts +39 -0
- package/src/gpu-data/color-conversion.ts +158 -0
- package/src/gpu-data/cpu-data.ts +62 -0
- package/src/gpu-data/cpu-gpu-vector-transfer.ts +110 -0
- package/src/gpu-data/cpu-vector.ts +31 -0
- package/src/gpu-data/gpu-data-buffer-props.ts +25 -0
- package/src/gpu-data/gpu-vector-wgsl-layout.ts +79 -0
- package/src/gpu-data/index.ts +15 -0
- package/src/gpu-dataframe/gpu-data-frame-query.ts +24 -31
- package/src/gpu-dataframe/gpu-expression-shader.ts +128 -7
- package/src/gpu-dataframe/gpu-expression.ts +259 -1
- package/src/gpu-dataframe/gpu-global-aggregation-compiler.ts +0 -1
- package/src/gpu-dataframe/gpu-global-aggregation-query.ts +5 -3
- package/src/gpu-dataframe/gpu-global-sort-compiler.ts +26 -12
- package/src/gpu-dataframe/gpu-group-aggregation-compiler.ts +0 -1
- package/src/gpu-dataframe/gpu-group-by-query.ts +5 -3
- package/src/gpu-dataframe/gpu-histogram-compiler.ts +0 -1
- package/src/gpu-dataframe/gpu-join-compiler.ts +0 -2
- package/src/gpu-dataframe/gpu-query-compiler.ts +3 -3
- package/src/gpu-dataframe/gpu-sort-compiler.ts +0 -1
- package/src/gpu-dataframe/gpu-sort-query.ts +31 -5
- package/src/gpu-dataframe/index.ts +26 -2
- package/src/gpu-dataframe/portable-expression.ts +194 -0
- package/src/gpu-dggs-benchmarks.ts +5 -0
- package/src/gpu-graph/index.ts +17 -0
- package/src/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.ts +2 -15
- package/src/gpu-graph-algorithms-benchmarks.ts +5 -0
- package/src/gpu-physics/gpu-physics-ensemble-terrain.ts +114 -0
- package/src/gpu-physics/gpu-physics-ensemble.ts +147 -4
- package/src/gpu-physics/gpu-rigid-body-world.ts +797 -102
- package/src/gpu-physics/index.ts +38 -0
- package/src/gpu-physics/rigid-body-bounds-shaders.ts +16 -1
- package/src/gpu-physics/rigid-body-convex-shaders.ts +3 -2
- package/src/gpu-physics/rigid-body-ensemble-reset.ts +48 -8
- package/src/gpu-physics/rigid-body-ensemble-transaction.ts +34 -1
- package/src/gpu-physics/rigid-body-geometry.ts +49 -4
- package/src/gpu-physics/rigid-body-height-field-shader.ts +56 -0
- package/src/gpu-physics/rigid-body-height-field.ts +257 -0
- package/src/gpu-physics/rigid-body-mesh-query-shaders.ts +4 -2
- package/src/gpu-physics/rigid-body-mesh.ts +97 -26
- package/src/gpu-physics/rigid-body-parallel-shaders.ts +32 -9
- package/src/gpu-physics/rigid-body-properties.ts +5 -2
- package/src/gpu-physics/rigid-body-publication.ts +1 -1
- package/src/gpu-physics/rigid-body-query-geometry.ts +22 -4
- package/src/gpu-physics/rigid-body-shaders.ts +19 -7
- package/src/gpu-physics/rigid-body-shape-properties.ts +2 -0
- package/src/gpu-physics/rigid-body-terrain-atlas.ts +378 -0
- package/src/gpu-physics/rigid-body-terrain-lod.ts +332 -0
- package/src/gpu-physics/rigid-body-terrain-stitch.ts +286 -0
- package/src/gpu-physics/rigid-body-terrain-stream.ts +323 -0
- package/src/gpu-physics/rigid-body-triggers.ts +1 -0
- package/src/gpu-physics/rigid-body-vehicle.ts +166 -0
- package/src/gpu-project/README.md +2 -2
- package/src/gpu-project/coordinate-projection-graph.ts +59 -0
- package/src/gpu-project/cpu-geoarrow.ts +135 -0
- package/src/gpu-project/cpu-geometry-pipelines.ts +159 -0
- package/src/gpu-project/cpu-projection-operation.ts +49 -0
- package/src/gpu-project/crs.ts +2 -2
- package/src/gpu-project/geoarrow.ts +11 -0
- package/src/gpu-project/graph.ts +10 -0
- package/src/gpu-project/index.ts +2 -0
- package/src/gpu-project/projection-crs-benchmark.ts +2 -2
- package/src/gpu-project/projection-crs-input.ts +4 -4
- package/src/gpu-project/projection-engine.ts +2 -2
- package/src/gpu-project-benchmarks.ts +5 -0
- package/src/gpu-project-crs.ts +5 -0
- package/src/gpu-project-geoarrow.ts +5 -0
- package/src/gpu-project-graph.ts +5 -0
- package/src/gpu-simple-graph/compiled-gpu-expression-graph.ts +97 -6
- package/src/gpu-simple-graph/gpu-simple-graph-lowering.ts +11 -0
- package/src/gpu-simple-graph/gpu-simple-graph-transfer.ts +1 -1
- package/src/gpu-simple-graph/gpu-simple-graph-value.ts +1 -1
- package/src/gpu-simple-graph/gpu-simple-graph.ts +163 -19
- package/src/gpu-simple-graph/index.ts +1 -0
- package/src/gpu-simple-graph/operation/gpu-data-evaluator.ts +25 -1
- package/src/gpu-simple-graph/operation/gpu-vector-evaluator.ts +7 -0
- package/src/gpu-simple-graph/operation/operation.ts +1 -1
- package/src/gpu-simple-graph/operations/convert-colors.ts +22 -7
- package/src/gpu-simple-graph/operations/cpu/convert-colors.ts +31 -48
- package/src/gpu-simple-graph/operations/swizzle.ts +1 -1
- package/src/gpu-simple-graph/operations/webgpu/convert-colors.ts +47 -13
- package/src/gpu-simple-graph-cpu.ts +5 -0
- package/src/gpu-simple-graph-webgl.ts +5 -0
- package/src/gpu-simple-graph-webgpu.ts +5 -0
- package/src/gpu-sql/gpu-sql.ts +238 -354
- package/src/gpu-tables/table/gpu-table.ts +2 -1
- package/src/index.ts +21 -0
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var rigid_body_terrain_lod_exports = {};
|
|
19
|
+
__export(rigid_body_terrain_lod_exports, {
|
|
20
|
+
GPURigidBodyTerrainSelector: () => GPURigidBodyTerrainSelector,
|
|
21
|
+
getRigidBodyTerrainTileBounds: () => getRigidBodyTerrainTileBounds
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(rigid_body_terrain_lod_exports);
|
|
24
|
+
const DIRECTIONS = [
|
|
25
|
+
{ column: -1, row: 0, edge: "first-column", opposite: "last-column" },
|
|
26
|
+
{ column: 1, row: 0, edge: "last-column", opposite: "first-column" },
|
|
27
|
+
{ column: 0, row: -1, edge: "first-row", opposite: "last-row" },
|
|
28
|
+
{ column: 0, row: 1, edge: "last-row", opposite: "first-row" }
|
|
29
|
+
];
|
|
30
|
+
function getRigidBodyTerrainTileBounds(bounds, address) {
|
|
31
|
+
const divisions = 2 ** address.level;
|
|
32
|
+
const east = (bounds[2] - bounds[0]) / divisions;
|
|
33
|
+
const north = (bounds[3] - bounds[1]) / divisions;
|
|
34
|
+
return [
|
|
35
|
+
bounds[0] + address.column * east,
|
|
36
|
+
bounds[1] + address.row * north,
|
|
37
|
+
bounds[0] + (address.column + 1) * east,
|
|
38
|
+
bounds[1] + (address.row + 1) * north
|
|
39
|
+
];
|
|
40
|
+
}
|
|
41
|
+
class GPURigidBodyTerrainSelector {
|
|
42
|
+
props;
|
|
43
|
+
/** A detached copy of the dataset extent. */
|
|
44
|
+
bounds;
|
|
45
|
+
/** Stable slot order used to break ties. */
|
|
46
|
+
slots;
|
|
47
|
+
/** Per-tile distance threshold multiplier. */
|
|
48
|
+
refinementDistance;
|
|
49
|
+
/** LOD and residency dead band. */
|
|
50
|
+
hysteresis;
|
|
51
|
+
/** Collider assignment from the last selected window. */
|
|
52
|
+
previous = /* @__PURE__ */ new Map();
|
|
53
|
+
/** Previously split ancestors, used to retain detail near the threshold. */
|
|
54
|
+
previousSplits = /* @__PURE__ */ new Set();
|
|
55
|
+
/** Establish the provider topology and fixed collider budget. */
|
|
56
|
+
constructor(props) {
|
|
57
|
+
this.props = props;
|
|
58
|
+
const { bounds, maximumLevel, slots } = props;
|
|
59
|
+
this.refinementDistance = props.refinementDistance ?? 1;
|
|
60
|
+
this.hysteresis = props.hysteresis ?? 0.2;
|
|
61
|
+
if (bounds.length !== 4 || !bounds.every(Number.isFinite) || !Number.isFinite(bounds[2] - bounds[0]) || !Number.isFinite(bounds[3] - bounds[1]) || bounds[2] <= bounds[0] || bounds[3] <= bounds[1] || !Number.isSafeInteger(maximumLevel) || maximumLevel < 0 || maximumLevel > 24 || !slots.length || new Set(slots).size !== slots.length || slots.some((slot) => !Number.isSafeInteger(slot) || slot < 0) || !Number.isFinite(this.refinementDistance) || this.refinementDistance < 0 || !Number.isFinite(this.hysteresis) || this.hysteresis < 0 || this.hysteresis >= 1)
|
|
62
|
+
throw new Error("Invalid terrain selection policy");
|
|
63
|
+
this.bounds = [...bounds];
|
|
64
|
+
this.slots = [...slots];
|
|
65
|
+
}
|
|
66
|
+
/** Forget LOD hysteresis and previous slot choices after teleporting or resetting the app. */
|
|
67
|
+
reset() {
|
|
68
|
+
this.previous.clear();
|
|
69
|
+
this.previousSplits.clear();
|
|
70
|
+
}
|
|
71
|
+
/** Select leaves near the focus. Missing children or exhausted slots retain their parent. */
|
|
72
|
+
select(focus) {
|
|
73
|
+
const { position, radius = Infinity } = focus;
|
|
74
|
+
if (position.length !== 2 || !position.every(Number.isFinite) || !(radius >= 0))
|
|
75
|
+
throw new Error("Invalid terrain focus");
|
|
76
|
+
const leaves = /* @__PURE__ */ new Map();
|
|
77
|
+
const split = /* @__PURE__ */ new Set();
|
|
78
|
+
const queue = [];
|
|
79
|
+
let slotLimitReached = false;
|
|
80
|
+
const getCandidate = (address, bounds) => {
|
|
81
|
+
const id = addressKey(address);
|
|
82
|
+
const distance = Math.hypot(Math.max(0, bounds[0] - position[0], position[0] - bounds[2]), Math.max(0, bounds[1] - position[1], position[1] - bounds[3]));
|
|
83
|
+
const retained = this.previous.has(id) || this.previousSplits.has(id);
|
|
84
|
+
if (distance > radius * (retained ? 1 + this.hysteresis : 1))
|
|
85
|
+
return null;
|
|
86
|
+
const key = this.props.getTileKey ? this.props.getTileKey(address) : id;
|
|
87
|
+
if (!key)
|
|
88
|
+
return void 0;
|
|
89
|
+
const priority = distance / Math.min(bounds[2] - bounds[0], bounds[3] - bounds[1]);
|
|
90
|
+
return { id, key, address, bounds, priority };
|
|
91
|
+
};
|
|
92
|
+
const add = (tile) => {
|
|
93
|
+
leaves.set(tile.id, tile);
|
|
94
|
+
const retained = this.previousSplits.has(tile.id);
|
|
95
|
+
const threshold = this.refinementDistance * (retained ? 1 + this.hysteresis : 1 - this.hysteresis);
|
|
96
|
+
if (tile.address.level < this.props.maximumLevel && tile.priority <= threshold)
|
|
97
|
+
pushCandidate(queue, tile);
|
|
98
|
+
};
|
|
99
|
+
const root = getCandidate({ level: 0, column: 0, row: 0 }, this.bounds);
|
|
100
|
+
if (root)
|
|
101
|
+
add(root);
|
|
102
|
+
while (queue.length) {
|
|
103
|
+
const tile = popCandidate(queue);
|
|
104
|
+
if (!leaves.has(tile.id))
|
|
105
|
+
continue;
|
|
106
|
+
const refinements = /* @__PURE__ */ new Map();
|
|
107
|
+
let slotCost = 0;
|
|
108
|
+
const planSplit = (parent) => {
|
|
109
|
+
if (refinements.has(parent))
|
|
110
|
+
return true;
|
|
111
|
+
const children = [];
|
|
112
|
+
const { level, column, row } = parent.address;
|
|
113
|
+
for (let child = 0; child < 4; child++) {
|
|
114
|
+
const address = {
|
|
115
|
+
level: level + 1,
|
|
116
|
+
column: column * 2 + child % 2,
|
|
117
|
+
row: row * 2 + Math.floor(child / 2)
|
|
118
|
+
};
|
|
119
|
+
const candidate = getCandidate(address, getRigidBodyTerrainTileBounds(this.bounds, address));
|
|
120
|
+
if (candidate === void 0)
|
|
121
|
+
return false;
|
|
122
|
+
if (candidate)
|
|
123
|
+
children.push(candidate);
|
|
124
|
+
}
|
|
125
|
+
if (!children.length)
|
|
126
|
+
return false;
|
|
127
|
+
refinements.set(parent, children);
|
|
128
|
+
slotCost += children.length - 1;
|
|
129
|
+
if (leaves.size + slotCost > this.slots.length) {
|
|
130
|
+
slotLimitReached = true;
|
|
131
|
+
return false;
|
|
132
|
+
}
|
|
133
|
+
for (const direction of DIRECTIONS) {
|
|
134
|
+
const neighbor = getNeighbor(leaves, parent.address, direction);
|
|
135
|
+
if (neighbor && neighbor.address.level < level && !planSplit(neighbor))
|
|
136
|
+
return false;
|
|
137
|
+
}
|
|
138
|
+
return true;
|
|
139
|
+
};
|
|
140
|
+
if (!planSplit(tile))
|
|
141
|
+
continue;
|
|
142
|
+
for (const [parent, children] of refinements) {
|
|
143
|
+
leaves.delete(parent.id);
|
|
144
|
+
split.add(parent.id);
|
|
145
|
+
for (const child of children)
|
|
146
|
+
add(child);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
const assignments = /* @__PURE__ */ new Map();
|
|
150
|
+
for (const id of leaves.keys()) {
|
|
151
|
+
const slot = this.previous.get(id);
|
|
152
|
+
if (slot !== void 0)
|
|
153
|
+
assignments.set(id, slot);
|
|
154
|
+
}
|
|
155
|
+
const taken = new Set(assignments.values());
|
|
156
|
+
const vacancies = this.slots.filter((slot) => !taken.has(slot));
|
|
157
|
+
let nextSlot = 0;
|
|
158
|
+
const tiles = Array.from(leaves.values(), ({ id, key, address, bounds }) => {
|
|
159
|
+
const collider = assignments.get(id) ?? vacancies[nextSlot++];
|
|
160
|
+
assignments.set(id, collider);
|
|
161
|
+
return { collider, key, address, bounds };
|
|
162
|
+
});
|
|
163
|
+
const seams = [];
|
|
164
|
+
for (const tile of tiles) {
|
|
165
|
+
for (const direction of DIRECTIONS) {
|
|
166
|
+
const neighbor = getNeighbor(leaves, tile.address, direction);
|
|
167
|
+
if (!neighbor)
|
|
168
|
+
continue;
|
|
169
|
+
const collider = assignments.get(neighbor.id);
|
|
170
|
+
if (neighbor.address.level === tile.address.level && collider < tile.collider)
|
|
171
|
+
continue;
|
|
172
|
+
seams.push({
|
|
173
|
+
first: tile.collider,
|
|
174
|
+
firstEdge: direction.edge,
|
|
175
|
+
second: collider,
|
|
176
|
+
secondEdge: direction.opposite
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
this.previous = assignments;
|
|
181
|
+
this.previousSplits = split;
|
|
182
|
+
return { tiles, seams, slotLimitReached };
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
function addressKey(address) {
|
|
186
|
+
return `${address.level}/${address.column}/${address.row}`;
|
|
187
|
+
}
|
|
188
|
+
function getNeighbor(leaves, address, direction) {
|
|
189
|
+
let column = address.column + direction.column;
|
|
190
|
+
let row = address.row + direction.row;
|
|
191
|
+
const count = 2 ** address.level;
|
|
192
|
+
if (column < 0 || row < 0 || column >= count || row >= count)
|
|
193
|
+
return void 0;
|
|
194
|
+
for (let level = address.level; level >= 0; level--) {
|
|
195
|
+
const tile = leaves.get(addressKey({ level, column, row }));
|
|
196
|
+
if (tile)
|
|
197
|
+
return tile;
|
|
198
|
+
column = Math.floor(column / 2);
|
|
199
|
+
row = Math.floor(row / 2);
|
|
200
|
+
}
|
|
201
|
+
return void 0;
|
|
202
|
+
}
|
|
203
|
+
function compareCandidates(first, second) {
|
|
204
|
+
return first.priority - second.priority || first.address.level - second.address.level || first.address.row - second.address.row || first.address.column - second.address.column;
|
|
205
|
+
}
|
|
206
|
+
function pushCandidate(queue, candidate) {
|
|
207
|
+
let index = queue.length;
|
|
208
|
+
queue.push(candidate);
|
|
209
|
+
while (index > 0) {
|
|
210
|
+
const parent = Math.floor((index - 1) / 2);
|
|
211
|
+
if (compareCandidates(queue[parent], candidate) <= 0)
|
|
212
|
+
break;
|
|
213
|
+
queue[index] = queue[parent];
|
|
214
|
+
index = parent;
|
|
215
|
+
}
|
|
216
|
+
queue[index] = candidate;
|
|
217
|
+
}
|
|
218
|
+
function popCandidate(queue) {
|
|
219
|
+
const first = queue[0];
|
|
220
|
+
const last = queue.pop();
|
|
221
|
+
if (!queue.length)
|
|
222
|
+
return first;
|
|
223
|
+
let index = 0;
|
|
224
|
+
while (index * 2 + 1 < queue.length) {
|
|
225
|
+
let child = index * 2 + 1;
|
|
226
|
+
if (child + 1 < queue.length && compareCandidates(queue[child + 1], queue[child]) < 0)
|
|
227
|
+
child++;
|
|
228
|
+
if (compareCandidates(last, queue[child]) <= 0)
|
|
229
|
+
break;
|
|
230
|
+
queue[index] = queue[child];
|
|
231
|
+
index = child;
|
|
232
|
+
}
|
|
233
|
+
queue[index] = last;
|
|
234
|
+
return first;
|
|
235
|
+
}
|
|
236
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
237
|
+
0 && (module.exports = {
|
|
238
|
+
GPURigidBodyTerrainSelector,
|
|
239
|
+
getRigidBodyTerrainTileBounds
|
|
240
|
+
});
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { GPURigidBodyTerrainSeam } from "./rigid-body-terrain-stitch.js";
|
|
2
|
+
import type { GPURigidBodyTerrainSlot, GPURigidBodyTerrainWindow } from "./rigid-body-terrain-stream.js";
|
|
3
|
+
/** Planar metric bounds, in minimum east, minimum north, maximum east, maximum north order. */
|
|
4
|
+
export type GPURigidBodyTerrainBounds = readonly [number, number, number, number];
|
|
5
|
+
/** Quadtree address in a common metric frame. Rows increase along the positive north axis. */
|
|
6
|
+
export type GPURigidBodyTerrainAddress = Readonly<{
|
|
7
|
+
/** Zero at the root. */
|
|
8
|
+
level: number;
|
|
9
|
+
/** West-to-east index at this level. */
|
|
10
|
+
column: number;
|
|
11
|
+
/** South-to-north index at this level. */
|
|
12
|
+
row: number;
|
|
13
|
+
}>;
|
|
14
|
+
/** A selected provider tile, receiving collider, and sampling bounds. */
|
|
15
|
+
export type GPURigidBodySelectedTerrainTile = GPURigidBodyTerrainSlot & {
|
|
16
|
+
/** Quadtree position of the tile. */
|
|
17
|
+
address: GPURigidBodyTerrainAddress;
|
|
18
|
+
/** Metric domain expected in the fetched tile. */
|
|
19
|
+
bounds: GPURigidBodyTerrainBounds;
|
|
20
|
+
};
|
|
21
|
+
/** A collider window and its quadtree selection diagnostics. */
|
|
22
|
+
export interface GPURigidBodyTerrainSelection extends GPURigidBodyTerrainWindow {
|
|
23
|
+
/** Selected nonoverlapping leaves with stable assignments where possible. */
|
|
24
|
+
tiles: readonly GPURigidBodySelectedTerrainTile[];
|
|
25
|
+
/** Edge matches computed from the selected quadtree leaves. */
|
|
26
|
+
seams: readonly GPURigidBodyTerrainSeam[];
|
|
27
|
+
/** Refinement was limited by the reserved collider slots. */
|
|
28
|
+
slotLimitReached: boolean;
|
|
29
|
+
}
|
|
30
|
+
/** Dataset coverage and selection policy. */
|
|
31
|
+
export type GPURigidBodyTerrainSelectorProps = {
|
|
32
|
+
/** Bounds of the root tile in a shared local metric frame. */
|
|
33
|
+
bounds: GPURigidBodyTerrainBounds;
|
|
34
|
+
/** Reserved fixed-dimension height-field collider indices. */
|
|
35
|
+
slots: readonly number[];
|
|
36
|
+
/** Deepest available quadtree level. */
|
|
37
|
+
maximumLevel: number;
|
|
38
|
+
/** Refine within this many tile widths of the focus. Defaults to one. */
|
|
39
|
+
refinementDistance?: number;
|
|
40
|
+
/** Fractional dead band around LOD and residency thresholds. Defaults to 0.2. */
|
|
41
|
+
hysteresis?: number;
|
|
42
|
+
/** Resolve a revisioned provider key. Undefined denotes a missing tile. */
|
|
43
|
+
getTileKey?: (address: GPURigidBodyTerrainAddress) => string | undefined;
|
|
44
|
+
};
|
|
45
|
+
/** Location and optional collision residency radius used for one selection. */
|
|
46
|
+
export type GPURigidBodyTerrainFocus = {
|
|
47
|
+
/** Position of a camera, chassis, or predicted simulation focus in metric XY. */
|
|
48
|
+
position: readonly [number, number];
|
|
49
|
+
/** Include tiles intersecting this radius. Omit to keep coarse coverage to the root boundary. */
|
|
50
|
+
radius?: number;
|
|
51
|
+
};
|
|
52
|
+
/** Resolve the sampling domain of a quadtree address from the root extent. */
|
|
53
|
+
export declare function getRigidBodyTerrainTileBounds(bounds: GPURigidBodyTerrainBounds, address: GPURigidBodyTerrainAddress): GPURigidBodyTerrainBounds;
|
|
54
|
+
/** Select a bounded collision window with 2:1 neighboring LODs and automatic seam declarations. */
|
|
55
|
+
export declare class GPURigidBodyTerrainSelector {
|
|
56
|
+
private readonly props;
|
|
57
|
+
/** A detached copy of the dataset extent. */
|
|
58
|
+
private readonly bounds;
|
|
59
|
+
/** Stable slot order used to break ties. */
|
|
60
|
+
private readonly slots;
|
|
61
|
+
/** Per-tile distance threshold multiplier. */
|
|
62
|
+
private readonly refinementDistance;
|
|
63
|
+
/** LOD and residency dead band. */
|
|
64
|
+
private readonly hysteresis;
|
|
65
|
+
/** Collider assignment from the last selected window. */
|
|
66
|
+
private previous;
|
|
67
|
+
/** Previously split ancestors, used to retain detail near the threshold. */
|
|
68
|
+
private previousSplits;
|
|
69
|
+
/** Establish the provider topology and fixed collider budget. */
|
|
70
|
+
constructor(props: GPURigidBodyTerrainSelectorProps);
|
|
71
|
+
/** Forget LOD hysteresis and previous slot choices after teleporting or resetting the app. */
|
|
72
|
+
reset(): void;
|
|
73
|
+
/** Select leaves near the focus. Missing children or exhausted slots retain their parent. */
|
|
74
|
+
select(focus: GPURigidBodyTerrainFocus): GPURigidBodyTerrainSelection;
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=rigid-body-terrain-lod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rigid-body-terrain-lod.d.ts","sourceRoot":"","sources":["../../src/gpu-physics/rigid-body-terrain-lod.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAA0B,uBAAuB,EAAC,uCAAoC;AAClG,OAAO,KAAK,EAAC,uBAAuB,EAAE,yBAAyB,EAAC,uCAAoC;AAEpG,+FAA+F;AAC/F,MAAM,MAAM,yBAAyB,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAElF,8FAA8F;AAC9F,MAAM,MAAM,0BAA0B,GAAG,QAAQ,CAAC;IAChD,wBAAwB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,0C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CAAC,KAAK;IAdlC,6CAA6C;IAC7C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA4B;IACnD,4CAA4C;IAC5C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAoB;IAC1C,8CAA8C;IAC9C,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAS;IAC5C,mCAAmC;IACnC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;IACpC,yDAAyD;IACzD,OAAO,CAAC,QAAQ,CAA6B;IAC7C,4EAA4E;IAC5E,OAAO,CAAC,cAAc,CAAqB;IAE3C,iEAAiE;gBACpC,KAAK,EAAE,gCAAgC;IA4BpE,8FAA8F;IAC9F,KAAK,IAAI,IAAI;IAKb,6FAA6F;IAC7F,MAAM,CAAC,KAAK,EAAE,wBAAwB,GAAG,4BAA4B;CAoHtE"}
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
// luma.gl
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// SPDX-FileCopyrightText: Copyright (c) vis.gl contributors
|
|
4
|
+
/** Relative offsets, and the matching grid-index edges of a neighbor. */
|
|
5
|
+
const DIRECTIONS = [
|
|
6
|
+
{ column: -1, row: 0, edge: 'first-column', opposite: 'last-column' },
|
|
7
|
+
{ column: 1, row: 0, edge: 'last-column', opposite: 'first-column' },
|
|
8
|
+
{ column: 0, row: -1, edge: 'first-row', opposite: 'last-row' },
|
|
9
|
+
{ column: 0, row: 1, edge: 'last-row', opposite: 'first-row' }
|
|
10
|
+
];
|
|
11
|
+
/** Resolve the sampling domain of a quadtree address from the root extent. */
|
|
12
|
+
export function getRigidBodyTerrainTileBounds(bounds, address) {
|
|
13
|
+
const divisions = 2 ** address.level;
|
|
14
|
+
const east = (bounds[2] - bounds[0]) / divisions;
|
|
15
|
+
const north = (bounds[3] - bounds[1]) / divisions;
|
|
16
|
+
return [
|
|
17
|
+
bounds[0] + address.column * east,
|
|
18
|
+
bounds[1] + address.row * north,
|
|
19
|
+
bounds[0] + (address.column + 1) * east,
|
|
20
|
+
bounds[1] + (address.row + 1) * north
|
|
21
|
+
];
|
|
22
|
+
}
|
|
23
|
+
/** Select a bounded collision window with 2:1 neighboring LODs and automatic seam declarations. */
|
|
24
|
+
export class GPURigidBodyTerrainSelector {
|
|
25
|
+
props;
|
|
26
|
+
/** A detached copy of the dataset extent. */
|
|
27
|
+
bounds;
|
|
28
|
+
/** Stable slot order used to break ties. */
|
|
29
|
+
slots;
|
|
30
|
+
/** Per-tile distance threshold multiplier. */
|
|
31
|
+
refinementDistance;
|
|
32
|
+
/** LOD and residency dead band. */
|
|
33
|
+
hysteresis;
|
|
34
|
+
/** Collider assignment from the last selected window. */
|
|
35
|
+
previous = new Map();
|
|
36
|
+
/** Previously split ancestors, used to retain detail near the threshold. */
|
|
37
|
+
previousSplits = new Set();
|
|
38
|
+
/** Establish the provider topology and fixed collider budget. */
|
|
39
|
+
constructor(props) {
|
|
40
|
+
this.props = props;
|
|
41
|
+
const { bounds, maximumLevel, slots } = props;
|
|
42
|
+
this.refinementDistance = props.refinementDistance ?? 1;
|
|
43
|
+
this.hysteresis = props.hysteresis ?? 0.2;
|
|
44
|
+
if (bounds.length !== 4 ||
|
|
45
|
+
!bounds.every(Number.isFinite) ||
|
|
46
|
+
!Number.isFinite(bounds[2] - bounds[0]) ||
|
|
47
|
+
!Number.isFinite(bounds[3] - bounds[1]) ||
|
|
48
|
+
bounds[2] <= bounds[0] ||
|
|
49
|
+
bounds[3] <= bounds[1] ||
|
|
50
|
+
!Number.isSafeInteger(maximumLevel) ||
|
|
51
|
+
maximumLevel < 0 ||
|
|
52
|
+
maximumLevel > 24 ||
|
|
53
|
+
!slots.length ||
|
|
54
|
+
new Set(slots).size !== slots.length ||
|
|
55
|
+
slots.some(slot => !Number.isSafeInteger(slot) || slot < 0) ||
|
|
56
|
+
!Number.isFinite(this.refinementDistance) ||
|
|
57
|
+
this.refinementDistance < 0 ||
|
|
58
|
+
!Number.isFinite(this.hysteresis) ||
|
|
59
|
+
this.hysteresis < 0 ||
|
|
60
|
+
this.hysteresis >= 1)
|
|
61
|
+
throw new Error('Invalid terrain selection policy');
|
|
62
|
+
this.bounds = [...bounds];
|
|
63
|
+
this.slots = [...slots];
|
|
64
|
+
}
|
|
65
|
+
/** Forget LOD hysteresis and previous slot choices after teleporting or resetting the app. */
|
|
66
|
+
reset() {
|
|
67
|
+
this.previous.clear();
|
|
68
|
+
this.previousSplits.clear();
|
|
69
|
+
}
|
|
70
|
+
/** Select leaves near the focus. Missing children or exhausted slots retain their parent. */
|
|
71
|
+
select(focus) {
|
|
72
|
+
const { position, radius = Infinity } = focus;
|
|
73
|
+
if (position.length !== 2 || !position.every(Number.isFinite) || !(radius >= 0))
|
|
74
|
+
throw new Error('Invalid terrain focus');
|
|
75
|
+
const leaves = new Map();
|
|
76
|
+
const split = new Set();
|
|
77
|
+
const queue = [];
|
|
78
|
+
let slotLimitReached = false;
|
|
79
|
+
/** Calculate proximity and consult the catalog only for the active residency footprint. */
|
|
80
|
+
const getCandidate = (address, bounds) => {
|
|
81
|
+
const id = addressKey(address);
|
|
82
|
+
const distance = Math.hypot(Math.max(0, bounds[0] - position[0], position[0] - bounds[2]), Math.max(0, bounds[1] - position[1], position[1] - bounds[3]));
|
|
83
|
+
const retained = this.previous.has(id) || this.previousSplits.has(id);
|
|
84
|
+
if (distance > radius * (retained ? 1 + this.hysteresis : 1))
|
|
85
|
+
return null;
|
|
86
|
+
const key = this.props.getTileKey ? this.props.getTileKey(address) : id;
|
|
87
|
+
if (!key)
|
|
88
|
+
return undefined;
|
|
89
|
+
const priority = distance / Math.min(bounds[2] - bounds[0], bounds[3] - bounds[1]);
|
|
90
|
+
return { id, key, address, bounds, priority };
|
|
91
|
+
};
|
|
92
|
+
/** Register a leaf and enqueue it if the focus requires a finer resolution. */
|
|
93
|
+
const add = (tile) => {
|
|
94
|
+
leaves.set(tile.id, tile);
|
|
95
|
+
const retained = this.previousSplits.has(tile.id);
|
|
96
|
+
const threshold = this.refinementDistance * (retained ? 1 + this.hysteresis : 1 - this.hysteresis);
|
|
97
|
+
if (tile.address.level < this.props.maximumLevel && tile.priority <= threshold)
|
|
98
|
+
pushCandidate(queue, tile);
|
|
99
|
+
};
|
|
100
|
+
const root = getCandidate({ level: 0, column: 0, row: 0 }, this.bounds);
|
|
101
|
+
if (root)
|
|
102
|
+
add(root);
|
|
103
|
+
while (queue.length) {
|
|
104
|
+
const tile = popCandidate(queue);
|
|
105
|
+
if (!leaves.has(tile.id))
|
|
106
|
+
continue;
|
|
107
|
+
const refinements = new Map();
|
|
108
|
+
let slotCost = 0;
|
|
109
|
+
/** Stage the requested split and any coarser neighbor splits needed to preserve 2:1. */
|
|
110
|
+
const planSplit = (parent) => {
|
|
111
|
+
if (refinements.has(parent))
|
|
112
|
+
return true;
|
|
113
|
+
const children = [];
|
|
114
|
+
const { level, column, row } = parent.address;
|
|
115
|
+
for (let child = 0; child < 4; child++) {
|
|
116
|
+
const address = {
|
|
117
|
+
level: level + 1,
|
|
118
|
+
column: column * 2 + (child % 2),
|
|
119
|
+
row: row * 2 + Math.floor(child / 2)
|
|
120
|
+
};
|
|
121
|
+
const candidate = getCandidate(address, getRigidBodyTerrainTileBounds(this.bounds, address));
|
|
122
|
+
if (candidate === undefined)
|
|
123
|
+
return false;
|
|
124
|
+
if (candidate)
|
|
125
|
+
children.push(candidate);
|
|
126
|
+
}
|
|
127
|
+
if (!children.length)
|
|
128
|
+
return false;
|
|
129
|
+
refinements.set(parent, children);
|
|
130
|
+
slotCost += children.length - 1;
|
|
131
|
+
if (leaves.size + slotCost > this.slots.length) {
|
|
132
|
+
slotLimitReached = true;
|
|
133
|
+
return false;
|
|
134
|
+
}
|
|
135
|
+
for (const direction of DIRECTIONS) {
|
|
136
|
+
const neighbor = getNeighbor(leaves, parent.address, direction);
|
|
137
|
+
if (neighbor && neighbor.address.level < level && !planSplit(neighbor))
|
|
138
|
+
return false;
|
|
139
|
+
}
|
|
140
|
+
return true;
|
|
141
|
+
};
|
|
142
|
+
if (!planSplit(tile))
|
|
143
|
+
continue;
|
|
144
|
+
for (const [parent, children] of refinements) {
|
|
145
|
+
leaves.delete(parent.id);
|
|
146
|
+
split.add(parent.id);
|
|
147
|
+
for (const child of children)
|
|
148
|
+
add(child);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
const assignments = new Map();
|
|
152
|
+
for (const id of leaves.keys()) {
|
|
153
|
+
const slot = this.previous.get(id);
|
|
154
|
+
if (slot !== undefined)
|
|
155
|
+
assignments.set(id, slot);
|
|
156
|
+
}
|
|
157
|
+
const taken = new Set(assignments.values());
|
|
158
|
+
const vacancies = this.slots.filter(slot => !taken.has(slot));
|
|
159
|
+
let nextSlot = 0;
|
|
160
|
+
const tiles = Array.from(leaves.values(), ({ id, key, address, bounds }) => {
|
|
161
|
+
const collider = assignments.get(id) ?? vacancies[nextSlot++];
|
|
162
|
+
assignments.set(id, collider);
|
|
163
|
+
return { collider, key, address, bounds };
|
|
164
|
+
});
|
|
165
|
+
const seams = [];
|
|
166
|
+
for (const tile of tiles) {
|
|
167
|
+
for (const direction of DIRECTIONS) {
|
|
168
|
+
const neighbor = getNeighbor(leaves, tile.address, direction);
|
|
169
|
+
if (!neighbor)
|
|
170
|
+
continue;
|
|
171
|
+
const collider = assignments.get(neighbor.id);
|
|
172
|
+
// A fine tile finds its coarse neighbor by walking ancestors. Equal levels only emit once.
|
|
173
|
+
if (neighbor.address.level === tile.address.level && collider < tile.collider)
|
|
174
|
+
continue;
|
|
175
|
+
seams.push({
|
|
176
|
+
first: tile.collider,
|
|
177
|
+
firstEdge: direction.edge,
|
|
178
|
+
second: collider,
|
|
179
|
+
secondEdge: direction.opposite
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
this.previous = assignments;
|
|
184
|
+
this.previousSplits = split;
|
|
185
|
+
return { tiles, seams, slotLimitReached };
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
/** Encode a dyadic tile address as its default provider key. */
|
|
189
|
+
function addressKey(address) {
|
|
190
|
+
return `${address.level}/${address.column}/${address.row}`;
|
|
191
|
+
}
|
|
192
|
+
/** Find a same-level or coarser leaf across an edge. Fine neighbors emit their own seam. */
|
|
193
|
+
function getNeighbor(leaves, address, direction) {
|
|
194
|
+
let column = address.column + direction.column;
|
|
195
|
+
let row = address.row + direction.row;
|
|
196
|
+
const count = 2 ** address.level;
|
|
197
|
+
if (column < 0 || row < 0 || column >= count || row >= count)
|
|
198
|
+
return undefined;
|
|
199
|
+
for (let level = address.level; level >= 0; level--) {
|
|
200
|
+
const tile = leaves.get(addressKey({ level, column, row }));
|
|
201
|
+
if (tile)
|
|
202
|
+
return tile;
|
|
203
|
+
column = Math.floor(column / 2);
|
|
204
|
+
row = Math.floor(row / 2);
|
|
205
|
+
}
|
|
206
|
+
return undefined;
|
|
207
|
+
}
|
|
208
|
+
/** Prefer nearby tiles and resolve equal priorities deterministically. */
|
|
209
|
+
function compareCandidates(first, second) {
|
|
210
|
+
return (first.priority - second.priority ||
|
|
211
|
+
first.address.level - second.address.level ||
|
|
212
|
+
first.address.row - second.address.row ||
|
|
213
|
+
first.address.column - second.address.column);
|
|
214
|
+
}
|
|
215
|
+
/** Insert a refinement candidate in the priority heap. */
|
|
216
|
+
function pushCandidate(queue, candidate) {
|
|
217
|
+
let index = queue.length;
|
|
218
|
+
queue.push(candidate);
|
|
219
|
+
while (index > 0) {
|
|
220
|
+
const parent = Math.floor((index - 1) / 2);
|
|
221
|
+
if (compareCandidates(queue[parent], candidate) <= 0)
|
|
222
|
+
break;
|
|
223
|
+
queue[index] = queue[parent];
|
|
224
|
+
index = parent;
|
|
225
|
+
}
|
|
226
|
+
queue[index] = candidate;
|
|
227
|
+
}
|
|
228
|
+
/** Remove the highest-priority refinement candidate. */
|
|
229
|
+
function popCandidate(queue) {
|
|
230
|
+
const first = queue[0];
|
|
231
|
+
const last = queue.pop();
|
|
232
|
+
if (!queue.length)
|
|
233
|
+
return first;
|
|
234
|
+
let index = 0;
|
|
235
|
+
while (index * 2 + 1 < queue.length) {
|
|
236
|
+
let child = index * 2 + 1;
|
|
237
|
+
if (child + 1 < queue.length && compareCandidates(queue[child + 1], queue[child]) < 0)
|
|
238
|
+
child++;
|
|
239
|
+
if (compareCandidates(last, queue[child]) <= 0)
|
|
240
|
+
break;
|
|
241
|
+
queue[index] = queue[child];
|
|
242
|
+
index = child;
|
|
243
|
+
}
|
|
244
|
+
queue[index] = last;
|
|
245
|
+
return first;
|
|
246
|
+
}
|
|
247
|
+
//# sourceMappingURL=rigid-body-terrain-lod.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rigid-body-terrain-lod.js","sourceRoot":"","sources":["../../src/gpu-physics/rigid-body-terrain-lod.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,+BAA+B;AAC/B,4DAA4D;AAqE5D,yEAAyE;AACzE,MAAM,UAAU,GAAG;IACjB,EAAC,MAAM,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,aAAa,EAAC;IACnE,EAAC,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,cAAc,EAAC;IAClE,EAAC,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAC;IAC7D,EAAC,MAAM,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAC;CAM3D,CAAC;AAEJ,8EAA8E;AAC9E,MAAM,UAAU,6BAA6B,CAC3C,MAAiC,EACjC,OAAmC;IAEnC,MAAM,SAAS,GAAG,CAAC,IAAI,OAAO,CAAC,KAAK,CAAC;IACrC,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,MAA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