Skip to content

eo-typewriterjs


eo-typewriterjs / TMoveCommand

Type Alias: TMoveCommand ​

ts
type TMoveCommand = TBaseCommand & object;

Defined in: core/commands/types/move-command.type.ts:30

Type Declaration ​

NameTypeDefined in
kindtypeof MOVEcore/commands/types/move-command.type.ts:31
cursorTCursorSelectorcore/commands/types/move-command.type.ts:32
offsetTMoveValuecore/commands/types/move-command.type.ts:33
by?TAdvanceModeInputcore/commands/types/move-command.type.ts:34
interval?numbercore/commands/types/move-command.type.ts:35

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.

Released under the MIT License.