UNPKG

react-pixi-plot

Version:

A React component rendering a zoomable and draggable PIXI.js scene. Intended to render 2d plots

23 lines (22 loc) 701 B
import React from 'react'; import { ScaleBand, ScaleContinuousNumeric, ScalePoint } from 'd3-scale'; export declare type AnyScale = ScaleContinuousNumeric<number, number> | ScaleBand<any> | ScalePoint<any>; interface Props { leftAxisScale?: AnyScale; leftLabel?: string; rightAxisScale?: AnyScale; rightLabel?: string; topAxisScale?: AnyScale; topLabel?: string; bottomAxisScale?: AnyScale; bottomTicksRotate?: number; bottomLabel?: string; marginLeft: number; marginRight: number; marginTop: number; marginBottom: number; containerWidth: number; containerHeight: number; } declare const PlotAxes: React.SFC<Props>; export default PlotAxes;