* @param {string} [stroke] If specified, do not check style.textStroke. * @param {string} [lineWidth] If specified, do not check style.textStroke. * @param {number} style
(stroke, lineWidth)
| 8895 | * @param {number} style |
| 8896 | */ |
| 8897 | function getStroke(stroke, lineWidth) { |
| 8898 | return (stroke == null || lineWidth <= 0 || stroke === 'transparent' || stroke === 'none') |
| 8899 | ? null |
| 8900 | // TODO pattern and gradient? |
| 8901 | : (stroke.image || stroke.colorStops) |
| 8902 | ? '#000' |
| 8903 | : stroke; |
| 8904 | } |
| 8905 | |
| 8906 | function getFill(fill) { |
| 8907 | return (fill == null || fill === 'none') |
no outgoing calls
no test coverage detected