Skip to content

Commit cfacdf5

Browse files
committed
Rename stroke_paint_.. to stroke_..
1 parent c32f59c commit cfacdf5

10 files changed

Lines changed: 59 additions & 59 deletions

File tree

editor/src/messages/portfolio/document/document_message.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,14 +234,14 @@ pub enum DocumentMessage {
234234
vector_data: HashMap<NodeId, Arc<Vector>>,
235235
},
236236
// `Message` is only serialized at `editor_wrapper.rs`, and only inputs from JS pass through it.
237-
// `UpdateFillAttributes` and `UpdateStrokePaintAttributes` are produced inside `editor.handle_message` by `node_graph_executor.rs` and consumed in the same dispatch loop, so it never reaches that serialization point.
237+
// `UpdateFillAttributes` and `UpdateStrokeAttributes` are produced inside `editor.handle_message` by `node_graph_executor.rs` and consumed in the same dispatch loop, so it never reaches that serialization point.
238238
#[serde(skip)]
239239
UpdateFillAttributes {
240240
fill_attributes: HashMap<NodeId, Arc<List<Graphic>>>,
241241
},
242242
#[serde(skip)]
243-
UpdateStrokePaintAttributes {
244-
stroke_paint_attributes: HashMap<NodeId, Arc<List<Graphic>>>,
243+
UpdateStrokeAttributes {
244+
stroke_attributes: HashMap<NodeId, Arc<List<Graphic>>>,
245245
},
246246
Undo,
247247
UngroupSelectedLayers,

editor/src/messages/portfolio/document/document_message_handler.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,9 +1367,9 @@ impl MessageHandler<DocumentMessage, DocumentMessageContext<'_>> for DocumentMes
13671367
.collect();
13681368
self.network_interface.update_fill_attributes(layer_fill_attributes);
13691369
}
1370-
DocumentMessage::UpdateStrokePaintAttributes { stroke_paint_attributes } => {
1370+
DocumentMessage::UpdateStrokeAttributes { stroke_attributes } => {
13711371
// Convert NodeId keys to LayerNodeIdentifier keys, filtering to only layers
1372-
let layer_stroke_paint_attributes = stroke_paint_attributes
1372+
let layer_stroke_attributes = stroke_attributes
13731373
.into_iter()
13741374
.filter(|(node_id, _)| self.network_interface.document_network().nodes.contains_key(node_id))
13751375
.filter_map(|(node_id, attrs)| {
@@ -1379,7 +1379,7 @@ impl MessageHandler<DocumentMessage, DocumentMessageContext<'_>> for DocumentMes
13791379
})
13801380
})
13811381
.collect();
1382-
self.network_interface.update_stroke_paint_attributes(layer_stroke_paint_attributes);
1382+
self.network_interface.update_stroke_attributes(layer_stroke_attributes);
13831383
}
13841384
DocumentMessage::Undo => {
13851385
if self.network_interface.transaction_status() != TransactionStatus::Finished {
@@ -2440,7 +2440,7 @@ impl DocumentMessageHandler {
24402440
};
24412441

24422442
let fill_graphic_list = self.network_interface.document_metadata().layer_fill_attributes.get(&layer);
2443-
let stroke_paint_graphic_list = self.network_interface.document_metadata().layer_stroke_paint_attributes.get(&layer);
2443+
let stroke_graphic_list = self.network_interface.document_metadata().layer_stroke_attributes.get(&layer);
24442444

24452445
let has_fill = if let Some(list) = fill_graphic_list {
24462446
list.element(0).is_some()
@@ -2449,13 +2449,13 @@ impl DocumentMessageHandler {
24492449
};
24502450
// `style.stroke` is `Some` whenever a `Stroke` node is in the chain, even with weight 0 or a transparent color.
24512451
// So `is_some()` would treat invisibly-stroked fill-only layers as having a stroke.
2452-
// `ATTR_STROKE_PAINT_GRAPHIC` is the source of truth when set; fall back to `style.stroke.color` only when no row attribute is present.
2453-
let stroke_paint_visible = if let Some(list) = stroke_paint_graphic_list {
2452+
// `ATTR_STROKE_GRAPHIC` is the source of truth when set; fall back to `style.stroke.color` only when no row attribute is present.
2453+
let stroke_visible = if let Some(list) = stroke_graphic_list {
24542454
list.element(0).is_some_and(|g| !g.is_fully_transparent())
24552455
} else {
24562456
style.stroke.as_ref().and_then(|s| s.color()).is_some_and(|c| c.a() != 0.)
24572457
};
2458-
let has_stroke = style.stroke.as_ref().is_some_and(|s| s.has_renderable_stroke()) && stroke_paint_visible;
2458+
let has_stroke = style.stroke.as_ref().is_some_and(|s| s.has_renderable_stroke()) && stroke_visible;
24592459

24602460
// No stroke means there's nothing to solidify. Fill-only layers are already in the desired form, so skip.
24612461
if !has_stroke {

editor/src/messages/portfolio/document/utility_types/document_metadata.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ pub struct DocumentMetadata {
4444
/// Per-layer `ATTR_FILL_GRAPHIC` row attribute, exposed so message handlers can read paint
4545
/// information that lives on the list.
4646
pub layer_fill_attributes: HashMap<LayerNodeIdentifier, Arc<List<Graphic>>>,
47-
/// Per-layer `ATTR_STROKE_PAINT_GRAPHIC` row attribute, exposed so message handlers can read
47+
/// Per-layer `ATTR_STROKE_GRAPHIC` row attribute, exposed so message handlers can read
4848
/// stroke paint information that lives on the list.
49-
pub layer_stroke_paint_attributes: HashMap<LayerNodeIdentifier, Arc<List<Graphic>>>,
49+
pub layer_stroke_attributes: HashMap<LayerNodeIdentifier, Arc<List<Graphic>>>,
5050
/// Transform from document space to viewport space.
5151
pub document_to_viewport: DAffine2,
5252
}

editor/src/messages/portfolio/document/utility_types/network_interface.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3409,9 +3409,9 @@ impl NodeNetworkInterface {
34093409
self.document_metadata.layer_fill_attributes = new_layer_fill_attributes;
34103410
}
34113411

3412-
/// Update the per-layer `ATTR_STROKE_PAINT_GRAPHIC` snapshot.
3413-
pub fn update_stroke_paint_attributes(&mut self, new_layer_stroke_paint_attributes: HashMap<LayerNodeIdentifier, Arc<List<Graphic>>>) {
3414-
self.document_metadata.layer_stroke_paint_attributes = new_layer_stroke_paint_attributes;
3412+
/// Update the per-layer `ATTR_STROKE_GRAPHIC` snapshot.
3413+
pub fn update_stroke_attributes(&mut self, new_layer_stroke_attributes: HashMap<LayerNodeIdentifier, Arc<List<Graphic>>>) {
3414+
self.document_metadata.layer_stroke_attributes = new_layer_stroke_attributes;
34153415
}
34163416
}
34173417

editor/src/node_graph_executor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ impl NodeGraphExecutor {
447447
clip_targets,
448448
vector_data,
449449
fill_attributes,
450-
stroke_paint_attributes,
450+
stroke_attributes,
451451
backgrounds: _,
452452
} = render_output.metadata;
453453

@@ -463,7 +463,7 @@ impl NodeGraphExecutor {
463463
responses.add(DocumentMessage::UpdateClipTargets { clip_targets });
464464
responses.add(DocumentMessage::UpdateVectorData { vector_data });
465465
responses.add(DocumentMessage::UpdateFillAttributes { fill_attributes });
466-
responses.add(DocumentMessage::UpdateStrokePaintAttributes { stroke_paint_attributes });
466+
responses.add(DocumentMessage::UpdateStrokeAttributes { stroke_attributes });
467467
responses.add(DocumentMessage::RenderScrollbars);
468468
responses.add(DocumentMessage::RenderRulers);
469469
responses.add(OverlaysMessage::Draw);

node-graph/libraries/core-types/src/list.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub const ATTR_GRADIENT_TYPE: &str = "gradient_type";
8181
pub const ATTR_FILL_GRAPHIC: &str = "fill_graphic";
8282

8383
/// List<Graphic> data for stroke.
84-
pub const ATTR_STROKE_PAINT_GRAPHIC: &str = "stroke_paint_graphic";
84+
pub const ATTR_STROKE_GRAPHIC: &str = "stroke_graphic";
8585

8686
// ========================
8787
// TRAIT: AnyAttributeValue

node-graph/libraries/graphic-types/src/graphic.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::borrow::Cow;
22

33
use core_types::bounds::{BoundingBox, RenderBoundingBox};
44
use core_types::graphene_hash::CacheHash;
5-
use core_types::list::{ATTR_FILL_GRAPHIC, ATTR_STROKE_PAINT_GRAPHIC, Item, List};
5+
use core_types::list::{ATTR_FILL_GRAPHIC, ATTR_STROKE_GRAPHIC, Item, List};
66
use core_types::ops::ListConvert;
77
use core_types::render_complexity::RenderComplexity;
88
use core_types::uuid::NodeId;
@@ -209,8 +209,8 @@ pub fn fill_graphic_list_at(list: &List<Vector>, index: usize) -> Option<Cow<'_,
209209
/// Look up the stroke paint graphics for a vector row, falling back to the legacy
210210
/// `style.stroke.color` when the row attribute is absent or empty.
211211
/// TODO: Remove once all stroke paint sources flow through `List<Graphic>` directly without going through `Stroke.color`.
212-
pub fn stroke_paint_graphic_list_at(list: &List<Vector>, index: usize) -> Option<Cow<'_, List<Graphic>>> {
213-
list.attribute::<List<Graphic>>(ATTR_STROKE_PAINT_GRAPHIC, index).map(Cow::Borrowed).or_else(|| {
212+
pub fn stroke_graphic_list_at(list: &List<Vector>, index: usize) -> Option<Cow<'_, List<Graphic>>> {
213+
list.attribute::<List<Graphic>>(ATTR_STROKE_GRAPHIC, index).map(Cow::Borrowed).or_else(|| {
214214
let vector = list.element(index)?;
215215
color_to_graphic_list(vector.style.stroke().and_then(|s| s.color())).map(Cow::Owned)
216216
})
@@ -253,7 +253,7 @@ pub fn is_fill_fully_transparent_at(list: &List<Vector>, index: usize) -> bool {
253253
/// This avoids the `List<Graphic>` allocation that the legacy `Stroke.color` fallback path performs.
254254
/// TODO: Remove once all stroke paint sources flow through `List<Graphic>` directly without going through `Stroke.color`.
255255
pub fn is_stroke_opaque_at(list: &List<Vector>, index: usize) -> bool {
256-
if let Some(graphic_list) = list.attribute::<List<Graphic>>(ATTR_STROKE_PAINT_GRAPHIC, index) {
256+
if let Some(graphic_list) = list.attribute::<List<Graphic>>(ATTR_STROKE_GRAPHIC, index) {
257257
return graphic_list.element(0).is_some_and(|graphic| graphic.is_opaque());
258258
}
259259
let Some(color) = list.element(index).and_then(|vector| vector.style.stroke()).and_then(|stroke| stroke.color()) else {
@@ -267,7 +267,7 @@ pub fn is_stroke_opaque_at(list: &List<Vector>, index: usize) -> bool {
267267
/// This avoids the `List<Graphic>` allocation that the legacy `Stroke.color` fallback path performs.
268268
/// TODO: Remove once all stroke paint sources flow through `List<Graphic>` directly without going through `Stroke.color`.
269269
pub fn is_stroke_fully_transparent_at(list: &List<Vector>, index: usize) -> bool {
270-
if let Some(graphic_list) = list.attribute::<List<Graphic>>(ATTR_STROKE_PAINT_GRAPHIC, index) {
270+
if let Some(graphic_list) = list.attribute::<List<Graphic>>(ATTR_STROKE_GRAPHIC, index) {
271271
return graphic_list.element(0).is_none_or(|graphic| graphic.is_fully_transparent());
272272
}
273273
let Some(color) = list.element(index).and_then(|vector| vector.style.stroke()).and_then(|stroke| stroke.color()) else {
@@ -446,7 +446,7 @@ impl Graphic {
446446
};
447447

448448
let stroke_invisible_or_transparent = element.style.stroke().is_none_or(|stroke| !stroke.has_renderable_stroke())
449-
|| if let Some(graphic_list) = vector.attribute::<List<Graphic>>(ATTR_STROKE_PAINT_GRAPHIC, index) {
449+
|| if let Some(graphic_list) = vector.attribute::<List<Graphic>>(ATTR_STROKE_GRAPHIC, index) {
450450
graphic_list.element(0).is_none_or(|graphic| graphic.is_fully_transparent())
451451
} else {
452452
element.style.stroke().and_then(|stroke| stroke.color()).is_none_or(|color| color.a() == 0.)

node-graph/libraries/rendering/src/renderer.rs

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use core_types::bounds::BoundingBox;
66
use core_types::bounds::RenderBoundingBox;
77
use core_types::color::Color;
88
use core_types::color::SRGBA8;
9-
use core_types::list::{ATTR_FILL_GRAPHIC, ATTR_STROKE_PAINT_GRAPHIC, Item, List};
9+
use core_types::list::{ATTR_FILL_GRAPHIC, ATTR_STROKE_GRAPHIC, Item, List};
1010
use core_types::math::quad::Quad;
1111
use core_types::render_complexity::RenderComplexity;
1212
use core_types::transform::Footprint;
@@ -18,7 +18,7 @@ use core_types::{
1818
use dyn_any::DynAny;
1919
use glam::{DAffine2, DVec2};
2020
use graphene_hash::CacheHashWrapper;
21-
use graphic_types::graphic::{fill_graphic_list_at, is_stroke_fully_transparent_at, stroke_paint_graphic_list_at};
21+
use graphic_types::graphic::{fill_graphic_list_at, is_stroke_fully_transparent_at, stroke_graphic_list_at};
2222
use graphic_types::raster_types::{BitmapMut, CPU, GPU, Image, Raster};
2323
use graphic_types::vector_types::gradient::{GradientStops, GradientType};
2424
use graphic_types::vector_types::subpath::Subpath;
@@ -454,10 +454,10 @@ pub struct RenderMetadata {
454454
/// information that lives on the list rather than on `PathStyle.fill`.
455455
#[cfg_attr(feature = "serde", serde(skip))]
456456
pub fill_attributes: HashMap<NodeId, Arc<List<Graphic>>>,
457-
/// Per-layer `ATTR_STROKE_PAINT_GRAPHIC` row attribute, exposed so message handlers can read
457+
/// Per-layer `ATTR_STROKE_GRAPHIC` row attribute, exposed so message handlers can read
458458
/// stroke paint information that lives on the list rather than on `Stroke.color`.
459459
#[cfg_attr(feature = "serde", serde(skip))]
460-
pub stroke_paint_attributes: HashMap<NodeId, Arc<List<Graphic>>>,
460+
pub stroke_attributes: HashMap<NodeId, Arc<List<Graphic>>>,
461461
pub backgrounds: Vec<Background>,
462462
}
463463

@@ -482,7 +482,7 @@ impl RenderMetadata {
482482
clip_targets,
483483
vector_data,
484484
fill_attributes,
485-
stroke_paint_attributes,
485+
stroke_attributes,
486486
backgrounds,
487487
} = self;
488488
upstream_footprints.extend(other.upstream_footprints.iter());
@@ -494,7 +494,7 @@ impl RenderMetadata {
494494
clip_targets.extend(other.clip_targets.iter());
495495
vector_data.extend(other.vector_data.iter().map(|(id, data)| (*id, data.clone())));
496496
fill_attributes.extend(other.fill_attributes.iter().map(|(id, data)| (*id, data.clone())));
497-
stroke_paint_attributes.extend(other.stroke_paint_attributes.iter().map(|(id, data)| (*id, data.clone())));
497+
stroke_attributes.extend(other.stroke_attributes.iter().map(|(id, data)| (*id, data.clone())));
498498

499499
// TODO: Find a better non O(n^2) way to merge backgrounds
500500
for background in &other.backgrounds {
@@ -1073,13 +1073,13 @@ impl Render for List<Vector> {
10731073
let fill_graphic_list = fill_graphic_list_at(self, index);
10741074
let fill_graphic = fill_graphic_list.as_ref().and_then(|l| l.element(0));
10751075

1076-
let stroke_paint_graphic_list = stroke_paint_graphic_list_at(self, index);
1077-
let stroke_paint_graphic = stroke_paint_graphic_list.as_ref().and_then(|l| l.element(0));
1076+
let stroke_graphic_list = stroke_graphic_list_at(self, index);
1077+
let stroke_graphic = stroke_graphic_list.as_ref().and_then(|l| l.element(0));
10781078

10791079
let path_is_closed = vector.stroke_bezier_paths().all(|path| path.closed());
10801080
let can_draw_aligned_stroke = path_is_closed
10811081
&& vector.style.stroke().is_some_and(|stroke| stroke.has_renderable_stroke() && stroke.align.is_not_centered())
1082-
&& stroke_paint_graphic.is_some_and(|graphic| !graphic.is_fully_transparent());
1082+
&& stroke_graphic.is_some_and(|graphic| !graphic.is_fully_transparent());
10831083
let can_use_paint_order = !(fill_graphic.is_none_or(|graphic| !graphic.is_opaque()) || mask_type == MaskType::Clip);
10841084

10851085
let needs_separate_alignment_fill = can_draw_aligned_stroke && !can_use_paint_order;
@@ -1176,7 +1176,7 @@ impl Render for List<Vector> {
11761176
.style
11771177
.stroke()
11781178
.map(|stroke| {
1179-
if stroke_paint_graphic_list.as_ref().and_then(|l| l.element(0)).is_some() {
1179+
if stroke_graphic_list.as_ref().and_then(|l| l.element(0)).is_some() {
11801180
stroke.render(
11811181
defs,
11821182
item_transform,
@@ -1194,9 +1194,9 @@ impl Render for List<Vector> {
11941194
.unwrap_or_default();
11951195

11961196
// Need to avoid generating only paint attribute, otherwise SVG uses 1px width stroke as a fallback
1197-
let stroke_paint_visible = vector.style.stroke().is_some_and(|stroke| stroke.has_renderable_stroke()) && stroke_paint_graphic.is_some_and(|g| !g.is_fully_transparent());
1198-
let stroke_paint_attribute = if stroke_paint_visible {
1199-
stroke_paint_graphic_list
1197+
let stroke_visible = vector.style.stroke().is_some_and(|stroke| stroke.has_renderable_stroke()) && stroke_graphic.is_some_and(|g| !g.is_fully_transparent());
1198+
let stroke_attribute = if stroke_visible {
1199+
stroke_graphic_list
12001200
.as_deref()
12011201
.map(|list| {
12021202
// Gradient should align with the fill path bbox so that a shared gradient lines up across fill and stroke.
@@ -1247,7 +1247,7 @@ impl Render for List<Vector> {
12471247
}
12481248
attributes.push_val(fill_attribute);
12491249
attributes.push_val(stroke_shape_attribute);
1250-
attributes.push_val(stroke_paint_attribute);
1250+
attributes.push_val(stroke_attribute);
12511251

12521252
if vector.is_branching() && !use_face_fill {
12531253
attributes.push("fill-rule", "evenodd");
@@ -1317,7 +1317,7 @@ impl Render for List<Vector> {
13171317
}
13181318

13191319
let fill_graphic_list = fill_graphic_list_at(self, index);
1320-
let stroke_paint_graphic_list = stroke_paint_graphic_list_at(self, index);
1320+
let stroke_graphic_list = stroke_graphic_list_at(self, index);
13211321

13221322
// If we're using opacity or a blend mode, we need to push a layer
13231323
let blend_mode = match render_params.render_mode {
@@ -1410,11 +1410,11 @@ impl Render for List<Vector> {
14101410
};
14111411

14121412
let do_stroke = |scene: &mut Scene, width_scale: f64, context: &mut RenderContext| {
1413-
let Some(stroke_paint_graphic_list) = stroke_paint_graphic_list.as_deref() else { return };
1413+
let Some(stroke_graphic_list) = stroke_graphic_list.as_deref() else { return };
14141414
let Some(stroke) = element.style.stroke() else { return };
14151415

1416-
for paint_idx in 0..stroke_paint_graphic_list.len() {
1417-
let Some(stroke_paint_graphic) = stroke_paint_graphic_list.element(paint_idx) else {
1416+
for paint_idx in 0..stroke_graphic_list.len() {
1417+
let Some(stroke_graphic) = stroke_graphic_list.element(paint_idx) else {
14181418
continue;
14191419
};
14201420

@@ -1443,7 +1443,7 @@ impl Render for List<Vector> {
14431443
continue;
14441444
};
14451445

1446-
match stroke_paint_graphic {
1446+
match stroke_graphic {
14471447
Graphic::Color(list) => {
14481448
let Some(color) = list.element(0) else { continue };
14491449
let brush = peniko::Brush::Solid(SRGBA8::from(*color).to_peniko_color());
@@ -1467,7 +1467,7 @@ impl Render for List<Vector> {
14671467
let stroked = peniko::kurbo::stroke(path.iter(), &stroke, &StrokeOpts::default(), 0.01);
14681468

14691469
scene.push_clip_layer(peniko::Fill::NonZero, kurbo::Affine::new(element_transform.to_cols_array()), &stroked);
1470-
stroke_paint_graphic.render_to_vello(scene, multiplied_transform, context, render_params);
1470+
stroke_graphic.render_to_vello(scene, multiplied_transform, context, render_params);
14711471
scene.pop_layer();
14721472
}
14731473
};
@@ -1609,12 +1609,12 @@ impl Render for List<Vector> {
16091609
metadata.vector_data.entry(element_id).or_insert_with(|| Arc::new(source.clone()));
16101610

16111611
// Surface row attribute paint sources (only for item 0) so message handlers can read
1612-
// `ATTR_FILL_GRAPHIC` / `ATTR_STROKE_PAINT_GRAPHIC` without rebuilding the list.
1613-
if let Some(fill_paint) = self.attribute::<List<Graphic>>(ATTR_FILL_GRAPHIC, index).cloned() {
1614-
metadata.fill_attributes.entry(element_id).or_insert_with(|| Arc::new(fill_paint));
1612+
// `ATTR_FILL_GRAPHIC` / `ATTR_STROKE_GRAPHIC` without rebuilding the list.
1613+
if let Some(fill_graphic) = self.attribute::<List<Graphic>>(ATTR_FILL_GRAPHIC, index).cloned() {
1614+
metadata.fill_attributes.entry(element_id).or_insert_with(|| Arc::new(fill_graphic));
16151615
}
1616-
if let Some(stroke_paint) = self.attribute::<List<Graphic>>(ATTR_STROKE_PAINT_GRAPHIC, index).cloned() {
1617-
metadata.stroke_paint_attributes.entry(element_id).or_insert_with(|| Arc::new(stroke_paint));
1616+
if let Some(stroke_graphic) = self.attribute::<List<Graphic>>(ATTR_STROKE_GRAPHIC, index).cloned() {
1617+
metadata.stroke_attributes.entry(element_id).or_insert_with(|| Arc::new(stroke_graphic));
16181618
}
16191619

16201620
// Surface `editor:text_frame` for the Text tool's drag cage

node-graph/nodes/math/src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use core_types::Context;
2-
use core_types::list::{ATTR_FILL_GRAPHIC, ATTR_STROKE_PAINT_GRAPHIC, List};
2+
use core_types::list::{ATTR_FILL_GRAPHIC, ATTR_STROKE_GRAPHIC, List};
33
use core_types::registry::types::{Fraction, Percentage, PixelSize};
44
use core_types::transform::Footprint;
55
use core_types::{Color, Ctx, num_traits};
@@ -1008,10 +1008,10 @@ fn fill_graphic<P: IntoGraphicList + 'n + Send>(
10081008
vectors
10091009
}
10101010

1011-
/// Sets the `stroke_paint_graphic` attribute on each item of the input vector list.
1011+
/// Sets the `stroke_graphic` attribute on each item of the input vector list.
10121012
/// Used for testing of gradient and clipping-based stroke rendering until the proper Stroke node refactor lands.
10131013
#[node_macro::node(category("Debug"))]
1014-
fn stroke_paint_graphic<P: IntoGraphicList + 'n + Send>(
1014+
fn stroke_graphic<P: IntoGraphicList + 'n + Send>(
10151015
_: impl Ctx,
10161016
mut vectors: List<Vector>,
10171017
#[implementations(
@@ -1022,11 +1022,11 @@ fn stroke_paint_graphic<P: IntoGraphicList + 'n + Send>(
10221022
List<Color>,
10231023
List<GradientStops>,
10241024
)]
1025-
stroke_paint_graphic: P,
1025+
stroke_graphic: P,
10261026
) -> List<Vector> {
1027-
let paint_list = stroke_paint_graphic.into_graphic_list();
1027+
let paint_list = stroke_graphic.into_graphic_list();
10281028
for row_idx in 0..vectors.len() {
1029-
vectors.set_attribute(ATTR_STROKE_PAINT_GRAPHIC, row_idx, paint_list.clone());
1029+
vectors.set_attribute(ATTR_STROKE_GRAPHIC, row_idx, paint_list.clone());
10301030
}
10311031
vectors
10321032
}

0 commit comments

Comments
 (0)