diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-02 13:17:07 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-02 13:21:36 +0100 |
| commit | 5110a41de1ca2236739ace2d37a1af912bb029f1 (patch) | |
| tree | 22cc223140052bd7ec10798f5ecbffaae7c934a8 /library/src/visualize/shape.rs | |
| parent | 33ab1fdbdda4e95e48b767a3f7f8f66413b6de0e (diff) | |
Introduce virtual typesetter
Diffstat (limited to 'library/src/visualize/shape.rs')
| -rw-r--r-- | library/src/visualize/shape.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/src/visualize/shape.rs b/library/src/visualize/shape.rs index daecd580..f2d15cab 100644 --- a/library/src/visualize/shape.rs +++ b/library/src/visualize/shape.rs @@ -75,7 +75,7 @@ impl<const S: ShapeKind> ShapeNode<S> { impl<const S: ShapeKind> Layout for ShapeNode<S> { fn layout( &self, - world: Tracked<dyn World>, + vt: &mut Vt, styles: StyleChain, regions: &Regions, ) -> SourceResult<Fragment> { @@ -90,7 +90,7 @@ impl<const S: ShapeKind> Layout for ShapeNode<S> { let child = child.clone().padded(inset.map(|side| side.map(Length::from))); let mut pod = Regions::one(regions.first, regions.base, regions.expand); - frame = child.layout(world, styles, &pod)?.into_frame(); + frame = child.layout(vt, styles, &pod)?.into_frame(); // Relayout with full expansion into square region to make sure // the result is really a square or circle. @@ -106,7 +106,7 @@ impl<const S: ShapeKind> Layout for ShapeNode<S> { pod.first = Size::splat(length); pod.expand = Axes::splat(true); - frame = child.layout(world, styles, &pod)?.into_frame(); + frame = child.layout(vt, styles, &pod)?.into_frame(); } } else { // The default size that a shape takes on if it has no child and |
