MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / createPolarClipPath

Function createPolarClipPath

libs/echarts/echarts-en.simple.js:34718–34743  ·  view source on GitHub ↗
(polar, hasAnimation, seriesModel)

Source from the content-addressed store, hash-verified

34716}
34717
34718function 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
34745function createClipPath(coordSys, hasAnimation, seriesModel) {
34746 if (!coordSys) {

Callers 2

createClipPathFunction · 0.70
createLineClipPathFunction · 0.70

Calls 3

round$1Function · 0.70
initPropsFunction · 0.70
getAreaMethod · 0.45

Tested by

no test coverage detected