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

Function pxStringToFloat

src/material/core/ripple/ripple.spec.ts:35–35  ·  view source on GitHub ↗
(s: string | null)

Source from the content-addressed store, hash-verified

33
34 /** Extracts the numeric value of a pixel size string like '123px'. */
35 const pxStringToFloat = (s: string | null) => (s ? parseFloat(s) : 0);
36 const startingWindowWidth = window.innerWidth;
37 const startingWindowHeight = window.innerHeight;
38

Callers 1

ripple.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…