simvx.editor.panels._scene2d_helpers

Composition helper for :class:~simvx.editor.panels.scene2d_view.Scene2DView.

A private sibling of the panel, owned by it and constructed in its __init__. It groups the canvas-rendering responsibility (grid, origin crosshair, rulers, node visualisation, gizmo drawing, overlay/info HUD) without changing behaviour.

It takes the panel via dependency injection so it reads the panel’s shared camera state (_zoom / _offset), view-mode flags, selection and gizmo hover, and routes coordinate conversion back through the panel’s _canvas_to_screen / _screen_to_canvas (the single source of truth that the gizmo handler and demo-steps also use). Tuned constants live on the panel module and are read via the injected module reference.