From 7e6a5a03368f76e5b37f7792ced8044db69f61c2 Mon Sep 17 00:00:00 2001 From: Will Charczuk Date: Mon, 11 Jul 2016 00:22:24 -0700 Subject: [PATCH] looks g2g --- drawing_helpers.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drawing_helpers.go b/drawing_helpers.go index 8e25258..f692741 100644 --- a/drawing_helpers.go +++ b/drawing_helpers.go @@ -60,7 +60,7 @@ func MeasureAnnotation(r Renderer, canvasBox Box, xrange, yrange Range, s Style, pb := s.Padding.GetBottom(DefaultAnnotationPadding.Bottom) top := ly - (pt + halfTextHeight) - right := lx + pl + pr + textWidth + right := lx + pl + pr + textWidth + DefaultAnnotationDeltaWidth bottom := ly + (pb + halfTextHeight) return Box{ @@ -88,16 +88,16 @@ func DrawAnnotation(r Renderer, canvasBox Box, xrange, yrange Range, s Style, lx textX := lx + pl + DefaultAnnotationDeltaWidth textY := ly + halfTextHeight - ltx := lx + pl + DefaultAnnotationDeltaWidth + ltx := lx + DefaultAnnotationDeltaWidth lty := ly - (pt + halfTextHeight) - rtx := lx + pl + pr + textWidth + rtx := lx + pl + pr + textWidth + DefaultAnnotationDeltaWidth rty := ly - (pt + halfTextHeight) - rbx := lx + pl + pr + textWidth + rbx := lx + pl + pr + textWidth + DefaultAnnotationDeltaWidth rby := ly + (pb + halfTextHeight) - lbx := lx + pl + DefaultAnnotationDeltaWidth + lbx := lx + DefaultAnnotationDeltaWidth lby := ly + (pb + halfTextHeight) //draw the shape...