MCPcopy Create free account
hub / github.com/feiyu563/PrometheusAlert / getAlignedX

Function getAlignedX

static/plugins/chart.js/Chart.js:8610–8616  ·  view source on GitHub ↗
(vm, align)

Source from the content-addressed store, hash-verified

8608}
8609
8610function getAlignedX(vm, align) {
8611 return align === 'center'
8612 ? vm.x + vm.width / 2
8613 : align === 'right'
8614 ? vm.x + vm.width - vm.xPadding
8615 : vm.x + vm.xPadding;
8616}
8617
8618/**
8619 * Helper to build before and after body lines

Callers 1

Chart.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected