UNPKG

@visactor/vchart

Version:

charts lib based @visactor/VGrammar

13 lines (11 loc) 414 B
import { CirclePackingLayout } from "@visactor/vlayouts"; export const circlePackingLayout = (data, op) => { if (!data) return data; const options = op(), {width: width, height: height} = options; if (0 === width || 0 === height) return data; return new CirclePackingLayout(options).layout(data, { width: width, height: height }); }; //# sourceMappingURL=circle-packing.js.map