diff --git a/editor/src/messages/portfolio/document/node_graph/node_properties.rs b/editor/src/messages/portfolio/document/node_graph/node_properties.rs index 29d8db6c..90c51f98 100644 --- a/editor/src/messages/portfolio/document/node_graph/node_properties.rs +++ b/editor/src/messages/portfolio/document/node_graph/node_properties.rs @@ -480,6 +480,10 @@ pub fn footprint_widget(parameter_widgets_info: ParameterWidgetsInfo, extra_widg resolution_widgets.push( NumberInput::new(Some((footprint.resolution.as_dvec2() / bounds).x * 100.)) .label("Resolution") + .mode_range() + .min(0.) + .range_min(Some(1.)) + .range_max(Some(100.)) .unit("%") .on_update(update_value( move |x: &NumberInput| { diff --git a/node-graph/gstd/src/wasm_application_io.rs b/node-graph/gstd/src/wasm_application_io.rs index 91b9695b..7ba1a568 100644 --- a/node-graph/gstd/src/wasm_application_io.rs +++ b/node-graph/gstd/src/wasm_application_io.rs @@ -245,6 +245,7 @@ where let resolution = footprint.resolution; let render_params = RenderParams { culling_bounds: None, + for_export: true, ..Default::default() }; diff --git a/node-graph/gsvg-renderer/src/renderer.rs b/node-graph/gsvg-renderer/src/renderer.rs index 88324ee0..e331a213 100644 --- a/node-graph/gsvg-renderer/src/renderer.rs +++ b/node-graph/gsvg-renderer/src/renderer.rs @@ -159,11 +159,11 @@ pub struct RenderParams { pub thumbnail: bool, /// Don't render the rectangle for an artboard to allow exporting with a transparent background. pub hide_artboards: bool, - /// Are we exporting? Causes the text above an artboard to be hidden. + /// Are we exporting as a standalone SVG? pub for_export: bool, /// Are we generating a mask in this render pass? Used to see if fill should be multiplied with alpha. pub for_mask: bool, - /// Are we generating a mask for alignment? Used to prevent unnecesary transforms in masks + /// Are we generating a mask for alignment? Used to prevent unnecessary transforms in masks pub alignment_parent_transform: Option, }