1
Vote

transitionTo() arguments could be improved

description

The class "Node" has a method defined called transitionTo that should look like this

transitionTo(config: transitionTo_Config): void;

The defintion of the "transitionTo_Config" should look like this.

interface transitionTo_Config {
    duration: number;
    x?: number;
    y?: number;
    rotation?: number;
    opacity?: number;
    strokeWidth?: number;
    radius?: number;
    scale?: Vector2d;
    offset?: Vector2d;        
    easing?: string;
    callback?: () => void;
}

comments