mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-16 06:38:03 +08:00
Move all network metadata to node network
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user