INNER CODE UNIT · JavaScript

compute

presenta-software/presenta-lib · src/blocks/text/index.js:101

    const compute = () => {
      child.style.setProperty('--textSize', `${fsize}${funit}`)

      const mel = child.querySelector('.' + css.inner)
      const el = child.querySelector('.' + css.textbox)

      if (!autoscale) {
        setTimeout(() => {
          child.classList.remove(css.promise)
          resolve(that)
        })
        return false
      }

      const mbox = mel.getBoundingClientRect()
      const bbox = el.getBoundingClientRect()

      if (parseInt(mbox.width) < parseInt(bbox.width) ||

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…