tiling.strip.js 568 B

1234567891011121314151617181920
  1. /**
  2. * DevExtreme (viz/tree_map/tiling.strip.js)
  3. * Version: 19.1.16
  4. * Build date: Tue Oct 18 2022
  5. *
  6. * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
  7. * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
  8. */
  9. "use strict";
  10. var _squarify = require("./tiling.squarified.base");
  11. function accumulate(total, current, count) {
  12. return ((count - 1) * total + current) / count
  13. }
  14. function strip(data) {
  15. return _squarify(data, accumulate, true)
  16. }
  17. require("./tiling").addAlgorithm("strip", strip);
  18. module.exports = strip;