Skip to content

VectorCraft: An open-source, vector art tool written by scratch in pure Rust

Render: import the shape-mask helpers in renderer/nodes.rs and blobs.rs (#4299 made the imports explicit)

bflatasticb97098367a14
diff --git a/crates/render/src/blobs.rs b/crates/render/src/blobs.rs
index 4f1483def..82de7e71d 100644
--- a/crates/render/src/blobs.rs
+++ b/crates/render/src/blobs.rs
@@ -1,4 +1,5 @@
use super::{Affine, Arc, BezPath, Ink, Node, Pixmap, Shape, images, ink, paint};
+use vectorcraft_doc::{AppearanceItem, NodeKind};
/// `key`'s pixels in the shared image store; `touch` marks them used.
pub(crate) fn lookup(key: &images::ImageKey, touch: bool) -> Option<Arc<Pixmap>> {
diff --git a/crates/render/src/renderer/nodes.rs b/crates/render/src/renderer/nodes.rs
index e8706569d..7a82d96ee 100644
--- a/crates/render/src/renderer/nodes.rs
+++ b/crates/render/src/renderer/nodes.rs
@@ -1,8 +1,8 @@
use super::{
Affine, Arc, BezPath, ClipEntry, ClipPaintEntry, Compose, Composite, Document, FillRule, Frame, GeomEntry, ISOLATION_DIM, Ink, MAX_GUIDE_DASHES,
Node, NodeId, NodeKind, Rect, RenderContext, RenderOptions, Renderer, Shape, SymbolBoxes, TraceView, blend_mode, brush_fx, effects, fx, group,
- holds_instance, holds_plugin_effect, kurbo, lru, mask_value, painted_items, plain_image, polygon_length, rects_overlap, single_plain_fill,
- text_geom_snapped,
+ holds_instance, holds_plugin_effect, kurbo, lru, mask_value, painted_items, plain_image, polygon_length, rects_overlap, shape_masked_image,
+ single_plain_fill, text_geom_snapped, white_shape_mask,
};
impl Renderer {