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

Function getTextBox

c3.js:8350–8355  ·  view source on GitHub ↗
(textElement, id)

Source from the content-addressed store, hash-verified

8348 withTransition = getOption(options, 'withTransition', true);
8349 withTransitionForTransform = getOption(options, 'withTransitionForTransform', true);
8350 function getTextBox(textElement, id) {
8351 if (!$$.legendItemTextBox[id]) {
8352 $$.legendItemTextBox[id] = $$.getTextRect(textElement.textContent, CLASS.legendItem, textElement);
8353 }
8354 return $$.legendItemTextBox[id];
8355 }
8356 function updatePositions(textElement, id, index) {
8357 var reset = index === 0, isLast = index === targetIds.length - 1, box = getTextBox(textElement, id), itemWidth = box.width +
8358 tileWidth +

Callers 1

updatePositionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…