@@ -167,55 +167,13 @@ export default function ComponentMap({
167167 // nestedObj = nestedObj.forEach(e => makePropsPretty(e));
168168 // }
169169 // } catch (error) {
170- // console.log('not a react componenet');
171170 // }
172171 // }
173172 // }
174- // const makePropsPretty = data => {
175- // const propsFormat = [];
176- // let nestedObj;
177- // for (const key in data) {
178- // if (data[key] !== 'reactFiber' && typeof data[key] !== 'object' && exclude.includes(key) !== true) {
179- // propsFormat.push(<p className="stateprops">
180- // {`${key}: ${nestedObj || data[key]}` }
181- // </p>);
182- // } else if (typeof data[key] === 'object' && exclude.includes(key) !== true) {
183- // nestedObj = makePropsPretty(data[key]);
184- // try {
185- // if (nestedObj[0].$$typeof) {
186- // // nestedObj = nestedObj.forEach(e => makePropsPretty(e.props.children));
187- // nestedObj = nestedObj.forEach(e => {
188- // console.log('this is e show the object', e);
189- // if (typeof e.props.children === 'object') {
190- // console.log('nested obj show me ', typeof e.props.children, e.props.children);
191- // return e.props.children;
192- // }
193- // console.log('not an object in nestedobj', typeof e.props.children, e.props.children);
194- // return e.props.children;
195- // });
196- // console.log('show me show show show show show show show', nestedObj);
197- // // console.log('show me the nestedobj after the react thing', nestedObj)
198- // } else {
199- // nestedObj = nestedObj.forEach(e =>{
200- // console.log('this is not a react thing so show me', e)
201- // makePropsPretty(e)
202- // });
203- // }
204- // } catch (error) {
205- // console.log(error);
206- // }
207- // }
208- // if (nestedObj) {
209- // propsFormat.push(nestedObj);
210- // }
211- // }
212- // return propsFormat;
213- // };
214173
215174 const makePropsPretty = data => {
216175 const propsFormat = [ ] ;
217176 const nestedObj = [ ] ;
218- // console.log('show me the data we are getting', data);
219177 for ( const key in data ) {
220178 if ( data [ key ] !== 'reactFiber' && typeof data [ key ] !== 'object' && exclude . includes ( key ) !== true ) {
221179 propsFormat . push ( < p className = "stateprops" >
@@ -235,7 +193,6 @@ export default function ComponentMap({
235193
236194 const collectNodes = node => {
237195 nodeList . splice ( 0 , nodeList . length ) ;
238- // console.log('Root node:', node);
239196 nodeList . push ( node ) ;
240197 for ( let i = 0 ; i < nodeList . length ; i ++ ) {
241198 const cur = nodeList [ i ] ;
@@ -245,14 +202,12 @@ export default function ComponentMap({
245202 }
246203 }
247204 }
248- // console.log('NODELIST in ComponentMap: ', nodeList);
249205 } ;
250206 collectNodes ( snapshots [ lastNode ] ) ;
251207
252208 // find the node that has been selected and use it as the root
253209 const startNode = null ;
254210 const findSelectedNode = ( ) => {
255- // console.log(selectedNode);
256211 for ( const node of nodeList ) {
257212 if ( node . name === selectedNode ) {
258213 startNode = node ;
@@ -283,7 +238,6 @@ export default function ComponentMap({
283238 < LinearGradient id = "links-gradient" from = "#fd9b93" to = "#fe6e9e" />
284239 < rect width = { totalWidth } height = { totalHeight } rx = { 14 } fill = "#242529" />
285240 < Group top = { margin . top } left = { margin . left } >
286- { console . log ( 'This is the SelectedNode:' , selectedNode ) }
287241 < Tree
288242 root = { hierarchy ( startNode || data , d => ( d . isExpanded ? null : d . children ) ) }
289243 size = { [ sizeWidth , sizeHeight ] }
@@ -329,16 +283,11 @@ export default function ComponentMap({
329283 // mousing controls & Tooltip display logic
330284 const handleMouseAndClickOver = event => {
331285 ( ) => dispatch ( onHover ( node . data . rtid ) ) ;
332- console . log ( 'line 197 event.target' , event . target . ownerSVGElement ) ;
333- console . log ( 'line 199 This is DATA: ' , data ) ;
334- console . log ( 'line 200 This is TREE: ' , tree ) ;
335- console . log ( 'line 201 This is NODE: ' , node ) ;
336286 const coords = localPoint (
337287 event . target . ownerSVGElement ,
338288 event ,
339289 ) ;
340290 const tooltipObj = { ...node . data } ;
341- console . log ( 'NODE DATAAAAAAAAAAAAA' , node ) ;
342291 if ( typeof tooltipObj . state === 'object' ) tooltipObj . state = 'stateful' ;
343292 showTooltip ( {
344293 tooltipLeft : coords . x ,
0 commit comments