app.js
/**
     * Change a grid-based coordinate to a full-resolution pixel coordinate.
     */
Change a grid-based coordinate to a full-resolution pixel coordinate.
Change a grid - based coordinate to a full - resolution pixel coordinate .
gridToPixel(point) {
        let [x, y] = point;
        x = x * this.interval + this.origin[0];
        y = this.origin[1] - y * this.interval;
        return [x, y];
    }
gridToPixel ( point ) { let [ x , y ] = point ; x = x * this . interval + this . origin [ 0 ] ; y = this . origin [ 1 ] - y * this . interval ; return [ x , y ] ; }
Change a grid-based coordinate to a full-resolution pixel coordinate.
Change a grid - based coordinate to a full - resolution pixel coordinate .