src/chart/treemap/Breadcrumb.js
function (targetNode, layoutParam, textStyleModel) {
        for (var node = targetNode; node; node = node.parentNode) {
            var text = node.getModel().get('name');
            var textRect = textStyleModel.getTextRect(text);
            var itemWidth = Math.max(
                textRect.width + TEXT_PADDING * 2,
                layoutParam.emptyItemWidth
            );
            layoutParam.totalWidth += itemWidth + ITEM_GAP;
            layoutParam.renderList.push({node: node, text: text, width: itemWidth});
        }
    }
function (targetNode, layoutParam, textStyleModel) {
        for (var node = targetNode; node; node = node.parentNode) {
            var text = node.getModel().get('name');
            var textRect = textStyleModel.getTextRect(text);
            var itemWidth = Math.max(
                textRect.width + TEXT_PADDING * 2,
                layoutParam.emptyItemWidth
            );
            layoutParam.totalWidth += itemWidth + ITEM_GAP;
            layoutParam.renderList.push({node: node, text: text, width: itemWidth});
        }
    }
function ( targetNode , layoutParam , textStyleModel ) { for ( var node = targetNode ; node ; node = node . parentNode ) { var text = node . getModel ( ) . get ( 'name' ) ; var textRect = textStyleModel . getTextRect ( text ) ; var itemWidth = Math . max ( textRect . width + TEXT_PADDING * 2 , layoutParam . emptyItemWidth ) ; layoutParam . totalWidth += itemWidth + ITEM_GAP ; layoutParam . renderList . push ( { node : node , text : text , width : itemWidth } ) ; } }
Prepare render list and total width
@private
Prepare render list and total width