Skip to main content

rendering

ai-research-agent / editor/rendering/rendering

Functions

combineLines()

function combineLines(editor, lines): CombinedData

Parameters

ParameterType

editor

Editor

lines

default[]

Returns

CombinedData


getChangedRanges()

function getChangedRanges(oldC, newC): LineRanges

Parameters

ParameterType

oldC

Combined

newC

Combined

Returns

LineRanges


getLineNodeEnd()

function getLineNodeEnd(root, node): number

Parameters

ParameterType

root

HTMLElement

node

Node

Returns

number


getLineNodeStart()

function getLineNodeStart(root, node): number

Parameters

ParameterType

root

HTMLElement

node

Node

Returns

number


render()

function render(editor, doc): void

Parameters

ParameterType

editor

Editor

doc

default

Returns

void


renderChanges()

function renderChanges(
editor,
oldDoc,
newDoc): void

Parameters

ParameterType

editor

Editor

oldDoc

default

newDoc

default

Returns

void


renderCombined()

function renderCombined(
editor,
combined,
forHTML?): VNode[]

Parameters

ParameterType

editor

Editor

combined

Combined

forHTML?

boolean

Returns

VNode[]


renderDoc()

function renderDoc(
editor,
doc,
forHTML?): VNode[]

Parameters

ParameterType

editor

Editor

doc

default

forHTML?

boolean

Returns

VNode[]


renderInline()

function renderInline(
editor,
line,
forHTML?): VChild[]

Parameters

ParameterType

editor

Editor

line

default

forHTML?

boolean

Returns

VChild[]


renderLine()

function renderLine(
editor,
line,
forHTML?): VNode

Parameters

ParameterType

editor

Editor

line

CombinedEntry

forHTML?

boolean

Returns

VNode


renderMultiLine()

function renderMultiLine(
editor,
lines,
forHTML?): VNode

Parameters

ParameterType

editor

Editor

lines

default[]

forHTML?

boolean

Returns

VNode


renderSingleLine()

function renderSingleLine(
editor,
line,
forHTML?): VNode

Parameters

ParameterType

editor

Editor

line

default

forHTML?

boolean

Returns

VNode


setLineNodesRanges()

function setLineNodesRanges(editor): void

Parameters

ParameterType

editor

Editor

Returns

void

Interfaces

HTMLLineElement

Extends

  • HTMLElement

Properties

key
key: string;

Type Aliases

Combined

type Combined: CombinedEntry[];

CombinedEntry

type CombinedEntry: default | default[];