# All files / interaction config.ts

93.75% Statements 30/32
100% Branches 3/3
75% Functions 3/4
93.75% Lines 30/32

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
    331x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1x
    1073x
    1073x
    1x
    59x
    59x
    1x
    960x
    960x
    1x

    1x
     import { type ElementInteractionMode } from "./types.js";

    /**
     * @remarks \@since 6.0.0
     */
    export interface ElementInteractionConfiguration {
      mode: ElementInteractionMode;
      higherContrast: boolean;
    }

    // NOTE: Uses get/set for test mocking

    let mode: ElementInteractionMode = "ripple";
    let higherContrast = true;

    /**
     * @remarks \@since 6.0.0
     */
    export const INTERACTION_CONFIG: ElementInteractionConfiguration = {
      get mode() {
        return mode;
      },
      set mode(nextMode: ElementInteractionMode) {
        mode = nextMode;
      },
      get higherContrast() {
        return higherContrast;
      },
      set higherContrast(nextHigherContrast) {
        higherContrast = nextHigherContrast;
      },
    };