d3-hierarchy (https://github.com/d3/d3-hierarchy) by Mike Bostock: its circle packing, adapted to TypeScript for the Treemap & Sunburst Maker of MySmartCoPilot (https://mysmartcopilot.com/tools/treemap-maker/), under the ISC licence. What was adapted (src/tools/data/treemap-maker/logic.ts): packing sibling circles with the front-chain algorithm of Wang, Wang, Dai and Wang ("Visualization of large hierarchical data by circle packing"), and their smallest enclosing circle (MatouĊĦek, Sharir and Welzl): place, intersects, score and packSiblings from src/pack/siblings.js, and enclose with enclosesNot, enclosesWeak, the two- and three-circle bases and extendBasis from src/pack/enclose.js. Changes made by MySmartCoPilot: written in TypeScript; the circles are shuffled with a seeded mulberry32 random source instead of d3's linear congruential generator (both give the same layout for the same data every time); two circles are centred on their enclosing circle as more circles are; a square root of a negative rounding error counts as zero, circles with the same centre and three centres on one line are handled, and where d3 stops with an error (no basis found) or after 100,000 steps a circle around all the circles, not the smallest one, is used. The licence of d3-hierarchy, as its repository's LICENSE file gives it: Copyright 2010-2021 Mike Bostock Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.