Class TourDocument

A WWT tour.

Hierarchy

  • TourDocument

Constructors

Methods

  • Calculate how much time must elapse in the tour playback to reach the specified tour stop.

    Parameters

    • index: number

      The index number of the tour stop to query

    Returns number

    The amount of time, in seconds.

  • Get the stop index of a tour stop, given its identifier.

    If the ID is the empty string or "Next", the current tour stop index will be incremented and returned.

    Parameters

    • id: string

      The tour stop ID, or an empty string or "Next"

    Returns number

    The tour stop index

  • Get this tour's "attributes and credits" text.

    TODO: determine and document any markup / formatting semantics.

    Returns string

  • Get the index number of the currently active tour stop.

    In principle, this should maybe be a property of a tour player, not a tour document, but here we are. This will be negative if the tour isn't currently playing.

    Returns number

  • Get this tour's description.

    TODO: document any markup semantics, etc.

    Returns string

  • Set this tour's "attributes and credits" text".

    Parameters

    • aandc: string

    Returns string

  • Set the "author URL" of this tour.

    Parameters

    • title: string

    Returns string

  • Set this tour's description.

    Parameters

    • desc: string

    Returns string

Generated using TypeDoc