IState Interface

Packages > @anticrm/text > IState

Signature:

export interface IState 

Properties

List of properties of this interface
Property Type Description
atBlank () => void
closeBlock (node: any) => void
ensureNewLine () => void
esc (str: string, startOfLine?: boolean) => string
flushClose (size: number) => void
getEnclosingWhitespace (text: string) => { leading: string; trailing: string; }
markString (mark: MessageMark, open: boolean, parent: MessageNode, index: number) => string
quote (str: string) => string
render (node: MessageNode, parent: MessageNode, index: number) => void
renderContent (parent: MessageNode) => void
renderInline (parent: MessageNode) => void
renderList (node: MessageNode, delim: string, firstDelim: FirstDelim) => void
repeat (str: string, n: number) => string
text (text: string, escape?: boolean) => void
wrapBlock (delim: string, firstDelim: string | null, node: MessageNode, f: () => void) => void
write (content: string) => void

Events

atBlank

Signature:

atBlank: () => void;

closeBlock

Signature:

closeBlock: (node: any) => void;

ensureNewLine

Signature:

ensureNewLine: () => void;

esc

Signature:

esc: (str: string, startOfLine?: boolean) => string;

flushClose

Signature:

flushClose: (size: number) => void;

getEnclosingWhitespace

Signature:

getEnclosingWhitespace: (text: string) => {
        leading: string;
        trailing: string;
    };

markString

Signature:

markString: (mark: MessageMark, open: boolean, parent: MessageNode, index: number) => string;

quote

Signature:

quote: (str: string) => string;

render

Signature:

render: (node: MessageNode, parent: MessageNode, index: number) => void;

renderContent

Signature:

renderContent: (parent: MessageNode) => void;

renderInline

Signature:

renderInline: (parent: MessageNode) => void;

renderList

Signature:

renderList: (node: MessageNode, delim: string, firstDelim: FirstDelim) => void;

repeat

Signature:

repeat: (str: string, n: number) => string;

text

Signature:

text: (text: string, escape?: boolean) => void;

wrapBlock

Signature:

wrapBlock: (delim: string, firstDelim: string | null, node: MessageNode, f: () => void) => void;

write

Signature:

write: (content: string) => void;