devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
22 lines (21 loc) • 665 B
JavaScript
/**
* DevExtreme (viz/funnel/tiling.js)
* Version: 18.2.18
* Build date: Tue Oct 18 2022
*
* Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
;
var _normalizeEnum = require("../core/utils").normalizeEnum,
algorithms = {},
defaultAlgorithm;
exports.getAlgorithm = function(name) {
return algorithms[_normalizeEnum(name)] || defaultAlgorithm
};
exports.addAlgorithm = function(name, callback, setDefault) {
algorithms[name] = callback;
if (setDefault) {
defaultAlgorithm = algorithms[name]
}
};