(position)
| 29 | } |
| 30 | |
| 31 | function axisFromPosition(position) { |
| 32 | if (position === 'top' || position === 'bottom') { |
| 33 | return 'x'; |
| 34 | } |
| 35 | if (position === 'left' || position === 'right') { |
| 36 | return 'y'; |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | export function determineAxis(id, ...scaleOptions) { |
| 41 | if (idMatchesAxis(id)) { |