Update spin.js definitions for v2.3.2

This commit is contained in:
Tom Simmons 2015-10-09 09:47:03 +01:00
parent 3fc1377ce2
commit 86d2c008d4
2 changed files with 10 additions and 2 deletions

View File

@ -23,7 +23,11 @@ var opts2 = {
className: 'spinner',
zIndex: 5,
top: '28',
left: 'auto'
left: 'auto',
scale: 1,
opacity: 0.25,
fps: 20,
position: 'absolute'
};
var newTarget = document.getElementById('bar');

6
spin/spin.d.ts vendored
View File

@ -1,4 +1,4 @@
// Type definitions for Spin.js 1.3.1
// Type definitions for Spin.js 2.3.2
// Project: http://fgnass.github.com/spin.js/
// Definitions by: Boris Yankov <https://github.com/borisyankov/>, Theodore Brown <https://github.com/theodorejb/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
@ -21,6 +21,10 @@ interface SpinnerOptions {
zIndex?: number; // The z-index (defaults to 2000000000)
top?: string; // Top position relative to parent in px
left?: string; // Left position relative to parent in px
scale?: number; // Scales overall size of the spinner
opacity?: number; // Opacity of the lines
fps?: number; // Frames per second when using setTimeout() as a fallback for CSS
position?: string; // Element positioning
}