* Pans the chart by a specified amount * * @param {Plottable.Point} [translateAmount] The amount by which to translate the x and y scales.
(translateAmount: Point)
| 112 | * @param {Plottable.Point} [translateAmount] The amount by which to translate the x and y scales. |
| 113 | */ |
| 114 | public pan(translateAmount: Point) { |
| 115 | this.xScales().forEach((xScale) => { |
| 116 | xScale.pan(this._constrainedTranslation(xScale, translateAmount.x)); |
| 117 | }); |
| 118 | |
| 119 | this.yScales().forEach((yScale) => { |
| 120 | yScale.pan(this._constrainedTranslation(yScale, translateAmount.y)); |
| 121 | }); |
| 122 | |
| 123 | this._panZoomUpdateCallbacks.callCallbacks(); |
| 124 | } |
| 125 | |
| 126 | /** |
| 127 | * Zooms the chart by a specified amount around a specific point |
no test coverage detected