Documentation - v1.7.0
    Preparing search index...

    Enhanced VersionControlManager class for managing undo/redo operations with Vuex integration.

    This class provides comprehensive undo/redo functionality using state snapshots, supporting both individual TokenManager operations and global store state changes.

    Index

    Constructors

    Accessors

    Methods

    • Capture the current state before making changes.

      Parameters

      • tokenManager: TokenManager

        The TokenManager instance to capture state for

      Returns void

      This method should be called before any operation that modifies the TokenManager state.

    • Set the maximum stack size for undo/redo operations.

      Parameters

      • size: number

        The maximum number of states to keep in memory

      Returns void

    • Initialize the VersionControlManager with a reference to the Vuex store.

      Parameters

      • store: Store<
            {
                currentIndex: number;
                tokenManager: null
                | TokenManager;
                tokenManagers: null | TokenManager[];
            },
        >

        The Vuex store instance

      Returns void