client/webserver/site/src/js/charts.js
// zoom zooms the current view in or out. bigger=true is zoom in.
zoom zooms the current view in or out. bigger=true is zoom in.
zoom zooms the current view in or out . bigger = true is zoom in .
zoom (bigger) {
    if (!this.zoomLevel) return
    if (this.wheelLimiter) return
    if (!this.book.buys || !this.book.sells) return
    this.wheeled()
    this.zoomLevel *= bigger ? 2 / 3 : 3 / 2
    this.zoomLevel = clamp(this.zoomLevel, 0.005, 2)
    this.draw()
    this.reporters.zoom(this.zoomLevel)
  }
zoom ( bigger ) { if ( ! this . zoomLevel ) return if ( this . wheelLimiter ) return if ( ! this . book . buys || ! this . book . sells ) return this . wheeled ( ) this . zoomLevel *= bigger ? 2 / 3 : 3 / 2 this . zoomLevel = clamp ( this . zoomLevel , 0.005 , 2 ) this . draw ( ) this . reporters . zoom ( this . zoomLevel ) }
zoom zooms the current view in or out.
zoom zooms the current view in or out .
// Zoom in to 66%, but out to 150% = 1 / (2/3) so that the same zoom levels // are hit when reversing direction.