valetudo-map-parser 0.1.4__py3-none-any.whl → 0.1.5__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.
- valetudo_map_parser/__init__.py +1 -2
- valetudo_map_parser/config/auto_crop.py +12 -12
- valetudo_map_parser/hypfer_handler.py +4 -4
- {valetudo_map_parser-0.1.4.dist-info → valetudo_map_parser-0.1.5.dist-info}/METADATA +1 -1
- {valetudo_map_parser-0.1.4.dist-info → valetudo_map_parser-0.1.5.dist-info}/RECORD +8 -8
- {valetudo_map_parser-0.1.4.dist-info → valetudo_map_parser-0.1.5.dist-info}/LICENSE +0 -0
- {valetudo_map_parser-0.1.4.dist-info → valetudo_map_parser-0.1.5.dist-info}/NOTICE.txt +0 -0
- {valetudo_map_parser-0.1.4.dist-info → valetudo_map_parser-0.1.5.dist-info}/WHEEL +0 -0
valetudo_map_parser/__init__.py
CHANGED
@@ -71,18 +71,18 @@ class AutoCrop:
|
|
71
71
|
return trimmed_width, trimmed_height
|
72
72
|
|
73
73
|
async def _async_auto_crop_data(self, tdata=None):
|
74
|
-
"""Load the auto crop data from the
|
75
|
-
|
76
|
-
if not self.imh.auto_crop:
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
74
|
+
"""Load the auto crop data from the Camera config."""
|
75
|
+
# todo: implement this method but from config data
|
76
|
+
# if not self.imh.auto_crop:
|
77
|
+
# trims_data = TrimCropData.from_dict(dict(tdata)).to_list()
|
78
|
+
# (
|
79
|
+
# self.imh.trim_left,
|
80
|
+
# self.imh.trim_up,
|
81
|
+
# self.imh.trim_right,
|
82
|
+
# self.imh.trim_down,
|
83
|
+
# ) = trims_data
|
84
|
+
# self._calculate_trimmed_dimensions()
|
85
|
+
# return trims_data
|
86
86
|
return None
|
87
87
|
|
88
88
|
def auto_crop_offset(self):
|
@@ -66,10 +66,10 @@ class HypferMapImageHandler:
|
|
66
66
|
self.max_frames = 1024
|
67
67
|
self.zooming = False # zooming the image.
|
68
68
|
self.svg_wait = False # SVG image creation wait.
|
69
|
-
self.trim_down =
|
70
|
-
self.trim_left =
|
71
|
-
self.trim_right =
|
72
|
-
self.trim_up =
|
69
|
+
self.trim_down = 0 # memory stored trims calculated once.
|
70
|
+
self.trim_left = 0 # memory stored trims calculated once.
|
71
|
+
self.trim_right = 0 # memory stored trims calculated once.
|
72
|
+
self.trim_up = 0 # memory stored trims calculated once.
|
73
73
|
self.offset_top = self.shared.offset_top # offset top
|
74
74
|
self.offset_bottom = self.shared.offset_down # offset bottom
|
75
75
|
self.offset_left = self.shared.offset_left # offset left
|
@@ -1,17 +1,17 @@
|
|
1
|
-
valetudo_map_parser/__init__.py,sha256=
|
1
|
+
valetudo_map_parser/__init__.py,sha256=hNe0CiutftU06x96gO0dAmTtYonHtDeQIiNyAeTDYNw,679
|
2
2
|
valetudo_map_parser/config/__init__.py,sha256=DQ9plV3ZF_K25Dp5ZQHPDoG-40dQoJNdNi-dfNeR3Zc,48
|
3
|
-
valetudo_map_parser/config/auto_crop.py,sha256=
|
3
|
+
valetudo_map_parser/config/auto_crop.py,sha256=vaDAVVn86agrlEjX-rjYZxDtAZ7P92rWqF1nSyT2kJA,11014
|
4
4
|
valetudo_map_parser/config/colors.py,sha256=HlgROKagpV7FP9LTU1IvhTKTYjnlBw1ZDMKHVJSct8M,6514
|
5
5
|
valetudo_map_parser/config/drawable.py,sha256=8Fp4yqyFbsGvNyCEynYCTpiohRZk_plUSSOyHpECvj8,20356
|
6
6
|
valetudo_map_parser/config/shared.py,sha256=8xYBUfKY-tiPhXaT5ttIasnCWL3_RLawIZeTValQC64,9462
|
7
7
|
valetudo_map_parser/config/types.py,sha256=bVSEDE0ihrc01jG4fZ1_hUVtoj6hdkbqShytZ6wJwJY,16163
|
8
8
|
valetudo_map_parser/hypfer_draw.py,sha256=R8JVrqPPavhj8exCDJKk1QsXgsB12cjy4AIgFffyQec,15773
|
9
|
-
valetudo_map_parser/hypfer_handler.py,sha256=
|
9
|
+
valetudo_map_parser/hypfer_handler.py,sha256=MoCO4zVflFd0HSB4IRz1EOjJtlMfaagJS7A-OqJUNIU,18457
|
10
10
|
valetudo_map_parser/images_utils.py,sha256=Ls5OnXXcojBTuUagj3_N4tY3nOe9aot7gl5hrPCXKss,15262
|
11
11
|
valetudo_map_parser/map_data.py,sha256=-6etLFZXZikFEUeR2YhPLgXu7dv3YRY2e-u5Mx9ogqw,19498
|
12
12
|
valetudo_map_parser/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
13
|
-
valetudo_map_parser-0.1.
|
14
|
-
valetudo_map_parser-0.1.
|
15
|
-
valetudo_map_parser-0.1.
|
16
|
-
valetudo_map_parser-0.1.
|
17
|
-
valetudo_map_parser-0.1.
|
13
|
+
valetudo_map_parser-0.1.5.dist-info/LICENSE,sha256=Lh-qBbuRV0-jiCIBhfV7NgdwFxQFOXH3BKOzK865hRs,10480
|
14
|
+
valetudo_map_parser-0.1.5.dist-info/METADATA,sha256=hEskOQOPS_evCvVAWCJxBTQiDJzfSk5u0sFDUlQDxTg,1026
|
15
|
+
valetudo_map_parser-0.1.5.dist-info/NOTICE.txt,sha256=5lTOuWiU9aiEnJ2go8sc7lTJ7ntMBx0g0GFnNrswCY4,2533
|
16
|
+
valetudo_map_parser-0.1.5.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
|
17
|
+
valetudo_map_parser-0.1.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|