Skip to main content

SVG

Description:

  A record used for Scalable Vector Graphics rendering.

Class Object: SVG Class.

Inherits from: Object.

width

Type: Readonly Field.

Description:

  The width of the SVG object.

Signature:

const width: number

height

Type: Readonly Field.

Description:

  The height of the SVG object.

Signature:

const height: number

render

Type: Function.

Description:

  Renders the SVG object, should be called every frame for the render result to appear.

Signature:

render: function(self: SVG)