fleetmap-reports 1.0.236 → 1.0.237
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.
- package/.idea/workspace.xml +1 -1
- package/package.json +1 -1
- package/src/util/pdfDocument.js +1 -1
package/.idea/workspace.xml
CHANGED
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
<workItem from="1637670815688" duration="2973000" />
|
|
165
165
|
<workItem from="1637674107929" duration="13419000" />
|
|
166
166
|
<workItem from="1637756665591" duration="4742000" />
|
|
167
|
-
<workItem from="1637841765985" duration="
|
|
167
|
+
<workItem from="1637841765985" duration="4644000" />
|
|
168
168
|
</task>
|
|
169
169
|
<task id="LOCAL-00001" summary="Fix getStyle">
|
|
170
170
|
<created>1636983717385</created>
|
package/package.json
CHANGED
package/src/util/pdfDocument.js
CHANGED
|
@@ -12,7 +12,7 @@ async function header(doc, title, hostname, style, orientation) {
|
|
|
12
12
|
try{
|
|
13
13
|
const image = await getImgFromUrl(hostname)
|
|
14
14
|
if(image){
|
|
15
|
-
doc.addImage(image, 'PNG', (orientation === 'l' ? 220 :
|
|
15
|
+
doc.addImage(image, 'PNG', (orientation === 'l' ? 220 : 135) + (style.imgWidth < 50 ? 25 : 0), 5, style.imgWidth, style.imgHeight)
|
|
16
16
|
}
|
|
17
17
|
} catch (e) {
|
|
18
18
|
}
|