@innovastudio/contentbox 1.5.89 → 1.5.91
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@innovastudio/contentbox",
|
3
3
|
"type": "module",
|
4
|
-
"version": "1.5.
|
4
|
+
"version": "1.5.91",
|
5
5
|
"description": "",
|
6
6
|
"main": "public/contentbox/contentbox.esm.js",
|
7
7
|
"files": [
|
@@ -52,7 +52,9 @@
|
|
52
52
|
"ws": "^8.13.0"
|
53
53
|
},
|
54
54
|
"dependencies": {
|
55
|
-
"@innovastudio/contentbuilder": "^1.4.
|
56
|
-
"
|
55
|
+
"@innovastudio/contentbuilder": "^1.4.112",
|
56
|
+
"i": "^0.3.7",
|
57
|
+
"js-beautify": "^1.14.0",
|
58
|
+
"npm": "^10.1.0"
|
57
59
|
}
|
58
60
|
}
|
@@ -64929,11 +64929,23 @@ class Image$1 {
|
|
64929
64929
|
var elementWidth = activeImage.parentNode.offsetWidth - paddingX - borderX;
|
64930
64930
|
//var elementHeight = activeImage.parentNode.offsetHeight - paddingY - borderY;
|
64931
64931
|
|
64932
|
+
let currentWidth;
|
64932
64933
|
if (!bCircular) {
|
64933
|
-
|
64934
|
-
|
64935
|
-
|
64934
|
+
const parentWidth = elementWidth; //activeImage.parentNode.offsetWidth;
|
64935
|
+
currentWidth = activeImage.offsetWidth;
|
64936
|
+
const percentage = currentWidth / parentWidth * 100;
|
64936
64937
|
activeImage.style.width = percentage + '%';
|
64938
|
+
} else {
|
64939
|
+
const _screenwidth = window.innerWidth;
|
64940
|
+
currentWidth = activeImage.offsetWidth;
|
64941
|
+
const percentage = currentWidth / _screenwidth * 100;
|
64942
|
+
activeImage.style.width = percentage + 'vw';
|
64943
|
+
activeImage.style.height = percentage + 'vw';
|
64944
|
+
const img = activeImage.querySelector('img');
|
64945
|
+
if (img) {
|
64946
|
+
img.style.width = '100%';
|
64947
|
+
img.style.height = '100%';
|
64948
|
+
}
|
64937
64949
|
}
|
64938
64950
|
if (this.builder.opts.emailMode) {
|
64939
64951
|
//activeImage.setAttribute('width', percentage + '%');
|
@@ -90096,6 +90108,12 @@ class ContentStuff$1 {
|
|
90096
90108
|
<symbol viewBox="0 0 512 512" id="ion-volume-medium">
|
90097
90109
|
<path d="M270 407.7V104.4L175.3 192H71v128h104.3zm56.3-52.1c20.5-27.8 32.8-62.3 32.8-99.6 0-37.4-12.3-71.8-32.8-99.6l-20.4 15.3c17.4 23.6 27.8 52.7 27.8 84.3 0 31.6-10.4 60.7-27.8 84.3l20.4 15.3zm66.5 46c30-40.7 48-91 48-145.6s-18-104.9-48-145.6l-20.4 15.3c26.9 36.4 43 81.4 43 130.3 0 48.9-16.1 93.8-43 130.3l20.4 15.3z"/>
|
90098
90110
|
</symbol>
|
90111
|
+
<symbol id="icon-folder2" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
90112
|
+
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
90113
|
+
<path d="M11 19h-6a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2h4l3 3h7a2 2 0 0 1 2 2v2.5"></path>
|
90114
|
+
<path d="M18 18m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"></path>
|
90115
|
+
<path d="M20.2 20.2l1.8 1.8"></path>
|
90116
|
+
</symbol>
|
90099
90117
|
</defs>
|
90100
90118
|
</svg>
|
90101
90119
|
|