* Update props for new react-cornerstone-viewport implementation * Create an preRegistration hook for the cornerstone extension to setup cornerstone tools (takes configuration) * Isolate measurements panel logic * reorder extension registration * remove unused setupTools * Restore CINE connection * fix stack prefetcher toggling * Cleanup OHIFCornerstoneViewport props * updated yarn lock * bust yarn.lock to get updated react-cornerstone-viewport * fix review comment; us isActive to better show it's influence on prefetch * refactor: remove pass through method * review performance optimization * review; comment out unused variable * shift tool under correct comment * Use alternative csTools config, if provided * Note regarding config options
32 lines
671 B
JavaScript
32 lines
671 B
JavaScript
import ConnectedMeasurementTable from './ConnectedMeasurementTable.js';
|
|
import init from './init.js';
|
|
|
|
export default {
|
|
/**
|
|
* Only required property. Should be a unique value across all extensions.
|
|
*/
|
|
id: 'measurements-table',
|
|
|
|
preRegistration(configuration = {}) {
|
|
init(configuration);
|
|
},
|
|
getPanelModule() {
|
|
return {
|
|
menuOptions: [
|
|
{
|
|
icon: 'list',
|
|
label: 'Measurements',
|
|
target: 'measurement-panel',
|
|
},
|
|
],
|
|
components: [
|
|
{
|
|
id: 'measurement-panel',
|
|
component: ConnectedMeasurementTable,
|
|
},
|
|
],
|
|
defaultContext: ['VIEWER'],
|
|
};
|
|
},
|
|
};
|