Standardized result from SVG actions

interface SVGActionResult {
    Message?: string;
    Params?: ActionParam[];
    ResultCode: string;
    Success: boolean;
    diagnostics?: Record<string, unknown>;
    height?: number;
    svg?: string;
    warnings?: string[];
    width?: number;
}

Hierarchy (view full)

Properties

Message?: string

Optional, additional information about the result of the action

Params?: ActionParam[]

All parameters including inputs and outputs are provided here for convenience

ResultCode: string

A string that indicates the strucutred output/results of the action

Success: boolean

Indicates if the action was successful or not.

diagnostics?: Record<string, unknown>

Diagnostic information

height?: number

Height in pixels

svg?: string

SVG XML string ready to embed

warnings?: string[]

Warnings about rendering issues

width?: number

Width in pixels