Skip to main content

default

ai-research-agent / editor/document/Line / default

Functions

create()

function create(
content,
attributes,
id?): default

Parameters

ParameterType

content

default

attributes

default

id?

string | LineIds

Returns

default


createFrom()

function createFrom(
line?,
content?,
lineIds?): default

Parameters

ParameterType

line?

default

content?

default

lineIds?

LineIds

Returns

default


createId()

function createId(existing): string

Parameters

ParameterTypeDefault value

existing

LineIds

EMPTY_MAP

Returns

string


equal()

function equal(value, other): boolean

Parameters

ParameterType

value

default

other

default

Returns

boolean


fromDelta()

function fromDelta(delta, existing?): default[]

Parameters

ParameterType

delta

default

existing?

LineIds

Returns

default[]


getId()

function getId(line): string

Parameters

ParameterType

line

default

Returns

string


getLineRanges()

function getLineRanges(lines): LineRanges

Parameters

ParameterType

lines

default[]

Returns

LineRanges


iterator()

function iterator(lines, lineIds?): LineIterator

Parameters

ParameterType

lines

default[]

lineIds?

LineIds

Returns

LineIterator


length()

function length(line): number

Parameters

ParameterType

line

default

Returns

number


linesToLineIds()

function linesToLineIds(lines): Map<any, any>

Parameters

ParameterType

lines

default[]

Returns

Map<any, any>


toDelta()

function toDelta(lines): default

Parameters

ParameterType

lines

default[]

Returns

default