UNPKG

react-financial-charts

Version:
37 lines (36 loc) 1.16 kB
/// <reference types="react" /> import * as PropTypes from "prop-types"; import { PureComponent } from "../utils/PureComponent"; interface BackgroundTextProps { readonly x: number; readonly y: number; readonly fontFamily?: string; readonly fontSize?: number; readonly fill?: string; readonly stroke?: string; readonly opacity?: number; readonly strokeOpacity?: number; readonly textAnchor?: string; readonly children: (interval: number) => string; } declare class BackgroundText extends PureComponent<BackgroundTextProps> { static defaultProps: { opacity: number; fill: string; stroke: string; strokeOpacity: number; fontFamily: string; fontSize: number; textAnchor: string; }; static contextTypes: { interval: PropTypes.Validator<string>; getCanvasContexts: PropTypes.Requireable<(...args: any[]) => any>; chartCanvasType: PropTypes.Requireable<string>; }; componentDidMount(): void; componentDidUpdate(): void; render(): JSX.Element | null; private readonly drawOnCanvas; } export default BackgroundText;