style::values::specified::calc

Type Alias CalcAnchorFunction

Source
pub type CalcAnchorFunction = GenericCalcAnchorFunction<Leaf>;
Expand description

Specified anchor() function in math functions.

Aliased Type§

struct CalcAnchorFunction {
    pub target_element: DashedIdent,
    pub side: AnchorSide<Box<GenericCalcNode<Leaf>>>,
    pub fallback: Optional<Box<GenericCalcNode<Leaf>>>,
}

Fields§

§target_element: DashedIdent

Anchor name of the element to anchor to. If omitted, selects the implicit anchor element.

§side: AnchorSide<Box<GenericCalcNode<Leaf>>>

Where relative to the target anchor element to position the anchored element to.

§fallback: Optional<Box<GenericCalcNode<Leaf>>>

Value to use in case the anchor function is invalid.