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

Method first

src/elements/element.line.js:327–331  ·  view source on GitHub ↗

* First non-skipped point on this line * @returns {PointElement|undefined}

()

Source from the content-addressed store, hash-verified

325 * @returns {PointElement|undefined}
326 */
327 first() {
328 const segments = this.segments;
329 const points = this.points;
330 return segments.length && points[segments[0].start];
331 }
332
333 /**
334 * Last non-skipped point on this line

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected