| 179 | } |
| 180 | |
| 181 | function 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 | |
| 202 | function setBorderSkipped(properties, options, stack, index) { |
| 203 | let edge = options.borderSkipped; |