devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
21 lines (18 loc) • 588 B
JavaScript
/**
* DevExtreme (viz/tree_map/tiling.strip.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 _squarify = require("./tiling.squarified.base");
function accumulate(total, current, count) {
return ((count - 1) * total + current) / count
}
function strip(data) {
return _squarify(data, accumulate, true)
}
require("./tiling").addAlgorithm("strip", strip);
module.exports = strip;