client/webserver/site/src/js/charts.js
// click is the canvas 'click' event handler.
click is the canvas 'click' event handler.
click is the canvas ' click ' event handler .
click (e) {
    if (!this.dataExtents) return
    const x = e.clientX - this.rect.left
    const y = e.clientY - this.rect.y
    if (this.zoomInBttn.contains(x, y)) { this.zoom(true); return }
    if (this.zoomOutBttn.contains(x, y)) { this.zoom(false); return }
    const translator = this.plotRegion.translator(this.dataExtents)
    this.reporters.click(translator.unx(x))
  }
click ( e ) { if ( ! this . dataExtents ) return const x = e . clientX - this . rect . left const y = e . clientY - this . rect . y if ( this . zoomInBttn . contains ( x , y ) ) { this . zoom ( true ) ; return } if ( this . zoomOutBttn . contains ( x , y ) ) { this . zoom ( false ) ; return } const translator = this . plotRegion . translator ( this . dataExtents ) this . reporters . click ( translator . unx ( x ) ) }
click is the canvas 'click' event handler.
click is the canvas ' click ' event handler .