| 6998 | * @return {Function} a formatter function |
| 6999 | */ |
| 7000 | _getEdgeParser = function(props) { |
| 7001 | props = props.split(","); |
| 7002 | return function(t, e, p, cssp, pt, plugin, vars) { |
| 7003 | var a = (e + "").split(" "), |
| 7004 | i; |
| 7005 | vars = {}; |
| 7006 | for (i = 0; i < 4; i++) { |
| 7007 | vars[props[i]] = a[i] = a[i] || a[(((i - 1) / 2) >> 0)]; |
| 7008 | } |
| 7009 | return cssp.parse(t, vars, pt, plugin); |
| 7010 | }; |
| 7011 | }, |
| 7012 | |
| 7013 | // @private used when other plugins must tween values first, like BezierPlugin or ThrowPropsPlugin, etc. That plugin's setRatio() gets called first so that the values are updated, and then we loop through the MiniPropTweens which handle copying the values into their appropriate slots so that they can then be applied correctly in the main CSSPlugin setRatio() method. Remember, we typically create a proxy object that has a bunch of uniquely-named properties that we feed to the sub-plugin and it does its magic normally, and then we must interpret those values and apply them to the css because often numbers must get combined/concatenated, suffixes added, etc. to work with css, like boxShadow could have 4 values plus a color. |
| 7014 | _setPluginRatio = _internals._setPluginRatio = function(v) { |