meemup-library 1.5.80 → 1.5.82
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.
|
@@ -95,17 +95,29 @@ class SimplePreviewController {
|
|
|
95
95
|
return content;
|
|
96
96
|
}
|
|
97
97
|
printLogo(template, detail, account) {
|
|
98
|
-
if (!template.logoAvailable
|
|
98
|
+
if (!template.logoAvailable)
|
|
99
99
|
return "";
|
|
100
|
-
const url = `${account.rootUrl}${detail.company.id}/${template.logoUrl}`;
|
|
101
100
|
let content = this.createDivContainer(template);
|
|
102
101
|
let size = template.width - (template.paddingRight + template.paddingLeft);
|
|
103
102
|
size *= 0.7;
|
|
104
103
|
size = parseInt(size + "");
|
|
105
|
-
if (template.
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
104
|
+
if (template.logoBase64) {
|
|
105
|
+
if (template.logoCenter)
|
|
106
|
+
content += `<img alt="" style=" display : block; aspect-ratio: auto; margin :auto; width: ${size}mm; max-height : ${size}mm;" src="${template.logoBase64}" />`;
|
|
107
|
+
else
|
|
108
|
+
content += `<img alt="" style=" display : block; margin :0; width: ${size}mm; max-height : ${size}mm;" src="${template.logoBase64}" />`;
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
if (template.logoUrl === null || template.logoUrl === "")
|
|
112
|
+
return "";
|
|
113
|
+
const url = `${account.rootUrl}${detail.company.id}/${template.logoUrl}`;
|
|
114
|
+
if (template.logoCenter)
|
|
115
|
+
content += `<img alt="" style=" display : block; aspect-ratio: auto; margin :auto; width: ${size}mm; max-height : ${size}mm;" src="${url}" />`;
|
|
116
|
+
else
|
|
117
|
+
content += `<img alt="" style=" display : block; margin :0; width: ${size}mm; max-height : ${size}mm;" src="${url}"/>`;
|
|
118
|
+
}
|
|
119
|
+
// if (template.logoCenter) content += `<img alt="" style=" display : block; aspect-ratio: auto; margin :auto; width: ${size}mm; max-height : ${size}mm;" src="${url}" />`;
|
|
120
|
+
// else content += `<img alt="" style=" display : block; margin :0; width: ${size}mm; max-height : ${size}mm;" src="${url}" />`;
|
|
109
121
|
content += `</div>`;
|
|
110
122
|
return content;
|
|
111
123
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meemup-library",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.82",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"remove:one": "rimraf dist",
|
|
12
12
|
"remove:two": "rimraf ./src/dist",
|
|
13
13
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
14
|
-
"commit": "git add . && git commit -m \"version.1.5.
|
|
14
|
+
"commit": "git add . && git commit -m \"version.1.5.82\" && git push origin "
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"/dist"
|
|
@@ -26,4 +26,4 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"dayjs": "^1.11.13"
|
|
28
28
|
}
|
|
29
|
-
}
|
|
29
|
+
}
|