🚀 Init public commit
This commit is contained in:
commit
62fbf6d17c
42 changed files with 7433 additions and 0 deletions
37
crates/app/src/posts/plot_demo.rs
Normal file
37
crates/app/src/posts/plot_demo.rs
Normal file
|
@ -0,0 +1,37 @@
|
|||
#![allow(unused)]
|
||||
#![warn(unused_must_use)]
|
||||
|
||||
use crate::plot::{Camera, Element, Plot};
|
||||
use leptos::prelude::*;
|
||||
|
||||
#[component]
|
||||
pub fn PlotDemo() -> impl IntoView {
|
||||
let camera = Camera::default();
|
||||
|
||||
// TODO: Create sample elements for the plot
|
||||
let elements = vec![
|
||||
Element {
|
||||
// TODO: Initialize with sample data
|
||||
},
|
||||
Element {
|
||||
// TODO: Initialize with sample data
|
||||
},
|
||||
];
|
||||
|
||||
view! {
|
||||
<article class="plot-demo-post">
|
||||
<header>
|
||||
<h1>"Interactive Plot Demo"</h1>
|
||||
<p class="post-description">
|
||||
"A demonstration of the Plot component with interactive graphics rendering."
|
||||
</p>
|
||||
</header>
|
||||
<section class="plot-section">
|
||||
<h2>"Sample Plot"</h2>
|
||||
<p>"This plot component will render interactive graphics:"</p>
|
||||
<Plot camera=camera elements=elements />
|
||||
<p>"TODO: Implement rendering logic, camera controls, and element interactions."</p>
|
||||
</section>
|
||||
</article>
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue