PiDraw API
    Preparing search index...

    Class Slides

    Shows the figures of a graph step by step, as the slides of LaTeX Beamer: a figure that has the steps <2-> (figure.controls.slide) appears at the second step and stays, one that has <3> is there at the third step only, and one that has none is always there. It is made with the graph, new Slides(graph), and attaches itself to it; a graph has one. It is independent from the other controllers.

    Without a Slides, the steps of the figures mean nothing: every figure is shown. With one, the steps are the integers from 1 to count, which is the largest step that a figure names (at least 1, or what the option count asks). The presentation starts at the first step.

    What the steps hide is apart from hide() and from the lack of a position: a figure that is hidden for another reason stays hidden. The figures are still drawn and updated, so what depends on a figure that is not shown follows it. The TikZ of the graph writes what is shown at the step.

    The steps can have a title (@pause=Title, @title,3=Title in the code), which the graph keeps for the presentation: title, titleOf and titles. A title does not make a step: only the figures and count do.

    The event is change (the step, the number of steps or the titles changed: a figure got its steps, or was removed, or the code was changed).

    Hierarchy

    • EventTarget
      • Slides

    Implements

    Index
    • get count(): number

      How many steps there are: the largest step that a figure names, at least 1 (or what the option count asked).

      Returns number

    • get title(): string | null

      The title of the step that is shown, null if it has none.

      Returns string | null

    • The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.

      MDN Reference

      Parameters

      • type: string
      • callback: EventListenerOrEventListenerObject | null
      • Optionaloptions: boolean | AddEventListenerOptions

      Returns void

    • The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order. The normal event processing rules (including the capturing and optional bubbling phase) also apply to events dispatched manually with dispatchEvent().

      MDN Reference

      Parameters

      • event: Event

      Returns boolean

    • Shows this step.

      Parameters

      • step: number

      Returns void

      InvalidArgumentError if step is not an integer from 1 to count.

    • Shows the next step. At the last one, nothing happens.

      Returns void

    • Stop calling a handler given to on.

      Type Parameters

      • K extends "change"

      Parameters

      Returns this

      the presentation, to chain.

    • Call handler when the presentation sends event. The same handler given twice is called once.

      Type Parameters

      • K extends "change"

      Parameters

      Returns this

      the presentation, to chain.

    • Shows the step before. At the first one, nothing happens.

      Returns void

    • The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target. The event listener to be removed is identified using a combination of the event type, the event listener function itself, and various optional options that may affect the matching process; see Matching event listeners for removal.

      MDN Reference

      Parameters

      • type: string
      • callback: EventListenerOrEventListenerObject | null
      • Optionaloptions: boolean | EventListenerOptions

      Returns void

    • The title of this step, null if it has none (or if there is no such step).

      Parameters

      • step: number

      Returns string | null