Skip to main content
Version: v1

SharedSegmentSequenceRevertible Class

Tracks a change on a shared segment sequence and allows reverting it

Signature​

export declare class SharedSegmentSequenceRevertible implements IRevertible

Implements: IRevertible

Constructors​

ConstructorDescription
(constructor)(sequence)Constructs a new instance of the SharedSegmentSequenceRevertible class

Properties​

PropertyTypeDescription
sequenceSharedSegmentSequence<ISegment>

Methods​

MethodReturn TypeDescription
add(event)void
discard()void
revert()void

Constructor Details​

(constructor)​

Constructs a new instance of the SharedSegmentSequenceRevertible class

Signature​

constructor(sequence: SharedSegmentSequence<ISegment>);

Parameters​

ParameterTypeDescription
sequenceSharedSegmentSequence<ISegment>

Property Details​

sequence​

Signature​

readonly sequence: SharedSegmentSequence<ISegment>;

Type: SharedSegmentSequence<ISegment>

Method Details​

add​

Signature​

add(event: SequenceDeltaEvent): void;

Parameters​

ParameterTypeDescription
eventSequenceDeltaEvent

discard​

Signature​

discard(): void;

revert​

Signature​

revert(): void;