Compare commits

...

1 Commits

Author SHA1 Message Date
Martin
251800d9e7 fix: typo in "isinstance" in Element.snap. 2024-05-20 11:34:55 -04:00

View File

@@ -267,7 +267,7 @@ class Element(BaseElement):
canvas._js.width = width
canvas._js.height = height
elif isistance(to, Element):
elif isinstance(to, Element):
if to._js.tagName != "CANVAS":
raise TypeError("Element to snap to must a canvas.")
canvas = to