use super::{AlignNode, SpacingKind}; use crate::library::prelude::*; /// Arrange nodes and spacing along an axis. #[derive(Debug, Hash)] pub struct StackNode { /// The stacking direction. pub dir: Dir, /// The spacing between non-spacing children. pub spacing: Option, /// The children to be stacked. pub children: Vec, } #[class] impl StackNode { fn construct(_: &mut Context, args: &mut Args) -> TypResult