MCPcopy Create free account
hub / github.com/c3js/c3 / getPathBox

Function getPathBox

c3.js:59–62  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

57 return isDefined(options[key]) ? options[key] : defaultValue;
58 };
59 var getPathBox = function (path) {
60 var box = getBBox(path), items = [path.pathSegList.getItem(0), path.pathSegList.getItem(1)], minX = items[0].x, minY = Math.min(items[0].y, items[1].y);
61 return { x: minX, y: minY, width: box.width, height: box.height };
62 };
63 var getBBox = function (element) {
64 try {
65 return element.getBBox();

Callers 1

c3.jsFile · 0.70

Calls 1

getBBoxFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…