const t = 'top', r = 'right', b = 'bottom', l = 'left';
// Values
const minX = (detail) => detail.model.minX;
const minY = (detail) => detail.model.minY;
const min1X = (detail) => detail.model.minX - 1;
const min1Y = (detail) => detail.model.minY - 1;
const maxX = (detail) => detail.model.maxX;
const maxY = (detail) => detail.model.maxY;
const max1X = (detail) => detail.model.maxX + 1;
const max1Y = (detail) => detail.model.maxY + 1;
const range = (detail, max, min) => max(detail) - min(detail);
const xRange = (detail) => range(detail, maxX, minX);
const yRange = (detail) => range(detail, maxY, minY);
const halfX = (detail) => xRange(detail) / 2;
const halfY = (detail) => yRange(detail) / 2;
const step = (detail) => detail.stepSize;
const snap = (detail) => detail.snapToGrid;
const snapStart = (detail) => detail.snapStart;
const rounded = (detail) => detail.rounded;
// Not great but... /shrug
const hasEdge = (detail, edgeName) => detail[edgeName + '-edge'] !== undefined;
const hasLEdge = (detail) => hasEdge(detail, l);
const hasREdge = (detail) => hasEdge(detail, r);
const hasTEdge = (detail) => hasEdge(detail, t);
const hasBEdge = (detail) => hasEdge(detail, b);
// Ew, any
const currentValue = (detail) => detail.model.value.get();
export { minX, min1X, maxX, max1X, minY, min1Y, maxY, max1Y, step, snap, snapStart, rounded, hasLEdge, hasREdge, hasTEdge, hasBEdge, currentValue, xRange, yRange, halfX, halfY };
//# sourceMappingURL=SliderValues.js.map