Skip to content

Commit 32aee1e

Browse files
EllenGYYKeavon
andauthored
Add Vello support for Outline view mode rendering; add non_scaling to strokes (SVG, not yet Vello) (#2455)
* fix noise pattern parameter issue * removed the commented out line * Fix outline mode stroke width not consistent * add non scaling stroke option * Fix backward compatibility * Clean Debug Message * clean code * clean code 2 * Add vello outline support * Code review --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
1 parent 3c425d9 commit 32aee1e

File tree

6 files changed

+182
-118
lines changed

6 files changed

+182
-118
lines changed

editor/src/messages/portfolio/document/graph_operation/graph_operation_message_handler.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ fn apply_usvg_stroke(stroke: &usvg::Stroke, modify_inputs: &mut ModifyInputsCont
386386
},
387387
line_join_miter_limit: stroke.miterlimit().get() as f64,
388388
transform,
389+
non_scaling: false,
389390
})
390391
}
391392
}

node-graph/gcore/src/consts.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::raster::Color;
22

33
// RENDERING
44
pub const LAYER_OUTLINE_STROKE_COLOR: Color = Color::BLACK;
5-
pub const LAYER_OUTLINE_STROKE_WEIGHT: f64 = 1.;
5+
pub const LAYER_OUTLINE_STROKE_WEIGHT: f64 = 0.5;
66

77
// Fonts
88
pub const DEFAULT_FONT_FAMILY: &str = "Cabin";

0 commit comments

Comments
 (0)