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

Function borderProps

src/controllers/controller.bar.js:181–200  ·  view source on GitHub ↗
(properties)

Source from the content-addressed store, hash-verified

179}
180
181function borderProps(properties) {
182 let reverse, start, end, top, bottom;
183 if (properties.horizontal) {
184 reverse = properties.base > properties.x;
185 start = 'left';
186 end = 'right';
187 } else {
188 reverse = properties.base < properties.y;
189 start = 'bottom';
190 end = 'top';
191 }
192 if (reverse) {
193 top = 'end';
194 bottom = 'start';
195 } else {
196 top = 'start';
197 bottom = 'end';
198 }
199 return {start, end, reverse, top, bottom};
200}
201
202function setBorderSkipped(properties, options, stack, index) {
203 let edge = options.borderSkipped;

Callers 1

setBorderSkippedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected