Crate dioxus_spline
source ·Expand description
This crate provides a simple dioxus component for rendering Spline scenes in web.
It also exposes interfaces to SPEObject
and Spline Application
from @splinetool/runtime.
Currently, it is highly experimental and a lot of functionality is untested, but rendering
Scenes and simple callbacks should work just fine!
🌈 Spline is a friendly 3d collaborative design tool for the web.
§Usage
First, add this to your Cdargo.toml
[dependencies]
dioxus-spline = "0.2.0"
Next add the Spline
component to your dioxus App
:
fn App() -> Element {
rsx! {
Spline { scene: String::from("https://prod.spline.design/PWOr9wT1pcAkbAA7/scene.splinecode") }
}
}
You should see your scene now!
Re-exports§
pub use runtime::SplineApplication;
pub use runtime::SplineEvent;
pub use runtime::SplineEventName;
pub use speobject::SPEObject;
pub use spline::Spline;
Modules§
- The runtime with
SplineApplication
andSplineEvent
- The wrapper around JS
SPEObject
- The
Spline
component itself