Reincharts
    Preparing search index...

    Interface InteractiveTextProps

    interface InteractiveTextProps {
        currentPositionOpacity?: number;
        currentPositionRadius?: number;
        currentPositionStroke?: string;
        currentPositionStrokeWidth?: number;
        defaultText: {
            bgFill: string;
            bgStroke?: string;
            bgStrokeWidth?: number;
            fontFamily: string;
            fontSize: number;
            fontStyle: string;
            fontWeight: string;
            text: string;
            textFill: string;
        };
        enabled: boolean;
        hoverText: object;
        onChange?: (newTextList: any[], moreProps: any) => void;
        onComplete?: (e: MouseEvent, newTextList: any[], moreProps: any) => void;
        onDoubleClick?: (e: MouseEvent, moreProps: any) => void;
        onDragComplete?: (
            e: MouseEvent,
            newTextList: any[],
            moreProps: any,
        ) => void;
        textList: any[];
    }
    Index

    Properties

    currentPositionOpacity?: number

    Opacity of the current position indicator.

    currentPositionRadius?: number

    Radius of the current position indicator.

    currentPositionStroke?: string

    Stroke color for the current position indicator.

    currentPositionStrokeWidth?: number

    Width of the current position indicator stroke.

    defaultText: {
        bgFill: string;
        bgStroke?: string;
        bgStrokeWidth?: number;
        fontFamily: string;
        fontSize: number;
        fontStyle: string;
        fontWeight: string;
        text: string;
        textFill: string;
    }

    Default styling configuration for new text elements.

    enabled: boolean

    Whether the interactive text tool is enabled.

    hoverText: object

    Configuration for hover text display.

    onChange?: (newTextList: any[], moreProps: any) => void

    Callback function triggered when the text list changes.

    onComplete?: (e: MouseEvent, newTextList: any[], moreProps: any) => void

    Callback function triggered when text creation is completed. newTextList is a list of all text elements with the new/updated text included.

    onDoubleClick?: (e: MouseEvent, moreProps: any) => void

    Double click event handler.

    onDragComplete?: (e: MouseEvent, newTextList: any[], moreProps: any) => void

    Called when drag is complete

    textList: any[]

    Array of text objects that get drawn.