Skip to content

speed

speed(fn): Promise<void>

Defined in: speed.ts:64

Speeds up (or slows down) the recording inside fn at render time.

Three forms:

  • speed(3, fn): the multiplier comes from code and is locked against web edits.
  • speed('name', fn): names the block; the multiplier is owned by the web editor (defaults to 1 until edited there).
  • speed(fn): unnamed web-editable block, identified by its position on the editor timeline.

() => void | Promise<void>

Promise<void>

speed(name, fn): Promise<void>

Defined in: speed.ts:65

Speeds up (or slows down) the recording inside fn at render time.

Three forms:

  • speed(3, fn): the multiplier comes from code and is locked against web edits.
  • speed('name', fn): names the block; the multiplier is owned by the web editor (defaults to 1 until edited there).
  • speed(fn): unnamed web-editable block, identified by its position on the editor timeline.

string

() => void | Promise<void>

Promise<void>

speed(multiplier, fn): Promise<void>

Defined in: speed.ts:69

Speeds up (or slows down) the recording inside fn at render time.

Three forms:

  • speed(3, fn): the multiplier comes from code and is locked against web edits.
  • speed('name', fn): names the block; the multiplier is owned by the web editor (defaults to 1 until edited there).
  • speed(fn): unnamed web-editable block, identified by its position on the editor timeline.

number

() => void | Promise<void>

Promise<void>