Skip to content

Commit

Permalink
💄 Styling
Browse files Browse the repository at this point in the history
  • Loading branch information
javitonino committed Jun 14, 2023
1 parent 4f37018 commit b12fd9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/converter/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@
from .errors import *
from . import utils

def ignored_layer_type(fig_layer: dict) -> None:

def ignored_layer_type(fig_layer: dict) -> AbstractLayer:
raise Fig2SketchWarning("LAY001")


CONVERTERS: Dict[str, Callable[[dict], AbstractLayer]] = {
"CANVAS": page.convert,
"ARTBOARD": artboard.convert,
Expand All @@ -38,7 +40,7 @@ def ignored_layer_type(fig_layer: dict) -> None:
"SLICE": slice.convert,
"SYMBOL": symbol.convert,
"INSTANCE": instance.convert,
"STICKY": ignored_layer_type
"STICKY": ignored_layer_type,
}

POST_PROCESSING: Dict[str, Callable[[dict, Any], AbstractLayer]] = {
Expand Down
2 changes: 1 addition & 1 deletion src/converter/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def has_rounded_corners(fig: dict) -> bool:
"IMG002": "appears to be corrupted in the .fig file, it will not be converted",
"IMG003": "is missing from the .fig file, it will not be converted",
"IMG004": "appears to be corrupted in the .fig file ({error}), it will not be converted",
"LAY001": "is an unsupported layer type, it will not be converted"
"LAY001": "is an unsupported layer type, it will not be converted",
}


Expand Down

0 comments on commit b12fd9a

Please sign in to comment.