MCPcopy Create free account
hub / github.com/PageBot/PageBot / _drawOverflowMarker_drawBot

Method _drawOverflowMarker_drawBot

Lib/pagebot/elements/text.py:730–737  ·  view source on GitHub ↗

Draws the optional overflow marker, if text doesn't fit in the box.

(self, view, px, py)

Source from the content-addressed store, hash-verified

728 return overflow
729
730 def _drawOverflowMarker_drawBot(self, view, px, py):
731 """Draws the optional overflow marker, if text doesn't fit in the box."""
732 # Get current builder from self.doc.context.b
733 bs = self.newString('[+]', style=dict(textFill=color(r=1, g=0, b=0), font='PageBot-Bold', fontSize=10))
734 tw, _ = bs.textSize
735 # FIX: Should work work self.bottom
736 #self.b.text(bs.s, upt(self.right - 3 - tw, self.bottom + 3))
737 self.b.text(bs.s, upt(self.right - 3 - tw, self.y + 6))
738
739
740 # Disabling these temporarily, needs some testing at element level first.

Callers

nothing calls this directly

Calls 4

colorFunction · 0.90
uptFunction · 0.90
newStringMethod · 0.80
textMethod · 0.45

Tested by

no test coverage detected