Expand all

ve.ui.SequenceRegistry

Extends

Constructor

new ve.ui.SequenceRegistry() #

Sequence registry.

Methods

findMatching(data, offset, [isPaste], [isDelete]) → {Array.<ve.ui.SequenceRegistry.Match>} #

Find sequence matches a given offset in the data

Parameters:

Name Type Attributes Description
data ve.dm.ElementLinearData
offset number
isPaste boolean optional

Whether this in the context of a paste

isDelete boolean optional

Whether this is after content being deleted

Source:

Returns:

Array of matching sequences, and the corresponding range of the match for each.

Type
Array.<ve.ui.SequenceRegistry.Match>
Find sequence matches a given offset in the data

register(sequence) #

Register a sequence with the factory.

Parameters:

Name Type Description
sequence ve.ui.Sequence
Source:

Throws:

If sequence is not an instance of ve.ui.Sequence

Type
Error
Register a sequence with the factory.

Type Definitions

Match #

Matching sequence and corresponding range

Type:

Properties:

Name Type Description
sequence ve.ui.Sequence
range ve.Range
Source:
Matching sequence and corresponding range