(val)
| 29 | const CSS_VALUE_PIXELS = /(\d+(\.\d+)?)px/; |
| 30 | |
| 31 | function cssValueToPixels(val) { |
| 32 | if (val === '0' || common.isUndefined(val)) { |
| 33 | return 0; |
| 34 | } |
| 35 | |
| 36 | const match = val.match(CSS_VALUE_PIXELS); |
| 37 | |
| 38 | if (!common.isNull(match)) { |
| 39 | return parseFloat(match[1]); |
| 40 | } |
| 41 | |
| 42 | // TODO ...ems? %? |
| 43 | |
| 44 | return 0; |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * @namespace |
no outgoing calls
no test coverage detected
searching dependent graphs…