rgraph-rails 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.travis.yml +0 -1
- data/README.md +3 -3
- data/lib/rgraph-rails/version.rb +1 -1
- data/vendor/assets/javascripts/RGraph.bar.js +239 -3764
- data/vendor/assets/javascripts/RGraph.bipolar.js +115 -1986
- data/vendor/assets/javascripts/RGraph.common.annotate.js +35 -399
- data/vendor/assets/javascripts/RGraph.common.context.js +30 -600
- data/vendor/assets/javascripts/RGraph.common.core.js +403 -5187
- data/vendor/assets/javascripts/RGraph.common.csv.js +19 -275
- data/vendor/assets/javascripts/RGraph.common.deprecated.js +35 -454
- data/vendor/assets/javascripts/RGraph.common.dynamic.js +84 -1189
- data/vendor/assets/javascripts/RGraph.common.effects.js +90 -1548
- data/vendor/assets/javascripts/RGraph.common.key.js +54 -755
- data/vendor/assets/javascripts/RGraph.common.resizing.js +37 -567
- data/vendor/assets/javascripts/RGraph.common.sheets.js +29 -356
- data/vendor/assets/javascripts/RGraph.common.tooltips.js +32 -614
- data/vendor/assets/javascripts/RGraph.common.zoom.js +14 -223
- data/vendor/assets/javascripts/RGraph.cornergauge.js +71 -0
- data/vendor/assets/javascripts/RGraph.drawing.background.js +35 -620
- data/vendor/assets/javascripts/RGraph.drawing.circle.js +35 -576
- data/vendor/assets/javascripts/RGraph.drawing.image.js +52 -807
- data/vendor/assets/javascripts/RGraph.drawing.marker1.js +41 -717
- data/vendor/assets/javascripts/RGraph.drawing.marker2.js +37 -668
- data/vendor/assets/javascripts/RGraph.drawing.marker3.js +36 -563
- data/vendor/assets/javascripts/RGraph.drawing.poly.js +40 -608
- data/vendor/assets/javascripts/RGraph.drawing.rect.js +35 -597
- data/vendor/assets/javascripts/RGraph.drawing.text.js +34 -642
- data/vendor/assets/javascripts/RGraph.drawing.xaxis.js +50 -809
- data/vendor/assets/javascripts/RGraph.drawing.yaxis.js +51 -856
- data/vendor/assets/javascripts/RGraph.fuel.js +58 -964
- data/vendor/assets/javascripts/RGraph.funnel.js +55 -984
- data/vendor/assets/javascripts/RGraph.gantt.js +75 -1241
- data/vendor/assets/javascripts/RGraph.gauge.js +87 -1397
- data/vendor/assets/javascripts/RGraph.hbar.js +143 -2376
- data/vendor/assets/javascripts/RGraph.hprogress.js +80 -1397
- data/vendor/assets/javascripts/RGraph.line.js +241 -4162
- data/vendor/assets/javascripts/RGraph.meter.js +74 -1278
- metadata +3 -30
- data/vendor/assets/images/bg.png +0 -0
- data/vendor/assets/images/bullet.png +0 -0
- data/vendor/assets/images/facebook-large.png +0 -0
- data/vendor/assets/images/google-plus-large.png +0 -0
- data/vendor/assets/images/logo.png +0 -0
- data/vendor/assets/images/meter-image-sd-needle.png +0 -0
- data/vendor/assets/images/meter-image-sd.png +0 -0
- data/vendor/assets/images/meter-sketch-needle.png +0 -0
- data/vendor/assets/images/meter-sketch.png +0 -0
- data/vendor/assets/images/odometer-background.png +0 -0
- data/vendor/assets/images/rgraph.jpg +0 -0
- data/vendor/assets/images/title.png +0 -0
- data/vendor/assets/images/twitter-large.png +0 -0
- data/vendor/assets/javascripts/RGraph.modaldialog.js +0 -301
- data/vendor/assets/javascripts/RGraph.odo.js +0 -1265
- data/vendor/assets/javascripts/RGraph.pie.js +0 -2272
- data/vendor/assets/javascripts/RGraph.radar.js +0 -1847
- data/vendor/assets/javascripts/RGraph.rose.js +0 -1877
- data/vendor/assets/javascripts/RGraph.rscatter.js +0 -1425
- data/vendor/assets/javascripts/RGraph.scatter.js +0 -2970
- data/vendor/assets/javascripts/RGraph.semicircularprogress.js +0 -1015
- data/vendor/assets/javascripts/RGraph.thermometer.js +0 -1129
- data/vendor/assets/javascripts/RGraph.vprogress.js +0 -1452
- data/vendor/assets/javascripts/RGraph.waterfall.js +0 -1252
- data/vendor/assets/javascripts/financial-data.js +0 -1067
- data/vendor/assets/stylesheets/ModalDialog.css +0 -90
- data/vendor/assets/stylesheets/animations.css +0 -3347
- data/vendor/assets/stylesheets/website.css +0 -446
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rgraph-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Griffin
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -87,19 +87,6 @@ files:
|
|
87
87
|
- lib/rgraph-rails/version.rb
|
88
88
|
- license.txt
|
89
89
|
- rgraph-rails.gemspec
|
90
|
-
- vendor/assets/images/bg.png
|
91
|
-
- vendor/assets/images/bullet.png
|
92
|
-
- vendor/assets/images/facebook-large.png
|
93
|
-
- vendor/assets/images/google-plus-large.png
|
94
|
-
- vendor/assets/images/logo.png
|
95
|
-
- vendor/assets/images/meter-image-sd-needle.png
|
96
|
-
- vendor/assets/images/meter-image-sd.png
|
97
|
-
- vendor/assets/images/meter-sketch-needle.png
|
98
|
-
- vendor/assets/images/meter-sketch.png
|
99
|
-
- vendor/assets/images/odometer-background.png
|
100
|
-
- vendor/assets/images/rgraph.jpg
|
101
|
-
- vendor/assets/images/title.png
|
102
|
-
- vendor/assets/images/twitter-large.png
|
103
90
|
- vendor/assets/javascripts/RGraph.bar.js
|
104
91
|
- vendor/assets/javascripts/RGraph.bipolar.js
|
105
92
|
- vendor/assets/javascripts/RGraph.common.annotate.js
|
@@ -114,6 +101,7 @@ files:
|
|
114
101
|
- vendor/assets/javascripts/RGraph.common.sheets.js
|
115
102
|
- vendor/assets/javascripts/RGraph.common.tooltips.js
|
116
103
|
- vendor/assets/javascripts/RGraph.common.zoom.js
|
104
|
+
- vendor/assets/javascripts/RGraph.cornergauge.js
|
117
105
|
- vendor/assets/javascripts/RGraph.drawing.background.js
|
118
106
|
- vendor/assets/javascripts/RGraph.drawing.circle.js
|
119
107
|
- vendor/assets/javascripts/RGraph.drawing.image.js
|
@@ -133,21 +121,6 @@ files:
|
|
133
121
|
- vendor/assets/javascripts/RGraph.hprogress.js
|
134
122
|
- vendor/assets/javascripts/RGraph.line.js
|
135
123
|
- vendor/assets/javascripts/RGraph.meter.js
|
136
|
-
- vendor/assets/javascripts/RGraph.modaldialog.js
|
137
|
-
- vendor/assets/javascripts/RGraph.odo.js
|
138
|
-
- vendor/assets/javascripts/RGraph.pie.js
|
139
|
-
- vendor/assets/javascripts/RGraph.radar.js
|
140
|
-
- vendor/assets/javascripts/RGraph.rose.js
|
141
|
-
- vendor/assets/javascripts/RGraph.rscatter.js
|
142
|
-
- vendor/assets/javascripts/RGraph.scatter.js
|
143
|
-
- vendor/assets/javascripts/RGraph.semicircularprogress.js
|
144
|
-
- vendor/assets/javascripts/RGraph.thermometer.js
|
145
|
-
- vendor/assets/javascripts/RGraph.vprogress.js
|
146
|
-
- vendor/assets/javascripts/RGraph.waterfall.js
|
147
|
-
- vendor/assets/javascripts/financial-data.js
|
148
|
-
- vendor/assets/stylesheets/ModalDialog.css
|
149
|
-
- vendor/assets/stylesheets/animations.css
|
150
|
-
- vendor/assets/stylesheets/website.css
|
151
124
|
homepage: https://github.com/thisisbd/rgraph-rails
|
152
125
|
licenses:
|
153
126
|
- GPL-3.0
|
data/vendor/assets/images/bg.png
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,301 +0,0 @@
|
|
1
|
-
// version: 2016-06-04
|
2
|
-
/**
|
3
|
-
* o--------------------------------------------------------------------------------o
|
4
|
-
* | This file is part of the RGraph package - you can learn more at: |
|
5
|
-
* | |
|
6
|
-
* | http://www.rgraph.net |
|
7
|
-
* | |
|
8
|
-
* | RGraph is dual licensed under the Open Source GPL (General Public License) |
|
9
|
-
* | v2.0 license and a commercial license which means that you're not bound by |
|
10
|
-
* | the terms of the GPL. The commercial license is just 99 GBP and you can |
|
11
|
-
* | read about it here: |
|
12
|
-
* | http://www.rgraph.net/license |
|
13
|
-
* o--------------------------------------------------------------------------------o
|
14
|
-
*/
|
15
|
-
|
16
|
-
ModalDialog =
|
17
|
-
{
|
18
|
-
dialog: null,
|
19
|
-
background: null,
|
20
|
-
offset: 50,
|
21
|
-
events: [],
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
/**
|
27
|
-
* Shows the dialog with the supplied DIV acting as the contents
|
28
|
-
*
|
29
|
-
* @param string id The ID of the DIV to use as the dialogs contents
|
30
|
-
* @param int width The width of the dialog
|
31
|
-
*/
|
32
|
-
Show: function (id, width)
|
33
|
-
{
|
34
|
-
ModalDialog.id = id;
|
35
|
-
ModalDialog.width = width;
|
36
|
-
|
37
|
-
ModalDialog.ShowBackground();
|
38
|
-
ModalDialog.ShowDialog();
|
39
|
-
|
40
|
-
// Install the event handlers
|
41
|
-
window.onresize = ModalDialog.Resize;
|
42
|
-
|
43
|
-
// Add an event listener so that the
|
44
|
-
// ESC key hides the dialog
|
45
|
-
document.body.addEventListener('keydown', function (e)
|
46
|
-
{
|
47
|
-
if (e.keyCode === 27) {
|
48
|
-
ModalDialog.hide();
|
49
|
-
}
|
50
|
-
}, false);
|
51
|
-
|
52
|
-
|
53
|
-
// Call them initially
|
54
|
-
ModalDialog.Resize();
|
55
|
-
|
56
|
-
if (typeof(ModalDialog.onmodaldialog) == 'function') {
|
57
|
-
ModalDialog.onmodaldialog();
|
58
|
-
}
|
59
|
-
ModalDialog.FireCustomEvent('onmodaldialog');
|
60
|
-
},
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
/**
|
66
|
-
* Shows the background semi-transparent darkened DIV
|
67
|
-
*/
|
68
|
-
ShowBackground: function ()
|
69
|
-
{
|
70
|
-
// Create the background if neccessary
|
71
|
-
ModalDialog.background = document.createElement('DIV');
|
72
|
-
ModalDialog.background.className = 'ModalDialog_background';
|
73
|
-
ModalDialog.background.style.position = 'fixed';
|
74
|
-
ModalDialog.background.style.top = 0;
|
75
|
-
ModalDialog.background.style.left = 0;
|
76
|
-
ModalDialog.background.style.width = (screen.width + 100) + 'px';
|
77
|
-
ModalDialog.background.style.height = (screen.height + 100) + 'px';
|
78
|
-
ModalDialog.background.style.backgroundColor = 'rgb(204,204,204)';
|
79
|
-
ModalDialog.background.style.opacity = 0;
|
80
|
-
ModalDialog.background.style.zIndex = 3276;
|
81
|
-
ModalDialog.background.style.filter = "Alpha(opacity=50)";
|
82
|
-
|
83
|
-
document.body.appendChild(ModalDialog.background);
|
84
|
-
|
85
|
-
ModalDialog.background.style.visibility = 'visible';
|
86
|
-
},
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
/**
|
92
|
-
* Shows the dialog itself
|
93
|
-
*/
|
94
|
-
ShowDialog: function ()
|
95
|
-
{
|
96
|
-
// Create the DIV if necessary
|
97
|
-
// Jan 2012- Changed so that the dialog is ALWAYS (re)created
|
98
|
-
if (!ModalDialog.dialog || true) {
|
99
|
-
ModalDialog.dialog = document.createElement('DIV');
|
100
|
-
|
101
|
-
ModalDialog.dialog.id = 'ModalDialog_dialog';
|
102
|
-
ModalDialog.dialog.className = 'ModalDialog_dialog';
|
103
|
-
|
104
|
-
var borderRadius = '15px';
|
105
|
-
|
106
|
-
ModalDialog.dialog.style.borderRadius = borderRadius;
|
107
|
-
ModalDialog.dialog.style.MozBorderRadius = borderRadius;
|
108
|
-
ModalDialog.dialog.style.WebkitBorderRadius = borderRadius;
|
109
|
-
|
110
|
-
ModalDialog.dialog.style.boxShadow = '3px 3px 3px rgba(96,96,96,0.5)';
|
111
|
-
ModalDialog.dialog.style.MozBoxShadow = '3px 3px 3px rgba(96,96,96,0.5)';
|
112
|
-
ModalDialog.dialog.style.WebkitBoxShadow = 'rgba(96,96,96,0.5) 3px 3px 3px';
|
113
|
-
|
114
|
-
ModalDialog.dialog.style.position = 'fixed';
|
115
|
-
ModalDialog.dialog.style.backgroundColor = 'white';
|
116
|
-
ModalDialog.dialog.style.width = parseInt(ModalDialog.width) + 'px';
|
117
|
-
ModalDialog.dialog.style.border = '2px solid #999';
|
118
|
-
ModalDialog.dialog.style.zIndex = 32767;
|
119
|
-
ModalDialog.dialog.style.padding = '5px';
|
120
|
-
ModalDialog.dialog.style.paddingTop = '25px';
|
121
|
-
ModalDialog.dialog.style.opacity = 0;
|
122
|
-
|
123
|
-
if (document.all) {
|
124
|
-
ModalDialog.dialog.style.zIndex = 32767;
|
125
|
-
}
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
// Accomodate various browsers
|
130
|
-
if (navigator.userAgent.indexOf('Opera') != -1) {
|
131
|
-
ModalDialog.dialog.style.paddingTop = '25px';
|
132
|
-
|
133
|
-
} else if (navigator.userAgent.indexOf('MSIE') != -1) {
|
134
|
-
ModalDialog.dialog.style.paddingTop = '25px';
|
135
|
-
|
136
|
-
} else if (navigator.userAgent.indexOf('Safari') != -1) {
|
137
|
-
ModalDialog.dialog.style.paddingTop = '25px';
|
138
|
-
}
|
139
|
-
|
140
|
-
document.body.appendChild(ModalDialog.dialog);
|
141
|
-
|
142
|
-
|
143
|
-
// Now create the grey bar at the top of the dialog
|
144
|
-
var bar = document.createElement('DIV');
|
145
|
-
bar.className = 'ModalDialog_topbar';
|
146
|
-
bar.style.top = 0;
|
147
|
-
bar.style.left = 0;
|
148
|
-
bar.style.width = '100%';//(ModalDialog.dialog.offsetWidth - 4) + 'px';
|
149
|
-
bar.style.height = '20px';
|
150
|
-
bar.style.backgroundColor = '#bbb';
|
151
|
-
bar.style.borderBottom = '2px solid #999';
|
152
|
-
//bar.style.zIndex = 50000;
|
153
|
-
bar.style.position = 'absolute';
|
154
|
-
var borderRadius = '11px';
|
155
|
-
bar.style.WebkitBorderTopLeftRadius = borderRadius;
|
156
|
-
bar.style.WebkitBorderTopRightRadius = borderRadius;
|
157
|
-
bar.style.MozBorderRadiusTopleft = borderRadius;
|
158
|
-
bar.style.MozBorderRadiusTopright = borderRadius;
|
159
|
-
bar.style.borderTopRightRadius = borderRadius;
|
160
|
-
bar.style.borderTopLeftRadius = borderRadius;
|
161
|
-
ModalDialog.dialog.appendChild(bar);
|
162
|
-
|
163
|
-
// Add the content div
|
164
|
-
var content = document.createElement('DIV');
|
165
|
-
//content.style.paddingTop = '20px';
|
166
|
-
content.style.width = '100%';
|
167
|
-
content.style.height = '100%';
|
168
|
-
ModalDialog.dialog.appendChild(content);
|
169
|
-
|
170
|
-
if (ModalDialog.id.toLowerCase().substring(0, 7) == 'string:') {
|
171
|
-
content.innerHTML = ModalDialog.id.substring(7);
|
172
|
-
} else {
|
173
|
-
content.innerHTML = document.getElementById(ModalDialog.id).innerHTML;
|
174
|
-
}
|
175
|
-
|
176
|
-
// Now reposition the dialog in the center
|
177
|
-
ModalDialog.dialog.style.left = (document.body.offsetWidth / 2) - (ModalDialog.dialog.offsetWidth / 2) + 'px';
|
178
|
-
ModalDialog.dialog.style.top = '30%';
|
179
|
-
}
|
180
|
-
|
181
|
-
// Show the dialog
|
182
|
-
ModalDialog.dialog.style.visibility = 'visible';
|
183
|
-
|
184
|
-
// A simple fade-in effect
|
185
|
-
setTimeout('ModalDialog.dialog.style.opacity = 0.2', 50);
|
186
|
-
setTimeout('ModalDialog.dialog.style.opacity = 0.4', 100);
|
187
|
-
setTimeout('ModalDialog.dialog.style.opacity = 0.6', 150);
|
188
|
-
setTimeout('ModalDialog.dialog.style.opacity = 0.8', 200);
|
189
|
-
setTimeout('ModalDialog.dialog.style.opacity = 1', 250);
|
190
|
-
|
191
|
-
setTimeout('ModalDialog.background.style.opacity = 0.1', 50);
|
192
|
-
setTimeout('ModalDialog.background.style.opacity = 0.2', 100);
|
193
|
-
setTimeout('ModalDialog.background.style.opacity = 0.3', 150);
|
194
|
-
setTimeout('ModalDialog.background.style.opacity = 0.4', 200);
|
195
|
-
setTimeout('ModalDialog.background.style.opacity = 0.5', 250);
|
196
|
-
},
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
/**
|
202
|
-
* Hides everything
|
203
|
-
*/
|
204
|
-
Close: function ()
|
205
|
-
{
|
206
|
-
if (ModalDialog.dialog) {
|
207
|
-
// February 2012 - now remove the dialog node from the DOM
|
208
|
-
if (document.getElementById(ModalDialog.dialog.id)) {
|
209
|
-
document.body.removeChild(ModalDialog.dialog);
|
210
|
-
}
|
211
|
-
|
212
|
-
ModalDialog.dialog.style.visibility = 'hidden';
|
213
|
-
ModalDialog.dialog.style.opacity = 0;
|
214
|
-
}
|
215
|
-
|
216
|
-
if (ModalDialog.background) {
|
217
|
-
ModalDialog.background.style.visibility = 'hidden';
|
218
|
-
ModalDialog.background.style.opacity = 0;
|
219
|
-
|
220
|
-
// February 2012 - now remove the dialog node from the DOM
|
221
|
-
if (document.getElementById(ModalDialog.background.id)) {
|
222
|
-
document.body.removeChild(ModalDialog.background);
|
223
|
-
}
|
224
|
-
}
|
225
|
-
},
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
/**
|
231
|
-
* Accommodate the window being resized
|
232
|
-
*/
|
233
|
-
Resize: function ()
|
234
|
-
{
|
235
|
-
if (ModalDialog.dialog) {
|
236
|
-
ModalDialog.dialog.style.left = (document.body.offsetWidth / 2) - (ModalDialog.dialog.offsetWidth / 2) + 'px';
|
237
|
-
}
|
238
|
-
|
239
|
-
ModalDialog.background.style.width = '2500px';
|
240
|
-
ModalDialog.background.style.height = '2500px';
|
241
|
-
},
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
/**
|
247
|
-
* Returns the page height
|
248
|
-
*
|
249
|
-
* @return int The page height
|
250
|
-
*/
|
251
|
-
AddCustomEventListener: function (name, func)
|
252
|
-
{
|
253
|
-
if (typeof(ModalDialog.events) == 'undefined') {
|
254
|
-
ModalDialog.events = [];
|
255
|
-
}
|
256
|
-
|
257
|
-
ModalDialog.events.push([name, func]);
|
258
|
-
},
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
/**
|
264
|
-
* Used to fire the ModalDialog custom event
|
265
|
-
*
|
266
|
-
* @param object obj The graph object that fires the event
|
267
|
-
* @param string event The name of the event to fire
|
268
|
-
*/
|
269
|
-
FireCustomEvent: function (name)
|
270
|
-
{
|
271
|
-
for (var i=0; i<ModalDialog.events.length; ++i) {
|
272
|
-
if (typeof(ModalDialog.events[i][0]) == 'string' && ModalDialog.events[i][0] == name && typeof(ModalDialog.events[i][1]) == 'function') {
|
273
|
-
ModalDialog.events[i][1]();
|
274
|
-
}
|
275
|
-
}
|
276
|
-
},
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
/**
|
282
|
-
* Returns true if the browser is IE8
|
283
|
-
*/
|
284
|
-
isIE8: function ()
|
285
|
-
{
|
286
|
-
return document.all && (navigator.userAgent.indexOf('MSIE 8') > 0);
|
287
|
-
}
|
288
|
-
};
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
// An alias
|
294
|
-
ModalDialog.Hide = ModalDialog.Close;
|
295
|
-
|
296
|
-
// Lowercase all of the function names
|
297
|
-
for (i in ModalDialog) {
|
298
|
-
if (typeof ModalDialog[i] === 'function') {
|
299
|
-
ModalDialog[i.toLowerCase()] = ModalDialog[i]
|
300
|
-
}
|
301
|
-
}
|