forked from StudioInfinity/dyna3
App: add display canvas
This commit is contained in:
parent
0c2869d3f3
commit
49170671b4
5 changed files with 46 additions and 3 deletions
|
@ -55,7 +55,9 @@ pub fn App() -> View {
|
|||
View::from(div().children(u_coord))
|
||||
}).collect::<Vec<_>>();
|
||||
view! {
|
||||
li {
|
||||
/* [TO DO] switch to integer-valued parameters whenever
|
||||
that becomes possible again */
|
||||
li(tabindex="0") {
|
||||
div(class="elt-label") { (label) }
|
||||
div(class="elt-rep") { (rep_components) }
|
||||
}
|
||||
|
|
10
app-proto/sketch-outline/src/display.rs
Normal file
10
app-proto/sketch-outline/src/display.rs
Normal file
|
@ -0,0 +1,10 @@
|
|||
use sycamore::prelude::*;
|
||||
|
||||
#[component]
|
||||
pub fn Display() -> View {
|
||||
view! {
|
||||
/* [TO DO] switch back to integer-valued parameters when that becomes
|
||||
possible again */
|
||||
canvas(width="750", height="750", tabindex="0")
|
||||
}
|
||||
}
|
|
@ -1,14 +1,17 @@
|
|||
mod app;
|
||||
mod assembly;
|
||||
mod display;
|
||||
|
||||
use sycamore::prelude::*;
|
||||
|
||||
use app::App;
|
||||
use display::Display;
|
||||
|
||||
fn main() {
|
||||
sycamore::render(|| {
|
||||
view! {
|
||||
App {}
|
||||
Display {}
|
||||
}
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue