MCPcopy
hub / github.com/tdewolff/minify / getTransformedPosition

Function getTransformedPosition

_benchmarks/sample_echarts.js:72804–72809  ·  view source on GitHub ↗
(axis, value, layoutInfo)

Source from the content-addressed store, hash-verified

72802 return text;
72803 }
72804 function getTransformedPosition(axis, value, layoutInfo) {
72805 var transform = create$1();
72806 rotate(transform, transform, layoutInfo.rotation);
72807 translate(transform, transform, layoutInfo.position);
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);

Callers 2

sample_echarts.jsFile · 0.85

Calls 4

create$1Function · 0.85
applyTransform$1Function · 0.85
rotateFunction · 0.70
translateFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…