beforeDraw
Invoked before the drawing phase of the program's lifecycle, allowing the extension to perform custom operations or adjustments prior to rendering.
Parameters
drawer
the drawer instance used to render graphical elements.
program
the program instance associated with the current drawing cycle.