From 24c6c3f0c9b43059cd013d344dfa065969f73389 Mon Sep 17 00:00:00 2001 From: Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> Date: Thu, 19 Sep 2024 15:01:50 -0400 Subject: cleaning up/commenting schemaview --- src/client/views/nodes/DataVizBox/DocCreatorMenu.tsx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/client/views/nodes/DataVizBox/DocCreatorMenu.tsx') diff --git a/src/client/views/nodes/DataVizBox/DocCreatorMenu.tsx b/src/client/views/nodes/DataVizBox/DocCreatorMenu.tsx index 8afd1bbf1..bb9ea7e17 100644 --- a/src/client/views/nodes/DataVizBox/DocCreatorMenu.tsx +++ b/src/client/views/nodes/DataVizBox/DocCreatorMenu.tsx @@ -631,6 +631,12 @@ export class DocCreatorMenu extends ObservableReactComponent { // return new Doc; // } + /** + * Populates a preset template framework with content from a datavizbox or any AI-generated content. + * @param template the preloaded template framework being filled in + * @param assignments a list of template field numbers (from top to bottom) and their assigned columns from the linked dataviz + * @returns a doc containing the fully rendered template + */ fillPresetTemplate = async(template: TemplateDocInfos, assignments: {[field: string]: Col}): Promise => { const wordLimit = (size: TemplateFieldSize) => { switch (size) { -- cgit v1.2.3-70-g09d2