MCPcopy Index your code
hub / github.com/angular/components / coerceCssPixelValue

Function coerceCssPixelValue

src/google-maps/google-map/google-map.ts:544–550  ·  view source on GitHub ↗

Coerces a value to a CSS pixel value.

(value: any)

Source from the content-addressed store, hash-verified

542
543/** Coerces a value to a CSS pixel value. */
544function coerceCssPixelValue(value: any): string {
545 if (value == null) {
546 return '';
547 }
548
549 return cssUnitsPattern.test(value) ? value : `${value}px`;
550}

Callers 1

_setSizeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…