(self, drawer: "TracksDrawer", output: str)
Set the Poster's drawer and draw the tracks.
Set the Poster's drawer and draw the tracks.
Set the Poster s drawer and draw the tracks .
def draw(self, drawer: "TracksDrawer", output: str) -> None:
        """Set the Poster's drawer and draw the tracks."""
        self.tracks_drawer = drawer
        d = svgwrite.Drawing(output, (f"{self.width}mm", f"{self.height}mm"))
        d.viewbox(0, 0, self.width, self.height)
        d.add(d.rect((0, 0), (self.width, self.height), fill=self.colors["background"]))
        self._draw_header(d)
        self._draw_footer(d)
        self._draw_tracks(d, XY(self.width - 20, self.height - 30 - 30), XY(10, 30))
        d.save()
def draw ( self , drawer : "TracksDrawer" , output : str ) -> None : self . tracks_drawer = drawer d = svgwrite . Drawing ( output , ( f"{self.width}mm" , f"{self.height}mm" ) ) d . viewbox ( 0 , 0 , self . width , self . height ) d . add ( d . rect ( ( 0 , 0 ) , ( self . width , self . height ) , fill = self . colors [ "background" ] ) ) self . _draw_header ( d ) self . _draw_footer ( d ) self . _draw_tracks ( d , XY ( self . width - 20 , self . height - 30 - 30 ) , XY ( 10 , 30 ) ) d . save ( )