CoreFiles by mySites.guru
fit-text-frontend.min.js1 lines, 944 bytes, from wordpress-6.9-RC1.zip
Raw History Compare with 6.8.2-RC1
md5
fd268c7189137ab8d0854f5b29169a21
sha1
e1fa38dba600d62cd1a0a626340d9c61ce677674
sha256
6e612ceb56532d171de05da9db19e57cc88aa73cb0a7def85f01dcfbed25dd39
import*as e from"@wordpress/interactivity";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const n=(e=>{var n={};return t.d(n,e),n})({getContext:()=>e.getContext,getElement:()=>e.getElement,store:()=>e.store});function r(e,t){if(!e)return;t(0);const n=function(e,t){const n=e.scrollHeight>e.clientHeight;let r=5,o=2400,i=r;for(;r<=o;){const s=Math.floor((r+o)/2);t(s);const c=e.scrollWidth<=e.clientWidth,l=n||e.scrollHeight<=e.clientHeight;c&&l?(i=s,r=s+1):o=s-1}return i}(e,t);return t(n),n}(0,n.store)("core/fit-text",{callbacks:{init(){const e=(0,n.getContext)(),{ref:t}=(0,n.getElement)(),o=e=>{t.style.fontSize=0===e?"":`${e}px`};if(e.fontSize=r(t,o),window.ResizeObserver&&t.parentElement){const n=new window.ResizeObserver((()=>{e.fontSize=r(t,o)}));return n.observe(t.parentElement),n.observe(t),()=>{n&&n.disconnect()}}}}});

No other release has this exact content. See every version of this file.