Skip to main content

Module app

Module app 

Source
Expand description

Main editor window composition.

Dataflow: render from controller state, collect user interactions, emit actions.

Architecture notes:

  • This module is the egui-based View (no direct mutation of the Model). It reads from PlotController and emits Action values which the Controller translates to Commands.
  • Plot drawing uses egui_plotter with Plotters backend. We build Chart in a callback to ensure consistent layout both on-screen and in export.
  • Label areas (x/y) are computed with heuristics to prevent overlap between tick labels and axis titles. See effective_y_label_area calculation and draw_axis_titles.

Structsยง

PlotEditorView
EN: Main editor view. Contains menu, control panels and plot area. RU: Osnovnoe predstavlenie. Soderzhit menyu, paneli upravleniya i oblast grafa.