papyru 2.11.1.dev114__tar.gz → 2.11.2.dev128__tar.gz
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.
- {papyru-2.11.1.dev114/papyru.egg-info → papyru-2.11.2.dev128}/PKG-INFO +1 -1
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/create_variant/edit_template/ean.py +0 -2
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/create_variant/edit_template/xml.py +9 -2
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128/papyru.egg-info}/PKG-INFO +1 -1
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/setup.py +1 -1
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/LICENSE.txt +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/README.md +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/bin/generate_jsonschema.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/__init__.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/auth.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/context.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/create_variant/__init__.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/create_variant/component.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/create_variant/constants.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/create_variant/edit_template/__init__.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/create_variant/edit_template/manufacturer_address.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/create_variant/edit_template/motive.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/create_variant/edit_template/render_text.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/create_variant/edit_template/title.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/create_variant/resi.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/logger.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/logger_stdout.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/logger_types.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/middleware.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/problem.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/profiler.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/resource.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/serializer.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/stack_context.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/static/__init__.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/static/apps.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/static/urls.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/static/views.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/utils.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/validation.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/varspool/__init__.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/varspool/assets/Job.json +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/varspool/assets/JobStatusHistory.json +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/varspool/command/__init__.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/varspool/command/config.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/varspool/command/types.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/varspool/serializers.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/varspool/types.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/xml_helper.py +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru.egg-info/SOURCES.txt +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru.egg-info/dependency_links.txt +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru.egg-info/requires.txt +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru.egg-info/top_level.txt +0 -0
- {papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/setup.cfg +0 -0
|
@@ -15,6 +15,9 @@ class ImageInfo:
|
|
|
15
15
|
location: str
|
|
16
16
|
width: int
|
|
17
17
|
height: int
|
|
18
|
+
x_pos: int = None
|
|
19
|
+
y_pos: int = None
|
|
20
|
+
is_editable: bool = False
|
|
18
21
|
|
|
19
22
|
|
|
20
23
|
def find_placeholder(doc: XMLHelper,
|
|
@@ -83,6 +86,10 @@ def fit_image(doc: XMLHelper,
|
|
|
83
86
|
image_dims = (float(image_info.width),
|
|
84
87
|
float(image_info.height))
|
|
85
88
|
|
|
89
|
+
image_position = (
|
|
90
|
+
float(image_info.x_pos if image_info.is_editable else '0.0'),
|
|
91
|
+
float(image_info.y_pos if image_info.is_editable else '0.0'))
|
|
92
|
+
|
|
86
93
|
viewbox = _fit_dimensions(wrapper_dims, image_dims)
|
|
87
94
|
|
|
88
95
|
doc.set_attribute(ph.wrapper,
|
|
@@ -94,8 +101,8 @@ def fit_image(doc: XMLHelper,
|
|
|
94
101
|
'href', image_info.location,
|
|
95
102
|
'xlink' if has_xlink else None)
|
|
96
103
|
|
|
97
|
-
doc.set_attribute(ph.placeholder, 'x', '0
|
|
98
|
-
doc.set_attribute(ph.placeholder, 'y', '
|
|
104
|
+
doc.set_attribute(ph.placeholder, 'x', '%s' % image_position[0])
|
|
105
|
+
doc.set_attribute(ph.placeholder, 'y', '%s' % image_position[1])
|
|
99
106
|
doc.set_attribute(ph.placeholder, 'width', '%s' % image_dims[0])
|
|
100
107
|
doc.set_attribute(ph.placeholder, 'height', '%s' % image_dims[1])
|
|
101
108
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/create_variant/edit_template/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{papyru-2.11.1.dev114 → papyru-2.11.2.dev128}/papyru/create_variant/edit_template/render_text.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|