Finalized

doodle.algebra.generic.Finalized
See theFinalized companion object
final case class Finalized[F[_], A](f: Transforms => Eval[(BoundingBox, Renderable[F, A])])

A Finalized represents an effect that, when run, produces all the information needed to layout an image (it "finalizes" all the information needed for this process) and can eventually produce a value of type A (once it is rendered). Algorithmically this means:

  • for each shape work out its DrawingContext from which we can work out a doodle.core.BoundingBox.

  • apply transforms to bounding boxes at the point they are defined so each transformed subtree is laid out in its local coordinate system.

The List of ContextTransform's are supplied in the order they should be applied: the innermost transform is at the head of the list.

Attributes

Companion
object
Source
Finalized.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Attributes

Source
Finalized.scala
def flatMap[B](f: (BoundingBox, Renderable[F, A]) => Finalized[F, B]): Finalized[F, B]

Attributes

Source
Finalized.scala
def map[B](f: (BoundingBox, Renderable[F, A]) => (BoundingBox, Renderable[F, B])): Finalized[F, B]

Attributes

Source
Finalized.scala
def run(ctxTxs: List[ContextTransform]): Eval[(BoundingBox, Renderable[F, A])]

Attributes

Source
Finalized.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product