valetudo-map-parser 0.1.9b20__py3-none-any.whl → 0.1.9b21__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -500,12 +500,9 @@ async def async_resize_image(params: ResizeParams):
500
500
  )
501
501
 
502
502
  if params.crop_size is not None:
503
+ offset = OffsetParams(wsf, hsf, new_width, new_height, params.is_rand)
503
504
  params.crop_size[0], params.crop_size[1] = await params.offset_func(
504
- wsf=wsf,
505
- hsf=hsf,
506
- width=new_width,
507
- height=new_height,
508
- rand256=params.is_rand,
505
+ offset
509
506
  )
510
507
 
511
508
  return ImageOps.pad(params.pil_img, (new_width, new_height))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: valetudo-map-parser
3
- Version: 0.1.9b20
3
+ Version: 0.1.9b21
4
4
  Summary: A Python library to parse Valetudo map data returning a PIL Image object.
5
5
  License: Apache-2.0
6
6
  Author: Sandro Cantarella
@@ -6,15 +6,15 @@ valetudo_map_parser/config/drawable.py,sha256=hsrEJCMVOrjs5sJfr26SeqJD0VNlYWwxcV
6
6
  valetudo_map_parser/config/rand25_parser.py,sha256=fehyF18hRWRWbXbojocQCIaIch21Lbh1wtl2XdKRSl0,16447
7
7
  valetudo_map_parser/config/shared.py,sha256=LQV5K8tbVhEKUkby9ssjEmh_T4Ai-Euzsbag_HWYVRc,9448
8
8
  valetudo_map_parser/config/types.py,sha256=sdjqhcxpRSxNFLVHIyCg-RDL9JIjtQHoR2C2WpocWBc,16107
9
- valetudo_map_parser/config/utils.py,sha256=Vm2gkD_t_7qRtnC_LP9sNiTkwLDLcxTU6MhiE6lBuE8,18221
9
+ valetudo_map_parser/config/utils.py,sha256=tGfk8uew_QF4E6YO-LF652hlfunB6dQfi0A83a7qoLI,18169
10
10
  valetudo_map_parser/hypfer_draw.py,sha256=s58ak9IBYLjJyoddfDC99PfQ12HTjkSfJYXqCi4vZKs,14931
11
11
  valetudo_map_parser/hypfer_handler.py,sha256=4WnjJwnLWwz0z6LFW0ONAjXSsQywc0Ciz-lTscI2gHA,13860
12
12
  valetudo_map_parser/map_data.py,sha256=6FbQfgxFB6E4kcOWokReJOVSekVaE1kStyhTQhAhiOg,19469
13
13
  valetudo_map_parser/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  valetudo_map_parser/rand25_handler.py,sha256=dgPYhGBB4Wc_hyJbik0UJeAuyvaK2qMDNTLz5gUvAiQ,15630
15
15
  valetudo_map_parser/reimg_draw.py,sha256=dtdbYKKxmQnbOaHBHayWEF07OdSnTKo2CPSOW0qpgH0,12506
16
- valetudo_map_parser-0.1.9b20.dist-info/LICENSE,sha256=Lh-qBbuRV0-jiCIBhfV7NgdwFxQFOXH3BKOzK865hRs,10480
17
- valetudo_map_parser-0.1.9b20.dist-info/METADATA,sha256=kcTyEtTggKwBtDjmeP6EBGHY3GCY7Y5a5rzindetqy0,1029
18
- valetudo_map_parser-0.1.9b20.dist-info/NOTICE.txt,sha256=5lTOuWiU9aiEnJ2go8sc7lTJ7ntMBx0g0GFnNrswCY4,2533
19
- valetudo_map_parser-0.1.9b20.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
20
- valetudo_map_parser-0.1.9b20.dist-info/RECORD,,
16
+ valetudo_map_parser-0.1.9b21.dist-info/LICENSE,sha256=Lh-qBbuRV0-jiCIBhfV7NgdwFxQFOXH3BKOzK865hRs,10480
17
+ valetudo_map_parser-0.1.9b21.dist-info/METADATA,sha256=ayscIizzPgETDSboiz-wEe_QoSfkOebYnxPkpMHTU3k,1029
18
+ valetudo_map_parser-0.1.9b21.dist-info/NOTICE.txt,sha256=5lTOuWiU9aiEnJ2go8sc7lTJ7ntMBx0g0GFnNrswCY4,2533
19
+ valetudo_map_parser-0.1.9b21.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
20
+ valetudo_map_parser-0.1.9b21.dist-info/RECORD,,