Add a FIXME for the measure function to go away
This commit is contained in:
@@ -743,6 +743,7 @@ class CanvasExecutor {
|
|||||||
this.widths_[font] = widths = {};
|
this.widths_[font] = widths = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//FIXME Do not create this function on every call
|
||||||
const measure = function(text) {
|
const measure = function(text) {
|
||||||
let width = widths[text];
|
let width = widths[text];
|
||||||
if (!width) {
|
if (!width) {
|
||||||
|
|||||||
Reference in New Issue
Block a user