2019-07-04 14:09:13 -04:00
|
|
|
import ConnectedMeasurementTable from './ConnectedMeasurementTable.js';
|
2019-10-09 10:23:14 -04:00
|
|
|
import init from './init.js';
|
2019-07-04 14:09:13 -04:00
|
|
|
|
|
|
|
|
export default {
|
2019-10-09 10:23:14 -04:00
|
|
|
/**
|
|
|
|
|
* Only required property. Should be a unique value across all extensions.
|
|
|
|
|
*/
|
2019-07-04 14:09:13 -04:00
|
|
|
id: 'measurements-table',
|
2019-10-09 10:23:14 -04:00
|
|
|
|
2019-11-14 10:32:24 -03:00
|
|
|
preRegistration({ servicesManager, configuration = {} }) {
|
|
|
|
|
init({ servicesManager, configuration });
|
2019-10-09 10:23:14 -04:00
|
|
|
},
|
2019-11-14 19:29:40 -03:00
|
|
|
getPanelModule({ servicesManager }) {
|
2019-07-04 14:09:13 -04:00
|
|
|
return {
|
|
|
|
|
menuOptions: [
|
|
|
|
|
{
|
|
|
|
|
icon: 'list',
|
|
|
|
|
label: 'Measurements',
|
|
|
|
|
target: 'measurement-panel',
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
components: [
|
|
|
|
|
{
|
|
|
|
|
id: 'measurement-panel',
|
|
|
|
|
component: ConnectedMeasurementTable,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
defaultContext: ['VIEWER'],
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
};
|