Type alias HoverPluginOptions

HoverPluginOptions: {
    formatTimeCallback?: ((seconds) => string);
    labelBackground?: string;
    labelColor?: string;
    labelPreferLeft?: boolean;
    labelSize?: string | number;
    lineColor?: string;
    lineWidth?: string | number;
}

Type declaration

  • Optional formatTimeCallback?: ((seconds) => string)
      • (seconds): string
      • Custom function to customize the displayed label text (m:ss used if not specified)

        Parameters

        • seconds: number

        Returns string

  • Optional labelBackground?: string

    The background color of the label

  • Optional labelColor?: string

    The color of the label text

  • Optional labelPreferLeft?: boolean

    Whether to display the label to the left of the cursor if possible

    Default

    false
    
  • Optional labelSize?: string | number

    The font size of the label text (pixels used if no units specified)

    Default

    11
    
  • Optional lineColor?: string

    The hover cursor color (playback cursor and progress mask colors used as falllback in this order)

  • Optional lineWidth?: string | number

    The hover cursor width (pixels used if no units specified)

    Default

    1
    

Generated using TypeDoc