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

Function getTextAlignForAngle

src/scales/scale.radialLinear.js:203–211  ·  view source on GitHub ↗
(angle)

Source from the content-addressed store, hash-verified

201}
202
203function getTextAlignForAngle(angle) {
204 if (angle === 0 || angle === 180) {
205 return 'center';
206 } else if (angle < 180) {
207 return 'left';
208 }
209
210 return 'right';
211}
212
213function leftForTextAlign(x, w, align) {
214 if (align === 'right') {

Callers 1

createPointLabelItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected