Files
ETB/ETB-FrontEnd/node_modules/.cache/babel-loader/f337c83280d3b4a99e265eeb1d0dc993556a48c1b4b1cbcc0a1beb25e79fa664.json
Iliyan Angelov 306b20e24a Frontend start
2025-09-14 00:54:48 +03:00

1 line
4.2 KiB
JSON

{"ast":null,"code":"import { polarToCartesian } from '../PolarUtils';\nimport { getRadialCursorPoints } from './getRadialCursorPoints';\nexport function getCursorPoints(layout, activeCoordinate, offset) {\n var x1, y1, x2, y2;\n if (layout === 'horizontal') {\n x1 = activeCoordinate.x;\n x2 = x1;\n y1 = offset.top;\n y2 = offset.top + offset.height;\n } else if (layout === 'vertical') {\n y1 = activeCoordinate.y;\n y2 = y1;\n x1 = offset.left;\n x2 = offset.left + offset.width;\n } else if (activeCoordinate.cx != null && activeCoordinate.cy != null) {\n if (layout === 'centric') {\n var cx = activeCoordinate.cx,\n cy = activeCoordinate.cy,\n innerRadius = activeCoordinate.innerRadius,\n outerRadius = activeCoordinate.outerRadius,\n angle = activeCoordinate.angle;\n var innerPoint = polarToCartesian(cx, cy, innerRadius, angle);\n var outerPoint = polarToCartesian(cx, cy, outerRadius, angle);\n x1 = innerPoint.x;\n y1 = innerPoint.y;\n x2 = outerPoint.x;\n y2 = outerPoint.y;\n } else {\n return getRadialCursorPoints(activeCoordinate);\n }\n }\n return [{\n x: x1,\n y: y1\n }, {\n x: x2,\n y: y2\n }];\n}","map":{"version":3,"names":["polarToCartesian","getRadialCursorPoints","getCursorPoints","layout","activeCoordinate","offset","x1","y1","x2","y2","x","top","height","y","left","width","cx","cy","innerRadius","outerRadius","angle","innerPoint","outerPoint"],"sources":["/home/gnx/Desktop/ETB/ETB-FrontEnd/node_modules/recharts/es6/util/cursor/getCursorPoints.js"],"sourcesContent":["import { polarToCartesian } from '../PolarUtils';\nimport { getRadialCursorPoints } from './getRadialCursorPoints';\nexport function getCursorPoints(layout, activeCoordinate, offset) {\n var x1, y1, x2, y2;\n if (layout === 'horizontal') {\n x1 = activeCoordinate.x;\n x2 = x1;\n y1 = offset.top;\n y2 = offset.top + offset.height;\n } else if (layout === 'vertical') {\n y1 = activeCoordinate.y;\n y2 = y1;\n x1 = offset.left;\n x2 = offset.left + offset.width;\n } else if (activeCoordinate.cx != null && activeCoordinate.cy != null) {\n if (layout === 'centric') {\n var cx = activeCoordinate.cx,\n cy = activeCoordinate.cy,\n innerRadius = activeCoordinate.innerRadius,\n outerRadius = activeCoordinate.outerRadius,\n angle = activeCoordinate.angle;\n var innerPoint = polarToCartesian(cx, cy, innerRadius, angle);\n var outerPoint = polarToCartesian(cx, cy, outerRadius, angle);\n x1 = innerPoint.x;\n y1 = innerPoint.y;\n x2 = outerPoint.x;\n y2 = outerPoint.y;\n } else {\n return getRadialCursorPoints(activeCoordinate);\n }\n }\n return [{\n x: x1,\n y: y1\n }, {\n x: x2,\n y: y2\n }];\n}"],"mappings":"AAAA,SAASA,gBAAgB,QAAQ,eAAe;AAChD,SAASC,qBAAqB,QAAQ,yBAAyB;AAC/D,OAAO,SAASC,eAAeA,CAACC,MAAM,EAAEC,gBAAgB,EAAEC,MAAM,EAAE;EAChE,IAAIC,EAAE,EAAEC,EAAE,EAAEC,EAAE,EAAEC,EAAE;EAClB,IAAIN,MAAM,KAAK,YAAY,EAAE;IAC3BG,EAAE,GAAGF,gBAAgB,CAACM,CAAC;IACvBF,EAAE,GAAGF,EAAE;IACPC,EAAE,GAAGF,MAAM,CAACM,GAAG;IACfF,EAAE,GAAGJ,MAAM,CAACM,GAAG,GAAGN,MAAM,CAACO,MAAM;EACjC,CAAC,MAAM,IAAIT,MAAM,KAAK,UAAU,EAAE;IAChCI,EAAE,GAAGH,gBAAgB,CAACS,CAAC;IACvBJ,EAAE,GAAGF,EAAE;IACPD,EAAE,GAAGD,MAAM,CAACS,IAAI;IAChBN,EAAE,GAAGH,MAAM,CAACS,IAAI,GAAGT,MAAM,CAACU,KAAK;EACjC,CAAC,MAAM,IAAIX,gBAAgB,CAACY,EAAE,IAAI,IAAI,IAAIZ,gBAAgB,C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