Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "frontend-packages/react-cookie-banner/src/inlineStyles/scale"

Index

Functions

Const calculateNewVal

  • calculateNewVal(val: number, scalePercent: number): number
  • Parameters

    • val: number
    • scalePercent: number

    Returns number

scaleMobile

  • scaleMobile<T>(__namedParameters: { enabled: boolean; scalePercent: number; scalePercentVertical: number }, useWidthOfThisContainerId?: string, original?: T, replaceWith?: T, additionalVerticalScaling?: boolean): T
  • Calculate the new value for an inline style value and respect the scaling options.

    Type parameters

    • T: any

    Parameters

    • __namedParameters: { enabled: boolean; scalePercent: number; scalePercentVertical: number }
      • enabled: boolean
      • scalePercent: number
      • scalePercentVertical: number
    • Optional useWidthOfThisContainerId: string
    • Optional original: T
    • Optional replaceWith: T
    • Default value additionalVerticalScaling: boolean = false

    Returns T

Generated using TypeDoc