(
coordSys: CoordinateSystem,
hasAnimation: boolean,
seriesModel: SeriesModelWithLineWidth,
done?: () => void,
during?: (percent: number) => void
)
| 149 | } |
| 150 | |
| 151 | export function createClipPath( |
| 152 | coordSys: CoordinateSystem, |
| 153 | hasAnimation: boolean, |
| 154 | seriesModel: SeriesModelWithLineWidth, |
| 155 | done?: () => void, |
| 156 | during?: (percent: number) => void |
| 157 | ) { |
| 158 | if (!coordSys) { |
| 159 | return null; |
| 160 | } |
| 161 | else if (coordSys.type === 'polar') { |
| 162 | return createPolarClipPath(coordSys as Polar, hasAnimation, seriesModel); |
| 163 | } |
| 164 | else if (coordSys.type === 'cartesian2d') { |
| 165 | return createGridClipPath(coordSys as Cartesian2D, hasAnimation, seriesModel, done, during); |
| 166 | } |
| 167 | return null; |
| 168 | } |
| 169 | |
| 170 | export type ShapeClipKind = |
| 171 | typeof SHAPE_CLIP_KIND_NOT_CLIPPED |
no test coverage detected
searching dependent graphs…