iniquity

A re-imagining of the iconic BBS software.

View on GitHub

Class: TextStyleProcessor

runtime/mci/text-styles.TextStyleProcessor

Table of contents

Constructors

Methods

Constructors

constructor

new TextStyleProcessor()

Methods

apply

apply(text, styleName): string

Parameters

Name Type
text string
styleName string

Returns

string

Defined in

core/src/mci/text-styles.ts:243


hasStyle

hasStyle(name): boolean

Parameters

Name Type
name string

Returns

boolean

Defined in

core/src/mci/text-styles.ts:266


listStyles

listStyles(): string[]

Returns

string[]

Defined in

core/src/mci/text-styles.ts:260


registerStyle

registerStyle(name, fn): void

Parameters

Name Type
name string
fn TextStyleFunction

Returns

void

Defined in

core/src/mci/text-styles.ts:252


unregisterStyle

unregisterStyle(name): boolean

Parameters

Name Type
name string

Returns

boolean

Defined in

core/src/mci/text-styles.ts:256