Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// Tiling functions ======================================================
tilingFn = d3Hierarchy.treemapBinary;
tilingFn = d3Hierarchy.treemapDice;
tilingFn = d3Hierarchy.treemapSlice;
tilingFn = d3Hierarchy.treemapSliceDice;
// Tiling Factory functions treemapSquarify() and treemapResquarify() ====
let tilingFactoryFn: d3Hierarchy.RatioSquarifyTilingFactory;
tilingFactoryFn = d3Hierarchy.treemapSquarify;
tilingFactoryFn = d3Hierarchy.treemapSquarify.ratio(2);
treemapLayout.tile(d3Hierarchy.treemapSquarify.ratio(2));
tilingFactoryFn = d3Hierarchy.treemapResquarify;
tilingFactoryFn = d3Hierarchy.treemapResquarify.ratio(2);
treemapLayout.tile(d3Hierarchy.treemapResquarify.ratio(2));
// Use HierarchyRectangularNode ================================================
// x and y coordinates ---------------------------------------------------
num = treemapRootNode.x0;
num = treemapRootNode.y0;
// Tiling functions ======================================================
tilingFn = d3Hierarchy.treemapBinary;
tilingFn = d3Hierarchy.treemapDice;
tilingFn = d3Hierarchy.treemapSlice;
tilingFn = d3Hierarchy.treemapSliceDice;
// Tiling Factory functions treemapSquarify() and treemapResquarify() ====
let tilingFactoryFn: d3Hierarchy.RatioSquarifyTilingFactory;
tilingFactoryFn = d3Hierarchy.treemapSquarify;
tilingFactoryFn = d3Hierarchy.treemapSquarify.ratio(2);
treemapLayout.tile(d3Hierarchy.treemapSquarify.ratio(2));
tilingFactoryFn = d3Hierarchy.treemapResquarify;
tilingFactoryFn = d3Hierarchy.treemapResquarify.ratio(2);
treemapLayout.tile(d3Hierarchy.treemapResquarify.ratio(2));
// Use HierarchyRectangularNode ================================================
// x and y coordinates ---------------------------------------------------
num = treemapRootNode.x0;
num = treemapRootNode.y0;
// Tiling functions ======================================================
tilingFn = d3Hierarchy.treemapBinary;
tilingFn = d3Hierarchy.treemapDice;
tilingFn = d3Hierarchy.treemapSlice;
tilingFn = d3Hierarchy.treemapSliceDice;
// Tiling Factory functions treemapSquarify() and treemapResquarify() ====
let tilingFactoryFn: d3Hierarchy.RatioSquarifyTilingFactory;
tilingFactoryFn = d3Hierarchy.treemapSquarify;
tilingFactoryFn = d3Hierarchy.treemapSquarify.ratio(2);
treemapLayout.tile(d3Hierarchy.treemapSquarify.ratio(2));
tilingFactoryFn = d3Hierarchy.treemapResquarify;
tilingFactoryFn = d3Hierarchy.treemapResquarify.ratio(2);
treemapLayout.tile(d3Hierarchy.treemapResquarify.ratio(2));
// Use HierarchyRectangularNode ================================================
// x and y coordinates ---------------------------------------------------
num = treemapRootNode.x0;
num = treemapRootNode.y0;
num = treemapRootNode.x1;
tilingFn = d3Hierarchy.treemapBinary;
tilingFn = d3Hierarchy.treemapDice;
tilingFn = d3Hierarchy.treemapSlice;
tilingFn = d3Hierarchy.treemapSliceDice;
// Tiling Factory functions treemapSquarify() and treemapResquarify() ====
let tilingFactoryFn: d3Hierarchy.RatioSquarifyTilingFactory;
tilingFactoryFn = d3Hierarchy.treemapSquarify;
tilingFactoryFn = d3Hierarchy.treemapSquarify.ratio(2);
treemapLayout.tile(d3Hierarchy.treemapSquarify.ratio(2));
tilingFactoryFn = d3Hierarchy.treemapResquarify;
tilingFactoryFn = d3Hierarchy.treemapResquarify.ratio(2);
treemapLayout.tile(d3Hierarchy.treemapResquarify.ratio(2));
// Use HierarchyRectangularNode ================================================
// x and y coordinates ---------------------------------------------------
num = treemapRootNode.x0;
num = treemapRootNode.y0;
num = treemapRootNode.x1;
num = treemapRootNode.y1;
// Tiling functions ======================================================
tilingFn = d3Hierarchy.treemapBinary;
tilingFn = d3Hierarchy.treemapDice;
tilingFn = d3Hierarchy.treemapSlice;
tilingFn = d3Hierarchy.treemapSliceDice;
// Tiling Factory functions treemapSquarify() and treemapResquarify() ====
let tilingFactoryFn: d3Hierarchy.RatioSquarifyTilingFactory;
tilingFactoryFn = d3Hierarchy.treemapSquarify;
tilingFactoryFn = d3Hierarchy.treemapSquarify.ratio(2);
treemapLayout.tile(d3Hierarchy.treemapSquarify.ratio(2));
tilingFactoryFn = d3Hierarchy.treemapResquarify;
tilingFactoryFn = d3Hierarchy.treemapResquarify.ratio(2);
treemapLayout.tile(d3Hierarchy.treemapResquarify.ratio(2));
// Use HierarchyRectangularNode ================================================
// x and y coordinates ---------------------------------------------------
num = treemapRootNode.x0;
num = treemapRootNode.y0;
num = treemapRootNode.x1;
tilingFn = d3Hierarchy.treemapBinary;
tilingFn = d3Hierarchy.treemapDice;
tilingFn = d3Hierarchy.treemapSlice;
tilingFn = d3Hierarchy.treemapSliceDice;
// Tiling Factory functions treemapSquarify() and treemapResquarify() ====
let tilingFactoryFn: d3Hierarchy.RatioSquarifyTilingFactory;
tilingFactoryFn = d3Hierarchy.treemapSquarify;
tilingFactoryFn = d3Hierarchy.treemapSquarify.ratio(2);
treemapLayout.tile(d3Hierarchy.treemapSquarify.ratio(2));
tilingFactoryFn = d3Hierarchy.treemapResquarify;
tilingFactoryFn = d3Hierarchy.treemapResquarify.ratio(2);
treemapLayout.tile(d3Hierarchy.treemapResquarify.ratio(2));
// Use HierarchyRectangularNode ================================================
// x and y coordinates ---------------------------------------------------
num = treemapRootNode.x0;
num = treemapRootNode.y0;
num = treemapRootNode.x1;
num = treemapRootNode.y1;
function getTilingMethod(key, squarifyratio) {
switch(key) {
case 'squarify':
return d3Hierarchy.treemapSquarify.ratio(squarifyratio);
case 'binary':
return d3Hierarchy.treemapBinary;
case 'dice':
return d3Hierarchy.treemapDice;
case 'slice':
return d3Hierarchy.treemapSlice;
default: // i.e. 'slice-dice' | 'dice-slice'
return d3Hierarchy.treemapSliceDice;
}
}