getCanvasDim method
Transforms an abstract dimension to canvas dimension according to whether transposed.
Implementation
Dim getCanvasDim(Dim abstractDim) => dimCount == 1
// The last dimension is the mearure dimension.
? (transposed ? Dim.x : Dim.y)
: (transposed ? (abstractDim == Dim.x ? Dim.y : Dim.x) : abstractDim);