UNPKG

@launchmenu/core

Version:

An environment for visual keyboard controlled applets

27 lines 1.25 kB
import { CompoundCommand } from "../../../undoRedo/commands/CompoundCommand"; import { ICommandMetadata } from "../../../undoRedo/_types/ICommandMetadata"; import { ITextAlteration } from "./_types/ITextAlteration"; import { ITextEditCommand } from "./_types/ITextEditCommand"; /** A compound command that tracks the additional text command data */ export declare class CompoundTextEditCommand extends CompoundCommand implements ITextEditCommand { readonly commands: ITextEditCommand[]; /** * Creates a new compound text command * @param commands The text edit commands * @param metadata The meta data for this command */ constructor(commands: ITextEditCommand[], metadata?: ICommandMetadata); /** * Retrieves a new compound command that's equivalent to this command with the specified command added * @param command The command to add * @returns The new compound command */ augment(command: ITextEditCommand): CompoundTextEditCommand; /** @override */ getAddedText(): string | undefined; /** @override */ isSelectionChange(): boolean; /** @override */ getAlterations(): ITextAlteration[]; } //# sourceMappingURL=CompoundTextEditCommand.d.ts.map