src/graph/util/appendFittedText.js
function computeWords(text) {
    var words = text.split(/\s+/g); // To hyphenate: /\s+|(?<=-)/
    if (!words[words.length - 1]) words.pop();
    if (!words[0]) words.shift();
    return words;
}
function computeWords(text) {
    var words = text.split(/\s+/g); // To hyphenate: /\s+|(?<=-)/
    if (!words[words.length - 1]) words.pop();
    if (!words[0]) words.shift();
    return words;
}
function computeWords ( text ) { var words = text . split ( / \s+ / g ) ; // To hyphenate: /\s+|(?<=-)/ if ( ! words [ words . length - 1 ] ) words . pop ( ) ; if ( ! words [ 0 ] ) words . shift ( ) ; return words ; }
Split text into words.

@param text
@return {*|string[]}
Split text into words .