Svg

object Svg
Source:
Svg.scala
class Object
trait Matchable
class Any
Svg.type

Type members

Classlikes

case object Closed extends PathType
Source:
Svg.scala
case object Open extends PathType
Source:
Svg.scala
sealed trait PathType
Source:
Svg.scala

Value members

Concrete methods

def inverseClientTransform(bb: BoundingBox, size: Size): Transform

Transform from client coordinates to local coordinates

Transform from client coordinates to local coordinates

Source:
Svg.scala
def render[Alg <: ([x[_]] =>> Algebra[x]), A](frame: Frame, algebra: Alg[Drawing], picture: Picture[Alg, Drawing, A]): IO[(Output, A)]
Source:
Svg.scala
def renderWithoutRootTag[Alg <: ([x[_]] =>> Algebra[x]), A](algebra: Alg[Drawing], picture: Picture[Alg, Drawing, A]): IO[(BoundingBox, Tag, A)]

Render to SVG without wrapping with a root tag.

Render to SVG without wrapping with a root tag.

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

Source:
Svg.scala
def textTag(text: String, font: Font): Tag
Source:
Svg.scala
def toGradientId(gradient: Gradient): String
Source:
Svg.scala
def toHSLA(color: Color): String
Source:
Svg.scala
def toRGB(color: Color): String
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.

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.

Source:
Svg.scala
def toStyle(stroke: Stroke): String
Source:
Svg.scala
def toSvgGradient(gradient: Gradient): (String, Tag)
Source:
Svg.scala
def toSvgGradientStop(tuple: (Color, Double)): Tag
Source:
Svg.scala
def toSvgLinearGradient(gradient: Linear): (String, Tag)
Source:
Svg.scala
def toSvgPath(elts: List[PathElement], pathType: PathType): String
Source:
Svg.scala
def toSvgPath(points: Array[Point], pathType: PathType): String
Source:
Svg.scala
def toSvgRadialGradient(gradient: Radial): (String, Tag)
Source:
Svg.scala
def toSvgSpreadMethod(cycleMethod: CycleMethod): String
Source:
Svg.scala
def toSvgTransform(tx: Transform): String
Source:
Svg.scala

Concrete fields

val implicits: Aggregate[Builder, Output, FragT] & DataConverters
Source:
Svg.scala
val svg: SvgTags
Source:
Svg.scala
val svgAttrs: SvgAttrs
Source:
Svg.scala

Implicits

Implicits