mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-28 08:26:27 +02:00
Add configuration to shape extractor.
This commit is contained in:
parent
a8da4fce0a
commit
d73e2b6a53
5 changed files with 24 additions and 10 deletions
|
@ -4,6 +4,7 @@ Icon grid drawing.
|
|||
Author: Sergey Vartanov (me@enzet.ru).
|
||||
"""
|
||||
from os.path import join
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, List, Set
|
||||
|
||||
import numpy as np
|
||||
|
@ -36,7 +37,9 @@ def draw_all_icons(
|
|||
icons: List[Icon] = []
|
||||
|
||||
icons_file_name: str = "icons/icons.svg"
|
||||
extractor: ShapeExtractor = ShapeExtractor(icons_file_name)
|
||||
extractor: ShapeExtractor = ShapeExtractor(
|
||||
icons_file_name, Path("icons/config.json")
|
||||
)
|
||||
|
||||
def add() -> None:
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue