rbbt-rest 1.8.77 → 1.8.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f1de6fcf8b994e77b6a88ce299f4e017e04df807
4
- data.tar.gz: ed627370f0aa5a4470b241537e6a484e068787cd
3
+ metadata.gz: 165feb57462a8183ed21e6ab4b9a3797764278ad
4
+ data.tar.gz: e9205ba61e082c4db7b3af839bd34083284117a7
5
5
  SHA512:
6
- metadata.gz: 19d7a35ede5f54282b6032c882c52ee082118d918b7ef5b9413a5695056a7925aedc46e8be285b76690c75cd9e58012d5541d6f9dfa3c34e65671720c95b4718
7
- data.tar.gz: ec57136fc071436a09ee66becf750eafbc2768d2782b3cf76cdefb88aaed32079801528055686d4260b06ed1a881c5310df8568b4ddc02cdda3797adc81e93ec
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 >= 0){
271
- var a = value/max
272
- colors.push(color0.blend(color2, a).toString())
270
+ if (value == 0 && max == 0){
271
+ var a = 0;
272
+ colors.push(color0.blend(color2, a).toString())
273
273
  }else{
274
- var a = value/min
275
- colors.push(color0.blend(color1, a).toString())
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.77
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-16 00:00:00.000000000 Z
11
+ date: 2017-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake