Răsfoiți Sursa

remove unused function getMinCharWidth

Aakansha Doshi 2 ani în urmă
părinte
comite
fd18896293
1 a modificat fișierele cu 0 adăugiri și 10 ștergeri
  1. 0 10
      src/element/textMeasurements.ts

+ 0 - 10
src/element/textMeasurements.ts

@@ -112,16 +112,6 @@ export const charWidth = (() => {
   };
 })();
 
-export const getMinCharWidth = (font: FontString) => {
-  const cache = charWidth.getCache(font);
-  if (!cache) {
-    return 0;
-  }
-  const cacheWithOutEmpty = cache.filter((val) => val !== undefined);
-
-  return Math.min(...cacheWithOutEmpty);
-};
-
 export const getMaxCharWidth = (font: FontString) => {
   const cache = charWidth.getCache(font);
   if (!cache) {