mirror of
https://github.com/visgl/luma.gl.git
synced 2026-02-01 14:33:49 +00:00
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.
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.
Languages
TypeScript
86%
JavaScript
12.7%
HTML
0.9%
MDX
0.1%
CSS
0.1%
Other
0.1%