@visactor/vchart
Version:
charts lib based @visactor/VGrammar
19 lines (15 loc) • 574 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: !0
}), exports.circlePackingLayout = void 0;
const vlayouts_1 = require("@visactor/vlayouts"), circlePackingLayout = (data, op) => {
if (!data) return data;
const options = op(), {width: width, height: height} = options;
if (0 === width || 0 === height) return data;
return new vlayouts_1.CirclePackingLayout(options).layout(data, {
width: width,
height: height
});
};
exports.circlePackingLayout = circlePackingLayout;
//# sourceMappingURL=circle-packing.js.map