File tree Expand file tree Collapse file tree 3 files changed +13
-15
lines changed
src/app/components/StateRoute Expand file tree Collapse file tree 3 files changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -331,18 +331,18 @@ export default function ComponentMap({
331331 }
332332
333333 // mousing controls & Tooltip display logic
334- // const handleMouseAndClickOver: void = (event) => {
335- // const coords = localPoint(event.target.ownerSVGElement, event);
336- // const tooltipObj = { ...node.data };
337-
338- // showTooltip({
339- // tooltipLeft: coords.x,
340- // tooltipTop: coords.y,
341- // tooltipData: tooltipObj,
342- // // this is where the data for state and render time is displayed
343- // // but does not show props functions and etc
344- // });
345- // };
334+ const handleMouseAndClickOver : void = ( event ) => {
335+ const coords = localPoint ( event . target . ownerSVGElement , event ) ;
336+ const tooltipObj = { ...node . data } ;
337+
338+ showTooltip ( {
339+ tooltipLeft : coords . x ,
340+ tooltipTop : coords . y ,
341+ tooltipData : tooltipObj ,
342+ // this is where the data for state and render time is displayed
343+ // but does not show props functions and etc
344+ } ) ;
345+ } ;
346346
347347 return (
348348 < Group top = { top } left = { left } key = { key } className = 'rect' >
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ const StateRoute = (props: StateRouteProps) => {
3636
3737 const { tabs, currentTab } : MainState = useSelector ( ( state : RootState ) => state . main ) ;
3838 const { hierarchy : tabsHierarchy , sliderIndex, viewIndex : tabsViewIndex } = tabs [ currentTab ] ;
39- const hierarchy = propsHierarchy || tabsHierarchy ; //JR: RETURN TO THIS: alias to deconstruct from props and tab with the same name, aliases were deleted above
39+ const hierarchy = propsHierarchy || tabsHierarchy ;
4040 const viewIndex = propsViewIndex || tabsViewIndex ;
4141
4242 return (
Original file line number Diff line number Diff line change 11{
2- "mode" : " modules" ,
3-
42 "entryPoints" : [" src/" ],
53 "out" : " docs/ src/app src/backend" ,
64 "readme" : " README.md" ,
You can’t perform that action at this time.
0 commit comments