import type {Measurement} from "./units";
const thinspace: Measurement = {
number: 3,
unit: "mu",
};
const mediumspace: Measurement = {
number: 4,
unit: "mu",
};
const thickspace: Measurement = {
number: 5,
unit: "mu",
};
export type Spacings = $Shape<{
mord: Measurement,
mop: Measurement,
mbin: Measurement,
mrel: Measurement,
mopen: Measurement,
mclose: Measurement,
mpunct: Measurement,
minner: Measurement,
}> & {};
export const spacings: {[$Keys<Spacings>]: Spacings} = {
mord: {
mop: thinspace,
mbin: mediumspace,
mrel: thickspace,
minner: thinspace,
},
mop: {
mord: thinspace,
mop: thinspace,
mrel: thickspace,
minner: thinspace,
},
mbin: {
mord: mediumspace,
mop: mediumspace,
mopen: mediumspace,
minner: mediumspace,
},
mrel: {
mord: thickspace,
mop: thickspace,
mopen: thickspace,
minner: thickspace,
},
mopen: {},
mclose: {
mop: thinspace,
mbin: mediumspace,
mrel: thickspace,
minner: thinspace,
},
mpunct: {
mord: thinspace,
mop: thinspace,
mrel: thickspace,
mopen: thinspace,
mclose: thinspace,
mpunct: thinspace,
minner: thinspace,
},
minner: {
mord: thinspace,
mop: thinspace,
mbin: mediumspace,
mrel: thickspace,
mopen: thinspace,
mpunct: thinspace,
minner: thinspace,
},
};
export const tightSpacings: {[$Keys<Spacings>]: Spacings} = {
mord: {
mop: thinspace,
},
mop: {
mord: thinspace,
mop: thinspace,
},
mbin: {},
mrel: {},
mopen: {},
mclose: {
mop: thinspace,
},
mpunct: {},
minner: {
mop: thinspace,
},
};