feat: render interactive manuscript from Endor through generic graphics

This commit is contained in:
2026-11-12 10:52:28 +08:00
parent d29a1be329
commit 2715c1ce2c
71 changed files with 3000 additions and 78 deletions
+2 -1
View File
@@ -79,12 +79,13 @@ fn decode(
let x = number(store, command, "x")?;
let y = number(store, command, "y")?;
let kind = text(store, command, "kind")?;
let color = if kind == "scene3d" {
let color = if matches!(kind.as_str(), "scene3d" | "image") {
String::new()
} else {
text(store, command, "color")?
};
let result = match kind.as_str() {
"image" => crate::bridge::graphics::decode_image(store, command)?,
"scene3d" => {
let snapshot = object(store.get_attr(command, "scene")?)?;
RenderCommand::Scene3D {