Skip to content

Commit

Permalink
Merge pull request #343 from Oliver-BE/d3-wrapper-dev-oliver
Browse files Browse the repository at this point in the history
Fixing dumb mistakes in scales.h
  • Loading branch information
amlalejini committed Jul 24, 2020
2 parents 79e2482 + 67b4b00 commit 8169ac9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions source/web/d3/scales.h
Original file line number Diff line number Diff line change
Expand Up @@ -945,21 +945,21 @@ namespace D3 {

BandScale & Round(bool val) {
EM_ASM({
emp_d3.objects[$0].round(val);
emp_d3.objects[$0].round($1);
}, this->id, val);
return *this;
}

BandScale & SetInnerPadding(double pad) {
EM_ASM({
emp_d3.objects[$0].paddingInner(pad);
emp_d3.objects[$0].paddingInner($1);
}, this->id, pad);
return *this;
}

BandScale & SetOuterPadding(double pad) {
EM_ASM({
emp_d3.objects[$0].paddingOuter(pad);
emp_d3.objects[$0].paddingOuter($1);
}, this->id, pad);
return *this;
}
Expand All @@ -968,7 +968,7 @@ namespace D3 {
/// If padding is not specified, returns the inner padding.
BandScale & SetPadding(double pad) {
EM_ASM({
emp_d3.objects[$0].padding(pad);
emp_d3.objects[$0].padding($1);
}, this->id, pad);
return *this;
}
Expand Down Expand Up @@ -1001,14 +1001,14 @@ namespace D3 {

PointScale & Round(bool val) {
EM_ASM({
emp_d3.objects[$0].round(val);
emp_d3.objects[$0].round($1);
}, this->id, val);
return *this;
}

PointScale & SetPadding(double pad) {
EM_ASM({
emp_d3.objects[$0].padding(pad);
emp_d3.objects[$0].padding($1);
}, this->id, pad);
return *this;
}
Expand Down

0 comments on commit 8169ac9

Please sign in to comment.