Skip to content
This repository was archived by the owner on Dec 31, 2017. It is now read-only.
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

@wkeese

Description

@wkeese

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions