Add more typecast for typescript
This commit is contained in:
@@ -300,6 +300,9 @@ function getMeasureContext() {
|
||||
* @return {import("../size.js").Size} Measurement.
|
||||
*/
|
||||
export const measureTextHeight = (function() {
|
||||
/**
|
||||
* @type {HTMLDivElement}
|
||||
*/
|
||||
let div;
|
||||
const heights = textHeights;
|
||||
return function(font) {
|
||||
|
||||
Reference in New Issue
Block a user