eo-typewriterjs / TMoveCommand
Type Alias: TMoveCommand
ts
type TMoveCommand = TBaseCommand & object;Defined in: core/commands/types/move-command.type.ts:29
Type Declaration
Description
A command that moves a cursor relative to its current position by a given number of units, or jumps to an absolute document boundary.
Operand semantics:
number: relative move; positive = right, negative = left, zero = no-op"start": jump to absolute document start (index 0)"end": jump to absolute document end (index text.length)
When interval is provided the timeline clock advances by that many milliseconds after the event is emitted. Omit interval to use the default of 50 ms. A zero numeric offset is a no-op and does not advance the clock regardless of interval.