forked from StudioInfinity/dyna3
Add a half-curvature regulator
In the process, add the `OutlineItem` trait so that each regulator can implement its own outline item view.
This commit is contained in:
parent
d57ff59730
commit
bba0ac3cd6
3 changed files with 189 additions and 62 deletions
|
@ -166,18 +166,7 @@ pub fn AddRemove() -> View {
|
|||
button(
|
||||
on:click=|_| {
|
||||
let state = use_context::<AppState>();
|
||||
state.assembly.insert_new_element();
|
||||
|
||||
/* DEBUG */
|
||||
// print updated list of elements by identifier
|
||||
console::log_1(&JsValue::from("elements by identifier:"));
|
||||
for (id, key) in state.assembly.elements_by_id.get_clone().iter() {
|
||||
console::log_3(
|
||||
&JsValue::from(" "),
|
||||
&JsValue::from(id),
|
||||
&JsValue::from(*key)
|
||||
);
|
||||
}
|
||||
state.assembly.insert_new_sphere();
|
||||
}
|
||||
) { "+" }
|
||||
button(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue