summaryrefslogtreecommitdiff
path: root/lib/elements/element.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-08-31 11:25:46 +0200
committerGitHub <noreply@github.com>2025-08-31 11:25:46 +0200
commit612f18dc711c6a0fbf554465174b449604abb374 (patch)
tree3ad9bab29ae6f453c7f0406bfe8ee5bcbceabfb2 /lib/elements/element.py
parent3b2f2973f3977bba5838e48c85ba4c8e3a41c71d (diff)
stroke to satin: ensure a good starting point for closed paths (#3944)
starting point for the conversion, not necessarily the resulting column
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 d830012f..fdc0233f 100644
--- a/lib/elements/element.py
+++ b/lib/elements/element.py
@@ -467,6 +467,10 @@ class EmbroideryElement(object):
return inkex.Path(d).to_superpath()
+ @property
+ def is_closed_path(self):
+ return isinstance(self.node.get_path()[-1], inkex.paths.ZoneClose)
+
@cache
def parse_path(self):
return apply_transforms(self.path, self.node)