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

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

Properties

Property Type Description
sequence SharedSegmentSequence<ISegment>

Methods

Method Return Type Description
add(event) void
discard() void
revert() void

Constructor Details

(constructor)

Constructs a new instance of the SharedSegmentSequenceRevertible class

Signature
constructor(sequence: SharedSegmentSequence<ISegment>);

Parameters

Parameter Type Description
sequence SharedSegmentSequence<ISegment>

Property Details

sequence

Signature
readonly sequence: SharedSegmentSequence<ISegment>;

Type: SharedSegmentSequence<ISegment>

Method Details

add

Signature
add(event: SequenceDeltaEvent): void;

Parameters

Parameter Type Description
event SequenceDeltaEvent

discard

Signature
discard(): void;

revert

Signature
revert(): void;