mirror of
https://github.com/nasa/openmct.git
synced 2024-12-29 09:28:52 +00:00
19 lines
441 B
JavaScript
19 lines
441 B
JavaScript
|
import MCT from 'MCT';
|
||
|
|
||
|
export function createOpenMct() {
|
||
|
const openmct = new MCT();
|
||
|
openmct.install(openmct.plugins.LocalStorage());
|
||
|
openmct.install(openmct.plugins.UTCTimeSystem());
|
||
|
openmct.time.timeSystem('utc', {start: 0, end: 1});
|
||
|
|
||
|
return openmct;
|
||
|
}
|
||
|
|
||
|
export function createMouseEvent(eventName) {
|
||
|
return new MouseEvent(eventName, {
|
||
|
bubbles: true,
|
||
|
cancelable: true,
|
||
|
view: window
|
||
|
});
|
||
|
}
|