Compare commits

..

No commits in common. "7bf704f2bf2068cecb0bd1d713aeded80f21cae1" and "1ad530127e6217df9597dd5614e863862a7cea01" have entirely different histories.

3 changed files with 1 additions and 6 deletions

View File

@ -59,7 +59,6 @@ pub fn init_camera_feed(product_options_js: JsValue) -> Result<(), String> {
divisor: 0,
kJ: 0.,
kcal: 0.,
fat: 0.,
saturated_fat: 0.,
carbohydrate: 0.,
sugar: 0.,

View File

@ -344,7 +344,7 @@ pub fn plot_weight_loss(
.configure_series_labels()
.background_style(WHITE.mix(0.8))
.border_style(BLACK)
.position(SeriesLabelPosition::UpperRight)
.position(SeriesLabelPosition::LowerRight)
.draw()
.unwrap();

View File

@ -21,7 +21,6 @@ pub struct Nutrition {
pub divisor: u32,
pub kJ: f32,
pub kcal: f32,
pub fat: f32,
pub saturated_fat: f32,
pub carbohydrate: f32,
pub sugar: f32,
@ -56,7 +55,6 @@ type RowType = HList!(
Option<f32>,
Option<f32>,
Option<f32>,
Option<f32>,
);
impl Nutrition {
@ -83,7 +81,6 @@ impl Nutrition {
divisor,
k_j,
kcal,
fat,
saturated_fat,
carbohydrate,
sugar,
@ -105,7 +102,6 @@ impl Nutrition {
divisor: divisor.unwrap_or(0),
kJ: k_j.unwrap_or(0.),
kcal: kcal.unwrap_or(0.),
fat: fat.unwrap_or(0.),
saturated_fat: saturated_fat.unwrap_or(0.),
carbohydrate: carbohydrate.unwrap_or(0.),
sugar: sugar.unwrap_or(0.),