| 370 | */ |
| 371 | public xScales(xScales: TransformableScale<any, number>[]): this; |
| 372 | public xScales(xScales?: TransformableScale<any, number>[]): any { |
| 373 | if (xScales == null) { |
| 374 | const scales: TransformableScale<any, number>[] = []; |
| 375 | this._xScales.forEach((xScale) => { |
| 376 | scales.push(xScale); |
| 377 | }); |
| 378 | return scales; |
| 379 | } |
| 380 | this._xScales = new Utils.Set<TransformableScale<any, number>>(); |
| 381 | xScales.forEach((xScale) => { |
| 382 | this.addXScale(xScale); |
| 383 | }); |
| 384 | return this; |
| 385 | } |
| 386 | |
| 387 | /** |
| 388 | * Gets the y scales for this PanZoom Interaction. |