src/chart/sankey/SankeyView.js
function createGridClipShape(rect, seriesModel, cb) {
    var rectEl = new graphic.Rect({
        shape: {
            x: rect.x - 10,
            y: rect.y - 10,
            width: 0,
            height: rect.height + 20
        }
    });
    graphic.initProps(rectEl, {
        shape: {
            width: rect.width + 20,
            height: rect.height + 20
        }
    }, seriesModel, cb);

    return rectEl;
}
function createGridClipShape(rect, seriesModel, cb) {
    var rectEl = new graphic.Rect({
        shape: {
            x: rect.x - 10,
            y: rect.y - 10,
            width: 0,
            height: rect.height + 20
        }
    });
    graphic.initProps(rectEl, {
        shape: {
            width: rect.width + 20,
            height: rect.height + 20
        }
    }, seriesModel, cb);

    return rectEl;
}
function createGridClipShape ( rect , seriesModel , cb ) { var rectEl = new graphic . Rect ( { shape : { x : rect . x - 10 , y : rect . y - 10 , width : 0 , height : rect . height + 20 } } ) ; graphic . initProps ( rectEl , { shape : { width : rect . width + 20 , height : rect . height + 20 } } , seriesModel , cb ) ; return rectEl ; }
Add animation to the view
Add animation to the view