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

Function _toLeftRightCenter

src/helpers/helpers.extras.ts:67–67  ·  view source on GitHub ↗
(align: 'start' | 'end' | 'center')

Source from the content-addressed store, hash-verified

65 * @private
66 */
67export const _toLeftRightCenter = (align: 'start' | 'end' | 'center') => align === 'start' ? 'left' : align === 'end' ? 'right' : 'center';
68
69/**
70 * Returns `start`, `end` or `(start + end) / 2` depending on `align`. Defaults to `center`

Callers 3

titleAlignFunction · 0.85
drawTitleMethod · 0.85
drawMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected