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.
6 lines
264 B
6 lines
264 B
import type { Text } from '../shapes';
|
|
import { applyToText } from './text';
|
|
|
|
export function wrapIt(node: Text, wordWrapWidth: number, maxLines = 2, textBaseline: string = 'top') {
|
|
applyToText(node, { wordWrap: true, wordWrapWidth, maxLines, textBaseline });
|
|
}
|
|
|