# All files / tooltip constants.ts

100% Statements 41/41
100% Branches 0/0
100% Functions 0/0
100% Lines 41/41

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    421x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
     import type {
      CSSTransitionClassNames,
      TransitionTimeout,
    } from "../transition/types.js";

    /** @remarks \@since 2.0.0 */
    export const DEFAULT_TOOLTIP_CLASSNAMES: Readonly<CSSTransitionClassNames> = {
      appear: "rmd-tooltip--enter",
      appearActive: "rmd-tooltip--visible",
      enter: "rmd-tooltip--enter",
      enterActive: "rmd-tooltip--visible",
      enterDone: "rmd-tooltip--visible",
      exit: "rmd-tooltip--visible rmd-tooltip--exit",
      exitActive: "rmd-tooltip--exit-active",
    };

    /** @remarks \@since 2.0.0 */
    export const DEFAULT_TOOLTIP_TIMEOUT: Readonly<TransitionTimeout> = {
      enter: 200,
      exit: 150,
    };

    /** @remarks \@since 2.0.0 */
    export const DEFAULT_TOOLTIP_DELAY = 1000;
    /** @remarks \@since 2.0.0 */
    export const DEFAULT_TOOLTIP_THRESHOLD = 0.75;

    /** @remarks \@since 2.8.0 */
    export const DEFAULT_TOOLTIP_SPACING = "1.5rem";
    /** @remarks \@since 2.8.0 */
    export const DEFAULT_TOOLTIP_DENSE_SPACING = "0.875rem";
    /** @remarks \@since 2.8.0 */
    export const DEFAULT_TOOLTIP_MARGIN = 16;
    /** @remarks \@since 2.8.0 */
    export const DEFAULT_TOOLTIP_POSITION = "below";

    /**
     * @internal
     * @remarks \@since 2.8.0
     */
    export const TOOLTIP_SPACING_VAR = "--rmd-tooltip-spacing";