Expand description
Shared data-to-screen coordinate transformation for instanced renderers.
This module provides DataTransform used by
LineRenderer, PointRenderer,
and QuadRenderer to map data coordinates to screen
pixels on the GPU.
§How it works
Data points are stored in their original coordinate space. The GPU applies:
screen_pos = data_pos * scale + offset
clip_pos = projection * screen_posThis means pan/zoom only updates a small uniform buffer (32 bytes), not all the vertex/instance data. For charts with thousands of data points, this is the key to smooth interaction.
Structs§
- Data
Range Params - Parameters describing a data range and its target plot area.
- Data
Transform - High-level data-to-screen transform.