Interface IGraphCodeGenerationPreviewData

The GraphCodeGenerationPreviewData interface is used to provide additional data for the code generation preview.

interface IGraphCodeGenerationPreviewData {
    nodeToPreviewDataIndex: Map<GraphNode, number>;
    previewCount: number;
    target: string;
}

Properties

nodeToPreviewDataIndex: Map<GraphNode, number>

Maps the specified GraphNode to its preview index.

Not all nodes have a preview representation.

previewCount: number

The total number of previews.

target: string

The preview target.

For material graphs, this is typically the name of the output pin to visualize.