SVG

io.github.scala_tessella.tessella.conversion.SVG
object SVG extends ConverterSVG

Methods to convert a Tiling into an SVG file

Attributes

Graph
Supertypes
trait ConverterSVG
trait UtilsXML
class Object
trait Matchable
class Any
Self type
SVG.type

Members list

Type members

Classlikes

Alternative options for displaying node labels

Alternative options for displaying node labels

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
enum MarkStyle

Alternative options for displaying node marks

Alternative options for displaying node marks

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def perimeterLabelsGroup(labels: Seq[Elem]): Elem

group of the perimeter node labels

group of the perimeter node labels

Attributes

Inherited methods

def animate(attributes: Attribute*): Elem

animate element with attributes

animate element with attributes

Attributes

Inherited from:
ConverterSVG
def animatedArrowHead(points: Iterable[Point]): Elem

Animated arrow head

Animated arrow head

Value parameters

points

spatial coordinates of the arrow movements

Attributes

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

Animated polygon

Animated polygon

Value parameters

pointsSeries

spatial coordinates

Attributes

Inherited from:
ConverterSVG
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

Inherited from:
ConverterSVG
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

Inherited from:
ConverterSVG
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

Inherited from:
ConverterSVG
def circle(center: Point, radius: Double): Elem

circle element

circle element

Value parameters

center

spatial coordinates

radius

length

Attributes

Inherited from:
ConverterSVG
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

Inherited from:
ConverterSVG
def line(segment: LineSegment): Elem

line element from LineSegment

line element from LineSegment

Attributes

Inherited from:
ConverterSVG
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

Inherited from:
ConverterSVG
def metadata(elems: Elem*): Elem

metadata element

metadata element

Attributes

Inherited from:
ConverterSVG
def polygon(simplePolygon: SimplePolygon): Elem

polygon element from SimplePolygon

polygon element from SimplePolygon

Attributes

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

polygon element

polygon element

Value parameters

elems

placed in polygon

points

spatial coordinates

Attributes

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

polyline element

polyline element

Value parameters

elems

placed in polygon

points

spatial coordinates

Attributes

Inherited from:
ConverterSVG
def rect(box: Box): Elem

rect element

rect element

Value parameters

box

spatial coordinates

Attributes

Inherited from:
ConverterSVG
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

Inherited from:
ConverterSVG
def text(point: Point, s: String): Elem

text element

text element

Value parameters

point

spatial coordinates

s

text

Attributes

Inherited from:
ConverterSVG

Concrete fields

val fillUniform: IndexedSeq[String]

Colors to differentiate uniformity marks

Colors to differentiate uniformity marks

Attributes

Attributes for metadata

Attributes for metadata

Attributes

val strokeWidth: Double => Attribute

stroke-width attribute

stroke-width attribute

Attributes

Inherited fields

val fill: String => Attribute

fill attribute

fill attribute

Attributes

Inherited from:
ConverterSVG
val prettyPrinter: PrettyPrinter

With set width and indentation

With set width and indentation

Attributes

Inherited from:
UtilsXML
val scale: Double

scale multiplier for all elements

scale multiplier for all elements

Attributes

Inherited from:
ConverterSVG
val stroke: String => Attribute

stroke attribute

stroke attribute

Attributes

Inherited from:
ConverterSVG
val svgAccuracy: Double

round accuracy for scaling

round accuracy for scaling

Attributes

Inherited from:
ConverterSVG

Extensions

Extensions

extension (node: Node)
def label(point: Point): Elem

Node label at given coordinates

Node label at given coordinates

Attributes

extension (tiling: Tiling)
def tessellationGroup(showPerimeter: Boolean, fillPolygons: Boolean, labelledNodes: LabelledNodes, markStyle: MarkStyle, showGrowth: Boolean, showDual: Boolean): Elem

group with all the tiling features

group with all the tiling features

Value parameters

fillPolygons

if false, the polygons have no color fill

labelledNodes

strategy for labelling nodes

markStyle

strategy for marking nodes

showDual

if true, the dual tessellation is shown

showGrowth

if true, growth by ordinal nodes is shown

showPerimeter

if true, the perimeter is shown

Attributes

def toSVG(showPerimeter: Boolean, fillPolygons: Boolean, labelledNodes: LabelledNodes, markStyle: MarkStyle, showGrowth: Boolean, showDual: Boolean): Elem

svg with all the tilings features

svg with all the tilings features

Value parameters

fillPolygons

if false, the polygons have no color fill

labelledNodes

strategy for labelling nodes

markStyle

strategy for marking nodes

showDual

if true, the inverted tessellation is shown

showGrowth

if true, growth by ordinal nodes is shown

showPerimeter

if true, the perimeter is shown

Attributes

def toViewBox(elems: Elem*): Elem

svg element with metadata and viewBox fitting the tiling

svg element with metadata and viewBox fitting the tiling

Attributes

Inherited extensions

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

Creates a NodeBuffer of elements

Creates a NodeBuffer of elements

Attributes

Inherited from:
UtilsXML