Introducing a new way to review your PRs.

Read the announcement

visgl / deck.gl

WebGL2 powered visualization framework

View on GitHub

23 documents · Updated Nov 20, 2026

docs / aggregation-and-mesh-layers

Aggregation and mesh layers

Aggregation and mesh layers extend deck.gl beyond direct point, line, and polygon drawing. Aggregation layers turn many records into density, bin, contour, or heatmap views. Mesh layers place reusable 3D geometry and full scenegraphs at data positions. Both families use the core layer contract, so applications can combine them with the standard and geospatial layers in the layer library.

Package boundaries

Aggregation package

The @deck.gl/aggregation-layers package addresses the problem of showing patterns in dense point data without drawing every point as a separate mark. It exposes ScreenGridLayer, GridLayer, HexagonLayer, ContourLayer, and HeatmapLayer, plus shared aggregation types and CPU or GPU aggregation paths. modules/…/index.ts

These layers keep the input data in the layer API but produce a smaller visual representation. The result can show counts or reduced values by screen cell, map cell, hexagon, contour threshold, or smoothed pixel area. This makes the package useful for density, intensity, distribution, and field-like views where individual marks would overlap or hide the pattern.

References: modules/…/index.ts• L5-32 modules/…/index.ts• L5-19

Mesh package

The @deck.gl/mesh-layers package addresses the problem of placing recognizable 3D objects in a data view instead of representing every record with a built-in primitive. It exposes SimpleMeshLayer for one reusable geometry and ScenegraphLayer for one reusable glTF scenegraph. modules/…/index.ts

Mesh layers are suited to objects such as vehicles, markers, equipment, or animated models. Each record supplies an anchor position and may supply color, orientation, scale, translation, or a full transform. The same model can therefore represent many records without requiring a separate model definition for each record. The layers also accept prepared position, color, and transform columns when an application already has column data. modules/…/mesh-columns.ts

These prepared columns can support data paths that already use Arrow or GPU-resident data. For related column-oriented layers, see Arrow layer packages. For other layers that move work to the GPU, see advanced GPU layer packages.

References: modules/…/index.ts• L7-13 modules/…/mesh-columns.ts• L9-35 modules/…/package.json• L1-4

Aggregation visualizations

Data reduction model

Aggregation groups input points into bins, which are spatial or screen regions, and reduces one or more values in each bin into a result. A result can use operations such as SUM, MEAN, MIN, MAX, or COUNT. A layer then maps the result to color, height, or contour thresholds. modules/…/aggregator.ts

The shared model supports CPU, WebGL, and WebGPU execution. CPU aggregation remains the general path because it supports custom value logic and can retain source point indices. WebGL and WebGPU keep suitable numeric work on the device. The WebGPU path uses compute reduction for dense two-dimensional bins and can apply layer filter hooks before reduction. It accepts fixed-width numeric columns and checks device storage limits before selection. modules/…/aggregator.ts modules/…/webgpu-aggregator.ts modules/…/filter.wgsl.ts

Aggregation results share the layer attribute path whether they come from CPU values or borrowed GPU vectors. This lets derived layers consume the same bin and value outputs without copying GPU data into ordinary arrays. When a domain, scale, or picking result needs CPU values, WebGPU can make an optional asynchronous metadata snapshot. The snapshot is revision-checked so stale work cannot replace newer results. modules/…/aggregator.ts modules/…/webgpu-aggregator.ts modules/…/webgpu-aggregator.ts

The layer creates or selects an aggregator during its normal update cycle. It replaces the aggregator when its type or relevant extensions change, passes changed attributes into it, and updates its output before derived content is drawn. GPU results are prepared at draw time because they depend on shader state and the active projection. When a new GPU result has not produced the metadata needed for its scales, the layer can retain the last completed cell frame until the new result is ready. Extension uniform changes and position-transform changes can also mark GPU aggregation as stale even when source attributes do not change. modules/…/aggregation-layer.ts modules/…/aggregation-layer.ts

Applications can also provide borrowed position and weight columns with a compatible custom or WebGPU aggregator. The layer checks that channel counts and row lengths match, and it includes asynchronous aggregator work in the layer loaded state. ReadbackAggregator is an opt-in adapter for using those GPU columns with CPU aggregation semantics. It copies fixed-width float columns without taking ownership of the caller's buffers and retries transient copy failures. modules/…/aggregation-layer.ts modules/…/readback-aggregator.ts

Color and value ranges turn aggregate domains into visual values. Linear scales can use GPU attributes directly. Quantile and ordinal scales use readable snapshots when needed, which allows metadata-dependent views to remain available on supported WebGPU paths. modules/…/scale-utils.ts modules/…/scale-utils.ts

The following flow shows how raw records become a rendered aggregation view.

flowchart LR
    A[Point data and accessors] --> B[Bin assignment]
    B --> C[Value reduction]
    C --> D[GPU vectors and optional metadata snapshot]
    D --> E[Visual sublayer or texture]
    E --> F[Color height contour or heatmap view]

References: modules/…/aggregator.ts• L41-113 modules/…/aggregation-layer.ts• L26-80 modules/…/aggregation-layer.ts• L174-331 modules/…/readback-aggregator.ts• L16-176 modules/…/webgpu-aggregator.ts• L278-462 modules/…/filter.wgsl.ts• L7-52 modules/…/scale-utils.ts• L18-220

Spatial bin layers

GridLayer and HexagonLayer solve the overlap problem with map-aligned cells. They aggregate values for color and elevation, then render the bins as flat or extruded cells. GridLayer uses square cells. HexagonLayer uses pointy-topped hexagonal cells. modules/…/grid-layer.ts modules/…/hexagon-layer.ts

These layers answer questions about areas on the map. Cell size or hexagon radius controls the level of grouping. Color and height can use separate weights and reduction operations, so one view can show two related measures. Custom bin functions and custom post-bin value accessors require CPU aggregation. modules/…/grid-layer.ts modules/…/hexagon-layer.ts modules/…/hexagon-layer.ts

On WebGL, these layers use the shared GPU reducer when the device supports it. On WebGPU, GridLayer and HexagonLayer can use a shared compute reducer when their domains, options, input columns, and device limits meet the supported contract. Borrowed GridLayer columns also need data bounds and a compatible view coordinate system. Both layers can request metadata for automatic domains, picking, percentile scales, and other CPU-readable aggregate values when the selected path supports it. Unsupported options continue to select CPU aggregation. modules/…/grid-layer.ts modules/…/hexagon-layer.ts modules/…/hexagon-layer.ts modules/…/webgpu-grid-aggregator.ts modules/…/webgpu-hexagon-aggregator.ts

The layers center their aggregation space on the data and use a stable working viewport. This reduces precision differences caused by the current view. The same rule keeps CPU and GPU binning aligned. modules/…/grid-layer.ts modules/…/hexagon-layer.ts

References: modules/…/grid-layer.ts• L293-356 modules/…/grid-layer.ts• L504-567 modules/…/grid-layer.ts• L670-798 modules/…/webgpu-grid-aggregator.ts• L12-29 modules/…/hexagon-layer.ts• L298-376 modules/…/hexagon-layer.ts• L435-505 modules/…/hexagon-layer.ts• L519-581 modules/…/hexagon-layer.ts• L613-699 modules/…/webgpu-hexagon-aggregator.ts• L9-35 modules/…/bin-options-uniforms.ts• L15-29 modules/…/hexagon-cell-layer.wgsl.ts• L23-88

Screen bins

ScreenGridLayer solves a different problem: it shows the density of what is visible in the current viewport. It assigns points to pixel-sized screen cells and colors each cell by an aggregate weight. Because the bins follow the screen, the result changes as the view changes instead of representing fixed map areas. modules/…/screen-grid-layer.ts modules/…/screen-grid-layer.ts

The layer can use WebGL or a WebGPU compute reducer for suitable numeric columns. The WebGPU path checks the active viewport during bin assignment, so points outside the visible area do not enter the screen result. It can keep results on the GPU for direct drawing, or request an asynchronous metadata snapshot when it needs an automatic domain or record-level picking information. modules/…/webgpu-screen-grid-aggregator.ts modules/…/screen-grid-layer.ts

This layer fits quick density views and screen-space histograms. Its picking result describes the selected screen cell and its aggregate value. With CPU aggregation or WebGPU metadata readback, it can also expose the count and aggregate value needed for cell inspection. Only CPU aggregation retains source point indices and source records. modules/…/screen-grid-layer.ts modules/…/screen-grid-layer.ts modules/…/aggregator.ts

References: modules/…/screen-grid-layer.ts• L121-169 modules/…/screen-grid-layer.ts• L247-373 modules/…/screen-grid-layer.ts• L376-399 modules/…/webgpu-screen-grid-aggregator.ts• L12-31 modules/…/webgpu-aggregator.ts• L387-462

Heatmap field

HeatmapLayer solves the hard edges and visual clutter of discrete bins by spreading each point's weight over a circular area. The overlapping weights form a smooth field. The layer maps that field to a color range to show areas of concentration. It supports sum and mean aggregation. modules/…/heatmap-layer.ts modules/…/heatmap-layer.ts

The heatmap is view-aware. A viewport or layer position-transform change can change the processed area and color domain. Model matrix and coordinate-origin changes mark the data view as changed even when packed positions stay the same. A debounce interval can delay recalculation during active navigation. The layer keeps preprojected bounds in common space and applies the layer coordinate system when it builds the weight field. On WebGPU it can consume matching GPU-resident position and weight columns directly, but that path requires compatible coordinates and filter extensions. The final field pass combines the weight texture with the color range, intensity, threshold, and domain to produce the smooth image. modules/…/heatmap-layer.ts modules/…/heatmap-layer.ts modules/…/heatmap-layer.ts modules/…/heatmap-layer.ts modules/…/heatmap-layer.ts modules/…/triangle-layer.ts

The layer uses a lower-precision texture format when the device cannot render and blend float textures. This preserves a usable heatmap on limited WebGL devices, but the result has less weight precision. modules/…/heatmap-layer.ts modules/…/heatmap-layer.ts

References: modules/…/heatmap-layer.ts• L73-111 modules/…/heatmap-layer.ts• L270-318 modules/…/heatmap-layer.ts• L408-502 modules/…/heatmap-layer.ts• L539-595 modules/…/heatmap-layer.ts• L907-1007 modules/…/heatmap-layer.ts• L1031-1101 modules/…/triangle-layer.ts• L40-106

Contour field

ContourLayer solves the need to read aggregate values as boundaries or filled ranges. It first creates a regular aggregate field. It then turns threshold values into isolines or isobands. Isolines show a boundary at one threshold. Isobands fill the area between two thresholds. docs/…/contour-layer.md modules/…/contour-layer.ts

The contour output uses core line and polygon roles for drawing. This lets contour results behave like familiar line and polygon content while the aggregation layer owns the field and threshold meaning. On WebGPU, gpuGeometry can generate numeric-threshold isolines directly from the aggregate result and pass GPU-resident line columns to LineLayer. This path is an optimization for non-pickable contours under supported device limits. Other settings use the readable aggregate path to generate line and polygon geometry. modules/…/contour-layer.ts modules/…/contour-layer.ts modules/…/gpu-isolines.ts

The shared projection rules keep generated geometry aligned with the source field. GPU isolines use a fixed output slot for each possible marching cell segment and disable unused slots through zero width. Device buffer and dispatch limits decide whether this path is available. modules/…/gpu-isolines.ts modules/…/contour-layer.ts

References: docs/…/contour-layer.md• L8 modules/…/contour-layer.ts• L169-289 modules/…/contour-layer.ts• L419-445 modules/…/contour-layer.ts• L464-523 modules/…/contour-layer.ts• L540-578 modules/…/contour-layer.ts• L639-708 modules/…/value-reader.ts• L11-62 modules/…/gpu-isolines.ts• L55-205

Mesh visualizations

Reusable geometry

SimpleMeshLayer solves the need to draw a custom 3D shape at many data positions. The mesh can come from a supported file format, a luma.gl geometry, supplied mesh attributes, or a GPU-ready vector geometry. The layer applies per-record placement and appearance so one geometry can represent a fleet or collection of objects. modules/…/simple-mesh-layer.ts modules/…/simple-mesh-layer.ts

The layer accepts mesh data from an asynchronous source and prepares it as one reusable GPU model. It can also receive instance positions and colors as column data. Model metadata or positions provide bounds when the geometry is treated as one object. Per-record transforms still control where each instance appears. modules/…/simple-mesh-layer.ts modules/…/simple-mesh-layer.ts

The layer supports texture or color treatment, optional wireframe display, lighting material, and per-record transforms. A full transform takes priority over separate orientation, scale, and translation values. The anchor position still comes from the layer's data accessor or position column. These appearance controls use the active WebGL or WebGPU draw path without changing the layer's data contract. modules/…/simple-mesh-layer.ts modules/…/simple-mesh-layer.ts

References: modules/…/simple-mesh-layer.ts• L122-153 modules/…/simple-mesh-layer.ts• L155-221 modules/…/simple-mesh-layer.ts• L257-310 modules/…/simple-mesh-layer.ts• L384-483 modules/…/simple-mesh-layer.ts• L514-590 modules/…/mesh-columns.ts• L18-93

Scenegraph models

ScenegraphLayer solves the need to place a complete model hierarchy rather than a single geometry. It accepts a glTF scenegraph or a compatible scenegraph object, then renders that scene at every data position. This preserves the model's internal meshes and materials and can also drive its animations. modules/…/scenegraph-layer.ts modules/…/scenegraph-layer.ts

Scenegraph rendering supports flat or physically based lighting, optional image-based lighting, and animation settings by name or index. The model is loaded as a shared scene definition. Position and transform attributes vary by record. The layer adapts scenegraph material bindings to WebGL or WebGPU while keeping the scenegraph model and instance contract the same. modules/…/scenegraph-layer.ts modules/…/scenegraph-layer.ts modules/…/scenegraph-layer.wgsl.ts

Scenegraph data can arrive after the layer is created. The layer turns loaded glTF data into a shared scene and model set, requests a redraw when its assets become ready, and signals the first visible draw to the parent system. This lets streaming systems such as tile layers treat model visibility as part of their own loading state. Prepared instance columns follow the same model as SimpleMeshLayer, so large instance sets can use column data without changing the scenegraph asset lifecycle. modules/…/scenegraph-layer.ts modules/…/scenegraph-layer.ts modules/…/scenegraph-layer.ts modules/…/mesh-columns.ts

References: modules/…/scenegraph-layer.ts• L55-143 modules/…/scenegraph-layer.ts• L209-250 modules/…/scenegraph-layer.ts• L278-367 modules/…/scenegraph-layer.ts• L370-421 modules/…/scenegraph-layer.ts• L471-507 modules/…/scenegraph-layer.ts• L510-565 modules/…/scenegraph-layer.wgsl.ts• L33-157 modules/…/mesh-columns.ts• L18-93

Mesh placement

Both mesh layers use the core position accessor and coordinate system to place instances in a view. They also use shared layer picking and update behavior, so a mesh can participate in hover or click interaction like a standard layer. Their transform rules account for map coordinates and local meter or Cartesian coordinates when combining instance transforms with the layer transform. modules/…/matrix.ts modules/…/matrix.ts modules/…/simple-mesh-layer.ts modules/…/scenegraph-layer.ts

In preprojected views, Cartesian anchors can still compose local model transforms. Geographic anchors do not apply geographic rotation as if it were Cartesian rotation. This keeps model orientation meaningful across coordinate systems. modules/…/matrix.ts

The following flow shows the shared relationship between data records, a loaded model, and the core renderer.

flowchart LR
    A[Data records] --> B[Position and transform accessors]
    C[Mesh or glTF scenegraph] --> D[Reusable model]
    B --> E[Instanced model draw]
    D --> E
    E --> F[Core layer rendering and picking]

References: modules/…/simple-mesh-layer.ts• L514-545 modules/…/scenegraph-layer.ts• L510-565 modules/…/scenegraph-layer.wgsl.ts• L33-103 modules/…/mesh-columns.ts• L18-93 modules/…/matrix.ts• L57-71 modules/…/matrix.ts• L173-187

Core layer relationships

Composite aggregation layers

Most aggregation layers are composite layers. They use the core Layer lifecycle to track data and changes. They then create child layers or drawing surfaces for the derived result. GridLayer, HexagonLayer, ScreenGridLayer, and ContourLayer pass inherited visibility, opacity, coordinate, picking, and update settings to their child layers. modules/…/aggregation-layer.ts docs/…/composite-layer.md

This relationship separates meaning from drawing. The aggregation layer decides how points are grouped and how values become visual attributes. Core or standard child layers draw the resulting cells, lines, and polygons. Applications can therefore use the same layer composition patterns described in standard layer types while selecting an aggregation-specific data reduction step.

References: modules/…/aggregation-layer.ts• L38-41 modules/…/aggregation-layer.ts• L158-331 modules/…/grid-layer.ts• L724-769 modules/…/contour-layer.ts• L639-708 docs/…/composite-layer.md• L193-223

Polygon surface rendering

SolidPolygonLayer is a core drawing layer for polygon results from aggregation layers and other composite layers. It accepts simple or holed polygon shapes, then turns them into surfaces that can be filled, extruded, or shown as wireframes. Geographic coordinates can be projected before surface creation, and full 3D input can use its largest plane for tessellation. modules/…/polygon.ts modules/…/solid-polygon-layer.ts

This gives derived polygon views a common rendering path. The aggregation layer supplies the contour or cell geometry and its meaning, while SolidPolygonLayer owns polygon shape handling and surface display. That boundary keeps aggregation rules separate from the core polygon rendering model.

References: modules/…/polygon-tesselator.ts• L81-110 modules/…/polygon-tesselator.ts• L134-152 modules/…/solid-polygon-layer.ts• L329-387

Primitive mesh layers

Mesh layers are direct Layer implementations. They provide the core layer with instanced position and appearance attributes, then draw a reusable model through the active GPU device. They do not turn records into child feature layers; their main output is the model instance itself. modules/…/simple-mesh-layer.ts modules/…/simple-mesh-layer.ts modules/…/scenegraph-layer.ts

This makes mesh layers complementary to geospatial layers rather than replacements for them. A geospatial layer can manage a source format or spatial tiles, while a mesh layer can provide the 3D object used to depict each item. For geospatial loading and coordinate-aware source layers, see geospatial layer types.

References: modules/…/simple-mesh-layer.ts• L257-281 modules/…/simple-mesh-layer.ts• L514-545 modules/…/scenegraph-layer.ts• L209-225 modules/…/mesh-columns.ts• L18-35 docs/…/layer.md• L1-4

Shared layer contract

Both families receive the core layer properties for visibility, opacity, data updates, coordinate interpretation, extensions, and picking. This common contract lets an application place an aggregation view beside standard marks or place 3D models over geospatial content without changing the Deck render model. docs/…/layer.md docs/…/layer.md

The main difference is the unit that the layer exposes to interaction. Aggregation picking identifies a derived bin or contour. Mesh picking identifies a data record represented by a model instance. GPU aggregation can return a bin's aggregate values and count when metadata readback is enabled, but it does not retain source point membership. CPU aggregation can retain source indices when the application needs record-level detail. modules/…/screen-grid-layer.ts modules/…/aggregator.ts

References: docs/…/layer.md• L35-49 docs/…/layer.md• L141-175 modules/…/screen-grid-layer.ts• L376-399 modules/…/aggregator.ts• L41-51

Change checklist

When these files or sections are changed, remember to consider these:

  • When an aggregation layer changes its bin shape or value channels, keep the aggregator output layout aligned with the child layer's bin, color, height, or weight inputs.
  • When aggregation projection rules change, check CPU binning, WebGL shader projection, WebGPU compute projection, data-centered working viewports, custom-CRS bounds, preprojected bounds, and extension uniform inputs together.
  • When GPU aggregation support or reduction rules change, review all GPU backends and the CPU fallback. Check metadata readback, source-point access, explicit domains, fixed-width columns, precision, sparse bins, and device support.
  • When borrowed GPU columns change, check position and weight lengths, storage-buffer use, COPY_SRC requirements for readback, result formats, and the child-layer attribute bridge together.
  • When WebGPU filter hooks change, check filter uniforms, filtered bin counts and domains, extension invalidation, and the normal reduction path together.
  • When asynchronous metadata changes, check revision cancellation, loaded state, redraw requests, retained frames, retry behavior, and layer callbacks together.
  • When a screen-cell renderer changes its GPU model or instance attributes, check bin positions, weights, color-domain inputs, viewport-sized cell geometry, and picking together.
  • When contour threshold or GPU isoline rules change, check numeric threshold limits, cell-to-segment output layout, device buffer limits, line-layer transforms, picking guards, and the CPU geometry fallback together.
  • When heatmap bounds or texture rules change, check world bounds, common bounds, layer coordinate transforms, and debounced viewport updates together.
  • When polygon input or tessellation rules change, check holed, geographic, and full 3D polygons because each path affects the geometry passed to the core surface draw.
  • When a mesh transform or coordinate-system rule changes, check both SimpleMeshLayer and ScenegraphLayer so instance placement stays consistent across model types.
  • When mesh column preparation changes, check the shared position, color, and transform schema against both accessor and prepared-column paths.
  • When a mesh model or attribute layout changes, check typed instance buffers, instancing, shader inputs, and WebGL or WebGPU draw paths together.
  • When a mesh or scenegraph loading contract changes, check loader support, asynchronous loaded state, resource cleanup, and the first-draw signal together.
  • When a composite layer changes inherited props or child-layer ids, check parent picking and child-layer overrides because the core composite contract depends on those relationships.

Important failure modes

TriggerConsequenceGuard
GPU aggregation is requested with unsupported columns, options, or device limitsThe layer uses CPU aggregation. A borrowed-column path can fail instead of falling back when its contract is invalid.Let backend checks select the path. Keep fixed-width float columns and dense bin ranges within device limits.
WebGPU aggregation is used without metadata readback for a domain, scale, or picking feature that needs CPU valuesThe layer cannot provide the required domain or bin metadata when the GPU result remains device-resident.Enable the layer feature that requests metadata, or use CPU aggregation.
A WebGPU aggregation input changes while an earlier metadata readback is pendingA stale snapshot can describe old bins or values if revision checks are bypassed.Keep revision checks and loaded-state updates paired with every asynchronous read.
A borrowed GPU column has the wrong length, format, storage access, or copy accessAggregation fails before producing bin results, or readback cannot make a CPU snapshot.Match all positions and weight lengths. Use supported float formats and COPY_SRC buffers for readback.
CPU and GPU aggregation use different projection origins or transformsPoints can fall into different bins. Derived geometry can shift between execution paths.Keep the shared aggregation viewport, custom-CRS bounds, preprojected position handling, and transform invalidation rules aligned.
An aggregation extension changes a uniform without marking the GPU aggregator staleThe rendered bins can use old extension inputs until another update occurs.Forward extension uniforms to the GPU aggregator and invalidate its filter or reduction work.
A Hexagon WebGPU request uses a custom bin function or post-bin value accessorThe layer selects CPU aggregation because those operations need source records or custom CPU logic.Use the built-in position and weight aggregation for WebGPU, or keep CPU aggregation for custom operations.
gpuGeometry is used with contour picking, unsupported extensions, non-numeric thresholds, or device limits that cannot hold the outputThe contour layer uses its readable geometry path instead of GPU isolines.Use finite numeric thresholds and the supported non-pickable extension set. Keep the padded cell output within buffer and dispatch limits.
A heatmap uses a large data set, large radius, or high texture size during view changesRebuilding the weight field can delay visible updates or freeze navigation.Set a suitable debounce interval. Balance texture size against pixel detail.
Aggregation input spans a wide sparse areaGPU memory use grows with the possible bin range, including empty cells.Prefer CPU aggregation or a tighter view and bin extent for sparse data.
A polygon has invalid ring data or its geometry does not form a usable planeTessellation can fail or produce no surface for the affected polygon.Supply valid rings. Use the full 3D path only for data with a plane that can be tessellated.
A mesh or scenegraph resource fails to load or has missing required geometry dataThe layer cannot produce a loaded model and may render no instances.Supply a supported loader or model. Handle loading errors through the core error path.
A model transform is applied in longitude/latitude as if it were a local Cartesian transformRotation or scale can have an unexpected geographic meaning.Use a suitable coordinate system or meter-offset basis for local model transforms.
A GPU mesh supplies more than one attribute or index chunkSimpleMeshLayer rejects the mesh because one draw cannot bind the required geometry layout.Provide a single-chunk GPU mesh or use a supported mesh input that can be converted to one geometry.
Scenegraph columns are combined with extensions or transitionsThe prepared-column path rejects the layer because those features are not supported there.Use the accessor path for extensions or transitions, or remove those features from the column path.

Key files

FileWhy to read it
modules/…/index.tsPublic aggregation layer and aggregator exports
modules/…/aggregator.tsShared bin, channel, reduction, result, and metadata model
modules/…/aggregation-result.tsBridge between CPU attributes and borrowed GPU results
modules/…/aggregation-layer.tsRelationship between aggregation state, projection, extension inputs, borrowed columns, retained frames, and output drawing
modules/…/scale-utils.tsColor and value scaling for CPU and GPU aggregate outputs
modules/…/readback-aggregator.tsAsynchronous GPU-column to CPU aggregation adapter
modules/…/webgl-aggregator.tsWebGL aggregation role, supported-device boundary, and result timing
modules/…/webgl-bin-sorter.tsWebGL bin layout and reduction pass
modules/…/webgpu-aggregator.tsShared WebGPU compute reduction, metadata readback, and backend limits
modules/…/filter.wgsl.tsWebGPU extension filtering before reduction
modules/…/column-preparation.tsWebGPU input column contract
modules/…/grid-layer.tsMap-cell aggregation with color, elevation, and metadata-dependent output
modules/…/webgpu-grid-aggregator.tsWebGPU map-cell bin assignment
modules/…/hexagon-layer.tsHexagonal aggregation with color, elevation, metadata readiness, and compute feature guards
modules/…/webgpu-hexagon-aggregator.tsWebGPU hexagonal bin assignment
modules/…/screen-grid-layer.tsViewport-relative screen-cell aggregation and picking
modules/…/webgpu-screen-grid-aggregator.tsWebGPU screen-cell bin assignment
modules/…/heatmap-layer.tsView-aware smooth density field and direct GPU-column path
modules/…/triangle-layer.tsFinal heatmap field and color draw
modules/…/contour-layer.tsAggregate field to CPU or GPU isoline and isoband output
modules/…/gpu-isolines.tsWebGPU marching-squares isoline output columns and device limits
modules/…/value-reader.tsReadable aggregate values for contour generation
modules/…/solid-polygon-layer.tsCore polygon surface role used by derived polygon views
modules/…/polygon-tesselator.tsPolygon geometry preparation for surfaces and contours
modules/…/polygon.tsSupported polygon shapes, holes, and surface triangulation
modules/…/index.tsPublic mesh layer exports
modules/…/mesh-columns.tsShared prepared-column schema for mesh instances
modules/…/simple-mesh-layer.tsReusable geometry instances, column data, and model placement
modules/…/scenegraph-layer.tsglTF scenegraph instances, animation, lighting, asset readiness, and device paths
modules/…/scenegraph-layer.wgsl.tsWebGPU scenegraph placement, material, and picking path
modules/…/matrix.tsShared instance transform and coordinate-system rules
docs/…/composite-layer.mdCore parent-child layer relationship used by aggregation layers
docs/…/layer.mdShared layer, coordinate, data, and interaction contract