You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
369 B
7 lines
369 B
|
4 months ago
|
import { applyToText } from './text';
|
||
|
|
export function wrapIt(node, wordWrapWidth, maxLines, textBaseline) {
|
||
|
|
if (maxLines === void 0) { maxLines = 2; }
|
||
|
|
if (textBaseline === void 0) { textBaseline = 'top'; }
|
||
|
|
applyToText(node, { wordWrap: true, wordWrapWidth: wordWrapWidth, maxLines: maxLines, textBaseline: textBaseline });
|
||
|
|
}
|
||
|
|
//# sourceMappingURL=wrap.js.map
|