| Server IP : 13.235.167.51 / Your IP : 216.73.217.116 Web Server : Apache System : Linux machinox-server 6.17.0-1013-aws #13~24.04.1-Ubuntu SMP Fri Apr 24 21:36:58 UTC 2026 aarch64 User : root ( 0) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/control.machinox.in/node_modules/quill/modules/ |
Upload File : |
import type Delta from 'quill-delta';
import Module from '../core/module.js';
import Quill from '../core/quill.js';
import type Scroll from '../blots/scroll.js';
import type { Range } from '../core/selection.js';
export interface HistoryOptions {
userOnly: boolean;
delay: number;
maxStack: number;
}
export interface StackItem {
delta: Delta;
range: Range | null;
}
interface Stack {
undo: StackItem[];
redo: StackItem[];
}
declare class History extends Module<HistoryOptions> {
static DEFAULTS: HistoryOptions;
lastRecorded: number;
ignoreChange: boolean;
stack: Stack;
currentRange: Range | null;
constructor(quill: Quill, options: Partial<HistoryOptions>);
change(source: 'undo' | 'redo', dest: 'redo' | 'undo'): void;
clear(): void;
cutoff(): void;
record(changeDelta: Delta, oldDelta: Delta): void;
redo(): void;
transform(delta: Delta): void;
undo(): void;
protected restoreSelection(stackItem: StackItem): void;
}
declare function getLastChangeIndex(scroll: Scroll, delta: Delta): number;
export { History as default, getLastChangeIndex };