White paper: Templates in web-to-print.  Free download

SvgActionMode Module

SVG upload modes.

You can use this parameter when define the IAssetSourceConfig.

Type aliases

SvgActionModeType

SvgActionModeType: "Shape" | "Vector" | "Group" | "Clipart"

Variables

Const Clipart

In this mode, an SVG file opens as a combination of multicolor shapes and appears on the canvas as a group element.

Const Group

In this mode, an SVG file opens as a set of SVG paths and appears on the canvas as a group element.

Const Shape

In this mode, an SVG file opens as a combination of shapes in one color and width and appears on the canvas as a shape element. This mode eliminates raster images. To check if losses occur, you can use the shapeViolationsEnabled warning.

Const Vector

In this mode, an SVG file opens as a vector image and appears on the canvas as an image element.