Lines Matching refs:levels
292 let levels = {};
298 if (!(n.deep in levels)) {
299 levels[n.deep] = [];
301 levels[n.deep].push(n);
323 let ks = Object.keys(levels).sort((a, b) => { return parseInt(a) - parseInt(b) });
332 for (let i = 0; i < levels[k].length; i++) {
333 let n = levels[k];
351 for (let i = 0; i < levels[k].length; i++) {
352 let n = levels[k];
366 for (let i = 0; i < levels[k].length; i++) {//当前行总宽度
367 w += levels[k][i].nameWidth + 20;
370 for (let i = 0; i < levels[k].length; i++) {//每个节点x偏移
371 levels[k][i].pos.x = x + 10;
372 x += levels[k][i].nameWidth + 20;