openmct/platform/features/conductor-v2/conductor/bundle.js

147 lines
5.5 KiB
JavaScript
Raw Normal View History

2016-07-07 16:47:46 +00:00
/*****************************************************************************
* Open MCT Web, Copyright (c) 2014-2015, United States Government
* as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT Web is licensed under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
* Open MCT Web includes source code licensed under additional open source
* licenses. See the Open Source Licenses file (LICENSES.md) included with
* this source code distribution or the Licensing information page available
* at runtime from the About dialog for additional information.
*****************************************************************************/
define([
"./src/ui/TimeConductorViewService",
"./src/ui/TimeConductorController",
"./src/TimeConductor",
"./src/ui/ConductorAxisController",
"./src/ui/MctConductorAxis",
2016-08-04 00:40:37 +00:00
"./src/ui/NumberFormat",
2016-07-07 16:47:46 +00:00
"text!./res/templates/time-conductor.html",
"text!./res/templates/mode-selector/mode-selector.html",
"text!./res/templates/mode-selector/mode-menu.html",
"legacyRegistry"
2016-07-07 16:47:46 +00:00
], function (
TimeConductorViewService,
2016-07-07 16:47:46 +00:00
TimeConductorController,
TimeConductor,
ConductorAxisController,
2016-07-07 16:47:46 +00:00
MCTConductorAxis,
2016-08-04 00:40:37 +00:00
NumberFormat,
2016-07-07 16:47:46 +00:00
timeConductorTemplate,
modeSelectorTemplate,
modeMenuTemplate,
legacyRegistry
) {
2016-08-01 22:14:23 +00:00
legacyRegistry.register("platform/features/conductor-v2/conductor", {
2016-07-07 16:47:46 +00:00
"extensions": {
"services": [
2016-08-03 20:05:43 +00:00
{
"key": "timeConductor",
"implementation": TimeConductor
2016-08-03 20:05:43 +00:00
},
2016-07-07 16:47:46 +00:00
{
"key": "timeConductorViewService",
"implementation": TimeConductorViewService,
"depends": [
"timeConductor",
"timeSystems[]"
]
2016-07-07 16:47:46 +00:00
}
],
"controllers": [
{
"key": "TimeConductorController",
"implementation": TimeConductorController,
"depends": [
"$scope",
"$window",
"timeConductor",
"timeConductorViewService",
"timeSystems[]",
"formatService"
2016-07-07 16:47:46 +00:00
]
},
{
"key": "ConductorAxisController",
"implementation": ConductorAxisController,
"depends": [
"timeConductor",
"formatService",
"timeConductorViewService"
]
2016-07-07 16:47:46 +00:00
}
],
"directives": [
{
"key": "mctConductorAxis",
"implementation": MCTConductorAxis,
2016-07-07 23:57:03 +00:00
"depends": [
"timeConductor",
"formatService"
2016-07-07 23:57:03 +00:00
]
2016-07-07 16:47:46 +00:00
}
],
"stylesheets": [
{
"stylesheetUrl": "css/time-conductor-espresso.css",
"theme": "espresso"
},
{
"stylesheetUrl": "css/time-conductor-snow.css",
"theme": "snow"
}
],
"templates": [
{
"key": "conductor",
"template": timeConductorTemplate
},
2016-07-07 16:47:46 +00:00
{
"key": "mode-menu",
"template": modeMenuTemplate
2016-07-07 16:47:46 +00:00
},
{
"key": "mode-selector",
"template": modeSelectorTemplate
}
],
"representations": [
2016-07-07 16:47:46 +00:00
{
"key": "time-conductor",
"template": timeConductorTemplate
2016-07-07 16:47:46 +00:00
}
2016-08-04 00:40:37 +00:00
],
2016-10-05 18:17:22 +00:00
"licenses": [
{
"name": "D3: Data-Driven Documents",
"version": "4.1.0",
"author": "Mike Bostock",
"description": "D3 (or D3.js) is a JavaScript library for visualizing data using web standards. D3 helps you bring data to life using SVG, Canvas and HTML. D3 combines powerful visualization and interaction techniques with a data-driven approach to DOM manipulation, giving you the full capabilities of modern browsers and the freedom to design the right visual interface for your data.",
"website": "https://d3js.org/",
"copyright": "Copyright 2010-2016 Mike Bostock",
"license": "BSD-3-Clause",
"link": "https://github.com/d3/d3/blob/master/LICENSE"
}
],
2016-08-04 00:40:37 +00:00
"formats": [
{
"key": "number",
"implementation": NumberFormat
}
2016-07-07 16:47:46 +00:00
]
}
});
});