html2canvas
Version:
Screenshots with JavaScript
22 lines (20 loc) • 527 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
var WORD_BREAK = exports.WORD_BREAK = {
NORMAL: 'normal',
BREAK_ALL: 'break-all',
KEEP_ALL: 'keep-all'
};
var parseWordBreak = exports.parseWordBreak = function parseWordBreak(wordBreak) {
switch (wordBreak) {
case 'break-all':
return WORD_BREAK.BREAK_ALL;
case 'keep-all':
return WORD_BREAK.KEEP_ALL;
case 'normal':
default:
return WORD_BREAK.NORMAL;
}
};
;