title | layout | slug | algolia |
---|---|---|---|
Run |
docs.html |
run |
true |
[[lead]]Responsible for calculating a currently active index based on movement[[/lead]]
This module is requisite and it's imported within a bundle.
- Usage: Holds value of the current movement. For example,
=1
schema will be represented as:
{
direction: '=',
steps: '1'
}
- Usage: Holds a zero-based value of the running distance
- Usage: Holds an indication flag about making rewinding movement
- Usage: Mounts and initializes a component
-
Arguments:
{String} move
-
Usage: Makes instance run based on the passed moving schema
- Usage: Calculates current index based on the defined move
- Usage: Checks if we currently are on the first slide
- Usage: Checks if we currently are on the last slide
-
Arguments:
{String} direction
-
Usage: Checks if we are making an offset run, from last to first or first to last slide