UNPKG

vitessce

Version:

Vitessce app and React component library

15 lines (12 loc) 384 B
import { DTYPE_VALUES } from '@hms-dbmi/viv'; function getDomains() { const domains = {}; const needMin = ['Int8', 'Int16', 'Int32']; Object.keys(DTYPE_VALUES).forEach((dtype) => { const { max } = DTYPE_VALUES[dtype]; const min = needMin.includes(dtype) ? -(max + 1) : 0; domains[dtype] = [min, max]; }); return domains; } export const DOMAINS = getDomains();