Add settings page for managing forecasting API key and URL via UI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
cae411eae7
commit
1c411e402e
19809 changed files with 1962608 additions and 97 deletions
43
frontend/node_modules/recharts/es6/util/cursor/getCursorPoints.js
generated
vendored
Normal file
43
frontend/node_modules/recharts/es6/util/cursor/getCursorPoints.js
generated
vendored
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
import { polarToCartesian } from '../PolarUtils';
|
||||
import { isPolarCoordinate } from '../types';
|
||||
import { getRadialCursorPoints } from './getRadialCursorPoints';
|
||||
export function getCursorPoints(layout, activeCoordinate, offset) {
|
||||
if (layout === 'horizontal') {
|
||||
return [{
|
||||
x: activeCoordinate.x,
|
||||
y: offset.top
|
||||
}, {
|
||||
x: activeCoordinate.x,
|
||||
y: offset.top + offset.height
|
||||
}];
|
||||
}
|
||||
if (layout === 'vertical') {
|
||||
return [{
|
||||
x: offset.left,
|
||||
y: activeCoordinate.y
|
||||
}, {
|
||||
x: offset.left + offset.width,
|
||||
y: activeCoordinate.y
|
||||
}];
|
||||
}
|
||||
if (isPolarCoordinate(activeCoordinate)) {
|
||||
if (layout === 'centric') {
|
||||
var cx = activeCoordinate.cx,
|
||||
cy = activeCoordinate.cy,
|
||||
innerRadius = activeCoordinate.innerRadius,
|
||||
outerRadius = activeCoordinate.outerRadius,
|
||||
angle = activeCoordinate.angle;
|
||||
var innerPoint = polarToCartesian(cx, cy, innerRadius, angle);
|
||||
var outerPoint = polarToCartesian(cx, cy, outerRadius, angle);
|
||||
return [{
|
||||
x: innerPoint.x,
|
||||
y: innerPoint.y
|
||||
}, {
|
||||
x: outerPoint.x,
|
||||
y: outerPoint.y
|
||||
}];
|
||||
}
|
||||
return getRadialCursorPoints(activeCoordinate);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
11
frontend/node_modules/recharts/es6/util/cursor/getCursorRectangle.js
generated
vendored
Normal file
11
frontend/node_modules/recharts/es6/util/cursor/getCursorRectangle.js
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
export function getCursorRectangle(layout, activeCoordinate, offset, tooltipAxisBandSize) {
|
||||
var halfSize = tooltipAxisBandSize / 2;
|
||||
return {
|
||||
stroke: 'none',
|
||||
fill: '#ccc',
|
||||
x: layout === 'horizontal' ? activeCoordinate.x - halfSize : offset.left + 0.5,
|
||||
y: layout === 'horizontal' ? offset.top + 0.5 : activeCoordinate.y - halfSize,
|
||||
width: layout === 'horizontal' ? tooltipAxisBandSize : offset.width - 1,
|
||||
height: layout === 'horizontal' ? offset.height - 1 : tooltipAxisBandSize
|
||||
};
|
||||
}
|
||||
23
frontend/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js
generated
vendored
Normal file
23
frontend/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js
generated
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import { polarToCartesian } from '../PolarUtils';
|
||||
/**
|
||||
* Only applicable for radial layouts
|
||||
* @param {Object} activeCoordinate ChartCoordinate
|
||||
* @returns {Object} RadialCursorPoints
|
||||
*/
|
||||
export function getRadialCursorPoints(activeCoordinate) {
|
||||
var cx = activeCoordinate.cx,
|
||||
cy = activeCoordinate.cy,
|
||||
radius = activeCoordinate.radius,
|
||||
startAngle = activeCoordinate.startAngle,
|
||||
endAngle = activeCoordinate.endAngle;
|
||||
var startPoint = polarToCartesian(cx, cy, radius, startAngle);
|
||||
var endPoint = polarToCartesian(cx, cy, radius, endAngle);
|
||||
return {
|
||||
points: [startPoint, endPoint],
|
||||
cx,
|
||||
cy,
|
||||
radius,
|
||||
startAngle,
|
||||
endAngle
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue