How to use the pts.Bound function in pts

To help you get started, we’ve selected a few pts examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alexeden / rpi-led-matrix / app / web / src / app / canvas / canvas.component.ts View on Github external
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`); Bound(new Pt(0, 0), new Pt(cols, rows)));