mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-21 13:06:25 +02:00
Fix typo.
This commit is contained in:
parent
c87ab400e0
commit
9bc71ebf92
2 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,7 @@ __author__ = "Sergey Vartanov"
|
||||||
__email__ = "me@enzet.ru"
|
__email__ = "me@enzet.ru"
|
||||||
|
|
||||||
SCHEME: Scheme = Scheme(Path("scheme/default.yml"))
|
SCHEME: Scheme = Scheme(Path("scheme/default.yml"))
|
||||||
SCHEME_EXTRACTOR: ShapeExtractor = ShapeExtractor(
|
SHAPE_EXTRACTOR: ShapeExtractor = ShapeExtractor(
|
||||||
Path("icons/icons.svg"), Path("icons/config.json")
|
Path("icons/icons.svg"), Path("icons/config.json")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ from typing import Dict
|
||||||
|
|
||||||
from roentgen.icon import IconSet
|
from roentgen.icon import IconSet
|
||||||
from roentgen.grid import draw_all_icons
|
from roentgen.grid import draw_all_icons
|
||||||
from test import SCHEME, SCHEME_EXTRACTOR
|
from test import SCHEME, SHAPE_EXTRACTOR
|
||||||
|
|
||||||
__author__ = "Sergey Vartanov"
|
__author__ = "Sergey Vartanov"
|
||||||
__email__ = "me@enzet.ru"
|
__email__ = "me@enzet.ru"
|
||||||
|
@ -17,14 +17,14 @@ def test_icons() -> None:
|
||||||
Test grid drawing.
|
Test grid drawing.
|
||||||
"""
|
"""
|
||||||
makedirs("icon_set", exist_ok=True)
|
makedirs("icon_set", exist_ok=True)
|
||||||
draw_all_icons(SCHEME, SCHEME_EXTRACTOR, "temp.svg", "icon_set")
|
draw_all_icons(SCHEME, SHAPE_EXTRACTOR, "temp.svg", "icon_set")
|
||||||
|
|
||||||
|
|
||||||
def get_icon(tags: Dict[str, str]) -> IconSet:
|
def get_icon(tags: Dict[str, str]) -> IconSet:
|
||||||
"""
|
"""
|
||||||
Construct icon from tags.
|
Construct icon from tags.
|
||||||
"""
|
"""
|
||||||
icon, _ = SCHEME.get_icon(SCHEME_EXTRACTOR, tags)
|
icon, _ = SCHEME.get_icon(SHAPE_EXTRACTOR, tags)
|
||||||
return icon
|
return icon
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue