API Reference
TerminalStoryExtensions
Exports terminal story playback and completed images.
Inheritance
- Object
- TerminalStoryExtensions
Methods
public static Void SaveApng(TerminalStory story, String path, TerminalStoryAnimationOptions? options = null) #VoidSaves a terminal story as an animated PNG.
Parameters
- story ChartForgeX.Terminal.TerminalStory
- path System.String
- options ChartForgeX.Terminal.TerminalStoryAnimationOptions? = null
public static Void SaveGif(TerminalStory story, String path, TerminalStoryAnimationOptions? options = null) #VoidSaves a terminal story as an animated GIF.
Parameters
- story ChartForgeX.Terminal.TerminalStory
- path System.String
- options ChartForgeX.Terminal.TerminalStoryAnimationOptions? = null
public static Void SaveHtml(TerminalStory story, String path) #VoidSaves a terminal story as a complete HTML document.
Parameters
- story ChartForgeX.Terminal.TerminalStory
- path System.String
public static Void SavePng(TerminalStory story, String path) #VoidSaves the completed state of a terminal story as PNG.
Parameters
- story ChartForgeX.Terminal.TerminalStory
- path System.String
public static Void SaveSvg(TerminalStory story, String path) #VoidSaves a terminal story as SVG.
Parameters
- story ChartForgeX.Terminal.TerminalStory
- path System.String
public static Void SaveTranscript(TerminalStory story, String path) #VoidSaves the exact terminal transcript as UTF-8 text.
Parameters
- story ChartForgeX.Terminal.TerminalStory
- path System.String
public static Byte[] ToApng(TerminalStory story, TerminalStoryAnimationOptions? options = null) #Byte[]Renders a terminal story as an animated PNG.
Parameters
- story ChartForgeX.Terminal.TerminalStory
- options ChartForgeX.Terminal.TerminalStoryAnimationOptions? = null
public static Byte[] ToGif(TerminalStory story, TerminalStoryAnimationOptions? options = null) #Byte[]Renders a terminal story as an animated GIF.
Parameters
- story ChartForgeX.Terminal.TerminalStory
- options ChartForgeX.Terminal.TerminalStoryAnimationOptions? = null
public static String ToHtmlFragment(TerminalStory story) #StringRenders a terminal story as an embeddable HTML fragment.
Parameters
- story ChartForgeX.Terminal.TerminalStory
public static String ToHtmlFragment(TerminalStory story, String idScope) #StringRenders a terminal story as an embeddable HTML fragment with a deterministic ID scope.
Parameters
- story ChartForgeX.Terminal.TerminalStory
- idScope System.String
public static String ToHtmlPage(TerminalStory story) #StringRenders a terminal story as a complete HTML document.
Parameters
- story ChartForgeX.Terminal.TerminalStory
public static Byte[] ToPng(TerminalStory story) #Byte[]Renders the completed state of a terminal story to PNG bytes.
Parameters
- story ChartForgeX.Terminal.TerminalStory
public static String ToSvg(TerminalStory story) #StringRenders a terminal story to SVG markup.
Parameters
- story ChartForgeX.Terminal.TerminalStory
public static String ToSvg(TerminalStory story, String idScope) #StringRenders a terminal story to SVG markup with a deterministic ID scope.
Parameters
- story ChartForgeX.Terminal.TerminalStory
- idScope System.String
public static String ToTranscript(TerminalStory story) #StringExports the exact command, output and table transcript in playback order.
Parameters
- story ChartForgeX.Terminal.TerminalStory
Exceptions
InvalidOperationException– The expanded transcript exceeds 16 Mi UTF-16 characters.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?