Skip to main content

grid_to_plot_state

Function grid_to_plot_state 

Source
fn grid_to_plot_state(
    display_list: &DisplayList,
    grob_store: &GrobStore,
) -> PlotState
Expand description

Convert the grid Rust display list into a PlotState for the existing egui rendering pipeline.

This replays the display list through a PlotStateRenderer that converts grid grobs (in cm coordinates) to PlotItems in normalized [0,1] space.