JsAlgebra

final class JsAlgebra(val canvas: Canvas, val applyF: Apply[SvgResult], val functorF: Functor[SvgResult]) extends BaseAlgebra with HasTextBoundingBox with Text
trait Text
trait GenericText[SvgResult]
trait Text[[_] =>> Finalized[SvgResult, _$2]]
trait Basic[Drawing]
trait GivenFunctor[SvgResult]
trait GivenApply[SvgResult]
trait GenericTransform[SvgResult]
trait Transform[Drawing]
trait GenericStyle[SvgResult]
trait Style[Drawing]
trait GenericSize[SvgResult]
trait GenericLayout[SvgResult]
trait GenericDebug[SvgResult]
trait Debug[Drawing]
trait Path
trait GenericPath[SvgResult]
trait Path[Drawing]
trait Shape
trait GenericShape[SvgResult]
trait Shape[Drawing]
trait Size[Drawing]
trait Layout[Drawing]
trait Algebra[[_] =>> Finalized[SvgResult, _$2]]
class Object
trait Matchable
class Any

Type members

Inherited classlikes

object PathApi extends PathApi
Inherited from:
Path
Source:
Path.scala
trait PathApi
Inherited from:
GenericPath
Source:
GenericPath.scala
object ShapeApi extends ShapeApi
Inherited from:
Shape
Source:
Shape.scala
trait ShapeApi
Inherited from:
GenericShape
Source:
GenericShape.scala
trait TextApi
Inherited from:
GenericText
Source:
GenericText.scala

Inherited types

type _$3
Inherited from:
GenericDebug
Source:
GenericDebug.scala
type _$4
Inherited from:
GenericDebug
Source:
GenericDebug.scala

Value members

Concrete methods

def textBoundingBox(text: String, font: Font): (BoundingBox, Rect)

Inherited methods

def above[A](top: Finalized[SvgResult, A], bottom: Finalized[SvgResult, A])(implicit s: Semigroup[A]): Finalized[SvgResult, A]
Inherited from:
GenericLayout
Source:
GenericLayout.scala
def at[A](img: Drawing[A], offset: Point): Drawing[A]
Inherited from:
Layout
Source:
Layout.scala
def at[A](img: Drawing[A], offset: Vec): Drawing[A]
Inherited from:
Layout
Source:
Layout.scala
def at[A](img: Drawing[A], r: Double, a: Angle): Drawing[A]
Inherited from:
Layout
Source:
Layout.scala
def at[A](img: Drawing[A], x: Double, y: Double): Drawing[A]
Inherited from:
Layout
Source:
Layout.scala
def at[A](img: Finalized[SvgResult, A], landmark: Landmark): Finalized[SvgResult, A]
Inherited from:
GenericLayout
Source:
GenericLayout.scala
def below[A](bottom: Drawing[A], top: Drawing[A])(implicit s: Semigroup[A]): Drawing[A]
Inherited from:
Layout
Source:
Layout.scala
def beside[A](left: Finalized[SvgResult, A], right: Finalized[SvgResult, A])(implicit s: Semigroup[A]): Finalized[SvgResult, A]
Inherited from:
GenericLayout
Source:
GenericLayout.scala
def boundingBox[A](picture: Finalized[SvgResult, A]): Finalized[SvgResult, BoundingBox]

Get the bounding box enclosing the picture

Get the bounding box enclosing the picture

Inherited from:
GenericSize
Source:
GenericSize.scala
def boundingBox(elements: List[PathElement]): BoundingBox
Inherited from:
GenericPath
Source:
GenericPath.scala
def catmulRom(points: Seq[Point], tension: Double): Drawing[Unit]
Inherited from:
Path
Source:
Path.scala
def circle(diameter: Double): Finalized[SvgResult, Unit]
Inherited from:
GenericShape
Source:
GenericShape.scala
def debug[A](picture: Finalized[SvgResult, A], color: Color): Finalized[SvgResult, A]
Inherited from:
GenericDebug
Source:
GenericDebug.scala
def empty: Finalized[SvgResult, Unit]
Inherited from:
GenericShape
Source:
GenericShape.scala

Create an equilateral triangle with the given side length.

Create an equilateral triangle with the given side length.

Inherited from:
Path
Source:
Path.scala
def fillColor[A](image: Finalized[SvgResult, A], fillColor: Color): Finalized[SvgResult, A]
Inherited from:
GenericStyle
Source:
GenericStyle.scala
def fillGradient[A](image: Finalized[SvgResult, A], fillGradient: Gradient): Finalized[SvgResult, A]
Inherited from:
GenericStyle
Source:
GenericStyle.scala
def font[A](image: Finalized[SvgResult, A], font: Font): Finalized[SvgResult, A]
Inherited from:
GenericText
Source:
GenericText.scala
def height[A](picture: Finalized[SvgResult, A]): Finalized[SvgResult, Double]

Get the height of the bounding box enclosing the picture

Get the height of the bounding box enclosing the picture

Inherited from:
GenericSize
Source:
GenericSize.scala
Inherited from:
Transform
Source:
Transform.scala
def interpolatingSpline(points: Seq[Point]): Drawing[Unit]
Inherited from:
Path
Source:
Path.scala
def margin[A](img: Drawing[A], width: Double): Drawing[A]
Inherited from:
Layout
Source:
Layout.scala
def margin[A](img: Drawing[A], width: Double, height: Double): Drawing[A]
Inherited from:
Layout
Source:
Layout.scala
def margin[A](img: Finalized[SvgResult, A], top: Double, right: Double, bottom: Double, left: Double): Finalized[SvgResult, A]
Inherited from:
GenericLayout
Source:
GenericLayout.scala
def noDash[A](image: Finalized[SvgResult, A]): Finalized[SvgResult, A]
Inherited from:
GenericStyle
Source:
GenericStyle.scala
def noFill[A](image: Finalized[SvgResult, A]): Finalized[SvgResult, A]
Inherited from:
GenericStyle
Source:
GenericStyle.scala
def noStroke[A](image: Finalized[SvgResult, A]): Finalized[SvgResult, A]
Inherited from:
GenericStyle
Source:
GenericStyle.scala
def on[A](top: Finalized[SvgResult, A], bottom: Finalized[SvgResult, A])(implicit s: Semigroup[A]): Finalized[SvgResult, A]
Inherited from:
GenericLayout
Source:
GenericLayout.scala
def originAt[A](img: Drawing[A], offset: Point): Drawing[A]
Inherited from:
Layout
Source:
Layout.scala
def originAt[A](img: Drawing[A], offset: Vec): Drawing[A]
Inherited from:
Layout
Source:
Layout.scala
def originAt[A](img: Drawing[A], r: Double, a: Angle): Drawing[A]
Inherited from:
Layout
Source:
Layout.scala
def originAt[A](img: Drawing[A], x: Double, y: Double): Drawing[A]
Inherited from:
Layout
Source:
Layout.scala
def originAt[A](img: Finalized[SvgResult, A], landmark: Landmark): Finalized[SvgResult, A]
Inherited from:
GenericLayout
Source:
GenericLayout.scala
def path(path: OpenPath): Finalized[SvgResult, Unit]
Inherited from:
GenericPath
Source:
GenericPath.scala
def path(path: ClosedPath): Finalized[SvgResult, Unit]
Inherited from:
GenericPath
Source:
GenericPath.scala
def rectangle(width: Double, height: Double): Finalized[SvgResult, Unit]
Inherited from:
GenericShape
Source:
GenericShape.scala
def regularPolygon(sides: Int, radius: Double): Drawing[Unit]
Inherited from:
Path
Source:
Path.scala
def rotate[A](img: Drawing[A], angle: Angle): Drawing[A]
Inherited from:
Transform
Source:
Transform.scala
def roundedRectangle(width: Double, height: Double, radius: Double): Drawing[Unit]
Inherited from:
Path
Source:
Path.scala
def scale[A](img: Drawing[A], x: Double, y: Double): Drawing[A]
Inherited from:
Transform
Source:
Transform.scala
def size[A](picture: Finalized[SvgResult, A]): Finalized[SvgResult, (Double, Double)]

Get the width and height of the bounding box enclosing the picture

Get the width and height of the bounding box enclosing the picture

Inherited from:
GenericSize
Source:
GenericSize.scala
def square(width: Double): Finalized[SvgResult, Unit]
Inherited from:
GenericShape
Source:
GenericShape.scala
def star(points: Int, outerRadius: Double, innerRadius: Double): Drawing[Unit]
Inherited from:
Path
Source:
Path.scala
def strokeCap[A](image: Finalized[SvgResult, A], cap: Cap): Finalized[SvgResult, A]
Inherited from:
GenericStyle
Source:
GenericStyle.scala
def strokeColor[A](image: Finalized[SvgResult, A], strokeColor: Color): Finalized[SvgResult, A]
Inherited from:
GenericStyle
Source:
GenericStyle.scala
def strokeDash[A](image: Finalized[SvgResult, A], pattern: Iterable[Double]): Finalized[SvgResult, A]
Inherited from:
GenericStyle
Source:
GenericStyle.scala
def strokeJoin[A](image: Finalized[SvgResult, A], join: Join): Finalized[SvgResult, A]
Inherited from:
GenericStyle
Source:
GenericStyle.scala
def strokeWidth[A](image: Finalized[SvgResult, A], strokeWidth: Double): Finalized[SvgResult, A]
Inherited from:
GenericStyle
Source:
GenericStyle.scala
def text(text: String): Finalized[SvgResult, Unit]
Inherited from:
GenericText
Source:
GenericText.scala
def transform[A](img: Finalized[SvgResult, A], tx: Transform): Finalized[SvgResult, A]
Inherited from:
GenericTransform
Source:
GenericTransform.scala
def translate[A](img: Drawing[A], vec: Vec): Drawing[A]
Inherited from:
Transform
Source:
Transform.scala
def translate[A](img: Drawing[A], x: Double, y: Double): Drawing[A]
Inherited from:
Transform
Source:
Transform.scala
def triangle(width: Double, height: Double): Finalized[SvgResult, Unit]
Inherited from:
GenericShape
Source:
GenericShape.scala
def under[A](bottom: Drawing[A], top: Drawing[A])(implicit s: Semigroup[A]): Drawing[A]
Inherited from:
Layout
Source:
Layout.scala
def verticalReflection[A](img: Drawing[A]): Drawing[A]
Inherited from:
Transform
Source:
Transform.scala
def width[A](picture: Finalized[SvgResult, A]): Finalized[SvgResult, Double]

Get the width of the bounding box enclosing the picture

Get the width of the bounding box enclosing the picture

Inherited from:
GenericSize
Source:
GenericSize.scala

Inherited fields

Inherited from:
Text
Source:
Text.scala