tiling.squarified.js 589 B

123456789101112131415161718192021
  1. /**
  2. * DevExtreme (viz/tree_map/tiling.squarified.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 _max = Math.max;
  11. var _squarify = require("./tiling.squarified.base");
  12. function accumulate(total, current) {
  13. return _max(total, current)
  14. }
  15. function squarified(data) {
  16. return _squarify(data, accumulate, false)
  17. }
  18. require("./tiling").addAlgorithm("squarified", squarified);
  19. module.exports = squarified;