Skip to content

Commit

Permalink
rebase fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Molly Lloyd committed Aug 14, 2018
1 parent 5453b48 commit 2f8d0b4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/data/program_configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,13 @@ class ConstantBinder<T> implements Binder<T> {
}

static serialize(binder: ConstantBinder<T>) {
const {value, name, type} = binder;
return {value: serialize(value), name, type};
const {value, names, type} = binder;
return {value: serialize(value), names, type};
}

static deserialize(serialized: {value: T, name: string, type: string}) {
const {value, name, type} = serialized;
return new ConstantBinder(deserialize(value), name, type);
static deserialize(serialized: {value: T, names: string, type: string}) {
const {value, names, type} = serialized;
return new ConstantBinder(deserialize(value), names, type);
}
}

Expand All @@ -146,14 +146,14 @@ class CrossFadedConstantBinder<T> implements Binder<T> {
uniformNames: Array<string>;
patternPositions: {[string]: ?Array<number>};
type: string;
statistics: { max: number };
maxValue: number;

constructor(value: T, names: Array<string>, type: string) {
this.value = value;
this.names = names;
this.uniformNames = this.names.map(name =>`u_${name}`);
this.type = type;
this.statistics = { max: -Infinity };
this.maxValue = -Infinity;
this.patternPositions = {patternTo: null, patternFrom: null};
}

Expand Down Expand Up @@ -199,7 +199,7 @@ class SourceExpressionBinder<T> implements Binder<T> {
this.names = names;
this.type = type;
this.uniformNames = this.names.map(name =>`a_${name}`);
this.maxValue -Infinity;
this.maxValue = -Infinity;
this.paintVertexAttributes = names.map((name) =>
({
name: `a_${name}`,
Expand Down Expand Up @@ -421,7 +421,7 @@ class CrossFadedCompositeBinder<T> implements Binder<T> {
this.uniformNames = this.names.map(name =>`a_${name}_t`);
this.useIntegerZoom = useIntegerZoom;
this.zoom = zoom;
this.statistics = { max: -Infinity };
this.maxValue = -Infinity;

this.paintVertexAttributes = names.map((name) =>
({
Expand Down

0 comments on commit 2f8d0b4

Please sign in to comment.