mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
Merge pull request #536 from VladimirTechMan/master
Spelling correction to variable name
This commit is contained in:
commit
fd2ff292e1
@ -336,11 +336,11 @@ export class Text extends Shape {
|
||||
return this.textArr.push({ text: line, width: width });
|
||||
}
|
||||
_getTextWidth(text) {
|
||||
var latterSpacing = this.letterSpacing();
|
||||
var letterSpacing = this.letterSpacing();
|
||||
var length = text.length;
|
||||
return (
|
||||
getDummyContext().measureText(text).width +
|
||||
(length ? latterSpacing * (length - 1) : 0)
|
||||
(length ? letterSpacing * (length - 1) : 0)
|
||||
);
|
||||
}
|
||||
_setTextData() {
|
||||
|
Loading…
Reference in New Issue
Block a user