src/grid/Grid.js
// re-evaluate lines, calc options for renderer
re-evaluate lines, calc options for renderer
re - evaluate lines calc options for renderer
update(opts) {
    if (!opts) opts = {};
    const shape = [this.canvas.width, this.canvas.height];
    this.state.x = this.calcCoordinate(this.axisX, shape, this);
    this.state.y = this.calcCoordinate(this.axisY, shape, this);
    this.state.x.opposite = this.state.y;
    this.state.y.opposite = this.state.x;
    this.emit('update', opts);
    return this;
  }
update ( opts ) { if ( ! opts ) opts = { } ; const shape = [ this . canvas . width , this . canvas . height ] ; this . state . x = this . calcCoordinate ( this . axisX , shape , this ) ; this . state . y = this . calcCoordinate ( this . axisY , shape , this ) ; this . state . x . opposite = this . state . y ; this . state . y . opposite = this . state . x ; this . emit ( 'update' , opts ) ; return this ; }
re-evaluate lines, calc options for renderer
re - evaluate lines calc options for renderer
// recalc state