Options
All
  • Public
  • Public/Protected
  • All
Menu
classdesc

A default SVG builder.

requires

SVGSerializable

requires

Vertex

Hierarchy

  • SVGBuilder

Index

Constructors

Methods

Constructors

constructor

Methods

build

  • build(drawables: Array<SVGSerializable>, options: { canvasSize: { height: number; width: number }; offset: Vertex; zoom: Vertex }): string
  • Builds the SVG code from the given list of drawables.

    Parameters

    • drawables: Array<SVGSerializable>

      The drawable elements (should implement Drawable) to be converted (each must have a toSVGString-function).

    • options: { canvasSize: { height: number; width: number }; offset: Vertex; zoom: Vertex }

      { canvasSize, zoom, offset }

      • canvasSize: { height: number; width: number }
        • height: number
        • width: number
      • offset: Vertex
      • zoom: Vertex

    Returns string

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Private property
  • Private method
  • Static property
  • Static method

Generated using TypeDoc