Module "frontend-packages/react-cookie-banner/src/inlineStyles/scale"
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
-
Type parameters
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
Calculate the new value for an inline style value and respect the scaling options.