API Reference
VisualStory
Models a resolved, deterministic visual story. Execution and tokenization belong to optional adapters.
Inheritance
- Object
- VisualStory
Usage
Explore 39 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 7
- Method VisualStory.Create
- Method VisualStory.Outcome
- Method VisualStory.WithDescription
- Method VisualStory.WithFormat
- Method VisualStory.WithPanelReflow
- Method VisualStory.WithSize
- Method VisualStory.WithTheme
Accepted by parameters 32
- Method HtmlVisualStoryRenderer.RenderFragment
- Method HtmlVisualStoryRenderer.RenderPage
- Method PngVisualStoryRenderer.Render
- Method StoryArtifactExtensions.ToVisualArtifact
- Method SvgVisualStoryRenderer.Render
- Method SvgVisualStoryRenderer.RenderStatic
- Extension method VisualStory.SaveApng
- Extension method VisualStory.SaveGif
- Extension method VisualStory.SavePng
- Extension method VisualStory.SaveSvg
- Extension method VisualStory.SaveTranscript
- Extension method VisualStory.ToApng
- Extension method VisualStory.ToGif
- Extension method VisualStory.ToHtmlFragment
- Extension method VisualStory.ToHtmlPage
- Extension method VisualStory.ToPng
- Extension method VisualStory.ToSvg
- Extension method VisualStory.ToTranscript
- Extension method VisualStory.ToVisualArtifact
- Method VisualStoryExtensions.SaveApng
- Method VisualStoryExtensions.SaveGif
- Method VisualStoryExtensions.SavePng
- Method VisualStoryExtensions.SaveSvg
- Method VisualStoryExtensions.SaveTranscript
- Method VisualStoryExtensions.ToApng
- Method VisualStoryExtensions.ToGif
- Method VisualStoryExtensions.ToHtmlFragment
- Method VisualStoryExtensions.ToHtmlPage
- Method VisualStoryExtensions.ToPng
- Method VisualStoryExtensions.ToSvg
- Method VisualStoryExtensions.ToTranscript
- Method VisualStoryTranscriptRenderer.Render
Methods
public static VisualStory Create(String title) #VisualStoryCreates a visual story.
Parameters
- title System.String
public VisualStory Outcome(String id, String label, String completedPanelId) #VisualStoryDeclares an outcome that must be visible in the completed scene.
Parameters
- id System.String
- label System.String
- completedPanelId System.String
public PreparedVisualStory Prepare(VisualStoryPlaybackOptions? playback = null) #PreparedVisualStoryCaptures a detached presentation for deterministic seeking and repeated exports.
Parameters
- playback ChartForgeX.Stories.VisualStoryPlaybackOptions? = null
public VisualStoryScene Scene(String id, String title, Double durationSeconds = 2.5, VisualStorySceneLayout layout = Focus) #VisualStorySceneAdds a scene and returns it for panel configuration.
Parameters
- id System.String
- title System.String
- durationSeconds System.Double = 2.5
- layout ChartForgeX.Stories.VisualStorySceneLayout = Focus
public VisualStory WithDescription(String description) #VisualStorySets the accessible story description.
Parameters
- description System.String
public VisualStory WithFormat(VisualStoryFormat format, Int32 shortSide = 720) #VisualStorySets a sharing format. Authoring stays in logical units; raster scale controls pixel density.
Parameters
- format ChartForgeX.Stories.VisualStoryFormat
- shortSide System.Int32 = 720
public VisualStory WithPanelReflow(Boolean enabled = true) #VisualStoryEnables portrait stacking for split scenes without changing explicit stacked layouts.
Parameters
- enabled System.Boolean = true
public VisualStory WithSize(Int32 width, Int32 height) #VisualStorySets logical output dimensions.
Parameters
- width System.Int32
- height System.Int32
public VisualStory WithTheme(VisualStoryTheme theme) #VisualStorySets the visual-story theme.
Parameters
- theme ChartForgeX.Stories.VisualStoryTheme
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public String Title { get; } #Gets the story title.
public String Description { get; private set; } #Gets the optional story description.
public Int32 Width { get; private set; } #Gets the logical output width.
public Int32 Height { get; private set; } #Gets the logical output height.
public Boolean ReflowPanels { get; private set; } #Gets whether split panels stack in a portrait viewport.
public VisualStoryTheme Theme { get; private set; } #Gets the output theme.
public IReadOnlyList<VisualStoryScene> Scenes { get; } #Gets the ordered scenes.
public IReadOnlyList<VisualStoryOutcome> Outcomes { get; } #Gets declared outcomes that must be visible in the completed scene.
Extension Methods
public static Void SaveApng(VisualStory story, String path, VisualStoryAnimationOptions? options = null) #VoidSaves a visual story as animated PNG.
Parameters
- story ChartForgeX.Stories.VisualStory
- path System.String
- options ChartForgeX.Stories.VisualStoryAnimationOptions? = null
public static Void SaveGif(VisualStory story, String path, VisualStoryAnimationOptions? options = null) #VoidSaves a visual story as animated GIF.
Parameters
- story ChartForgeX.Stories.VisualStory
- path System.String
- options ChartForgeX.Stories.VisualStoryAnimationOptions? = null
public static Void SavePng(VisualStory story, String path) #VoidSaves the completed visual-story scene as PNG.
Parameters
- story ChartForgeX.Stories.VisualStory
- path System.String
public static Void SaveSvg(VisualStory story, String path) #VoidSaves a visual story as SVG.
Parameters
- story ChartForgeX.Stories.VisualStory
- path System.String
public static Void SaveTranscript(VisualStory story, String path) #VoidSaves a portable plain-text transcript.
Parameters
- story ChartForgeX.Stories.VisualStory
- path System.String
public static Byte[] ToApng(VisualStory story, VisualStoryAnimationOptions? options = null) #Byte[]Renders a visual story to animated PNG.
Parameters
- story ChartForgeX.Stories.VisualStory
- options ChartForgeX.Stories.VisualStoryAnimationOptions? = null
public static Byte[] ToGif(VisualStory story, VisualStoryAnimationOptions? options = null) #Byte[]Renders a visual story to animated GIF.
Parameters
- story ChartForgeX.Stories.VisualStory
- options ChartForgeX.Stories.VisualStoryAnimationOptions? = null
public static String ToHtmlFragment(VisualStory story) #StringRenders a visual story as an embeddable HTML fragment.
Parameters
- story ChartForgeX.Stories.VisualStory
public static String ToHtmlPage(VisualStory story) #StringRenders a visual story as a complete HTML document.
Parameters
- story ChartForgeX.Stories.VisualStory
public static Byte[] ToPng(VisualStory story) #Byte[]Renders the completed visual-story scene to PNG.
Parameters
- story ChartForgeX.Stories.VisualStory
public static String ToSvg(VisualStory story) #StringRenders a visual story to self-contained animated SVG.
Parameters
- story ChartForgeX.Stories.VisualStory
public static String ToSvg(VisualStory story, String idScope) #StringRenders a visual story to self-contained animated SVG with a deterministic ID scope.
Parameters
- story ChartForgeX.Stories.VisualStory
- idScope System.String
public static String ToTranscript(VisualStory story) #StringRenders a portable plain-text transcript.
Parameters
- story ChartForgeX.Stories.VisualStory
public static VisualArtifact ToVisualArtifact(VisualStory story, String? id = null, VisualArtifactSourceLanguage sourceLanguage = Native) #VisualArtifactCaptures the completed visual story while retaining story metadata and transcript accessibility.
Parameters
- story ChartForgeX.Stories.VisualStory
- id System.String? = null
- sourceLanguage ChartForgeX.VisualArtifacts.VisualArtifactSourceLanguage = Native