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:263


hasStyle

▸ hasStyle(name): boolean

Parameters

Name Type
name string

Returns

boolean

Defined in

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


listStyles

▸ listStyles(): string[]

Returns

string[]

Defined in

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


registerStyle

▸ registerStyle(name, fn): void

Parameters

Name Type
name string
fn TextStyleFunction

Returns

void

Defined in

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


unregisterStyle

▸ unregisterStyle(name): boolean

Parameters

Name Type
name string

Returns

boolean

Defined in

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