diff options
author | Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> | 2024-09-19 15:01:50 -0400 |
---|---|---|
committer | Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> | 2024-09-19 15:01:50 -0400 |
commit | 24c6c3f0c9b43059cd013d344dfa065969f73389 (patch) | |
tree | 637f9ad811cf6345d58bfeb252fb2cebafd7f0e3 /src/client/views/nodes/DataVizBox/DocCreatorMenu.tsx | |
parent | e0b354b275c3a025b93f93815bd1828ba9cec5a8 (diff) |
cleaning up/commenting schemaview
Diffstat (limited to 'src/client/views/nodes/DataVizBox/DocCreatorMenu.tsx')
-rw-r--r-- | src/client/views/nodes/DataVizBox/DocCreatorMenu.tsx | 6 |
1 files changed, 6 insertions, 0 deletions
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<FieldViewProps> { // 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<Doc> => { const wordLimit = (size: TemplateFieldSize) => { switch (size) { |