Move all network metadata to node network

This commit is contained in:
Adam
2024-09-06 16:27:22 -07:00
parent 73a30368c0
commit de31dbfb19
5 changed files with 424 additions and 322 deletions

View File

@@ -21,7 +21,7 @@ use std::fmt::Write;
use vello::*;
/// Represents a clickable target for the layer
#[derive(Clone, Debug)]
#[derive(Clone, Debug, PartialEq)]
pub struct ClickTarget {
subpath: bezier_rs::Subpath<PointId>,
stroke_width: f64,
@@ -38,6 +38,10 @@ impl ClickTarget {
&self.subpath
}
pub fn stroke_width(&self) -> f64 {
self.stroke_width
}
pub fn bounding_box(&self) -> Option<[DVec2; 2]> {
self.bounding_box
}