style(bezier): remove accidentally added doc tags

This commit is contained in:
Andrew Joslin
2014-05-15 12:17:10 -06:00
parent da0c798ce5
commit 5994a51bdd

View File

@@ -38,21 +38,21 @@
ionic.Animation = ionic.Animation || {};
/**
/*
* JavaScript port of Webkit implementation of CSS cubic-bezier(p1x.p1y,p2x,p2y) by http://mck.me
* http://svn.webkit.org/repository/webkit/trunk/Source/WebCore/platform/graphics/UnitBezier.h
*/
ionic.Animation.Bezier = (function(){
'use strict';
/**
/*
* Duration value to use when one is not specified (400ms is a common value).
* @const
* @type {number}
*/
var DEFAULT_DURATION = 400;//ms
/**
/*
* The epsilon value we pass to UnitBezier::solve given that the animation is going to run over |dur| seconds.
* The longer the animation, the more precision we need in the timing function result to avoid ugly discontinuities.
* http://svn.webkit.org/repository/webkit/trunk/Source/WebCore/page/animation/AnimationBase.cpp
@@ -61,7 +61,7 @@
return 1.0 / (200.0 * duration);
};
/**
/*
* Defines a cubic-bezier curve given the middle two control points.
* NOTE: first and last control points are implicitly (0,0) and (1,1).
* @param p1x {number} X component of control point 1
@@ -75,49 +75,49 @@
// Calculate the polynomial coefficients, implicit first and last control points are (0,0) and (1,1).
/**
/*
* X component of Bezier coefficient C
* @const
* @type {number}
*/
var cx = 3.0 * p1x;
/**
/*
* X component of Bezier coefficient B
* @const
* @type {number}
*/
var bx = 3.0 * (p2x - p1x) - cx;
/**
/*
* X component of Bezier coefficient A
* @const
* @type {number}
*/
var ax = 1.0 - cx -bx;
/**
/*
* Y component of Bezier coefficient C
* @const
* @type {number}
*/
var cy = 3.0 * p1y;
/**
/*
* Y component of Bezier coefficient B
* @const
* @type {number}
*/
var by = 3.0 * (p2y - p1y) - cy;
/**
/*
* Y component of Bezier coefficient A
* @const
* @type {number}
*/
var ay = 1.0 - cy - by;
/**
/*
* @param t {number} parametric timing value
* @return {number}
*/
@@ -126,7 +126,7 @@
return ((ax * t + bx) * t + cx) * t;
};
/**
/*
* @param t {number} parametric timing value
* @return {number}
*/
@@ -134,7 +134,7 @@
return ((ay * t + by) * t + cy) * t;
};
/**
/*
* @param t {number} parametric timing value
* @return {number}
*/
@@ -142,7 +142,7 @@
return (3.0 * ax * t + 2.0 * bx) * t + cx;
};
/**
/*
* Given an x value, find a parametric value it came from.
* @param x {number} value of x along the bezier curve, 0.0 <= x <= 1.0
* @param epsilon {number} accuracy limit of t for the given x
@@ -198,7 +198,7 @@
return t2;
};
/**
/*
* @param x {number} the value of x along the bezier curve, 0.0 <= x <= 1.0
* @param epsilon {number} the accuracy of t for the given x
* @return {number} the y value along the bezier curve
@@ -209,7 +209,7 @@
// public interface --------------------------------------------
/**
/*
* Find the y of the cubic-bezier for a given x with accuracy determined by the animation duration.
* @param x {number} the value of x along the bezier curve, 0.0 <= x <= 1.0
* @param duration {number} the duration of the animation in milliseconds
@@ -222,42 +222,42 @@
// http://www.w3.org/TR/css3-transitions/#transition-timing-function
return {
/**
/*
* @param x {number} the value of x along the bezier curve, 0.0 <= x <= 1.0
* @param duration {number} the duration of the animation in milliseconds
* @return {number} the y value along the bezier curve
*/
linear: unitBezier(0.0, 0.0, 1.0, 1.0),
/**
/*
* @param x {number} the value of x along the bezier curve, 0.0 <= x <= 1.0
* @param duration {number} the duration of the animation in milliseconds
* @return {number} the y value along the bezier curve
*/
ease: unitBezier(0.25, 0.1, 0.25, 1.0),
/**
/*
* @param x {number} the value of x along the bezier curve, 0.0 <= x <= 1.0
* @param duration {number} the duration of the animation in milliseconds
* @return {number} the y value along the bezier curve
*/
easeIn: unitBezier(0.42, 0, 1.0, 1.0),
/**
/*
* @param x {number} the value of x along the bezier curve, 0.0 <= x <= 1.0
* @param duration {number} the duration of the animation in milliseconds
* @return {number} the y value along the bezier curve
*/
easeOut: unitBezier(0, 0, 0.58, 1.0),
/**
/*
* @param x {number} the value of x along the bezier curve, 0.0 <= x <= 1.0
* @param duration {number} the duration of the animation in milliseconds
* @return {number} the y value along the bezier curve
*/
easeInOut: unitBezier(0.42, 0, 0.58, 1.0),
/**
/*
* @param p1x {number} X component of control point 1
* @param p1y {number} Y component of control point 1
* @param p2x {number} X component of control point 2
@@ -272,21 +272,21 @@
};
})();
/**
/*
* Various fast approximations and alternates to cubic-bezier easing functions.
* http://www.w3.org/TR/css3-transitions/#transition-timing-function
*/
var Easing = (function(){
'use strict';
/**
/*
* @const
*/
var EASE_IN_OUT_CONST = 0.5 * Math.pow(0.5, 1.925);
return {
/**
/*
* @param x {number} the value of x along the curve, 0.0 <= x <= 1.0
* @return {number} the y value along the curve
*/
@@ -294,7 +294,7 @@ var Easing = (function(){
return x;
},
// /**
// /*
// * @param x {number} the value of x along the curve, 0.0 <= x <= 1.0
// * @return {number} the y value along the curve
// */
@@ -303,7 +303,7 @@ var Easing = (function(){
// return x;
// },
/**
/*
* @param x {number} the value of x along the curve, 0.0 <= x <= 1.0
* @return {number} the y value along the curve
*/
@@ -312,7 +312,7 @@ var Easing = (function(){
return Math.pow(x, 1.685);
},
/**
/*
* @param x {number} the value of x along the curve, 0.0 <= x <= 1.0
* @return {number} the y value along the curve
*/
@@ -320,7 +320,7 @@ var Easing = (function(){
return (x * x);
},
/**
/*
* @param x {number} the value of x along the curve, 0.0 <= x <= 1.0
* @return {number} the y value along the curve
*/
@@ -328,7 +328,7 @@ var Easing = (function(){
return (x * x * x);
},
/**
/*
* @param x {number} the value of x along the curve, 0.0 <= x <= 1.0
* @return {number} the y value along the curve
*/
@@ -337,7 +337,7 @@ var Easing = (function(){
return 1 - Math.pow(1-x, 1.685);
},
/**
/*
* @param x {number} the value of x along the curve, 0.0 <= x <= 1.0
* @return {number} the y value along the curve
*/
@@ -346,7 +346,7 @@ var Easing = (function(){
return 1 - (x * x);
},
/**
/*
* @param x {number} the value of x along the curve, 0.0 <= x <= 1.0
* @return {number} the y value along the curve
*/
@@ -355,7 +355,7 @@ var Easing = (function(){
return 1 + (x * x * x);
},
/**
/*
* @param x {number} the value of x along the curve, 0.0 <= x <= 1.0
* @return {number} the y value along the curve
*/
@@ -369,7 +369,7 @@ var Easing = (function(){
}
},
/**
/*
* @param x {number} the value of x along the curve, 0.0 <= x <= 1.0
* @return {number} the y value along the curve
*/
@@ -383,7 +383,7 @@ var Easing = (function(){
}
},
/**
/*
* @param x {number} the value of x along the curve, 0.0 <= x <= 1.0
* @return {number} the y value along the curve
*/
@@ -397,7 +397,7 @@ var Easing = (function(){
}
},
/**
/*
* @param x {number} the value of x along the curve, 0.0 <= x <= 1.0
* @return {number} the y value along the curve
*/
@@ -411,7 +411,7 @@ var Easing = (function(){
}
},
/**
/*
* @param x {number} the value of x along the curve, 0.0 <= x <= 1.0
* @return {number} the y value along the curve
*/