mirror of
https://github.com/nasa/openmct.git
synced 2024-12-28 00:48:51 +00:00
147 lines
5.5 KiB
JavaScript
147 lines
5.5 KiB
JavaScript
/*****************************************************************************
|
|
* 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",
|
|
"./src/ui/NumberFormat",
|
|
"text!./res/templates/time-conductor.html",
|
|
"text!./res/templates/mode-selector/mode-selector.html",
|
|
"text!./res/templates/mode-selector/mode-menu.html",
|
|
"legacyRegistry"
|
|
], function (
|
|
TimeConductorViewService,
|
|
TimeConductorController,
|
|
TimeConductor,
|
|
ConductorAxisController,
|
|
MCTConductorAxis,
|
|
NumberFormat,
|
|
timeConductorTemplate,
|
|
modeSelectorTemplate,
|
|
modeMenuTemplate,
|
|
legacyRegistry
|
|
) {
|
|
|
|
legacyRegistry.register("platform/features/conductor-v2/conductor", {
|
|
"extensions": {
|
|
"services": [
|
|
{
|
|
"key": "timeConductor",
|
|
"implementation": TimeConductor
|
|
},
|
|
{
|
|
"key": "timeConductorViewService",
|
|
"implementation": TimeConductorViewService,
|
|
"depends": [
|
|
"timeConductor",
|
|
"timeSystems[]"
|
|
]
|
|
}
|
|
],
|
|
"controllers": [
|
|
{
|
|
"key": "TimeConductorController",
|
|
"implementation": TimeConductorController,
|
|
"depends": [
|
|
"$scope",
|
|
"$window",
|
|
"timeConductor",
|
|
"timeConductorViewService",
|
|
"timeSystems[]",
|
|
"formatService"
|
|
]
|
|
},
|
|
{
|
|
"key": "ConductorAxisController",
|
|
"implementation": ConductorAxisController,
|
|
"depends": [
|
|
"timeConductor",
|
|
"formatService",
|
|
"timeConductorViewService"
|
|
]
|
|
}
|
|
],
|
|
"directives": [
|
|
{
|
|
"key": "mctConductorAxis",
|
|
"implementation": MCTConductorAxis,
|
|
"depends": [
|
|
"timeConductor",
|
|
"formatService"
|
|
]
|
|
}
|
|
],
|
|
"stylesheets": [
|
|
{
|
|
"stylesheetUrl": "css/time-conductor-espresso.css",
|
|
"theme": "espresso"
|
|
},
|
|
{
|
|
"stylesheetUrl": "css/time-conductor-snow.css",
|
|
"theme": "snow"
|
|
}
|
|
],
|
|
"templates": [
|
|
{
|
|
"key": "conductor",
|
|
"template": timeConductorTemplate
|
|
},
|
|
{
|
|
"key": "mode-menu",
|
|
"template": modeMenuTemplate
|
|
},
|
|
{
|
|
"key": "mode-selector",
|
|
"template": modeSelectorTemplate
|
|
}
|
|
],
|
|
"representations": [
|
|
{
|
|
"key": "time-conductor",
|
|
"template": timeConductorTemplate
|
|
}
|
|
],
|
|
"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"
|
|
}
|
|
],
|
|
"formats": [
|
|
{
|
|
"key": "number",
|
|
"implementation": NumberFormat
|
|
}
|
|
]
|
|
}
|
|
});
|
|
});
|