use null to load options later
with the load method. Options should only be loaded when an instantiated
FigureElementCollection is available for the collections
property.
Load options after object instantiation. Usefull for if the
collection, prevButton, nextButton, equation and/or text figure
elements are not available at instantiation.
this should generally not be used and will be set automatically
Progress to next slide.
when false, if the slide is still in
a transition when nextSlide is called, then the transition will skip
through to the end, without moving to the next slide - effectively skipping
through to the steady state of the current slide. If true, then the
transition will instantly complete, setState and leaveStates called and the
next slide will be progressed to.
Progress to the previous slide.
Slide Navigator
It is sometimes useful to break down a visualization into easier to consume parts.
For example, a complex figure or concept can be made easier if built up from a simple begining. Each step along the way might change the elements within the figure, or the form of an equation, and be accompanied by a corresponding description giving context, reasoning or next steps.
An analogy to this is a story or presentation, where each step along the way is a presentation slide.
This class is a simple slide navigator, providing a convenient way to define slides and step through them.
CollectionsSlideNavigator creates the navigation buttons, and
textElementautomatically, and will usually be more convenient than manually creating them (unless custom buttons are needed).Notifications - The notification manager property
notificationswill publish the following events:goToSlide: published when slide changes - will pass slide index to subscribersteady: steady state reached (slide transition complete)See
CollectionsSlideNavigator for examples.