Revert "fix analysis eval gauge reverse display"
This reverts commit 0a0757dd33
.
This commit is contained in:
parent
754aae1ec1
commit
bb5499f465
|
@ -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';
|
||||
|
|
|
@ -101,7 +101,7 @@ export interface ParentController {
|
|||
currentEvals: () => NodeEvals;
|
||||
ongoing: boolean;
|
||||
playUci: (uci: string) => void;
|
||||
bottomColor: () => Color;
|
||||
getOrientation: () => Color;
|
||||
}
|
||||
|
||||
export interface ParentVm {
|
||||
|
|
|
@ -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', {
|
||||
|
|
Loading…
Reference in a new issue