0.0.4 • Published 1 month ago

@altano/textfit v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

@altano/textfit - Hassle-Free Text Fitting

A fork of STRML/textFit (@7a1eed6db54a97798556eed3c57b2ce1f87dbab4). Has the following changes:

  • Convert to ESM module
  • Remove .min.js file
  • Convert to TypeScript (with small code changes to accommodate)
  • Make inputs stricter
  • Adds the following settings to the defaults:
    settings = {
      ...
      /**
       * Sets the final size to the max multiple of this. Useful when a font
       * requires the font size to be a multiple of a number for optimal rendering.
       */
      sizeMultipleOf: 1,
    };
  • Remove the following settings (to simplify the code):
    • alignHoriz
    • alignVert
0.0.4

1 month ago

0.0.3

2 months ago

0.0.2

2 years ago

0.0.1

2 years ago