1 /** 2 * The MIT License (MIT) 3 * 4 * Copyright (c) 2016 DeNA Co., Ltd. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights 9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 * copies of the Software, and to permit persons to whom the Software is 11 * furnished to do so, subject to the following conditions: 12 * 13 * The above copyright notice and this permission notice shall be included in 14 * all copies or substantial portions of the Software. 15 * 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 * SOFTWARE. 23 */ 24 25 /// <reference path="base.js"/> 26 /// <reference path="tween_target.js"/> 27 28 /** 29 * An interface used for controlling a tween. 30 * @interface 31 */ 32 createjs.TweenObject = function() {}; 33 34 /** 35 * Masks used by the updateTween() method. 36 * @enum {number} 37 */ 38 createjs.TweenObject.Flag = { 39 PLAY_MODE: 3, 40 UPDATE: 4 41 }; 42 43 /** 44 * Updates the position of this tween. 45 * @param {number} time 46 * @param {number} flag 47 * @param {number} next 48 * @return {number} 49 */ 50 createjs.TweenObject.prototype.updateTween = function(time, flag, next) {}; 51 52 /** 53 * Starts playing this tween. 54 * @param {number} time 55 */ 56 createjs.TweenObject.prototype.playTween = function(time) {}; 57 58 /** 59 * Stops playing this tween. 60 * @param {number} time 61 */ 62 createjs.TweenObject.prototype.stopTween = function(time) {}; 63 64 /** 65 * Sets a proxy that intermediates this tween and its target. 66 * @param {createjs.TweenTarget} proxy 67 * @param {Array.<createjs.TweenTarget>} targets 68 * @return {number} 69 */ 70 createjs.TweenObject.prototype.setProxy = function(proxy, targets) {}; 71 72 /** 73 * Sets the play offset of this tween. 74 * @param {number} position 75 * @param {number} mode 76 */ 77 createjs.TweenObject.prototype.setPosition = function(position, mode) {}; 78 79 /** 80 * Sets the properties of this tween. 81 * @param {boolean} loop 82 * @param {number} position 83 * @param {boolean} single 84 */ 85 createjs.TweenObject.prototype.setProperties = 86 function(loop, position, single) {}; 87 88 /** 89 * Returns whether this tween reaches its end. 90 * @return {boolean} 91 */ 92 createjs.TweenObject.prototype.isEnded = function() {}; 93