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

Method buildPath

src/chart/candlestick/CandlestickView.ts:364–378  ·  view source on GitHub ↗
(ctx: CanvasRenderingContext2D, shape: LargeBoxPathShape)

Source from the content-addressed store, hash-verified

362 }
363
364 buildPath(ctx: CanvasRenderingContext2D, shape: LargeBoxPathShape) {
365 // Drawing lines is more efficient than drawing
366 // a whole line or drawing rects.
367 const points = shape.points;
368 for (let i = 0; i < points.length;) {
369 if (this.__sign === points[i++]) {
370 const x = points[i++];
371 ctx.moveTo(x, points[i++]);
372 ctx.lineTo(x, points[i++]);
373 }
374 else {
375 i += 3;
376 }
377 }
378 }
379}
380
381function createLarge(

Callers

nothing calls this directly

Calls 1

moveToMethod · 0.45

Tested by

no test coverage detected