-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
duplicated code in LatticeCanvasNode and LightScreenNode #277
Comments
Proposed fix pushed, please review. |
The first 2 lines of the constructor are: constructor( lattice, width ) {
const height = lattice.height - lattice.dampY * 2; ... and the constructor( width, height ) { ... with call sites like: this.imageDataRenderer = new ImageDataRenderer( width, this.lattice.height - this.lattice.dampY * 2 ); And perhaps move the |
Nice recommendation, thanks! I pushed one commit, please review. |
Oops, previous commit had bad jsdoc params, fixed in an additional commit. |
👍 Closing. |
For code review #259, identified by grunt find-duplicates.
The code below is duplicated in LatticeCanvasNode.js (lines 51-68) and LightScreenNode.js (lines 59-76).
The text was updated successfully, but these errors were encountered: