devextreme
Version:
JavaScript/TypeScript Component Suite for Responsive Web Development
23 lines (20 loc) • 644 B
JavaScript
/**
* DevExtreme (esm/__internal/viz/tree_map/tiling.strip.js)
* Version: 25.2.5
* Build date: Fri Feb 20 2026
*
* Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
import {
addAlgorithm
} from "../../viz/tree_map/tiling";
import _squarify from "../../viz/tree_map/tiling.squarified.base";
function accumulate(total, current, count) {
return ((count - 1) * total + current) / count
}
function strip(data) {
return _squarify(data, accumulate, true)
}
addAlgorithm("strip", strip);
export default strip;