comment out tests

This commit is contained in:
Adam
2025-07-10 15:14:36 -07:00
parent cf0a32b9b1
commit f5c6b65fcc
35 changed files with 2963 additions and 3098 deletions

View File

@@ -61,7 +61,6 @@ impl<'i> Node<'i, Any<'i>> for EditorContextToContext {
fn eval(&'i self, input: Any<'i>) -> Self::Output {
Box::pin(async move {
let editor_context = dyn_any::downcast::<EditorContext>(input).unwrap();
log::debug!("evaluating with context: {:?}", editor_context.to_context());
self.first.eval(Box::new(editor_context.to_context())).await
})
}
@@ -141,7 +140,6 @@ impl<'i> Node<'i, Any<'i>> for NullificationNode {
let new_input = match dyn_any::try_downcast::<Context>(input) {
Ok(context) => match *context {
Some(context) => {
log::debug!("Nullifying inputs: {:?}", self.nullify);
let mut new_context = OwnedContextImpl::from(context);
new_context.nullify(&self.nullify);
Box::new(new_context.into_context()) as Any<'i>
@@ -153,7 +151,6 @@ impl<'i> Node<'i, Any<'i>> for NullificationNode {
},
Err(other_input) => other_input,
};
Box::pin(async move { self.first.eval(new_input).await })
}
}

View File

@@ -119,7 +119,6 @@ fn render_svg(data: impl GraphicElementRendered, mut render: SvgRender, render_p
#[cfg_attr(not(target_arch = "wasm32"), allow(dead_code))]
async fn render_canvas(
footprint: Footprint,
hide_artboards: bool,
data: impl GraphicElementRendered,
application_io: Arc<WasmApplicationIoValue>,
surface_handle: wgpu_executor::WgpuSurface,
@@ -142,7 +141,7 @@ async fn render_canvas(
scene.append(&child, Some(kurbo::Affine::new(footprint.transform.to_cols_array())));
let mut background = Color::from_rgb8_srgb(0x22, 0x22, 0x22);
if !data.contains_artboard() && !hide_artboards {
if !data.contains_artboard() && !render_params.hide_artboards {
background = Color::WHITE;
}
exec.render_vello_scene(&scene, &surface_handle, footprint.resolution.x, footprint.resolution.y, &context, background)
@@ -278,7 +277,7 @@ async fn render<'a: 'n, T: 'n + GraphicElementRendered + WasmNotSend>(
let data = if use_vello {
#[cfg(all(feature = "vello", not(test)))]
return RenderOutput {
data: render_canvas(footprint, editor_metadata.hide_artboards, data, application_io, surface_handle.unwrap(), render_params).await,
data: render_canvas(footprint, data, application_io, surface_handle.unwrap(), render_params).await,
metadata,
};
#[cfg(any(not(feature = "vello"), test))]