Options
All
  • Public
  • Public/Protected
  • All
Menu

Wrapper class used to render introcs SVG Graphics classes to an SVG tag in an HTML document.

Hierarchy

  • SVG

Index

Constructors

Properties

Methods

Constructors

constructor

  • new SVG(id: string): SVG
  • To construct an SVG object, you must provide the id attribute of an SVG tag located in the HTML of the web page.

    Parameters

    • id: string

      The id attribute of the SVG tag on a web page to render to.

    Returns SVG

Properties

autoScale

autoScale: boolean = true

Methods

render

  • Calling this method will clear and repaint the SVG tag with whatever argument is given. The elements drawn will automatically be scaled and repositioned to be centered and fill the SVG tag's space on the web page.

    Parameters

    • element: SVGElement

      The Group or Shape you want to render to the screen.

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc