(polar, hasAnimation, seriesModel)
| 34716 | } |
| 34717 | |
| 34718 | function createPolarClipPath(polar, hasAnimation, seriesModel) { |
| 34719 | var sectorArea = polar.getArea(); |
| 34720 | // Avoid float number rounding error for symbol on the edge of axis extent. |
| 34721 | |
| 34722 | var clipPath = new Sector({ |
| 34723 | shape: { |
| 34724 | cx: round$1(polar.cx, 1), |
| 34725 | cy: round$1(polar.cy, 1), |
| 34726 | r0: round$1(sectorArea.r0, 1), |
| 34727 | r: round$1(sectorArea.r, 1), |
| 34728 | startAngle: sectorArea.startAngle, |
| 34729 | endAngle: sectorArea.endAngle, |
| 34730 | clockwise: sectorArea.clockwise |
| 34731 | } |
| 34732 | }); |
| 34733 | |
| 34734 | if (hasAnimation) { |
| 34735 | clipPath.shape.endAngle = sectorArea.startAngle; |
| 34736 | initProps(clipPath, { |
| 34737 | shape: { |
| 34738 | endAngle: sectorArea.endAngle |
| 34739 | } |
| 34740 | }, seriesModel); |
| 34741 | } |
| 34742 | return clipPath; |
| 34743 | } |
| 34744 | |
| 34745 | function createClipPath(coordSys, hasAnimation, seriesModel) { |
| 34746 | if (!coordSys) { |
no test coverage detected