summaryrefslogtreecommitdiff
path: root/lib/elements/element.py
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2018-07-04 21:17:20 -0400
committerLex Neva <github.com@lexneva.name>2018-07-12 20:13:46 -0400
commit62ef2850a2f57d64d0e65fbfc055b85e3c940031 (patch)
tree5c16d38ac0fff6651e44d06924adbcdcea77af48 /lib/elements/element.py
parentd090fa003830f117918fac201ca527d513507a70 (diff)
generalize Element.shape and implement in all element types
Diffstat (limited to 'lib/elements/element.py')
-rw-r--r--lib/elements/element.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/elements/element.py b/lib/elements/element.py
index 62e9745d..ebca90a4 100644
--- a/lib/elements/element.py
+++ b/lib/elements/element.py
@@ -206,6 +206,10 @@ class EmbroideryElement(object):
return apply_transforms(self.path, self.node)
@property
+ def shape(self):
+ raise NotImplementedError("INTERNAL ERROR: %s must implement shape()", self.__class__)
+
+ @property
@cache
def commands(self):
return find_commands(self.node)