Reincharts
    Preparing search index...

    Class GenericComponent

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    context: ChartCanvasContextType<number | Date>

    If using React Context, re-declare this in your class to be the React.ContextType of your static contextType. Should be used with type annotation or static contextType.

    static contextType = MyContext
    // For TS pre-3.7:
    context!: React.ContextType<typeof MyContext>
    // For TS 3.7 and above:
    declare context: React.ContextType<typeof MyContext>
    dragInProgress: boolean = false
    evaluationInProgress: boolean = false
    iSetTheCursorClass: boolean = false
    moreProps: any = {}
    subscriberId: number = 0
    defaultProps: {
        canvasToDraw: (
            contexts: ICanvasContexts,
        ) => undefined | CanvasRenderingContext2D;
        clip: boolean;
        disablePan: boolean;
        draw: never[];
        edgeClip: boolean;
        enableDragOnHover: boolean;
        selected: boolean;
        svgDraw: any;
    } = ...

    Methods

    • Called immediately after a component is mounted. Setting state here will trigger re-rendering.

      Returns void

    • Called immediately after updating occurs. Not called for the initial render.

      The snapshot is only present if getSnapshotBeforeUpdate is present and returns non-null.

      Parameters

      • prevProps: GenericComponentProps

      Returns void

    • Called immediately before a component is destroyed. Perform any necessary cleanup in this method, such as cancelled network requests, or cleaning up any DOM elements created in componentDidMount.

      Returns void