You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,8 @@ The general flow of data is described in the following steps:
70
70

71
71
72
72
1. When the background bundle is loaded by the browser, it executes a script injection into the dom. (see section on *backend*). This script uses a technique called [throttle](https://medium.com/@bitupon.211/debounce-and-throttle-160affa5457b) to send state data from the app to the content script every specified milliseconds (in our case, this interval is 70ms).
73
+
<!-- CHECK LINE 496 IN LINKFIBER.TS -->
74
+
73
75
74
76
2. The content script always listens for messages being passed from the extension's target application. Upon receiving data from the target app, the content script will immediately forward this data to the background script which then updates an object called `tabsObj`. Each time `tabsObj` is updated, its latest version will be passed to Reactime, where it is processed for displaying to the user by the *app* folder scripts.
// This is where we select the last object in the snapshots array from props to allow hierarchy to parse the data for render on the component map per hierarchy layout specifications.
// Declared this variable and assigned it to the useForceUpdate function that forces a state to change causing that component to re-render and display on the map
@@ -79,7 +81,7 @@ export default function ComponentMap({
79
81
80
82
// This sets the starting position for the root node on the maps display. the polar layout sets the root node to the relative center of the display box based on the size of the browser window.
81
83
// the else conditional statements determines the root nodes location either in the left middle or top middle of the browser window relative to the size of the browser.
82
-
if(layout==="polar"){
84
+
if(layout==='polar'){
83
85
origin={
84
86
x: innerWidth/2,
85
87
y: innerHeight/2,
@@ -88,7 +90,7 @@ export default function ComponentMap({
88
90
sizeHeight=Math.min(innerWidth,innerHeight)/2;
89
91
}else{
90
92
origin={x: 0,y: 0};
91
-
if(orientation==="vertical"){
93
+
if(orientation==='vertical'){
92
94
sizeWidth=innerWidth;
93
95
sizeHeight=innerHeight;
94
96
}else{
@@ -97,7 +99,7 @@ export default function ComponentMap({
97
99
}
98
100
}
99
101
100
-
//Tooltip stuff:
102
+
//Tooltip stuff:
101
103
const{
102
104
tooltipData,
103
105
tooltipLeft,
@@ -122,7 +124,7 @@ export default function ComponentMap({
122
124
fontFamily: 'Roboto',
123
125
};
124
126
125
-
constformatRenderTime=(time)=>{
127
+
constformatRenderTime=time=>{
126
128
time=time.toFixed(3);
127
129
return`${time} ms `;
128
130
};
@@ -147,11 +149,11 @@ export default function ComponentMap({
0 commit comments