(value: string)
| 36 | | null = null; |
| 37 | |
| 38 | function parsePixels(value: string): number | null { |
| 39 | const match = /^(-?\d+(?:\.\d+)?)px$/.exec(value); |
| 40 | return match ? parseFloat(match[1]) : null; |
| 41 | } |
| 42 | |
| 43 | function getStyle(element: Element): CSSStyleDeclaration | null { |
| 44 | return element instanceof HTMLElement ? element.style : null; |
no outgoing calls
no test coverage detected