cms/app-client/app/components/visu-chrono-year.js
changeset 394 48458e099b05
parent 393 5ef3bfef0bff
child 424 feb0d3e0fef9
equal deleted inserted replaced
393:5ef3bfef0bff 394:48458e099b05
    22     isDark: Ember.computed('backgroundColor', 'isDisabled', function() {
    22     isDark: Ember.computed('backgroundColor', 'isDisabled', function() {
    23         let backgroundColor = this.get('backgroundColor');
    23         let backgroundColor = this.get('backgroundColor');
    24         if(this.get('isDisabled')) {
    24         if(this.get('isDisabled')) {
    25             return false;
    25             return false;
    26         }
    26         }
    27         return this.get('colors').getPerceptiveLuminance(this.get('backgroundColor')) >= 0.5;
    27         return this.get('colors').getPerceptiveLuminance(backgroundColor) >= 0.5;
    28     }),
    28     }),
    29 
    29 
    30     backgroundColor: Ember.computed('count', 'maxCount', 'minCount', function() {
    30     backgroundColor: Ember.computed('count', 'maxCount', 'minCount', function() {
    31         return this.get('colors').shadeLinear(this.get('count'), this.get('minCount'), this.get('maxCount'));
    31         return this.get('colors').shadeLinear(this.get('count'), this.get('minCount'), this.get('maxCount'));
    32     }),
    32     }),