|
|
|
@ -288,9 +288,8 @@ var CanvasGraphics = (function canvasGraphics() {
@@ -288,9 +288,8 @@ var CanvasGraphics = (function canvasGraphics() {
|
|
|
|
|
// Adjust div width (via letterSpacing) to match canvas text
|
|
|
|
|
// Due to the .offsetWidth calls, this is slow
|
|
|
|
|
textDivs[i].style.letterSpacing = |
|
|
|
|
((textDivs[i].dataset.canvasWidth |
|
|
|
|
- textDivs[i].offsetWidth)/(textDivs[i].dataset.textLength-1)) |
|
|
|
|
+ 'px'; |
|
|
|
|
((textDivs[i].dataset.canvasWidth - textDivs[i].offsetWidth) / |
|
|
|
|
(textDivs[i].dataset.textLength - 1)) + 'px'; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|