feat: Viewport component and API definition
This commit is contained in:
1 parent
08ebfd5865
commit
5f9535a74b
6 files changed
+83
-19
No files matched your search
@@ -19,6 +19,7 @@ import {
|
||||
ViewportActionBar,
|
||||
ViewportGrid,
|
||||
Notification,
|
||||
Viewport,
|
||||
} from '@ohif/ui';
|
||||
|
||||
import Header from './components/Header';
|
||||
@@ -77,25 +78,45 @@ import { tabs } from './studyBrowserMockData';
|
||||
rows={1}
|
||||
cols={2}
|
||||
viewportContents={[
|
||||
<div className="flex flex-col h-full">
|
||||
<ViewportActionBar isTracked modality="CT" />
|
||||
<Notification
|
||||
text="Track all measurement for this series?"
|
||||
type="info"
|
||||
actionButtons={
|
||||
<div>
|
||||
<Button>No</Button>
|
||||
<Button className="ml-2">No, do not ask again</Button>
|
||||
<Button className="ml-2" color="primary">
|
||||
Yes
|
||||
</Button>
|
||||
</div>
|
||||
}
|
||||
/>
|
||||
</div>,
|
||||
<div className="flex flex-col h-full">
|
||||
<ViewportActionBar isTracked={false} modality="CT" />
|
||||
</div>,
|
||||
<Viewport
|
||||
viewportIndex={0}
|
||||
onSeriesChange={() => {}}
|
||||
studyData={{
|
||||
isTracked: false,
|
||||
studyDate: '07-Sep-2010',
|
||||
currentSeries: 1,
|
||||
modality: 'CT',
|
||||
patientInformation: {
|
||||
patientName: 'Smith, Jane',
|
||||
patientSex: 'F',
|
||||
patientAge: '59',
|
||||
MRN: '10000001',
|
||||
thickness: '5.0mm',
|
||||
spacing: '1.25mm',
|
||||
scanner: 'Aquilion',
|
||||
},
|
||||
}}
|
||||
isTracked={false}
|
||||
activeViewportIndex={activeViewportIndex}
|
||||
/>,
|
||||
<Viewport
|
||||
viewportIndex={1}
|
||||
onSeriesChange={() => {}}
|
||||
studyData={{
|
||||
isTracked: false,
|
||||
studyDate: '07-Sep-2010',
|
||||
currentSeries: 1,
|
||||
modality: 'CT',
|
||||
patientInformation: {
|
||||
patientName: 'Smith, Jane',
|
||||
patientSex: 'F',
|
||||
patientAge: '59',
|
||||
MRN: '10000001',
|
||||
},
|
||||
}}
|
||||
isTracked={false}
|
||||
activeViewportIndex={activeViewportIndex}
|
||||
/>,
|
||||
]}
|
||||
setActiveViewportIndex={setActiveViewportIndex}
|
||||
activeViewportIndex={activeViewportIndex}
|
||||
|
||||
Reference in new issue
Block a user