|
1 | | -// https://lib.presenta.cc v1.0.4 - BSD-3-Clause License - Copyright 2021 Fabio Franchino |
| 1 | +// https://lib.presenta.cc v1.0.5 - BSD-3-Clause License - Copyright 2021 Fabio Franchino |
2 | 2 | (function (global, factory) { |
3 | 3 | typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : |
4 | 4 | typeof define === 'function' && define.amd ? define(factory) : |
5 | 5 | (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Presenta = factory()); |
6 | 6 | })(this, (function () { 'use strict'; |
7 | 7 |
|
8 | | - var version = "1.0.4"; |
| 8 | + var version = "1.0.5"; |
9 | 9 |
|
10 | 10 | function styleInject(css, ref) { |
11 | 11 | if ( ref === void 0 ) ref = {}; |
@@ -1181,7 +1181,7 @@ window._sdpcallbackfunc() |
1181 | 1181 | modules[type] = module; |
1182 | 1182 | }; |
1183 | 1183 |
|
1184 | | - var css_248z$b = ".style_text__3T1cl{width:100%;height:100%;position:relative;--textAlign:center;--textVertical:center;--textHorizontal:center;--textSize:1rem;--textWidth:auto;--textFont:var(--fontText);--textBackground:none;--textColor:var(--colorFore);--textPadding:0;--textInterline:inherit;--textSpacing:inherit;--textBorderTop:inherit;--textBorderLeft:inherit;--textBorderRight:inherit;--textBorderBottom:inherit;--textRadius:0;--textShadow:none;--textBlend:none;--textClamp:0}.style_promise__1-2R_{visibility:hidden}.style_inner__11UJC{position:relative;width:100%;height:100%}.style_pretext__cLjqD{display:flex;width:100%;height:100%;align-items:var(--textVertical);justify-content:var(--textHorizontal)}.style_textbox__1Vb-V{text-align:var(--textAlign);font-size:var(--textSize);font-family:var(--textFont);--backmark:var(--colorAccent);--foremark:var(--colorBack);--textaccentcolor:var(--colorAccent);width:var(--textWidth)}.style_itext__jz90o{padding:var(--textPadding);background:var(--textBackground);color:var(--textColor);line-height:var(--textInterline);letter-spacing:var(--textSpacing);border-top:var(--textBorderTop);border-left:var(--textBorderLeft);border-right:var(--textBorderRight);border-bottom:var(--textBorderBottom);border-radius:var(--textRadius);box-shadow:var(--textShadow);mix-blend-mode:var(--textBlend)}.style_itext__jz90o img{-o-object-fit:contain;object-fit:contain;height:4em;vertical-align:middle}.style_itext__jz90o mark{background-color:var(--backmark);color:var(--foremark);padding:.5rem}.style_itext__jz90o high{color:var(--textaccentcolor)}.style_itext__jz90o bord{border:8px solid var(--backmark);padding:0 .5rem}.style_itext__jz90o a{color:var(--textaccentcolor);text-decoration:underline}.style_itext__jz90o btn{background-color:var(--colorFore);color:var(--colorBack);padding:1rem 2rem;display:inline-block;border-radius:12px;overflow:hidden}.style_itext__jz90o blockquote{font-size:2em;font-weight:400;font-style:italic;font-family:var(--fontAlt)}.style_itext__jz90o blockquote,.style_itext__jz90o h1,.style_itext__jz90o h2,.style_itext__jz90o h3,.style_itext__jz90o h4,.style_itext__jz90o h5,.style_itext__jz90o h6,.style_itext__jz90o p,.style_itext__jz90o ul{margin:0}.style_itext__jz90o h1 b,.style_itext__jz90o h1 strong,.style_itext__jz90o h2 b,.style_itext__jz90o h2 strong,.style_itext__jz90o h3 b,.style_itext__jz90o h3 strong,.style_itext__jz90o h4 b,.style_itext__jz90o h4 strong,.style_itext__jz90o h5 b,.style_itext__jz90o h5 strong,.style_itext__jz90o h6 b,.style_itext__jz90o h6 strong{color:var(--textaccentcolor)}.style_itext__jz90o ol,.style_itext__jz90o ul{text-align:left;margin:0;list-style-type:none;counter-reset:li;padding:.5em 0}.style_itext__jz90o li{list-style-position:inside;margin-bottom:2px;padding:.25em .25em .25em .8em}.style_itext__jz90o ul li:before{content:\"\\2013\";display:inline-block;width:.8em;margin-left:-.8em}.style_itext__jz90o ol li:before{counter-increment:li;content:\".\" counter(li);display:inline-block;width:1.1em;margin-left:-1.3em;margin-right:.2em;text-align:right;direction:rtl}.style_itext__jz90o li p{display:inline}.style_itext__jz90o code,.style_itext__jz90o pre{text-align:left;margin:0}.style_itext__jz90o h1,.style_itext__jz90o h2,.style_itext__jz90o h3,.style_itext__jz90o h4,.style_itext__jz90o h5,.style_itext__jz90o h6{font-family:var(--fontHead);padding:.5rem 0}.style_itext__jz90o h1{font-size:2em}.style_itext__jz90o h2{font-size:1.5em}.style_itext__jz90o h3{font-size:1.17em}.style_itext__jz90o h4{font-size:1em}.style_itext__jz90o h5{font-size:.83em}.style_itext__jz90o h6{font-size:.67em}.style_itext__jz90o p{padding:.5rem 0}.style_itext__jz90o p:first-child{padding-top:0}.style_itext__jz90o p:last-child{padding-bottom:0}.style_itext__jz90o hr{border:1px solid var(--colorFore);margin:.5rem 0}.style_itext__jz90o h1:first-child,.style_itext__jz90o h1:last-child,.style_itext__jz90o h2:first-child,.style_itext__jz90o h2:last-child,.style_itext__jz90o h3:first-child,.style_itext__jz90o h3:last-child{padding:0}.style_itext__jz90o table{width:100%}.style_itext__jz90o tr{padding:0}.style_itext__jz90o td,.style_itext__jz90o th{padding:.5rem;border-bottom:1px solid var(--colorFore)}.style_itext__jz90o small{font-size:.6em}.style_marked__3bbXu span{background:var(--textAccent);color:var(--textColor)}.style_uppercase__2Fiv7{text-transform:uppercase}.style_underline__3GnC9{text-decoration:underline;-webkit-text-decoration-color:var(--textColor);text-decoration-color:var(--textColor)}.style_clamp__J1SFM{overflow:hidden;-webkit-line-clamp:var(--textClamp);display:-webkit-box;-webkit-box-orient:vertical}"; |
| 1184 | + var css_248z$b = ".style_text__3T1cl{width:100%;height:100%;position:relative;--textAlign:center;--textVertical:center;--textHorizontal:center;--textSize:1rem;--textWidth:auto;--textFont:var(--fontText);--textBackground:none;--textColor:var(--colorFore);--textPadding:0;--textInterline:inherit;--textSpacing:inherit;--textBorderTop:inherit;--textBorderLeft:inherit;--textBorderRight:inherit;--textBorderBottom:inherit;--textRadius:0;--textShadow:none;--textBlend:none;--textClamp:0}.style_promise__1-2R_{visibility:hidden}.style_inner__11UJC{position:relative;width:100%;height:100%}.style_pretext__cLjqD{display:flex;width:100%;height:100%;align-items:var(--textVertical);justify-content:var(--textHorizontal)}.style_textbox__1Vb-V{text-align:var(--textAlign);font-size:var(--textSize);font-family:var(--textFont);--backmark:var(--colorAccent);--foremark:var(--colorBack);--textaccentcolor:var(--colorAccent);width:var(--textWidth)}.style_itext__jz90o{padding:var(--textPadding);background:var(--textBackground);color:var(--textColor);line-height:var(--textInterline);letter-spacing:var(--textSpacing);border-top:var(--textBorderTop);border-left:var(--textBorderLeft);border-right:var(--textBorderRight);border-bottom:var(--textBorderBottom);border-radius:var(--textRadius);box-shadow:var(--textShadow);mix-blend-mode:var(--textBlend)}.style_itext__jz90o img{-o-object-fit:contain;object-fit:contain;height:4em;vertical-align:middle}.style_itext__jz90o mark{background-color:var(--backmark);color:var(--foremark);padding:.5rem}.style_itext__jz90o high{color:var(--textaccentcolor)}.style_itext__jz90o bord{border:8px solid var(--backmark);padding:0 .5rem}.style_itext__jz90o a{color:var(--textaccentcolor);text-decoration:underline}.style_itext__jz90o btn{background-color:var(--colorFore);color:var(--colorBack);padding:1rem 2rem;display:inline-block;border-radius:12px;overflow:hidden}.style_itext__jz90o blockquote{font-size:2em;font-weight:400;font-style:italic;font-family:var(--fontAlt)}.style_itext__jz90o blockquote,.style_itext__jz90o h1,.style_itext__jz90o h2,.style_itext__jz90o h3,.style_itext__jz90o h4,.style_itext__jz90o h5,.style_itext__jz90o h6,.style_itext__jz90o p,.style_itext__jz90o ul{margin:0}.style_itext__jz90o h1 b,.style_itext__jz90o h1 strong,.style_itext__jz90o h2 b,.style_itext__jz90o h2 strong,.style_itext__jz90o h3 b,.style_itext__jz90o h3 strong,.style_itext__jz90o h4 b,.style_itext__jz90o h4 strong,.style_itext__jz90o h5 b,.style_itext__jz90o h5 strong,.style_itext__jz90o h6 b,.style_itext__jz90o h6 strong{color:var(--textaccentcolor)}.style_itext__jz90o ol,.style_itext__jz90o ul{text-align:left;margin:0;list-style-type:none;counter-reset:li;padding:.5em 0}.style_itext__jz90o li{list-style-position:inside;margin-bottom:2px;padding:.25em .25em .25em .8em}.style_itext__jz90o ul li:before{content:\"\\2013\";display:inline-block;width:.8em;margin-left:-.8em}.style_itext__jz90o ol li:before{counter-increment:li;content:\".\" counter(li);display:inline-block;width:1.1em;margin-left:-1.3em;margin-right:.2em;text-align:right;direction:rtl}.style_itext__jz90o li p{display:inline}.style_itext__jz90o code,.style_itext__jz90o pre{text-align:left;margin:0}.style_itext__jz90o h1,.style_itext__jz90o h2,.style_itext__jz90o h3,.style_itext__jz90o h4,.style_itext__jz90o h5,.style_itext__jz90o h6{font-family:var(--fontHead);padding:.5rem 0}.style_itext__jz90o h1{font-size:2em}.style_itext__jz90o h2{font-size:1.5em}.style_itext__jz90o h3{font-size:1.17em}.style_itext__jz90o h4{font-size:1em}.style_itext__jz90o h5{font-size:.83em}.style_itext__jz90o h6{font-size:.67em}.style_itext__jz90o p{padding:.5rem 0}.style_itext__jz90o p:first-child{padding-top:0}.style_itext__jz90o p:last-child{padding-bottom:0}.style_itext__jz90o hr{border:1px solid var(--colorFore);margin:.5rem 0}.style_itext__jz90o h1:first-child,.style_itext__jz90o h1:last-child,.style_itext__jz90o h2:first-child,.style_itext__jz90o h2:last-child,.style_itext__jz90o h3:first-child,.style_itext__jz90o h3:last-child{padding:0}.style_itext__jz90o table{width:100%}.style_itext__jz90o tr{padding:0}.style_itext__jz90o td,.style_itext__jz90o th{padding:.5rem;border-bottom:1px solid var(--colorFore)}.style_itext__jz90o small{font-size:.6em}.style_marked__3bbXu span{background:var(--textAccent);color:var(--textColor)}.style_uppercase__2Fiv7 span{text-transform:uppercase}.style_underline__3GnC9 span{text-decoration:underline;-webkit-text-decoration-color:var(--textColor);text-decoration-color:var(--textColor)}.style_clamp__J1SFM{overflow:hidden;-webkit-line-clamp:var(--textClamp);display:-webkit-box;-webkit-box-orient:vertical}"; |
1185 | 1185 | var css$b = {"text":"style_text__3T1cl","promise":"style_promise__1-2R_","inner":"style_inner__11UJC","pretext":"style_pretext__cLjqD","textbox":"style_textbox__1Vb-V","itext":"style_itext__jz90o","marked":"style_marked__3bbXu","uppercase":"style_uppercase__2Fiv7","underline":"style_underline__3GnC9","clamp":"style_clamp__J1SFM"}; |
1186 | 1186 | styleInject(css_248z$b); |
1187 | 1187 |
|
@@ -1296,7 +1296,8 @@ window._sdpcallbackfunc() |
1296 | 1296 | const bbox = el.getBoundingClientRect(); |
1297 | 1297 |
|
1298 | 1298 | if (parseInt(mbox.width) < parseInt(bbox.width) || parseInt(mbox.height) < parseInt(bbox.height)) { |
1299 | | - fsize -= 0.05; |
| 1299 | + const vf = funit === 'px' ? 0.5 : 0.05; |
| 1300 | + fsize -= vf; |
1300 | 1301 | return setTimeout(compute); |
1301 | 1302 | } else { |
1302 | 1303 | setTimeout(() => { |
@@ -1789,7 +1790,7 @@ window._sdpcallbackfunc() |
1789 | 1790 | var css$1 = {"sceneContainer":"scene_sceneContainer__IgSpB","visible":"scene_visible__3JU3x","scene":"scene_scene__3uvTl","promise":"scene_promise__24VCP","wrapper":"scene_wrapper__3yr1k","content":"scene_content__1rJf0","viewport":"scene_viewport__3uNLS"}; |
1790 | 1791 | styleInject(css_248z$1); |
1791 | 1792 |
|
1792 | | - var css_248z = ":root{--left:inherit;--top:inherit;--width:100%;--height:100%;--angle:0;--skew:0;--right:inherit;--bottom:inherit;--position:absolute;--radius:none}.block_block__BWbaZ{top:var(--top);left:var(--left);width:var(--width);height:var(--height);bottom:var(--bottom);right:var(--right);position:var(--position);--blockColor:var(--colorFore);--blockBorder:0;transform-origin:top left;transform:rotate(var(--angle)) skew(var(--skew))}.block_inner__3LS6s{opacity:var(--blockOpacity);mix-blend-mode:var(--blockBlend);-webkit-clip-path:var(--blockClip);clip-path:var(--blockClip);box-shadow:var(--blockShadow);overflow:hidden}.block_subinner__3Mwvc{width:100%;height:100%;background:var(--blockBackground);color:var(--blockColor);padding:var(--blockPadding);border-radius:var(--blockRadius);border-width:var(--blockBorder);border-style:solid;overflow:hidden}.block_inner__3LS6s{top:0;left:0;width:100%;height:100%;position:absolute}"; |
| 1793 | + var css_248z = ":root{--left:inherit;--top:inherit;--width:100%;--height:100%;--angle:0;--skew:0;--right:inherit;--bottom:inherit;--position:absolute;--radius:none}.block_block__BWbaZ{top:var(--top);left:var(--left);width:var(--width);height:var(--height);bottom:var(--bottom);right:var(--right);position:var(--position);--blockColor:var(--colorFore);--blockBorder:0;transform:rotate(var(--angle)) skew(var(--skew))}.block_inner__3LS6s{opacity:var(--blockOpacity);mix-blend-mode:var(--blockBlend);-webkit-clip-path:var(--blockClip);clip-path:var(--blockClip);box-shadow:var(--blockShadow);overflow:hidden}.block_subinner__3Mwvc{width:100%;height:100%;background:var(--blockBackground);color:var(--blockColor);padding:var(--blockPadding);border-radius:var(--blockRadius);border-width:var(--blockBorder);border-style:solid;overflow:hidden}.block_inner__3LS6s{top:0;left:0;width:100%;height:100%;position:absolute}"; |
1793 | 1794 | var css = {"block":"block_block__BWbaZ","inner":"block_inner__3LS6s","subinner":"block_subinner__3Mwvc"}; |
1794 | 1795 | styleInject(css_248z); |
1795 | 1796 |
|
|
0 commit comments