mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-19 23:40:45 +02:00
remove unused function getMinCharWidth
This commit is contained in:
@@ -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) => {
|
export const getMaxCharWidth = (font: FontString) => {
|
||||||
const cache = charWidth.getCache(font);
|
const cache = charWidth.getCache(font);
|
||||||
if (!cache) {
|
if (!cache) {
|
||||||
|
Reference in New Issue
Block a user