Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This branch adds a basic "spinner" widget for indicating when the user should wait for an operation to complete. Only Famo.us objects are used; there are no images in Spinner.js. The diameter, number of tick marks around the circle, speed of "rotation" and color of the spinner may be configured via options. Usage is straight-forward, though there is a quirk when positioning with "origin" Modifiers. Assume a View or subclass for the following code snippet:
The "origin" Modifier that positions the entire spinner in the center of the View also modifies the origin/rotation point of each "tick". Use "originCompensation" set to "true" to compensate for this. If not positioning the spinner with an "origin" Modifier, leave "originCompensation" set to the default "false". Spinner.start() and Spinner.stop() will show and hide the spinner (which is simply an extension of RenderController.) The "rotation" of tick opacities will also start and stop. options.speed (in ms) controls the tick opacity changes. Note that "options.size" sets the size and is left as a two Number array for consistency with other size options. In practice, the width and height should always be set to the same number, though this is not enforced in the code.