Skip to content

Commit f8037a9

Browse files
committed
updating branch name
1 parent 19bebaa commit f8037a9

File tree

3 files changed

+2
-89
lines changed

3 files changed

+2
-89
lines changed

src/app/components/Chart.jsx

Lines changed: 1 addition & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -35,79 +35,6 @@ class Chart extends Component {
3535
// }
3636

3737
maked3Tree() {
38-
// this.removed3Tree();
39-
// const snapshotHierarchy = {
40-
// name: "rootNode",
41-
// diffState: {},
42-
// children: [
43-
// {
44-
// name: 'state1',
45-
// children: [
46-
// {
47-
// name: 'state2',
48-
// children: [
49-
// {
50-
// name: 'state3',
51-
// children: [
52-
// {
53-
// name: 'state5'
54-
// },
55-
// ]
56-
// },
57-
// {
58-
// name: 'state4'
59-
// },
60-
// {
61-
// name: 'state5'
62-
// },
63-
// {
64-
// name: 'state6'
65-
// },
66-
// {
67-
// name: 'state7'
68-
// },
69-
// {
70-
// name: 'state8'
71-
// },
72-
// {
73-
// name: 'state9'
74-
// },
75-
// {
76-
// name: 'state10'
77-
// },
78-
// {
79-
// name: 'state11'
80-
// },
81-
// {
82-
// name: 'state12'
83-
// },
84-
// {
85-
// name: 'state13'
86-
// },
87-
// {
88-
// name: 'state14'
89-
// },
90-
// {
91-
// name: 'state15'
92-
// },
93-
// {
94-
// name: 'state16'
95-
// },
96-
// {
97-
// name: 'state17'
98-
// },
99-
// {
100-
// name: 'state18'
101-
// },
102-
// {
103-
// name: 'state19'
104-
// },
105-
// ]
106-
// },
107-
// ]
108-
// },
109-
// ]
110-
// };
11138

11239
let width = 900;
11340
let height = 1000;
@@ -171,7 +98,7 @@ class Chart extends Component {
17198
// this arranges the angle of the text
17299
.attr("transform", function (d) { return "rotate(" + (d.x < Math.PI ? d.x - Math.PI / 2 : d.x + Math.PI / 2) * 180 / Math.PI + ")"; })
173100
.text(function (d) {
174-
return d.data.index
101+
return "state" + d.data.index;
175102
});
176103

177104
function reinfeldTidierAlgo(x, y) {

src/app/containers/MainContainer.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function MainContainer() {
6565
</div>
6666
);
6767
}
68-
const { viewIndex, sliderIndex, snapshots, hierarchy } = tabs[currentTab];
68+
const { viewIndex, sliderIndex, snapshots } = tabs[currentTab];
6969

7070
// if viewIndex is -1, then use the sliderIndex instead
7171
const snapshotView = viewIndex === -1 ? snapshots[sliderIndex] : snapshots[viewIndex];

src/extension/background.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,6 @@ function changeCurrLocation(tabObj, currNode, index) {
6363
}
6464
}
6565

66-
//! once state is modified (when user does something with app), a step appears in actionContainer.jsx column. That current state snapshot is added to our hierarchy object. That is what the buildHierarchy function is for. It takes in the entire tabObj, which has a hierarcy object as a property within it. Then we build this hierarchy object so that d3 can render graphs in our extension
67-
// whenever we receive a snapshot from contentScript.js via message, we execute this function
68-
//* if empty on extension UI is clicked hierarchy needs to be reset to an object
69-
70-
// each time a statesnapshot is added, this gets incremented otherwise it will be decremented
71-
// we need to find a way to traverse through the object to know which node the user is on so we can add a new state snapshot in the right location
72-
// could we potentially have a variable in timejump function (timeJump.js in the package) that our function can work with --> contentScript.js has access to it --> we can access that variable message;
73-
74-
// create a helper function that groups all the snapshots underneath each other
75-
// current state snapshot
76-
// needs to be supplied by the UI
77-
// also need to figure out how we would traverse through the big ass object to find the current state
78-
// Create a new object with name,
79-
8066
// establishing connection with devtools
8167
chrome.runtime.onConnect.addListener(port => {
8268
// push every port connected to the ports array

0 commit comments

Comments
 (0)