UNPKG

molstar

Version:

A comprehensive macromolecular library.

19 lines (18 loc) 653 B
"use strict"; /** * Copyright (c) 2022 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose <alexander.rose@weirdbyte.de> */ Object.defineProperty(exports, "__esModule", { value: true }); exports.getColorMapParams = void 0; var param_definition_1 = require("../../mol-util/param-definition"); var object_1 = require("../object"); function getColorMapParams(map) { var colors = {}; (0, object_1.objectForEach)(map, function (_, k) { colors[k] = param_definition_1.ParamDefinition.Color(map[k]); }); return colors; } exports.getColorMapParams = getColorMapParams;