MCPcopy
hub / github.com/chartjs/Chart.js / size

Method size

src/elements/element.point.ts:81–87  ·  view source on GitHub ↗
(options?: Partial<PointOptions & PointHoverOptions>)

Source from the content-addressed store, hash-verified

79 }
80
81 size(options?: Partial<PointOptions & PointHoverOptions>) {
82 options = options || this.options || {};
83 let radius = options.radius || 0;
84 radius = Math.max(radius, radius && options.hoverRadius || 0);
85 const borderWidth = radius && options.borderWidth || 0;
86 return (radius + borderWidth) * 2;
87 }
88
89 draw(ctx: CanvasRenderingContext2D, area: ChartArea) {
90 const options = this.options;

Callers 4

drawMethod · 0.95
getMaxOverflowMethod · 0.80
getMaxOverflowMethod · 0.80
getMaxOverflowMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected