UNPKG

d2-ui

Version:
14 lines (11 loc) 231 B
export default { Desktop: { GUTTER: 24, GUTTER_LESS: 16, INCREMENT: 64, MENU_ITEM_HEIGHT: 32, }, getIncrementalDim(dim) { return Math.ceil(dim / this.Desktop.INCREMENT) * this.Desktop.INCREMENT; }, };