src/chart/sankey/sankeyLayout.js
function scaleNodeBreadths(nodes, kx, orient) {
    zrUtil.each(nodes, function (node) {
        var nodeDepth = node.getLayout().depth * kx;
        orient === 'vertical'
            ? node.setLayout({y: nodeDepth}, true)
            : node.setLayout({x: nodeDepth}, true);
    });
}
function scaleNodeBreadths(nodes, kx, orient) {
    zrUtil.each(nodes, function (node) {
        var nodeDepth = node.getLayout().depth * kx;
        orient === 'vertical'
            ? node.setLayout({y: nodeDepth}, true)
            : node.setLayout({x: nodeDepth}, true);
    });
}
function scaleNodeBreadths ( nodes , kx , orient ) { zrUtil . each ( nodes , function ( node ) { var nodeDepth = node . getLayout ( ) . depth * kx ; orient === 'vertical' ? node . setLayout ( { y : nodeDepth } , true ) : node . setLayout ( { x : nodeDepth } , true ) ; } ) ; }
Scale node x-position to the width

@param {module:echarts/data/Graph~Node} nodes  node of sankey view
@param {number} kx   multiple used to scale nodes
Scale node x - position to the width