11import { select , event } from 'd3-selection' ;
22import { scaleLinear , scaleQuantize } from 'd3-scale' ;
33import { min , max , range } from 'd3-array' ;
4- import { transition } from 'd3-transition' ;
54import d3Tip from 'd3-tip' ;
65import { partition , hierarchy } from 'd3-hierarchy' ;
76
@@ -316,7 +315,7 @@ class FlameGraph {
316315 } ;
317316 } ) ( this ) ,
318317 height : ( function ( _this ) {
319- return function ( d ) {
318+ return function ( /* d */ ) {
320319 return _this . cellHeight ( ) ;
321320 } ;
322321 } ) ( this ) ,
@@ -398,7 +397,7 @@ class FlameGraph {
398397 targetLabels . data ( data , d => d . data ? d . data . location : d . location )
399398 . attr ( 'class' , 'label' )
400399 . style ( 'font-size' , this . fontSize + "em" )
401- . transition ( ) . attr ( 'dy' , ( this . fontSize / 2 ) + "em" ) . attr ( 'x' , ( function ( _this ) {
400+ . transition ( ) . attr ( 'dy' , ( this . fontSize / 2 ) + "em" ) . attr ( 'x' , ( function ( ) {
402401 return function ( d ) {
403402 return attrs . x ( d ) + 2 ;
404403 } ;
@@ -448,7 +447,6 @@ class FlameGraph {
448447 }
449448
450449 _renderAncestors ( ) {
451- let i ;
452450 let j ;
453451 let idx ;
454452 let len ;
@@ -474,8 +472,8 @@ class FlameGraph {
474472
475473 // FIXME: this is pretty ugly, but we need to add links between ancestors
476474 let renderAncestor = {
477- x : ( function ( _this ) {
478- return function ( d ) {
475+ x : ( function ( ) {
476+ return function ( /* d */ ) {
479477 return 0 ;
480478 } ;
481479 } ) ( this ) ,
@@ -486,7 +484,7 @@ class FlameGraph {
486484 } ) ( this ) ,
487485 width : this . width ( ) ,
488486 height : this . cellHeight ( ) ,
489- text : ( function ( _this ) {
487+ text : ( function ( ) {
490488 return function ( d ) {
491489 return "↩ " + ( getClassAndMethodName ( d . data ? d . data . name : d . name ) ) ;
492490 } ;
@@ -514,7 +512,7 @@ class FlameGraph {
514512 return Math . round ( _this . width ( ) - _this . x ( d . x1 - d . x0 ) ) > 0 && ( ( ref = d . children ) != null ? ref . length : void 0 ) ;
515513 } ) ) ( this ) ;
516514
517- this . container . selectAll ( '.node' ) . classed ( 'clickable' , ( ( _this => d => clickable ( d ) ) ) ( this ) ) . on ( 'click' , ( ( _this => d => {
515+ this . container . selectAll ( '.node' ) . classed ( 'clickable' , ( ( ( ) => d => clickable ( d ) ) ) ( this ) ) . on ( 'click' , ( ( _this => d => {
518516 if ( _this . tip ) {
519517 _this . tip . hide ( ) ;
520518 }
0 commit comments