Skip to content

Commit fe83e1d

Browse files
committed
Fix attribute case
1 parent 4f147d6 commit fe83e1d

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
@@ -36,8 +36,8 @@ class Canvas(DOMWidget):
3636
global_alpha = Float(1.0)
3737

3838
font = Unicode('12px serif')
39-
textAlign = Unicode('start')
40-
textBaseline = Unicode('alphabetic')
39+
text_align = Unicode('start')
40+
text_baseline = Unicode('alphabetic')
4141
direction = Unicode('inherit')
4242

4343
global_composite_operation = Enum(
@@ -237,8 +237,8 @@ def flush(self):
237237
self._commands_cache = []
238238
self._buffers_cache = []
239239

240-
@observe('fill_style', 'stroke_style', 'global_alpha', 'font', 'textAlign',
241-
'textBaseline', 'direction', 'global_composite_operation')
240+
@observe('fill_style', 'stroke_style', 'global_alpha', 'font', 'text_align',
241+
'text_baseline', 'direction', 'global_composite_operation')
242242
def _on_set_attr(self, change):
243243
command = {
244244
'name': 'set',

0 commit comments

Comments
 (0)