v2's PrecalculateWordWrap -> getWrappedText

This commit is contained in:
Michael Hadley 2017-12-13 15:09:06 -06:00
parent 2fe60ffbf9
commit d003945a66

View file

@ -323,6 +323,16 @@ var Text = new Class({
return result;
},
getWrappedText: function (text)
{
if (text === undefined) { text = this.text; }
var wrappedLines = this.runWordWrap(text);
return wrappedLines.split(/(?:\r\n|\r|\n)/);
},
setText: function (value)
{
if (Array.isArray(value))