| 149 | } |
| 150 | |
| 151 | function 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 | |
| 174 | function createLinePoints(data: SeriesData, dataIndex: number, dimensions: string[], coordSys: Parallel) { |
| 175 | const points = []; |