Type Alias style::values::specified::motion::OffsetPathFunction

source ·
pub type OffsetPathFunction = GenericOffsetPathFunction<BasicShape, RayFunction, SpecifiedUrl>;
Expand description

The specified value of .

Aliased Type§

enum OffsetPathFunction {
    Ray(GenericRayFunction<Angle, GenericPosition<PositionComponent<HorizontalPositionKeyword>, PositionComponent<VerticalPositionKeyword>>>),
    Url(CssUrl),
    Shape(GenericBasicShape<Angle, GenericPosition<LengthPercentage, LengthPercentage>, LengthPercentage, NonNegative<LengthPercentage>, BasicShapeRect>),
}

Variants§

§

Ray(GenericRayFunction<Angle, GenericPosition<PositionComponent<HorizontalPositionKeyword>, PositionComponent<VerticalPositionKeyword>>>)

ray() function, which defines a path in the polar coordinate system. Use Box<> to make sure the size of offset-path is not too large.

§

Url(CssUrl)

A URL reference to an SVG shape element. If the URL does not reference a shape element, this behaves as path(“m 0 0”) instead.

§

Shape(GenericBasicShape<Angle, GenericPosition<LengthPercentage, LengthPercentage>, LengthPercentage, NonNegative<LengthPercentage>, BasicShapeRect>)

The value.

Trait Implementations§

source§

impl Parse for OffsetPathFunction

source§

fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i>>

Parse a value of this type. Read more