hunk.code_window:   if (!container.value || innerSize.width.value <= 0)
       return
     const ratio = containerSize.width.value / innerSize.width.value
     if (isNaN(ratio) || ratio <= 0)
       return
     let newSize = size.value * (containerSize.width.value / innerSize.width.value)
     if (newSize < props.min) {
       wrapLen.value = value.value.length
       wrap.value = ''
  
hunk.labels: keep keep keep replace keep keep keep keep keep
hunk.after_edit:   if (Number.isNaN(ratio) || ratio <= 0)
  
hunk.file_path: packages/client/builtin/AutoFitText.vue
hunk.type: replace
file: # {{package-name}}
  
  [![NPM version](https://img.shields.io/npm/v/{{package-name}}?color=3AB9D4&label=)](https://www.npmjs.com/package/{{package-name}})
  
  A (...) theme for [Slidev](https://github.com/slidevjs/slidev).
  
  <!--
    Learn more about how to write a theme:
    https://sli.dev/themes/write-a-theme.html
  --->
  
  <!--
    run `npm run dev` to check out the slides for more details of how to start writing a theme
  -->
  
  <!--
    Put some screenshots here to demonstrate your theme
  
    Live demo: [...]
  -->
  
  ## Install
  
  Add the following frontmatter to your `slides.md`. Start Slidev then it will prompt you to install the theme automatically.
  
  <pre><code>---
  theme: <b>{{name}}</b>
  ---</code></pre>
  
  Learn more about [how to use a theme](https://sli.dev/themes/use).
  
  ## Layouts
  
  This theme provides the following layouts:
  
  > TODO:
  
  ## Components
  
  This theme provides the following components:
  
  > TODO:
  
  ## Contributing
  
  - `npm install`
  - `npm run dev` to start theme preview of `example.md`
  - Edit the `example.md` and style to see the changes
  - `npm run export` to generate the preview PDF
  - `npm run screenshot` to generate the preview PNG
  