devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
31 lines (27 loc) • 921 B
JavaScript
/**
* DevExtreme (cjs/viz/tree_map/tiling.strip.js)
* Version: 21.2.4
* Build date: Mon Dec 06 2021
*
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
;
exports.default = void 0;
var _tilingSquarified = _interopRequireDefault(require("./tiling.squarified.base"));
var _tiling = require("./tiling");
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
}
}
function accumulate(total, current, count) {
return ((count - 1) * total + current) / count
}
function strip(data) {
return (0, _tilingSquarified.default)(data, accumulate, true)
}(0, _tiling.addAlgorithm)("strip", strip);
var _default = strip;
exports.default = _default;
module.exports = exports.default;
module.exports.default = exports.default;