MCPcopy Create free account
hub / github.com/angular/components / coerceCssPixelValue

Function coerceCssPixelValue

src/cdk/coercion/css-pixel-value.ts:10–16  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

8
9/** Coerces a value to a CSS pixel value. */
10export function coerceCssPixelValue(value: any): string {
11 if (value == null) {
12 return '';
13 }
14
15 return typeof value === 'string' ? value : `${value}px`;
16}

Callers 12

_updateOverlayOffsetFunction · 0.90
applyColumnSizeMethod · 0.90
applyColumnSizeMethod · 0.90
applyMinColumnSizeMethod · 0.90
applyMaxColumnSizeMethod · 0.90
_updateElementSizeMethod · 0.90
_setBoundingBoxStylesMethod · 0.90
_getExactOverlayYMethod · 0.90
_getExactOverlayXMethod · 0.90
enableMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected