We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ffbea3 commit 170ec1aCopy full SHA for 170ec1a
ipycanvas/canvas.py
@@ -95,13 +95,13 @@ def bezier_curve_to(self, cp1x, cp1y, cp2x, cp2y, x, y):
95
self._send_canvas_command('bezierCurveTo', cp1x, cp1y, cp2x, cp2y, x, y)
96
97
# Text methods
98
- def fill_text(self, text, x, y, maxWidth=None):
+ def fill_text(self, text, x, y, max_width=None):
99
"""Fill a given text at the given (x,y) position. Optionally with a maximum width to draw."""
100
- self._send_canvas_command('fillText', text, x, y, maxWidth)
+ self._send_canvas_command('fillText', text, x, y, max_width)
101
102
- def stroke_text(self, text, x, y, maxWidth=None):
+ def stroke_text(self, text, x, y, max_width=None):
103
"""Stroke a given text at the given (x,y) position. Optionally with a maximum width to draw."""
104
- self._send_canvas_command('strokeText', text, x, y, maxWidth)
+ self._send_canvas_command('strokeText', text, x, y, max_width)
105
106
def clear(self):
107
"""Clear the entire canvas."""
0 commit comments