From 58b137991ba4eb294fdd7e0715014703c2a374ff Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Thu, 1 Oct 2026 14:40:10 -0400 Subject: [PATCH] Re-export color/geom from engine; kurbo_path helper Co-Authored-By: Claude Opus 5.5 --- crates/engine/src/lib.rs | 2 ++ crates/render/src/lib.rs | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/crates/engine/src/lib.rs b/crates/engine/src/lib.rs index a3485ee8..7f851c02 100644 --- a/crates/engine/src/lib.rs +++ b/crates/engine/src/lib.rs @@ -23,6 +23,8 @@ use serde_json::Value; pub use commands::{CommandSpec, command_specs, find as find_command}; pub use effectcraft_effects as effects; +pub use effectcraft_color as color; +pub use effectcraft_geom as geom; pub use effectcraft_keyframe as keyframe; pub use effectcraft_project as project; pub use effectcraft_render as render; diff --git a/crates/render/src/lib.rs b/crates/render/src/lib.rs index 944c858e..0e2380c9 100644 --- a/crates/render/src/lib.rs +++ b/crates/render/src/lib.rs @@ -351,3 +351,8 @@ pub fn content_bounds(ctx: &EvalCtx, layer: &effectcraft_project::Layer) -> Opti } } } + +/// A mask/shape path as a kurbo path (for drawing overlays). +pub fn kurbo_path(sp: &effectcraft_keyframe::ShapePath) -> kurbo::BezPath { + effectcraft_path::to_kurbo(sp) +}