-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(viewer.js): Polygon/Point/Ellipse/Rectangle 2D and 3D bulk an…
…notations support (#170) * Bump package versions and update logging * Improve logs and bump java heap memory * Add new annotation property * Add proxy script to start dev viewer * Address multiple calls to populate viewports * Rollback populate viewports call to did mount * Bump mem size for larger annotations * Add 2d support * Add firebase config * Remove fixed zoom level * Cleanup on unmount * Improve error logging * Add warnings to debug toolbar button and disable strict mode * Run lint * Adjustments to error handling middlware * fix: filter ann groups per series (#215) * fix: filter ann groups per series * fix: change to referencedSeriesInstanceUID * feat: add tooltip on hover (#217) * Lint * Lint * Update dicomweb action * Update dcm4chee response * Update docker version --------- Co-authored-by: Pedro H. Köhler <[email protected]>
- Loading branch information
1 parent
ec94737
commit 2c58820
Showing
16 changed files
with
412 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,6 @@ window.config = { | |
color: [255, 255, 255, 0.2] | ||
} | ||
} | ||
} | ||
}, | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
const HoveredRoiTooltip = ({ | ||
xPosition, | ||
yPosition, | ||
attributes | ||
}: { | ||
xPosition: number | ||
yPosition: number | ||
attributes: Array<{ name: string, value: string }> | ||
}): JSX.Element => { | ||
return ( | ||
<div | ||
style={{ | ||
position: 'fixed', | ||
top: `${yPosition}px`, | ||
left: `${xPosition}px`, | ||
backgroundColor: 'rgba(230, 230, 230, 0.65)', | ||
minWidth: '150px', | ||
minHeight: '60px', | ||
padding: '20px', | ||
fontWeight: 'bold', | ||
pointerEvents: 'none' | ||
}} | ||
> | ||
{attributes.map((attr) => ( | ||
<div key={attr.name}> | ||
{attr.name}: <span style={{ fontWeight: 500 }}>{attr.value}</span> | ||
</div> | ||
))} | ||
</div> | ||
) | ||
} | ||
|
||
export default HoveredRoiTooltip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.