@@ -2,24 +2,8 @@ import React, { Component, useEffect, useState } from 'react';
2
2
import * as d3 from 'd3' ;
3
3
import LegendKey from './legend' ;
4
4
import { changeView , changeSlider } from '../actions/actions' ;
5
- // import { useStoreContext } from '../store';
6
- // import { string } from 'prop-types';
7
- import { Zoom } from '@visx/zoom' ;
8
- import { localPoint } from '@visx/event' ;
9
- import { RectClipPath } from '@visx/clip-path' ;
10
- // import ZoomI from './zoomFt';
11
-
12
- // const colorScale = scaleLinear<number>({ range: [0, 1], domain: [0, 1000] });
13
- // const sizeScale = scaleLinear<number>({ domain: [0, 600], range: [0.5, 8] });
14
-
15
- const initialTransform = {
16
- scaleX : 1.27 ,
17
- scaleY : 1.27 ,
18
- translateX : - 211.62 ,
19
- translateY : 162.59 ,
20
- skewX : 0 ,
21
- skewY : 0 ,
22
- } ;
5
+ import { useStoreContext } from '../store' ;
6
+ import { string } from 'prop-types' ;
23
7
24
8
/**
25
9
* @var colors: Colors array for the diffrerent node branches, each color is for a different branch
@@ -55,13 +39,8 @@ const filterHooks = (data: any[]) => {
55
39
*/
56
40
57
41
function History ( props : any ) {
58
- //visx zoom first
59
- const [ showMiniMap , setShowMiniMap ] = useState < boolean > ( true ) ;
60
-
61
42
const { width, height, hierarchy, dispatch, sliderIndex, viewIndex } = props ;
62
- console . log (
63
- `inside History tab -> width is ${ width } and height is ${ height } `
64
- ) ;
43
+
65
44
let root = JSON . parse ( JSON . stringify ( hierarchy ) ) ;
66
45
let isRecoil = false ;
67
46
// console.log('before makedTree, hierarchy is, ', hierarchy);
0 commit comments