remove unused function getMinCharWidth
This commit is contained in:
parent
e900cb0b64
commit
fd18896293
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user