From 9bc90c371fb41a2d6dc08eb4673e5be15f829514 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 2 Dec 2022 15:41:39 +0100 Subject: Introspection --- library/src/visualize/shape.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'library/src/visualize/shape.rs') diff --git a/library/src/visualize/shape.rs b/library/src/visualize/shape.rs index f2d15cab..acb5a9e9 100644 --- a/library/src/visualize/shape.rs +++ b/library/src/visualize/shape.rs @@ -1,6 +1,5 @@ use std::f64::consts::SQRT_2; -use crate::meta::LinkNode; use crate::prelude::*; /// A sizable and fillable shape with optional content. @@ -160,10 +159,8 @@ impl Layout for ShapeNode { } } - // Apply link if it exists. - if let Some(url) = styles.get(LinkNode::DEST) { - frame.link(url.clone()); - } + // Apply metadata. + frame.meta(styles); Ok(Fragment::frame(frame)) } -- cgit v1.2.3