mirror of
https://github.com/nasa/openmct.git
synced 2025-06-14 05:08:15 +00:00
[Selection] Expose inspector registry
This commit is contained in:
@ -23,14 +23,17 @@
|
|||||||
define([
|
define([
|
||||||
'./selection/Selection',
|
'./selection/Selection',
|
||||||
'./selection/ContextManager',
|
'./selection/ContextManager',
|
||||||
'./selection/SelectGesture'
|
'./selection/SelectGesture',
|
||||||
], function (Selection, ContextManager, SelectGesture) {
|
'./ui/ViewRegistry'
|
||||||
|
], function (Selection, ContextManager, SelectGesture, ViewRegistry) {
|
||||||
var openmct = {};
|
var openmct = {};
|
||||||
var selection = new Selection();
|
var selection = new Selection();
|
||||||
var manager = new ContextManager();
|
var manager = new ContextManager();
|
||||||
var select = new SelectGesture(manager, selection);
|
var select = new SelectGesture(manager, selection);
|
||||||
|
|
||||||
openmct.selection = new selection;
|
openmct.selection = selection;
|
||||||
|
|
||||||
|
openmct.inspectors = new ViewRegistry();
|
||||||
|
|
||||||
openmct.gestures = {
|
openmct.gestures = {
|
||||||
selectable: select.apply.bind(select)
|
selectable: select.apply.bind(select)
|
||||||
|
Reference in New Issue
Block a user