This repository was archived by the owner on Dec 31, 2017. It is now read-only.
forked from SitePen/js-doc-parse
-
Notifications
You must be signed in to change notification settings - Fork 7
This repository was archived by the owner on Dec 31, 2017. It is now read-only.
fx.js makes other file lose easing and duration kwargs definition #63
Copy link
Copy link
Open
Milestone
Description
See dojox/charting/action2d/Highlight.js. It has a kwargs definition
var __HighlightCtorArgs = function(duration, easing, highlight){
// summary:
// Additional arguments for highlighting actions.
//
// duration: Number?
// The amount of time in milliseconds for an animation to last. Default is 400.
// easing: dojo/fx/easing/*?
// An easing object (see dojo.fx.easing) for use in an animation. The
// default is dojo.fx.easing.backOut.
// highlight: String|dojo/_base/Color|Function?
// Either a color or a function that creates a color when highlighting happens.
this.duration = 400;
this.easing = null;
this.highlight = null;
};
=====*/
But easing and duration don't show up in the doc.
The test (Highlight.js) can be reduced to:
define(["dojo/_base/declare", "dojo/_base/fx"],
function(declare){
var __HighlightCtorArgs = function(){
// duration: String
// Either a color or a function that creates a color when highlighting happens.
// foo: Number
// The amount of time in milliseconds for an animation to last. Default is 400.
// easing: Number
// The amount of time in milliseconds for an animation to last. Default is 400.
};
return declare(null, {
constructor: function(chart, plot, kwArgs){
// kwArgs: __HighlightCtorArgs?
// Optional keyword arguments object for setting parameters.
}
});
});And it turns out the thing that confuses the parser is the duration and easing parameters to basefx.anim, in fx.js:
basefx.anim = function( /*DOMNode|String*/ node,
/*Object*/ properties,
/*Integer?*/ duration,
/*Function?*/ easing,
/*Function?*/ onEnd,
/*Integer?*/ delay){
cc @cjolif
Metadata
Metadata
Assignees
Labels
No labels