TerminalStoryExtensions
ChartForgeX.Terminal
Exports terminal story playback and completed images.
Inheritance
- object
- TerminalStoryExtensions
Methods
public static void SaveApng(TerminalStory story, string path, TerminalStoryAnimationOptions? options = null) #Saves a terminal story as an animated PNG.
Parameters
- story ChartForgeX.Terminal.TerminalStory
- path string
- options ChartForgeX.Terminal.TerminalStoryAnimationOptions? = null
public static void SaveGif(TerminalStory story, string path, TerminalStoryAnimationOptions? options = null) #Saves a terminal story as an animated GIF.
Parameters
- story ChartForgeX.Terminal.TerminalStory
- path string
- options ChartForgeX.Terminal.TerminalStoryAnimationOptions? = null
public static void SaveHtml(TerminalStory story, string path) #Saves a terminal story as a complete HTML document.
Parameters
- story ChartForgeX.Terminal.TerminalStory
- path string
public static void SavePng(TerminalStory story, string path) #Saves the completed state of a terminal story as PNG.
Parameters
- story ChartForgeX.Terminal.TerminalStory
- path string
public static void SaveSvg(TerminalStory story, string path) #Saves a terminal story as SVG.
Parameters
- story ChartForgeX.Terminal.TerminalStory
- path string
public static void SaveTranscript(TerminalStory story, string path) #Saves the exact terminal transcript as UTF-8 text.
Parameters
- story ChartForgeX.Terminal.TerminalStory
- path string
public static byte[] ToApng(TerminalStory story, TerminalStoryAnimationOptions? options = null) #Renders a terminal story as an animated PNG.
Parameters
- story ChartForgeX.Terminal.TerminalStory
- options ChartForgeX.Terminal.TerminalStoryAnimationOptions? = null
Returns
byte[]public static byte[] ToGif(TerminalStory story, TerminalStoryAnimationOptions? options = null) #Renders a terminal story as an animated GIF.
Parameters
- story ChartForgeX.Terminal.TerminalStory
- options ChartForgeX.Terminal.TerminalStoryAnimationOptions? = null
Returns
byte[]public static string ToHtmlFragment(TerminalStory story) #Renders a terminal story as an embeddable HTML fragment.
Parameters
- story ChartForgeX.Terminal.TerminalStory
Returns
stringpublic static string ToHtmlFragment(TerminalStory story, string idScope) #Renders a terminal story as an embeddable HTML fragment with a deterministic ID scope.
Parameters
- story ChartForgeX.Terminal.TerminalStory
- idScope string
Returns
stringpublic static string ToHtmlPage(TerminalStory story) #Renders a terminal story as a complete HTML document.
Parameters
- story ChartForgeX.Terminal.TerminalStory
Returns
stringpublic static byte[] ToPng(TerminalStory story) #Renders the completed state of a terminal story to PNG bytes.
Parameters
- story ChartForgeX.Terminal.TerminalStory
Returns
byte[]public static string ToSvg(TerminalStory story) #Renders a terminal story to SVG markup.
Parameters
- story ChartForgeX.Terminal.TerminalStory
Returns
stringpublic static string ToSvg(TerminalStory story, string idScope) #Renders a terminal story to SVG markup with a deterministic ID scope.
Parameters
- story ChartForgeX.Terminal.TerminalStory
- idScope string
Returns
stringpublic static string ToTranscript(TerminalStory story) #Exports the exact command, output and table transcript in playback order.
Parameters
- story ChartForgeX.Terminal.TerminalStory
Returns
stringExceptions
InvalidOperationException– The expanded transcript exceeds 16 Mi UTF-16 characters.