Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
tap(({ rows, cols }) => {
console.log(`Setting canvas dimensions to ${rows}px by ${cols}px`);
this.renderer2.setStyle(this.canvas, 'height', `${rows}px`);
this.renderer2.setStyle(this.canvas, 'width', `${cols}px`);
this.space.resize(new Bound(new Pt(0, 0), new Pt(cols, rows)));
}),
switchMapTo(this.animate),