mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 15:23:44 +08:00
Spelling correction to variable name
This commit is contained in:
parent
60e425c596
commit
70ff42d017
@ -336,11 +336,11 @@ export class Text extends Shape {
|
|||||||
return this.textArr.push({ text: line, width: width });
|
return this.textArr.push({ text: line, width: width });
|
||||||
}
|
}
|
||||||
_getTextWidth(text) {
|
_getTextWidth(text) {
|
||||||
var latterSpacing = this.letterSpacing();
|
var letterSpacing = this.letterSpacing();
|
||||||
var length = text.length;
|
var length = text.length;
|
||||||
return (
|
return (
|
||||||
getDummyContext().measureText(text).width +
|
getDummyContext().measureText(text).width +
|
||||||
(length ? latterSpacing * (length - 1) : 0)
|
(length ? letterSpacing * (length - 1) : 0)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
_setTextData() {
|
_setTextData() {
|
||||||
|
Loading…
Reference in New Issue
Block a user