chafa-wasm
Ƭ ChafaConfig: Object
An object that holds the output configuration. Supports most of the options of the Chafa command-line utility, see its documentation for details.
See
https://hpjansson.org/chafa/man/
Name | Type |
---|---|
bg |
number |
colorExtractor |
number | string |
colorSpace |
number | string |
colors |
number | string |
dither |
number | string |
ditherGrainHeight |
number |
ditherGrainWidth |
number |
ditherIntensity |
number |
fg |
number |
fgOnly |
boolean |
fill |
string |
fontRatio |
number |
height |
number |
optimize |
number |
preprocess |
boolean |
symbols |
string |
threshold |
number |
width |
number |
work |
number |
Ƭ ImageDataLike: Object
▪ [x: string
| number
| symbol
]: any
Name | Type |
---|---|
data |
Uint8ClampedArray |
height |
number |
width |
number |
Ƭ PartialChafaConfig: { [P in keyof ChafaConfig]?: ChafaConfig[P] | string }
Ƭ ReadonlyChafaConfig: { readonly [P in keyof ChafaConfig]: ChafaConfig[P] }