-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
Feel like I already commented on this somewhere, but I can't find it.
It should be possible to set the xAxisPadding and yAxisPadding independently for each side. Often, for example, one wants to pad the top or right but not the bottom or left.
For a backward-compatible interface, we could do something like what CSS does and if there's one value, apply it to all sides, if there are two values, then use them for right/left and top/bottom.
Possible interfaces:
[right, left]
"right left"
{right: right, left: left}I guess I prefer the last, because it avoids the ordering question. CSS padding uses "top right bottom left" and infers any missing values - there's no particular reason for us to go clockwise, so maybe left/right or bottom/top make as much sense.
Although it's possible to implement more than one interface, I'd prefer not to complicate it too much. I'm open to arguments for [left, right] etc.