render single point elements (#701)

pull/713/head
Kaalleen 2020-05-18 18:46:26 +02:00 zatwierdzone przez GitHub
rodzic 1006476946
commit c65b437cae
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

@ -121,7 +121,12 @@ class Fill(EmbroideryElement):
@property
@cache
def paths(self):
return self.flatten(self.parse_path())
paths = self.flatten(self.parse_path())
#ensure path length
for i, path in enumerate(paths):
if len(path) < 3:
paths[i] = [(path[0][0], path[0][1]), (path[0][0]+1.0, path[0][1]), (path[0][0], path[0][1]+1.0)]
return paths
@property
@cache

Wyświetl plik

@ -26,7 +26,7 @@ def node_to_elements(node): # noqa: C901
return [SatinColumn(node)]
else:
elements = []
if element.get_style("fill", 'black') and not element.get_style('fill-opacity', 1) == "0":
if element.get_style("fill", "black") and not element.get_style('fill-opacity', 1) == "0":
if element.get_boolean_param("auto_fill", True):
elements.append(AutoFill(node))
else: