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

Method constructor

src/plugins/plugin.filler/simpleArc.js:5–9  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

3// TODO: use elements.ArcElement instead
4export class simpleArc {
5 constructor(opts) {
6 this.x = opts.x;
7 this.y = opts.y;
8 this.radius = opts.radius;
9 }
10
11 pathSegment(ctx, bounds, opts) {
12 const {x, y, radius} = this;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected