Lines Matching refs:children
157 if (node.children && node.children.length > 0) {
160 for (let children of node.children) {
161 children.parent = node;
163 parentSize += children.size;
164 parentCount += children.count;
165 parentDuration += children.dur;
167 this.calMaxDepth(children, depth, isCalRoot, isCalDisplay);
400 if (node.children && node.children.length > 0) {
401 for (let children of node.children) {
403 children.parent = node;
406 let childrenSize = children.drawSize || children.size;
407 setFuncFrame(children, this.rect, this.currentSize, this._mode);
408 children.percent = childrenSize / this.currentSize;
411 let childrenCount = children.drawCount || children.count;
412 setFuncFrame(children, this.rect, this.currentCount, this._mode);
413 children.percent = childrenCount / this.currentCount;
416 let childrenDur = children.drawDur || children.dur;
417 setFuncFrame(children, this.rect, this.currentDuration, this._mode);
418 children.percent = childrenDur / this.currentDuration;
421 this.setStructFuncFrame(children);
438 if (node.children && node.children.length > 0) {
439 for (let children of node.children) {
442 (children.frame!.x + children.frame!.width >= 0 && //less than canvas left
443 children.frame!.x < this.canvas!.width && // more than canvas right
444 children.frame!.width > filterPixel) || // filter px
445 children.needShow
448 effectChildList.push(children);
450 ignoreSize += children.drawSize || children.size;
451 ignoreCount += children.drawCount || children.count;
452 ignoreDur += children.drawDur || children.dur;
457 for (let children of effectChildList) {
458 children.frame!.x = x;
461 let childSize = children.drawSize || children.size;
462 children.frame!.width = (childSize / (nodeSize - ignoreSize)) * node.frame!.width;
465 let childCount = children.drawCount || children.count;
466 children.frame!.width = (childCount / (nodeCount - ignoreCount)) * node.frame!.width;
469 let childDur = children.drawDur || children.dur;
470 children.frame!.width = (childDur / (nodeDur - ignoreDur)) * node.frame!.width;
473 x += children.frame!.width;
474 draw(this.canvasContext!, children);
475 this.drawFrameChart(children);
478 let firstChildren = node.children[0];
500 let result = this.searchData(node.children, canvasX, canvasY);