| 305 | } |
| 306 | |
| 307 | function borderProps(properties: BarProperties) { |
| 308 | let reverse: boolean, start: string, end: string, top: string, bottom: string; |
| 309 | if (properties.horizontal) { |
| 310 | reverse = properties.base > properties.x; |
| 311 | start = 'left'; |
| 312 | end = 'right'; |
| 313 | } else { |
| 314 | reverse = properties.base < properties.y; |
| 315 | start = 'bottom'; |
| 316 | end = 'top'; |
| 317 | } |
| 318 | if (reverse) { |
| 319 | top = 'end'; |
| 320 | bottom = 'start'; |
| 321 | } else { |
| 322 | top = 'start'; |
| 323 | bottom = 'end'; |
| 324 | } |
| 325 | return {start, end, reverse, top, bottom}; |
| 326 | } |
| 327 | |
| 328 | function setBorderSkipped(properties: BarProperties, options: BarEdgeOptions, stack: BarStack | undefined, index: number) { |
| 329 | let edge: string | boolean = options.borderSkipped; |