object Svg
- Alphabetic
- By Inheritance
- Svg
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val implicits: Aggregate[(SvgModule.this)#Builder, (SvgModule.this)#Output, (SvgModule.this)#FragT] with DataConverters
- def inverseClientTransform(bb: BoundingBox, size: Size): Transform
Transform from client coordinates to local coordinates
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def render[Alg[x[_]] <: algebra.Algebra[x[_]], A](frame: Frame, algebra: Alg[(SvgModule.this)#Drawing], picture: algebra.Picture[Alg, (SvgModule.this)#Drawing, A]): IO[((SvgModule.this)#Output, A)]
- def renderWithoutRootTag[Alg[x[_]] <: algebra.Algebra[x[_]], A](algebra: Alg[(SvgModule.this)#Drawing], picture: algebra.Picture[Alg, (SvgModule.this)#Drawing, A]): IO[(BoundingBox, (SvgModule.this)#Tag, A)]
Render to SVG without wrapping with a root <svg> tag.
- val svg: scalatags.generic.Bundle.SvgTags
- val svgAttrs: scalatags.generic.Bundle.SvgAttrs
- implicit val svgResultApply: Apply[(SvgModule.this)#SvgResult]
- def svgTag(bb: BoundingBox, frame: Frame): (SvgModule.this)#Tag
Given a bounding box and a size specification create a <svg> tag that has the correct size and viewbox
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def textTag(text: String, font: Font): (SvgModule.this)#Tag
- def toGradientId(gradient: Gradient): String
- def toHSLA(color: Color): String
- def toRGB(color: Color): String
- def toString(): String
- Definition Classes
- AnyRef → Any
- def toStyle(stroke: Stroke): String
- def toStyle(fill: Fill, gradients: Set[(SvgModule.this)#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.
- def toStyle(stroke: Option[Stroke], fill: Option[Fill], gradients: Set[(SvgModule.this)#Tag]): String
Given stroke and fill returns a
Stringrepresenting the stroke and fill rendered as SVG styles.Given stroke and fill returns a
Stringrepresenting 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.
- def toSvgGradient(gradient: Gradient): (String, (SvgModule.this)#Tag)
- def toSvgGradientStop(tuple: (Color, Double)): (SvgModule.this)#Tag
- def toSvgLinearGradient(gradient: Linear): (String, (SvgModule.this)#Tag)
- def toSvgPath(points: Array[Point], pathType: PathType): String
- def toSvgPath(elts: List[PathElement], pathType: PathType): String
- def toSvgRadialGradient(gradient: Radial): (String, (SvgModule.this)#Tag)
- def toSvgSpreadMethod(cycleMethod: CycleMethod): String
- def toSvgTransform(tx: Transform): String
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- object Closed extends PathType with Product with Serializable
- object Open extends PathType with Product with Serializable