Fix the Rasterize node to not ignore raster graphical data
This commit is contained in:
parent
7e0a274bd1
commit
abab145d65
|
|
@ -480,6 +480,10 @@ pub fn footprint_widget(parameter_widgets_info: ParameterWidgetsInfo, extra_widg
|
||||||
resolution_widgets.push(
|
resolution_widgets.push(
|
||||||
NumberInput::new(Some((footprint.resolution.as_dvec2() / bounds).x * 100.))
|
NumberInput::new(Some((footprint.resolution.as_dvec2() / bounds).x * 100.))
|
||||||
.label("Resolution")
|
.label("Resolution")
|
||||||
|
.mode_range()
|
||||||
|
.min(0.)
|
||||||
|
.range_min(Some(1.))
|
||||||
|
.range_max(Some(100.))
|
||||||
.unit("%")
|
.unit("%")
|
||||||
.on_update(update_value(
|
.on_update(update_value(
|
||||||
move |x: &NumberInput| {
|
move |x: &NumberInput| {
|
||||||
|
|
|
||||||
|
|
@ -245,6 +245,7 @@ where
|
||||||
let resolution = footprint.resolution;
|
let resolution = footprint.resolution;
|
||||||
let render_params = RenderParams {
|
let render_params = RenderParams {
|
||||||
culling_bounds: None,
|
culling_bounds: None,
|
||||||
|
for_export: true,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -159,11 +159,11 @@ pub struct RenderParams {
|
||||||
pub thumbnail: bool,
|
pub thumbnail: bool,
|
||||||
/// Don't render the rectangle for an artboard to allow exporting with a transparent background.
|
/// Don't render the rectangle for an artboard to allow exporting with a transparent background.
|
||||||
pub hide_artboards: bool,
|
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,
|
pub for_export: bool,
|
||||||
/// Are we generating a mask in this render pass? Used to see if fill should be multiplied with alpha.
|
/// Are we generating a mask in this render pass? Used to see if fill should be multiplied with alpha.
|
||||||
pub for_mask: bool,
|
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<DAffine2>,
|
pub alignment_parent_transform: Option<DAffine2>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue