Revert "fix analysis eval gauge reverse display"

This reverts commit 0a0757dd33.
This commit is contained in:
Thibault Duplessis 2017-05-30 08:03:58 +02:00
parent 754aae1ec1
commit bb5499f465
3 changed files with 5 additions and 2 deletions

View file

@ -119,6 +119,9 @@ module.exports = function(opts) {
this.bottomColor = function() {
return this.vm.flip ? opposite(this.data.orientation) : this.data.orientation;
}.bind(this);
this.getOrientation = function() {
return this.data.orientation;
}.bind(this);
this.turnColor = function() {
return this.vm.node.ply % 2 === 0 ? 'white' : 'black';

View file

@ -101,7 +101,7 @@ export interface ParentController {
currentEvals: () => NodeEvals;
ongoing: boolean;
playUci: (uci: string) => void;
bottomColor: () => Color;
getOrientation: () => Color;
}
export interface ParentVm {

View file

@ -104,7 +104,7 @@ export function renderGauge(ctrl: ParentController): Mithril.Renderable {
class: classSet({
eval_gauge: true,
empty: ev === null,
reverse: ctrl.bottomColor() === 'black'
reverse: ctrl.getOrientation() === 'black'
})
}, [
m('div', {