(r)
| 94 | // If the given cornerradius value is a numeric string, it will be converted |
| 95 | // to a number. |
| 96 | function validateCornerradius(r) { |
| 97 | if (isNumeric(r)) { |
| 98 | r = +r; |
| 99 | if (r >= 0) return r; |
| 100 | } else if (typeof r === 'string') { |
| 101 | r = r.trim(); |
| 102 | if (r.slice(-1) === '%' && isNumeric(r.slice(0, -1))) { |
| 103 | r = +r.slice(0, -1); |
| 104 | if (r >= 0) return r + '%'; |
| 105 | } |
| 106 | } |
| 107 | return undefined; |
| 108 | } |
| 109 | |
| 110 | function handleText(traceIn, traceOut, layout, coerce, textposition, opts) { |
| 111 | opts = opts || {}; |
no outgoing calls
no test coverage detected
searching dependent graphs…