@innovastudio/contentbuilder 1.4.110 → 1.4.112
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/package.json
CHANGED
|
@@ -49811,11 +49811,23 @@ class Image$1 {
|
|
|
49811
49811
|
var elementWidth = activeImage.parentNode.offsetWidth - paddingX - borderX;
|
|
49812
49812
|
//var elementHeight = activeImage.parentNode.offsetHeight - paddingY - borderY;
|
|
49813
49813
|
|
|
49814
|
+
let currentWidth;
|
|
49814
49815
|
if (!bCircular) {
|
|
49815
|
-
|
|
49816
|
-
|
|
49817
|
-
|
|
49816
|
+
const parentWidth = elementWidth; //activeImage.parentNode.offsetWidth;
|
|
49817
|
+
currentWidth = activeImage.offsetWidth;
|
|
49818
|
+
const percentage = currentWidth / parentWidth * 100;
|
|
49818
49819
|
activeImage.style.width = percentage + '%';
|
|
49820
|
+
} else {
|
|
49821
|
+
const _screenwidth = window.innerWidth;
|
|
49822
|
+
currentWidth = activeImage.offsetWidth;
|
|
49823
|
+
const percentage = currentWidth / _screenwidth * 100;
|
|
49824
|
+
activeImage.style.width = percentage + 'vw';
|
|
49825
|
+
activeImage.style.height = percentage + 'vw';
|
|
49826
|
+
const img = activeImage.querySelector('img');
|
|
49827
|
+
if (img) {
|
|
49828
|
+
img.style.width = '100%';
|
|
49829
|
+
img.style.height = '100%';
|
|
49830
|
+
}
|
|
49819
49831
|
}
|
|
49820
49832
|
if (this.builder.opts.emailMode) {
|
|
49821
49833
|
//activeImage.setAttribute('width', percentage + '%');
|
|
@@ -74978,6 +74990,12 @@ class ContentStuff {
|
|
|
74978
74990
|
<symbol viewBox="0 0 512 512" id="ion-volume-medium">
|
|
74979
74991
|
<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"/>
|
|
74980
74992
|
</symbol>
|
|
74993
|
+
<symbol id="icon-folder2" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
74994
|
+
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
74995
|
+
<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>
|
|
74996
|
+
<path d="M18 18m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"></path>
|
|
74997
|
+
<path d="M20.2 20.2l1.8 1.8"></path>
|
|
74998
|
+
</symbol>
|
|
74981
74999
|
</defs>
|
|
74982
75000
|
</svg>
|
|
74983
75001
|
|