|
|
@ -973,7 +973,7 @@ var TextLayerBuilder = function textLayerBuilder(textLayerDiv) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
var textDiv = textDivs.shift(); |
|
|
|
var textDiv = textDivs.shift(); |
|
|
|
if (textDiv.dataset.textLength >= 1) { // avoid div by zero
|
|
|
|
if (textDiv.dataset.textLength > 1) { // avoid div by zero
|
|
|
|
textLayerDiv.appendChild(textDiv); |
|
|
|
textLayerDiv.appendChild(textDiv); |
|
|
|
// Adjust div width (via letterSpacing) to match canvas text
|
|
|
|
// Adjust div width (via letterSpacing) to match canvas text
|
|
|
|
// Due to the .offsetWidth calls, this is slow
|
|
|
|
// Due to the .offsetWidth calls, this is slow
|
|
|
|