Skip to content

Commit

Permalink
Change signature of ImageDataRenderer constructor to (width, height),…
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Dec 22, 2018
1 parent 4a1915b commit 8f54a9c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions js/common/view/ImageDataRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ define( require => {
class ImageDataRenderer {

/**
* @param {Lattice} lattice
* @param {width} width
* @param {number} width
*/
constructor( lattice, width ) {
const height = lattice.height - lattice.dampY * 2;
constructor( width, height ) {

// @public {HTMLCanvasElement}
this.canvas = document.createElement( 'canvas' );
Expand Down

0 comments on commit 8f54a9c

Please sign in to comment.