Skip to content

Commit 170ec1a

Browse files
committed
Fix case
1 parent 9ffbea3 commit 170ec1a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ipycanvas/canvas.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@ def bezier_curve_to(self, cp1x, cp1y, cp2x, cp2y, x, y):
9595
self._send_canvas_command('bezierCurveTo', cp1x, cp1y, cp2x, cp2y, x, y)
9696

9797
# Text methods
98-
def fill_text(self, text, x, y, maxWidth=None):
98+
def fill_text(self, text, x, y, max_width=None):
9999
"""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)
100+
self._send_canvas_command('fillText', text, x, y, max_width)
101101

102-
def stroke_text(self, text, x, y, maxWidth=None):
102+
def stroke_text(self, text, x, y, max_width=None):
103103
"""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)
104+
self._send_canvas_command('strokeText', text, x, y, max_width)
105105

106106
def clear(self):
107107
"""Clear the entire canvas."""

0 commit comments

Comments
 (0)