scena 1.7.2

A Rust-native scene-graph renderer with typed scene state, glTF assets, and explicit prepare/render lifecycles.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use wasm_bindgen::prelude::*;

use super::wasm::{SceneHost, js_error};

#[wasm_bindgen]
impl SceneHost {
    #[wasm_bindgen(js_name = applyGizmoDragJson)]
    pub fn apply_gizmo_drag_json(
        &mut self,
        target: u64,
        request_json: String,
    ) -> Result<String, JsValue> {
        self.core
            .apply_gizmo_drag_json(target, &request_json)
            .map_err(js_error)
    }
}