Svg

doodle.svg.algebra.SvgModule.Svg$
object Svg

Attributes

Source:
Svg.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Svg.type

Members list

Concise view

Type members

Classlikes

case object Closed extends PathType

Attributes

Source:
Svg.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
trait PathType
class Object
trait Matchable
class Any
Self type
Closed.type
case object Open extends PathType

Attributes

Source:
Svg.scala
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Product
trait Equals
trait PathType
class Object
trait Matchable
class Any
Self type
Open.type
sealed trait PathType

Attributes

Source:
Svg.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Closed.type
object Open.type

Value members

Concrete methods

Transform from client coordinates to local coordinates

Transform from client coordinates to local coordinates

Attributes

Source:
Svg.scala
def render[Alg <: Algebra, A](frame: Frame, algebra: Alg, picture: Picture[Alg, A]): IO[(Output, A)]

Attributes

Source:
Svg.scala
def renderWithoutRootTag[Alg <: Algebra, A](algebra: Alg, picture: Picture[Alg, A]): IO[(BoundingBox, Tag, A)]

Render to SVG without wrapping with a root tag.

Render to SVG without wrapping with a root tag.

Attributes

Source:
Svg.scala
def svgTag(bb: BoundingBox, frame: Frame): Tag

Given a bounding box and a size specification create a tag that has the correct size and viewbox

Given a bounding box and a size specification create a tag that has the correct size and viewbox

Attributes

Source:
Svg.scala
def textTag(text: String, font: Font): Tag

Attributes

Source:
Svg.scala
def toGradientId(gradient: Gradient): String

Attributes

Source:
Svg.scala
def toHSLA(color: Color): String

Attributes

Source:
Svg.scala
def toRGB(color: Color): String

Attributes

Source:
Svg.scala
def toStyle(stroke: Option[Stroke], fill: Option[Fill], gradients: Set[Tag]): String

Given stroke and fill returns a String representing the stroke and fill rendered as SVG styles.

Given stroke and fill returns a String representing the stroke and fill rendered as SVG styles.

If the fill specifies a gradient that gradient, represented in SVG form as a Tag, is added to the given Set as a side-effect.

Attributes

Source:
Svg.scala
def toStyle(fill: Fill, gradients: Set[Tag]): String

Given a Fill return the string to insert as the style part of the tag being rendered

Given a Fill return the string to insert as the style part of the tag being rendered

Additionally, if this fill represents a gradient add that gradient to the given Set as a side-effect. In SVG gradients cannot be specified inline. Hence this construction.

Attributes

Source:
Svg.scala
def toStyle(stroke: Stroke): String

Attributes

Source:
Svg.scala
def toSvgGradient(gradient: Gradient): (String, Tag)

Attributes

Source:
Svg.scala

Attributes

Source:
Svg.scala

Attributes

Source:
Svg.scala
def toSvgPath(elts: List[PathElement], pathType: PathType): String

Attributes

Source:
Svg.scala
def toSvgPath(points: Array[Point], pathType: PathType): String

Attributes

Source:
Svg.scala

Attributes

Source:
Svg.scala

Attributes

Source:
Svg.scala

Attributes

Source:
Svg.scala

Concrete fields

val implicits: Aggregate[Builder, Output, FragT] & DataConverters

Attributes

Source:
Svg.scala
val svg: SvgTags

Attributes

Source:
Svg.scala
val svgAttrs: SvgAttrs

Attributes

Source:
Svg.scala

Implicits

Implicits

Attributes

Source:
Svg.scala