CLEAR

SvgsModule


The SvgsModule module enables working with SVGs.

Example

const Svgs = require('Svgs');
const Scene = require('Scene');

const smileySvg = Svgs.get('smileySvg');
const mySvgImage = Scene.root.find('vectorObject');

mySvgImage.svg = smileySvg;

Properties

This class exposes no properties.

Methods

MethodDescription

get

get(svgName: string): Svg

Returns a svg object identified by the svgName argument.

Throws an exception if there is no such identifier in the project.

Classes

ClassDescription

Svg

The Svg class describes an SVG in an effect.