Skip to content

Commit

Permalink
Use options object with default settings
Browse files Browse the repository at this point in the history
  • Loading branch information
pverscha committed Apr 30, 2021
1 parent 229f31e commit f6c2b40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/unipept-visualizations.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/visualizations/heatmap/Heatmap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ export default class Heatmap {
this.originalViewPort = {
xTop: 0,
yTop: 0,
xBottom: options.width,
yBottom: options.height
xBottom: this.settings.width,
yBottom: this.settings.height
}

this.currentViewPort = this.originalViewPort;
Expand Down

0 comments on commit f6c2b40

Please sign in to comment.