Add burn value to reference text

This commit is contained in:
suks.ae 2022-04-23 08:45:10 +02:00 committed by Florian Festi
parent ec0d24efd2
commit af8a30287e
1 changed files with 5 additions and 5 deletions

View File

@ -359,12 +359,12 @@ class Boxes:
if self.reference and self.format != 'svg_Ponoko': if self.reference and self.format != 'svg_Ponoko':
self.move(10, 10, "up", before=True) self.move(10, 10, "up", before=True)
self.ctx.rectangle(0, 0, self.reference, 10) self.ctx.rectangle(0, 0, self.reference, 10)
if self.reference < 40: if self.reference < 80:
self.text("%.fmm" % self.reference, self.reference + 5, 5, self.text("%.fmm, burn:%.2fmm" % (self.reference , self.burn), self.reference + 5, 5,
align="middle left", fontsize=8, color=Color.ETCHING) fontsize=8, align="middle left", color=Color.ANNOTATIONS)
else: else:
self.text("%.fmm" % self.reference, self.reference / 2.0, 5, self.text("%.fmm, burn:%.2fmm" % (self.reference , self.burn), self.reference / 2.0, 5,
align="middle center", fontsize=8, color=Color.ETCHING) fontsize=8, align="middle center", color=Color.ANNOTATIONS)
self.move(10, 10, "up") self.move(10, 10, "up")
self.ctx.stroke() self.ctx.stroke()