Avena Webapp API - v0.0.1
    Preparing search index...

    Function thresholdLabelBox

    • Places the trigger level label in the top margin, above the plot area, so it never covers the trace.

      The box starts at the left edge of the plot area and is centred vertically in the top margin. It is never wider than the plot area and never taller than the margin; text that does not fit is clipped by the caller.

      Parameters

      • plotLeft: number

        Left edge of the plot area.

      • plotRight: number

        Right edge of the plot area.

      • marginTop: number

        Height of the top margin (the plot area starts here).

      • textWidth: number

        Measured width of the label text.

      • padding: number = 6

        Horizontal space between the text and the box edges.

      • height: number = 18

        Preferred box height.

      Returns LabelBox

      The box, with width and height of at least 0.