MCPcopy Index your code
hub / github.com/tdewolff/minify / buildCartesianSingleLabelElOption

Function buildCartesianSingleLabelElOption

_benchmarks/sample_echarts.js:72810–72819  ·  view source on GitHub ↗
(value, elOption, layoutInfo, axisModel, axisPointerModel, api)

Source from the content-addressed store, hash-verified

72808 return applyTransform$1([axis.dataToCoord(value), (layoutInfo.labelOffset || 0) + (layoutInfo.labelDirection || 1) * (layoutInfo.labelMargin || 0)], transform);
72809 }
72810 function buildCartesianSingleLabelElOption(value, elOption, layoutInfo, axisModel, axisPointerModel, api) {
72811 // @ts-ignore
72812 var textLayout = AxisBuilder.innerTextLayout(layoutInfo.rotation, 0, layoutInfo.labelDirection);
72813 layoutInfo.labelMargin = axisPointerModel.get(['label', 'margin']);
72814 buildLabelElOption(elOption, axisModel, axisPointerModel, api, {
72815 position: getTransformedPosition(axisModel.axis, value, layoutInfo),
72816 align: textLayout.textAlign,
72817 verticalAlign: textLayout.textVerticalAlign
72818 });
72819 }
72820 function makeLineShape(p1, p2, xDimIndex) {
72821 xDimIndex = xDimIndex || 0;
72822 return {

Callers 1

sample_echarts.jsFile · 0.85

Calls 2

buildLabelElOptionFunction · 0.85
getTransformedPositionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…