Skip to content

Commit

Permalink
update hover info
Browse files Browse the repository at this point in the history
  • Loading branch information
dancingfrog committed Aug 7, 2024
1 parent c8d27a9 commit 2b45ff9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions inst/dist/@cori-risi/components/HoverInfo.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ export default function HoverInfo(props: {
hoverInfo: HoverObject;
xOffset?: number;
yOffset?: number;
zIndex?: number;
}): React.JSX.Element;
//# sourceMappingURL=HoverInfo.d.ts.map
2 changes: 1 addition & 1 deletion inst/dist/@cori-risi/components/HoverInfo.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion inst/dist/@cori-risi/components/HoverInfo.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion inst/dist/@cori-risi/components/HoverInfo.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions lib/@cori-risi/components/HoverInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ export interface HoverObject {
export default function HoverInfo (props: {
children?: ReactElement<any, any> | ReactElement<any, any>[],
hoverInfo: HoverObject,
xOffset?: number, yOffset?: number
xOffset?: number,
yOffset?: number,
zIndex?: number
}) {
const { hoverInfo, xOffset, yOffset } = props;

Expand All @@ -52,7 +54,7 @@ export default function HoverInfo (props: {
position: "fixed",
minWidth: "320px",
minHeight: "240px",
zIndex: 1
zIndex: props.zIndex || 3

}}>
{props.children}
Expand Down

0 comments on commit 2b45ff9

Please sign in to comment.