MCPcopy Index your code
hub / github.com/apache/echarts / createGridClipShape

Function createGridClipShape

src/chart/parallel/ParallelView.ts:151–172  ·  view source on GitHub ↗
(coordSys: Parallel, seriesModel: ParallelSeriesModel, cb: () => void)

Source from the content-addressed store, hash-verified

149}
150
151function createGridClipShape(coordSys: Parallel, seriesModel: ParallelSeriesModel, cb: () => void) {
152 const parallelModel = coordSys.model;
153 const rect = coordSys.getRect();
154 const rectEl = new graphic.Rect({
155 shape: {
156 x: rect.x,
157 y: rect.y,
158 width: rect.width,
159 height: rect.height
160 }
161 });
162
163 const dim = parallelModel.get('layout') === 'horizontal' ? 'width' as const : 'height' as const;
164 rectEl.setShape(dim, 0);
165 graphic.initProps(rectEl, {
166 shape: {
167 width: rect.width,
168 height: rect.height
169 }
170 }, seriesModel, cb);
171 return rectEl;
172}
173
174function createLinePoints(data: SeriesData, dataIndex: number, dimensions: string[], coordSys: Parallel) {
175 const points = [];

Callers 1

renderMethod · 0.70

Calls 3

setShapeMethod · 0.80
getRectMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…