Make hodograph zoom, alignment optional

This commit is contained in:
XANTRONIX 2025-03-04 11:03:27 -05:00
parent d0e1b763a7
commit 2f492dd16c

View file

@ -308,8 +308,9 @@ class Hodograph():
offset += interval
def draw(self, cr: cairo.Context, x, y, sounding: Sounding):
self.extents = self.find_extents(sounding)
def draw(self, cr: cairo.Context, x, y, sounding: Sounding, zoom: bool=True):
if zoom:
self.extents = self.find_extents(sounding)
cr.rectangle(x, y, self.width, self.height)
cr.clip()