Skip to content

Latest commit

 

History

History
88 lines (59 loc) · 1.74 KB

README.md

File metadata and controls

88 lines (59 loc) · 1.74 KB

chafa-wasm

chafa-wasm

Table of contents

Namespaces

Interfaces

Type Aliases

Type Aliases

ChafaConfig

Ƭ 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/

Type declaration

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

Ƭ ImageDataLike: Object

Index signature

▪ [x: string | number | symbol]: any

Type declaration

Name Type
data Uint8ClampedArray
height number
width number

PartialChafaConfig

Ƭ PartialChafaConfig: { [P in keyof ChafaConfig]?: ChafaConfig[P] | string }


ReadonlyChafaConfig

Ƭ ReadonlyChafaConfig: { readonly [P in keyof ChafaConfig]: ChafaConfig[P] }