diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2023-04-01 08:53:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-01 08:53:16 +0200 |
| commit | af372c257b4cdd5675c4c87a8168df94aee67b71 (patch) | |
| tree | b83b58633df4302c4310a09c8b8f79da0c0def7a | |
| parent | 06b6f976a9975c9860fcc0a29e6e9c3ea174ba9d (diff) | |
Params: select satin (#2185)
* check satin subpath length in params
* style corrections
| -rw-r--r-- | lib/api/page_specs.py | 5 | ||||
| -rw-r--r-- | lib/extensions/params.py | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/api/page_specs.py b/lib/api/page_specs.py index ff9f7cf6..f7cec8c6 100644 --- a/lib/api/page_specs.py +++ b/lib/api/page_specs.py @@ -7,6 +7,7 @@ from flask import Blueprint, g, jsonify page_specs = Blueprint('page_specs', __name__) + @page_specs.route('') def get_page_specs(): @@ -18,5 +19,5 @@ def get_page_specs(): "pagecolor": metadata.document[1].get('pagecolor'), "deskcolor": metadata.document[1].get('inkscape:deskcolor') } - - return jsonify(page_specs)
\ No newline at end of file + + return jsonify(page_specs) diff --git a/lib/extensions/params.py b/lib/extensions/params.py index bf01153b..a85b16f7 100644 --- a/lib/extensions/params.py +++ b/lib/extensions/params.py @@ -672,7 +672,8 @@ class Params(InkstitchExtension): classes.append(FillStitch) if element.get_style("stroke") is not None: classes.append(Stroke) - classes.append(SatinColumn) + if len(element.path) > 1: + classes.append(SatinColumn) return classes def get_nodes_by_class(self): |
