diagrams-lib-1.1.0.7: Embedded domain-specific language for declarative graphics

Maintainerdiagrams-discuss@googlegroups.com
Safe HaskellNone

Diagrams.Parametric.Adjust

Description

Tools for adjusting the length of parametric objects such as segments and trails.

Synopsis

Documentation

adjust :: (DomainBounds a, Sectionable a, HasArcLength a, Fractional (Scalar (V a))) => a -> AdjustOpts (V a) -> aSource

Adjust the length of a parametric object such as a segment or trail. The second parameter is an option record which controls how the adjustment should be performed; see AdjustOpts.

data AdjustOpts v Source

How should a segment, trail, or path be adjusted?

Instances

adjMethod :: Lens' (AdjustOpts v) (AdjustMethod v)Source

Which method should be used for adjusting?

adjSide :: Lens' (AdjustOpts v) AdjustSideSource

Which end(s) of the object should be adjusted?

adjEps :: Lens' (AdjustOpts v) (Scalar v)Source

Tolerance to use when doing adjustment.

data AdjustMethod v Source

What method should be used for adjusting a segment, trail, or path?

Constructors

ByParam (Scalar v)

Extend by the given parameter value (use a negative parameter to shrink)

ByAbsolute (Scalar v)

Extend by the given arc length (use a negative length to shrink)

ToAbsolute (Scalar v)

Extend or shrink to the given arc length

Instances

data AdjustSide Source

Which side of a segment, trail, or path should be adjusted?

Constructors

Start

Adjust only the beginning

End

Adjust only the end

Both

Adjust both sides equally