* @return SVG Path data.
(shape: CustomSVGPathOption['shape'])
| 1485 | * @return SVG Path data. |
| 1486 | */ |
| 1487 | function getPathData(shape: CustomSVGPathOption['shape']): string { |
| 1488 | // "d" follows the SVG convention. |
| 1489 | return shape && (shape.pathData || shape.d); |
| 1490 | } |
| 1491 | |
| 1492 | function hasOwnPathData(shape: CustomSVGPathOption['shape']): boolean { |
| 1493 | return shape && (hasOwn(shape, 'pathData') || hasOwn(shape, 'd')); |
no outgoing calls
no test coverage detected
searching dependent graphs…