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

Function ensureLabelLayoutWithGeometry

src/label/labelLayoutHelper.ts:141–151  ·  view source on GitHub ↗
(
    labelLayout: LabelLayoutData | NullUndefined
)

Source from the content-addressed store, hash-verified

139 * @return `NullUndefined` if and only if `labelLayout` is `NullUndefined`.
140 */
141export function ensureLabelLayoutWithGeometry(
142 labelLayout: LabelLayoutData | NullUndefined
143): LabelLayoutWithGeometry | NullUndefined {
144 if (!labelLayout) {
145 return;
146 }
147 if (isLabelLayoutDirty(labelLayout)) {
148 computeLabelGeometry(labelLayout, labelLayout.label, labelLayout);
149 }
150 return labelLayout as LabelLayoutWithGeometry;
151}
152
153/**
154 * The props in `out` will be filled if existing, or created.

Callers 7

axisNameFunction · 0.90
dealFunction · 0.90
adjustBreakLabelsFunction · 0.90
hideOverlapFunction · 0.85

Calls 2

isLabelLayoutDirtyFunction · 0.85
computeLabelGeometryFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…