Options
All
  • Public
  • Public/Protected
  • All
Menu

External module scripts/ss/history

Track the recent traversal history of a Screensaver

Index

Interfaces

Functions

Object literals

Functions

add

  • add(newIdx: number | null, selected: number, replaceIdx: number): void
  • Add item to the history

    Parameters

    • newIdx: number | null

      if not null, a request from the back command

    • selected: number

      the current index

    • replaceIdx: number

      the replace index

    Returns void

back

  • back(): null | number

clear

  • clear(): void

initialize

  • initialize(): void

Object literals

Const HIST

HIST: object

Slide show history

arr

arr: IItem[] = [] as IItem[]

History items

idx

idx: number = -1

Index into arr

max

max: number = 10

Max length of history, it will actually have 1 item more

Generated using TypeDoc