File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,8 @@ const filterHooks = (data: any[]) => {
34
34
* @method maked3Tree :Creates a new D3 Tree
35
35
*/
36
36
37
- export default function History ( props ) {
37
+ function History ( props ) {
38
38
let { hierarchy } = props ;
39
- console . log ( 'hierarchy is' , hierarchy ) ;
40
39
let root = JSON . parse ( JSON . stringify ( hierarchy ) ) ;
41
40
let isRecoil = false ;
42
41
let HistoryRef = React . createRef ( root ) ; //React.createRef(root);
@@ -251,9 +250,12 @@ export default function History(props) {
251
250
return [ ( y = + y ) * Math . cos ( ( x -= Math . PI / 2 ) ) , y * Math . sin ( x ) ] ;
252
251
}
253
252
} ;
253
+
254
254
return (
255
255
< >
256
256
< div ref = { HistoryRef } className = "history-d3-div" id = "historyContainer" />
257
257
</ >
258
258
) ;
259
259
}
260
+
261
+ export default History ;
Original file line number Diff line number Diff line change @@ -9,12 +9,9 @@ const legendGlyphSize = 12;
9
9
export default function Legendary ( props : any ) {
10
10
// { events = false }: { events?: boolean }) {
11
11
12
- console . log ( 'successfully invoke Legendary function call' ) ;
13
12
const { hierarchy } = props ;
14
- console . log ( 'and hierarchy being passed in is' , hierarchy ) ;
15
13
16
14
const getSnapshotIds = ( obj , snapshotIds = [ ] ) => {
17
- console . log ( 'obj.name is' , obj . name ) ;
18
15
snapshotIds . push ( `${ obj . name } .${ obj . branch } ` ) ;
19
16
if ( obj . children ) {
20
17
obj . children . forEach ( ( child ) => {
@@ -25,7 +22,6 @@ export default function Legendary(props: any) {
25
22
} ;
26
23
27
24
const snap = getSnapshotIds ( hierarchy ) ;
28
- console . log ( 'passing hierarchy as an object to getSnapshotIds is -->' , snap ) ;
29
25
30
26
const ordinalColorScale = scaleOrdinal < number , string > ( {
31
27
domain : snap ,
You can’t perform that action at this time.
0 commit comments