MCPcopy Create free account
hub / github.com/Thanas-R/Virdis / getPlanCache

Function getPlanCache

src/components/CropPlanningSection.tsx:1075–1082  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1073 { x: 0.72, y: 0.68 },
1074 ],
1075};
1076
1077function clamp(value: number, min: number, max: number) {
1078 return Math.min(max, Math.max(min, value));
1079}
1080
1081function roundTo(value: number, digits = 1) {
1082 const factor = 10 ** digits;
1083 return Math.round(value * factor) / factor;
1084}
1085

Callers 2

setPlanCacheFunction · 0.85
CropPlanningSectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected