rbbt-rest 1.8.77 → 1.8.78
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/share/views/public/js/helpers/helpers.js +10 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 165feb57462a8183ed21e6ab4b9a3797764278ad
|
4
|
+
data.tar.gz: e9205ba61e082c4db7b3af839bd34083284117a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 203cbaf32fdc8757317ef6c1ed0c5bc70afb44bdec2bd08f31c05ba7c97e7a5c4a878db509952f159224811a197886f13732b27ea795d3c12054680cf787bbe4
|
7
|
+
data.tar.gz: 542515c17560de4bdd6267dac761b1e8a761f053f2e59a12ee01b1fd718a03777ac9b10042aed31ea1ffaeb8296ea3d50dcdf045bab455eb75a5ac08b3f0b40f
|
@@ -267,12 +267,17 @@ function get_sign_gradient(values, color1, color0, color2){
|
|
267
267
|
forArray(values, function(value){
|
268
268
|
if (typeof value == 'string') value = parseFloat(value)
|
269
269
|
if (typeof value == 'number'){
|
270
|
-
if (value
|
271
|
-
|
272
|
-
|
270
|
+
if (value == 0 && max == 0){
|
271
|
+
var a = 0;
|
272
|
+
colors.push(color0.blend(color2, a).toString())
|
273
273
|
}else{
|
274
|
-
|
275
|
-
|
274
|
+
if (value >= 0){
|
275
|
+
var a = value/max;
|
276
|
+
colors.push(color0.blend(color2, a).toString())
|
277
|
+
}else{
|
278
|
+
var a = value/min;
|
279
|
+
colors.push(color0.blend(color1, a).toString())
|
280
|
+
}
|
276
281
|
}
|
277
282
|
}else{
|
278
283
|
colors.push(undefined)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbbt-rest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.78
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|