/
ClockRange.js
49 lines (45 loc) · 1.25 KB
/
ClockRange.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*global define*/
define([
'./freezeObject'
], function(
freezeObject) {
"use strict";
/**
* Constants used by {@link Clock#tick} to determine behavior
* when {@link Clock#startTime} or {@link Clock#stopTime} is reached.
*
* @namespace
* @alias ClockRange
*
* @see Clock
* @see ClockStep
*/
var ClockRange = {
/**
* {@link Clock#tick} will always advances the clock in its current direction.
*
* @type {Number}
* @constant
*/
UNBOUNDED : 0,
/**
* When {@link Clock#startTime} or {@link Clock#stopTime} is reached,
* {@link Clock#tick} will not advance {@link Clock#currentTime} any further.
*
* @type {Number}
* @constant
*/
CLAMPED : 1,
/**
* When {@link Clock#stopTime} is reached, {@link Clock#tick} will advance
* {@link Clock#currentTime} to the opposite end of the interval. When
* time is moving backwards, {@link Clock#tick} will not advance past
* {@link Clock#startTime}
*
* @type {Number}
* @constant
*/
LOOP_STOP : 2
};
return freezeObject(ClockRange);
});