Skip to content

Commit

Permalink
Update src/compile/scale/range.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz authored Jan 30, 2024
1 parent be56875 commit 7497085
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compile/scale/range.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ function defaultRange(channel: ScaleChannel, model: UnitModel): VgRange {
return [
0,
new SignalRefWrapper(() => {
const w = isFacetModel(model.parent) ? model.getSignalName('child_width') : model.getSignalName('width');
const h = isFacetModel(model.parent) ? model.getSignalName('child_height') : model.getSignalName('height');
const w = model.getSignalName(isFacetModel(model.parent) ? 'child_width' : 'width');
const h = model.getSignalName(isFacetModel(model.parent) ?'child_height' : 'height');

Check warning on line 315 in src/compile/scale/range.ts

View workflow job for this annotation

GitHub Actions / Runtime, Linting, and Coverage

Insert `·`
return `min(${w},${h})/2`;
})
];
Expand Down

0 comments on commit 7497085

Please sign in to comment.