Chris Gervang 527e23ad72
fix(core): Make setDrawingBufferSize context-aware for externally managed canvases
When autoResize is false, setDrawingBufferSize now only updates internal
state without modifying the canvas element. This allows proper use with
externally managed canvases (e.g., Mapbox/Maplibre in interleaved mode).

Changes:
- Modified _resizeDrawingBufferIfNeeded to respect autoResize setting
- If autoResize !== false: Resizes canvas element and internal state (default)
- If autoResize === false: Only updates internal state, canvas is externally managed
- Updated documentation to explain the context-aware behavior

This enables deck.gl to properly sync drawing buffer dimensions in interleaved
mode when the map controls the canvas, especially during DPR changes.
2025-12-01 14:23:58 -08:00
2019-04-03 15:27:43 -07:00
2024-02-26 12:02:12 -05:00
2023-05-02 15:39:55 -04:00
2025-07-12 09:54:02 -04:00
2025-07-12 09:54:02 -04:00
2021-12-21 20:37:03 -08:00

version build downloads Coverage Status

luma.gl | Docs

luma.gl: High-performance Toolkit for WebGL-based Data Visualization

Overview

luma.gl is a GPU toolkit for the Web focused primarily on data visualization use cases. luma.gl aims to provide support for GPU programmers that need to work directly with shaders and want a low abstraction API that remains conceptually close to the WebGPU and WebGL APIs. Some features of luma.gl include:

  • A robust GLSL shader module system.
  • A convenient object-oriented API wrapping most WebGL objects
  • Higher-level engine constructs to manage the animation loop, drawing and resource management

Unlike other common WebGL APIs, the developer can choose to use the parts of luma.gl that support their use case and leave the others behind.

While generic enough to be used for general 3D rendering, luma.gl's mandate is primarily to support GPU needs of data visualization frameworks in the vis.gl suite, such as:

  • kepler.gl a powerful open source geospatial analysis tool for large-scale data sets
  • deck.gl a WebGL-powered framework for visual exploratory data analysis of large data sets
  • streetscape.gl A visualization toolkit for autonomy and robotics data encoded in the XVIZ protocol

Installation, Running Examples etc

For details, please refer to the extensive online website.

Description
High-performance Toolkit for WebGL-based Data Visualization
Readme MIT 249 MiB
Languages
TypeScript 86%
JavaScript 12.7%
HTML 0.9%
MDX 0.1%
CSS 0.1%
Other 0.1%