MCPcopy Index your code
hub / github.com/apache/echarts / computeLabelGlobalRect

Function computeLabelGlobalRect

src/chart/pie/labelLayout.ts:334–337  ·  view source on GitHub ↗
(out: BoundingRect, label: ZRText)

Source from the content-addressed store, hash-verified

332}
333
334function computeLabelGlobalRect(out: BoundingRect, label: ZRText): void {
335 _tmpLabelGeometry.rect = out;
336 computeLabelGeometry(_tmpLabelGeometry, label, _computeLabelGeometryOpt);
337}
338const _computeLabelGeometryOpt = {
339 minMarginForce: [null, 0, null, 0],
340 marginDefault: [1, 0, 1, 0], // Arbitrary value

Callers 2

constrainTextWidthFunction · 0.85
pieLabelLayoutFunction · 0.85

Calls 1

computeLabelGeometryFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…