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
32
frontend/node_modules/recharts/lib/util/getRadiusAndStrokeWidthFromDot.js
generated
vendored
Normal file
32
frontend/node_modules/recharts/lib/util/getRadiusAndStrokeWidthFromDot.js
generated
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.getRadiusAndStrokeWidthFromDot = getRadiusAndStrokeWidthFromDot;
|
||||
var _svgPropertiesNoEvents = require("./svgPropertiesNoEvents");
|
||||
function getRadiusAndStrokeWidthFromDot(dot) {
|
||||
var props = (0, _svgPropertiesNoEvents.svgPropertiesNoEventsFromUnknown)(dot);
|
||||
var defaultR = 3;
|
||||
var defaultStrokeWidth = 2;
|
||||
if (props != null) {
|
||||
var r = props.r,
|
||||
strokeWidth = props.strokeWidth;
|
||||
var realR = Number(r);
|
||||
var realStrokeWidth = Number(strokeWidth);
|
||||
if (Number.isNaN(realR) || realR < 0) {
|
||||
realR = defaultR;
|
||||
}
|
||||
if (Number.isNaN(realStrokeWidth) || realStrokeWidth < 0) {
|
||||
realStrokeWidth = defaultStrokeWidth;
|
||||
}
|
||||
return {
|
||||
r: realR,
|
||||
strokeWidth: realStrokeWidth
|
||||
};
|
||||
}
|
||||
return {
|
||||
r: defaultR,
|
||||
strokeWidth: defaultStrokeWidth
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue