mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-30 10:14:46 +01:00
Merge main into feat/plugin-api-generated-art
This commit is contained in:
commit
be44e65acd
1395 files changed
+204385
-267871
No files matched your search
@@ -63,6 +63,10 @@ pub struct NodeExtras {
|
||||
/// colorizes it. Each pixel is drawn in this color, as opaque as the pixel is dark, so white
|
||||
/// pixels are transparent. `None`: the image shows its own pixels.
|
||||
pub colorize: Option<Box<vectorcraft_color::Paint>>,
|
||||
/// Attributes panel › Overprint Fill on a colorized image: its color prints over the inks
|
||||
/// below instead of knocking them out. It counts only while [`Self::colorize`] is set
|
||||
/// ([`crate::Node::colorize_overprints`]).
|
||||
pub colorize_overprint: bool,
|
||||
/// Pathfinder panel › Make Compound Shape: this group is a compound shape
|
||||
/// ([`Node::is_compound_shape`], [`crate::compound_shape`]).
|
||||
pub compound_shape: bool,
|
||||
@@ -118,6 +122,7 @@ pub(super) static NO_EXTRAS: NodeExtras = NodeExtras {
|
||||
live_paint_gaps: None,
|
||||
objects_on_path: None,
|
||||
colorize: None,
|
||||
colorize_overprint: false,
|
||||
compound_shape: false,
|
||||
shape_mode: crate::ShapeMode::Add,
|
||||
symbol_overrides: Vec::new(),
|
||||
|
||||
@@ -52,6 +52,7 @@ impl Serialize for Node {
|
||||
e.live_paint_gaps.is_none(),
|
||||
e.objects_on_path.is_none(),
|
||||
e.colorize.is_none(),
|
||||
is_default(&e.colorize_overprint),
|
||||
is_default(&e.compound_shape),
|
||||
is_default(&e.shape_mode),
|
||||
e.symbol_overrides.is_empty(),
|
||||
@@ -103,6 +104,7 @@ impl Serialize for Node {
|
||||
field!("live_paint_gaps", &e.live_paint_gaps);
|
||||
field!("objects_on_path", &e.objects_on_path);
|
||||
field!("colorize", &e.colorize);
|
||||
field!("colorize_overprint", &e.colorize_overprint);
|
||||
field!("compound_shape", &e.compound_shape);
|
||||
field!("shape_mode", &e.shape_mode);
|
||||
field!("symbol_overrides", &e.symbol_overrides);
|
||||
@@ -249,6 +251,8 @@ pub(super) struct NodeWire {
|
||||
#[serde(default)]
|
||||
colorize: Option<Box<vectorcraft_color::Paint>>,
|
||||
#[serde(default)]
|
||||
colorize_overprint: bool,
|
||||
#[serde(default)]
|
||||
compound_shape: bool,
|
||||
#[serde(default)]
|
||||
shape_mode: crate::ShapeMode,
|
||||
@@ -490,6 +494,7 @@ impl From<NodeWire> for Node {
|
||||
live_paint_gaps: w.live_paint_gaps,
|
||||
objects_on_path: w.objects_on_path,
|
||||
colorize: w.colorize,
|
||||
colorize_overprint: w.colorize_overprint,
|
||||
compound_shape: w.compound_shape,
|
||||
shape_mode: w.shape_mode,
|
||||
symbol_overrides: w.symbol_overrides,
|
||||
|
||||
Reference in new issue
Block a user