mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-23 04:38:12 +08:00
Introduce the new brush stroke data types (#4467)
* Add the brush stroke format types * Route brush strokes through the node graph * Store brush style as per-item attributes instead of a struct
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
use brush_types::Stroke;
|
||||
use core_types::bounds::{BoundingBox, RenderBoundingBox};
|
||||
use core_types::list::{AttributeValueDyn, Item, List, ListDyn, NodeIdPath};
|
||||
use core_types::registry::types::{Angle, SeedValue, SignedInteger};
|
||||
@@ -870,6 +871,7 @@ pub async fn extend<T: 'n + Send + Clone>(
|
||||
List<Color>,
|
||||
List<Gradient>,
|
||||
List<Artboard>,
|
||||
List<Stroke>,
|
||||
)]
|
||||
base: List<T>,
|
||||
/// The list whose items will appear at the end of the extended list.
|
||||
@@ -890,6 +892,7 @@ pub async fn extend<T: 'n + Send + Clone>(
|
||||
List<Color>,
|
||||
List<Gradient>,
|
||||
List<Artboard>,
|
||||
List<Stroke>,
|
||||
)]
|
||||
new: List<T>,
|
||||
) -> List<T> {
|
||||
@@ -942,6 +945,7 @@ pub async fn into_group<T: Into<Graphic> + 'n>(
|
||||
List<String>,
|
||||
List<DVec2>,
|
||||
Item<DAffine2>, // TODO: Remove this
|
||||
List<Stroke>,
|
||||
)]
|
||||
content: T,
|
||||
) -> Item<Graphic> {
|
||||
|
||||
Reference in New Issue
Block a user