ConverterSVG

io.github.scala_tessella.tessella.conversion.ConverterSVG
See theConverterSVG companion object
trait ConverterSVG extends UtilsXML

Generic methods for producing .SVG file

Attributes

See also
Companion
object
Graph
Supertypes
trait UtilsXML
class Object
trait Matchable
class Any
Known subtypes
object SVG
object SVGInvalid

Members list

Value members

Concrete methods

def animate(attributes: Attribute*): Elem

animate element with attributes

animate element with attributes

Attributes

def animatedArrowHead(points: Iterable[Point]): Elem

Animated arrow head

Animated arrow head

Value parameters

points

spatial coordinates of the arrow movements

Attributes

def animatedPolygon(pointsSeries: List[Iterable[Point]]): Elem

Animated polygon

Animated polygon

Value parameters

pointsSeries

spatial coordinates

Attributes

def animatedPolyline(points: Iterable[Point]): Elem

Animated polyline developing sequentially from start to end

Animated polyline developing sequentially from start to end

Value parameters

points

spatial coordinates

Attributes

def animatedPolylineArrow(points: Iterable[Point], arrowHeadStyle: Style, polylineStyle: Style): Elem

Animated arrow and polyline

Animated arrow and polyline

Value parameters

arrowHeadStyle

arrow head style

points

spatial coordinates of the polyline

polylineStyle

polyline style

Attributes

def arrowHead(tip: Point, origin: Point, elems: Elem*): Elem

Arrow head as a triangle

Arrow head as a triangle

Value parameters

origin

spatial coordinates of other endpoint

tip

spatial coordinates of endpoint with arrow

Attributes

def circle(center: Point, radius: Double): Elem

circle element

circle element

Value parameters

center

spatial coordinates

radius

length

Attributes

def group(title: Option[Title], desc: Option[Description], elems: Elem*): Elem

group element with optional title and description

group element with optional title and description

Value parameters

desc

optional description

elems

placed in group

title

optional title

Attributes

def line(point1: Point, point2: Point): Elem

line element

line element

Value parameters

point1

spatial coordinates of one endpoint

point2

spatial coordinates of other endpoint

Attributes

def line(segment: LineSegment): Elem

line element from LineSegment

line element from LineSegment

Attributes

def metadata(elems: Elem*): Elem

metadata element

metadata element

Attributes

def polygon(points: Iterable[Point], elems: Elem*): Elem

polygon element

polygon element

Value parameters

elems

placed in polygon

points

spatial coordinates

Attributes

def polygon(simplePolygon: SimplePolygon): Elem

polygon element from SimplePolygon

polygon element from SimplePolygon

Attributes

def polyline(points: Iterable[Point], elems: Elem*): Elem

polyline element

polyline element

Value parameters

elems

placed in polygon

points

spatial coordinates

Attributes

def rect(box: Box): Elem

rect element

rect element

Value parameters

box

spatial coordinates

Attributes

def svg(box: Box, elems: Elem*): Elem

svg element with viewBox to fit a given box

svg element with viewBox to fit a given box

Value parameters

box

box area with width and height to fit

elems

placed in svg

Attributes

def text(point: Point, s: String): Elem

text element

text element

Value parameters

point

spatial coordinates

s

text

Attributes

Concrete fields

val fill: String => Attribute

fill attribute

fill attribute

Attributes

val scale: Double

scale multiplier for all elements

scale multiplier for all elements

Attributes

val stroke: String => Attribute

stroke attribute

stroke attribute

Attributes

val svgAccuracy: Double

round accuracy for scaling

round accuracy for scaling

Attributes

Inherited fields

val prettyPrinter: PrettyPrinter

With set width and indentation

With set width and indentation

Attributes

Inherited from:
UtilsXML

Extensions

Inherited extensions

extension (elems: Iterable[Elem])
def toNodeBuffer: NodeBuffer

Creates a NodeBuffer of elements

Creates a NodeBuffer of elements

Attributes

Inherited from:
UtilsXML