MCPcopy Create free account
hub / github.com/chartjs/Chart.js / draw

Function draw

src/elements/element.line.js:235–241  ·  view source on GitHub ↗
(ctx, line, start, count)

Source from the content-addressed store, hash-verified

233const usePath2D = typeof Path2D === 'function';
234
235function draw(ctx, line, start, count) {
236 if (usePath2D && !line.options.segment) {
237 strokePathWithCache(ctx, line, start, count);
238 } else {
239 strokePathDirect(ctx, line, start, count);
240 }
241}
242
243export default class LineElement extends Element {
244

Callers 1

drawMethod · 0.70

Calls 2

strokePathWithCacheFunction · 0.85
strokePathDirectFunction · 0.85

Tested by

no test coverage detected