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

Function barSign

src/controllers/controller.bar.js:174–179  ·  view source on GitHub ↗
(size, vScale, actualBase)

Source from the content-addressed store, hash-verified

172}
173
174function barSign(size, vScale, actualBase) {
175 if (size !== 0) {
176 return sign(size);
177 }
178 return (vScale.isHorizontal() ? 1 : -1) * (vScale.min >= actualBase ? 1 : -1);
179}
180
181function borderProps(properties) {
182 let reverse, start, end, top, bottom;

Callers 1

Calls 1

isHorizontalMethod · 0.65

Tested by

no test coverage detected