mirror of
https://github.com/nasa/openmct.git
synced 2024-12-21 14:07:50 +00:00
67b9af54b3
Add representers as a category of extension; these are extra steps to perform when representing a domain object. This will be used to support automatic mutation/persistence of domain objects from a watch, while avoiding bloat within the mct-representation directive itself. This, in turn, simplifies the persistence strategy to be employed by Layout views when editing concludes. WTD-535.
47 lines
1.4 KiB
JSON
47 lines
1.4 KiB
JSON
{
|
|
"extensions": {
|
|
"directives": [
|
|
{
|
|
"key": "mctInclude",
|
|
"implementation": "MCTInclude.js",
|
|
"depends": [ "templates[]" ]
|
|
},
|
|
{
|
|
"key": "mctRepresentation",
|
|
"implementation": "MCTRepresentation.js",
|
|
"depends": [ "representations[]", "views[]", "representers[]", "$q", "$log" ]
|
|
}
|
|
],
|
|
"gestures": [
|
|
{
|
|
"key": "drag",
|
|
"implementation": "gestures/DragGesture.js",
|
|
"depends": [ "$log" ]
|
|
},
|
|
{
|
|
"key": "drop",
|
|
"implementation": "gestures/DropGesture.js",
|
|
"depends": [ "$q" ]
|
|
},
|
|
{
|
|
"key": "menu",
|
|
"implementation": "gestures/ContextMenuGesture.js",
|
|
"depends": [ "$compile", "$document", "$window", "$rootScope" ]
|
|
}
|
|
],
|
|
"components": [
|
|
{
|
|
"provides": "gestureService",
|
|
"type": "provider",
|
|
"implementation": "gestures/GestureProvider.js",
|
|
"depends": ["gestures[]"]
|
|
}
|
|
],
|
|
"representers": [
|
|
{
|
|
"implementation": "gestures/GestureRepresenter.js",
|
|
"depends": [ "gestureService" ]
|
|
}
|
|
]
|
|
}
|
|
} |