MCPcopy
hub / github.com/palantir/plottable / xScales

Method xScales

src/interactions/panZoomInteraction.ts:372–385  ·  view source on GitHub ↗
(xScales?: TransformableScale<any, number>[])

Source from the content-addressed store, hash-verified

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.

Callers 4

panMethod · 0.95
zoomMethod · 0.95
runFunction · 0.95

Calls 2

addXScaleMethod · 0.95
forEachMethod · 0.45

Tested by

no test coverage detected