MCPcopy
hub / github.com/apache/echarts / createClipPath

Function createClipPath

src/chart/helper/createClipPathFromCoordSys.ts:151–168  ·  view source on GitHub ↗
(
    coordSys: CoordinateSystem,
    hasAnimation: boolean,
    seriesModel: SeriesModelWithLineWidth,
    done?: () => void,
    during?: (percent: number) => void
)

Source from the content-addressed store, hash-verified

149}
150
151export 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
170export type ShapeClipKind =
171 typeof SHAPE_CLIP_KIND_NOT_CLIPPED

Callers 7

renderMethod · 0.90
renderMethod · 0.90
_updateLargeClipMethod · 0.90
renderMethod · 0.90
renderMethod · 0.90
_renderNormalMethod · 0.90
_renderLargeMethod · 0.90

Calls 2

createPolarClipPathFunction · 0.85
createGridClipPathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…