-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbrowser.d.ts
13 lines (12 loc) · 830 Bytes
/
browser.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
/**
* @author Toru Nagashima <https://github.com/mysticatea>
* @copyright 2016 Toru Nagashima. All rights reserved.
* See LICENSE file in root directory for full license.
*/
export function getWidth(text: string, widthOfWideCharacter?: number): number
export function getWidth(texts: string[], widthOfWideCharacter?: number): number[]
export function getWidth(texts: Iterable<string>, widthOfWideCharacter?: number): IterableIterator<number>
export function isNarrowCharacter(character: string): boolean
export function split(text: string, maxPerLine: number, widthOfWideCharacter?: number): string[]
export function split(texts: string[], maxPerLine: number, widthOfWideCharacter?: number): string[]
export function split(texts: Iterable<string>, maxPerLine: number, widthOfWideCharacter?: number): IterableIterator<string>