Skip to content

Commit cb3596d

Browse files
committed
(fixed) timejump error caused by data not being passed in correctly
co-authored-by: Alex Landeros <[email protected]>
1 parent 197d6e2 commit cb3596d

File tree

1 file changed

+3
-24
lines changed

1 file changed

+3
-24
lines changed

src/app/components/History.tsx

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,8 @@ import React, { Component, useEffect, useState } from 'react';
22
import * as d3 from 'd3';
33
import LegendKey from './legend';
44
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';
237

248
/**
259
* @var colors: Colors array for the diffrerent node branches, each color is for a different branch
@@ -55,13 +39,8 @@ const filterHooks = (data: any[]) => {
5539
*/
5640

5741
function History(props: any) {
58-
//visx zoom first
59-
const [showMiniMap, setShowMiniMap] = useState<boolean>(true);
60-
6142
const { width, height, hierarchy, dispatch, sliderIndex, viewIndex } = props;
62-
console.log(
63-
`inside History tab -> width is ${width} and height is ${height}`
64-
);
43+
6544
let root = JSON.parse(JSON.stringify(hierarchy));
6645
let isRecoil = false;
6746
// console.log('before makedTree, hierarchy is, ', hierarchy);

0 commit comments

Comments
 (0)