2using System.Collections.Generic;
3using System.Threading.Tasks;
69 else if (Obj is XmlDocument XmlDoc)
70 return await FromLayout(XmlDoc,
Variables);
71 else if (Obj is XmlElement E)
125 KeyValuePair<SKImage, Map[]> P = await Doc.
Render(Settings);
Presents a Layout as a bitmapped graph.
static async Task< GraphBitmap > FromLayout(Layout2DDocument Doc, Variables Variables)
Generates a GraphBitmap from a Layout.
override bool IsAsynchronous
If the node (or its decendants) include asynchronous evaluation. Asynchronous nodes should be evaluat...
override string FunctionName
Name of the function
override IElement Evaluate(IElement Argument, Variables Variables)
Evaluates the function.
static async Task< GraphBitmap > FromLayout(string Xml, Variables Variables)
Generates a GraphBitmap from a Layout.
static async Task< GraphBitmap > FromLayout(XmlElement Xml, Variables Variables)
Generates a GraphBitmap from a Layout.
Layout(ScriptNode Xml, int Start, int Length, Expression Expression)
Presents a Layout as a bitmapped graph.
static async Task< GraphBitmap > FromLayout(XmlDocument Xml, Variables Variables)
Generates a GraphBitmap from a Layout.
override string[] DefaultArgumentNames
Default Argument names
override async Task< IElement > EvaluateAsync(IElement Argument, Variables Variables)
Evaluates the function.
Contains a 2D layout document.
async Task< KeyValuePair< SKImage, Map[]> > Render(RenderSettings Settings)
Renders the layout to an image
static Task< Layout2DDocument > FromXml(string Xml, params KeyValuePair< string, object >[] Attachments)
Parses a 2D layout document from its XML definition.
async Task< RenderSettings > GetRenderSettings(Variables Session)
Creates a render settings object.
Script runtime exception.
Class managing a script expression.
Handles bitmap-based graphs.
Base class for funcions of one variable.
Base class for all nodes in a parsed script tree.
Basic interface for all types of elements.
object AssociatedObjectValue
Associated object value.