otsdaq_utilities  v2_04_02
widgetLibrary.js
1 //=====================================================================================
2 //
3 // Created Aug, 2016
4 // by Daniel Parilla ((parilla at fnal.gov))
5 //
6 // OtsConfigurationWizard.js
7 //
8 //
9 //
10 //
11 //
12 //
13 //=====================================================================================
14 var widgetLibrary = widgetLibrary || {};
15 widgetLibrary.typeToSrc = { "0" :"widget_text.html",
16  "1" :"widget_basicDisplay.html",
17  "2" :"widget_text_with_title.html",
18  "3" :"guage_widget.html",
19  "4" :"simple_bar_chart.html",
20  "5" :"thermometer.html"/*,
21  "3" :"widgets",
22  "4" :"widgets",
23  "5" :"widgets/thermometer.html",
24  "6" :"widgets",
25  "7" :"widgets",
26  "8" :"widgets",
27  "9" :"widgets",
28  "10":"widgets",
29  "11":"widgets",
30  "12":"widgets" */
31  }
32 widgetLibrary.typeToImgSrc = {
33  "0" :"label-icon.png",
34  "1" :"digital-clock-icon.png",
35  "2" :"label-icon.png",
36  "3" :"guage-icon.png",
37  "4" :"basic-chart-icon.png",
38  "5" :"thermometer-icon.png" /*,
39  "3" :"Alarm-clock-icon.png",
40  "4" :"digital-clock-icon.png",
41  "5" :"thermometer-icon.png", */
42  }
43 widgetLibrary.typeToName = {
44  "0" : "Plain Text",
45  "2" : "Basic Display with name & value displays",
46  "3" : "Basic Guage Style Display",
47  "4" : "Basic Line Chart",
48  "5" : "Basic Thermometer"/*,
49  "2" : "Hakeem's Widet",
50  "3" : "Clock",
51  "4" : "Clock",
52  "5" : "Temperature" */
53  }
54 widgetLibrary.typeToPurpose = {
55  "0" : "Plain Text",
56  "2" : "Plain Text",
57  "3" : "Guage",
58  "4" : "Chart",
59  "5" : "Thermometer"/*,
60  "2" : "Hakeem's Widet",
61  "3" : "Clock",
62  "4" : "Clock",
63  "5" : "Temperature" */
64  }
65 
66 widgetLibrary.dimensions = {
67  "0": {
68  "X": "100",
69  "Y": "300",
70  "Scale": "False"
71  },
72  "4": {
73  "X": "300",
74  "Y": "200",
75  "Scale": "True"
76  },
77  "7": {
78  "X": "300",
79  "Y": "300",
80  "Scale": "True"
81  }
82 }
83 
84 
85 widgetLibrary.init = function()
86 {
87 
88 }