Skip to content

Commit 474f687

Browse files
committed
-brought onHover functionality back to componentMap
-removed an old comment in stateroute -removed 'mode' from typedoc.json
1 parent 076f58d commit 474f687

File tree

3 files changed

+13
-15
lines changed

3 files changed

+13
-15
lines changed

src/app/components/StateRoute/ComponentMap/ComponentMap.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff 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'>

src/app/components/StateRoute/StateRoute.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 (

typedoc.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
2-
"mode": "modules",
3-
42
"entryPoints": ["src/"],
53
"out": "docs/ src/app src/backend",
64
"readme": "README.md",

0 commit comments

Comments
 (0)