in packages/api-builder/src/xform/axes/buildAxis.ts [62:77]
function getGroupOrigin(context: AxisContext, availableSpace: ViewSize) {
const { height = 0, width = 0 } = availableSpace
switch (context.axis.orient) {
case AxisOrientation.Top:
return { x: 0, y: 0 }
case AxisOrientation.Bottom:
return {
x: 0,
y: height - context.thickness,
}
case AxisOrientation.Left:
return { x: 0, y: 0 }
case AxisOrientation.Right:
return { x: width - context.thickness, y: 0 }
}
}