From a48fef364197305e15c5f69708c08547b43d1906 Mon Sep 17 00:00:00 2001 From: Aaron Fenyes Date: Thu, 14 Nov 2024 00:55:33 -0800 Subject: [PATCH] Comment example assembly chooser Also, add a way to load the empty assembly. --- app-proto/src/add_remove.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app-proto/src/add_remove.rs b/app-proto/src/add_remove.rs index 5590b6c..ba02e65 100644 --- a/app-proto/src/add_remove.rs +++ b/app-proto/src/add_remove.rs @@ -4,6 +4,8 @@ use web_sys::{console, wasm_bindgen::JsValue}; use crate::{engine, AppState, assembly::{Assembly, Constraint, Element}}; /* DEBUG */ +// load an example assembly for testing. this code will be removed once we've +// built a more formal test assembly system fn load_gen_assemb(assembly: &Assembly) { let _ = assembly.try_insert_element( Element::new( @@ -56,6 +58,8 @@ fn load_gen_assemb(assembly: &Assembly) { } /* DEBUG */ +// load an example assembly for testing. this code will be removed once we've +// built a more formal test assembly system fn load_low_curv_assemb(assembly: &Assembly) { let a = 0.75_f64.sqrt(); let _ = assembly.try_insert_element( @@ -226,9 +230,10 @@ pub fn AddRemove() -> View { }); } ) { "🔗" } - select(bind:value=assembly_name) { /* DEBUG */ + select(bind:value=assembly_name) { /* DEBUG */ // example assembly chooser option(value="general") { "General" } option(value="low-curv") { "Low-curvature" } + option(value="empty") { "Empty" } } } }