Show / Hide Table of Contents

Class JSSVGImage

Jurassic class for exposing WMDataReader functionality to javascript called in a decision model.

Inheritance
object
ObjectInstance
JSSVGImage
Implements
ISVGImage
Inherited Members
ObjectInstance.HasProperty(object)
ObjectInstance.GetPropertyValue(uint)
ObjectInstance.GetPropertyValue(uint, object)
ObjectInstance.GetPropertyValue(object)
ObjectInstance.GetPropertyValue(object, object)
ObjectInstance.TryGetPropertyValue(object, out object)
ObjectInstance.GetPropertyValue(PropertyReference)
ObjectInstance.GetOwnPropertyDescriptor(uint)
ObjectInstance.GetOwnPropertyDescriptor(object)
ObjectInstance.GetMethod(object)
ObjectInstance.SetPropertyValue(uint, object, bool)
ObjectInstance.SetPropertyValue(uint, object, object, bool)
ObjectInstance.SetPropertyValue(object, object, bool)
ObjectInstance.SetPropertyValue(object, object, object, bool)
ObjectInstance.SetPropertyValue(PropertyReference, object, bool)
ObjectInstance.SetPropertyValue(PropertyReference, object, object, bool)
ObjectInstance.Delete(uint, bool)
ObjectInstance.Delete(object, bool)
ObjectInstance.DefineProperty(object, PropertyDescriptor, bool)
ObjectInstance.InitializeProperties(IEnumerable<PropertyNameAndValue>)
ObjectInstance.InitializeMissingProperty(object, PropertyAttributes)
ObjectInstance.CallMemberFunction(object, params object[])
ObjectInstance.TryCallMemberFunction(out object, object, params object[])
ObjectInstance.ToString()
ObjectInstance.HasOwnProperty(ScriptEngine, object, object)
ObjectInstance.IsPrototypeOf(ScriptEngine, object, object)
ObjectInstance.PropertyIsEnumerable(ScriptEngine, object, object)
ObjectInstance.ToLocaleString()
ObjectInstance.ValueOf()
ObjectInstance.ToStringJS(ScriptEngine, object)
ObjectInstance.PopulateFunctions()
ObjectInstance.PopulateFunctions(Type)
ObjectInstance.PopulateFunctions(Type, BindingFlags)
ObjectInstance.PopulateFields()
ObjectInstance.PopulateFields(Type)
ObjectInstance.Engine
ObjectInstance.Prototype
ObjectInstance.this[object]
ObjectInstance.this[uint]
ObjectInstance.this[int]
ObjectInstance.Properties
ObjectInstance.OwnKeys
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Quantellia.WMServer.Execution.Model.JS
Assembly: WMServer.dll
Syntax
public class JSSVGImage : ObjectInstance, ISVGImage

Constructors

JSSVGImage(ObjectInstance)

Jurassic constructor.

Declaration
public JSSVGImage(ObjectInstance prototype)
Parameters
Type Name Description
ObjectInstance prototype

Properties

Height

The height in pixels this SVG should be rasterized to. Can be set to zero to maintain aspect ratio if Width is non-zero.

Declaration
[JSProperty(Name = "height")]
public int Height { get; set; }
Property Value
Type Description
int

ImageData

Contains pairs of image names "someImage.png" to their base64 string representations. Any locations in the raw XML with "someImage.png" will be replaced with a temporary unique file saved on the local device, and deleted after the SVG is rasterized.

Declaration
public Dictionary<string, string> ImageData { get; set; }
Property Value
Type Description
Dictionary<string, string>

MiscData

Arbitrary data.

Declaration
public Dictionary<string, object> MiscData { get; set; }
Property Value
Type Description
Dictionary<string, object>

MiscData_ObjectInstance

DataType specific key-value pairs used to store arbitrary data. Saved as an ObjectInstance (JS bag of values object) for use in JS. Converted to Dictionary when returned in C#

Declaration
[JSProperty(Name = "MiscData")]
public ObjectInstance MiscData_ObjectInstance { get; set; }
Property Value
Type Description
ObjectInstance

Width

The width in pixels this SVG should be rasterized to. Can be set to zero to maintain aspect ratio if Height is non-zero.

Declaration
[JSProperty(Name = "width")]
public int Width { get; set; }
Property Value
Type Description
int

XML

The raw XML of this SVG

Declaration
public string XML { get; set; }
Property Value
Type Description
string

Methods

AddImageRef(string, string)

Adds a reference to a virtual image path. (i.e. "path/to/image.png"). If the XML references the virtual path, a temporary local file will be created with the specified base 64 string, and the virtual path will be re-referenced to the local path.

Declaration
[JSFunction(Name = "addImageRef")]
public void AddImageRef(string imagePath, string imageBase64String)
Parameters
Type Name Description
string imagePath

The virtual path to the image

string imageBase64String

The data of the image

FromRawXML(string)

Populates the XML of this SVG image from a given string.

Declaration
[JSFunction(Name = "fromRawXML")]
public void FromRawXML(string XML)
Parameters
Type Name Description
string XML

XML string.

Implements

ISVGImage

Extension Methods

WMSVGRenderer.Rasterize(ISVGImage)
In this article
Back to top Copyright © 2025 Quantellia LLC.    Version 2.0.0 Revision 399     Last Updated 11/16/2025    DRAFT DOCUMENTATION. SUBJECT TO CHANGE