From cfc160d7a777b5504b92ac14ac16052979418ce7 Mon Sep 17 00:00:00 2001 From: Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> Date: Sun, 27 Oct 2024 04:29:50 -0400 Subject: work on template refactor --- src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx') diff --git a/src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx b/src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx index f9bf22047..57565906b 100644 --- a/src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx +++ b/src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx @@ -6,23 +6,15 @@ import { TemplateDocInfos } from "./TemplateBackend"; export class Template { + mainField: Field; width: number = 0; height: number = 0; fields: Field[] = []; - mainDoc: Doc; constructor(templateInfo: TemplateDocInfos) { this.width = templateInfo.width; this.height = templateInfo.height; this.fields = templateInfo.fields.map(settings => new Field(settings, this)); - this.mainDoc = this.setupMainDoc(); - } - - setupMainDoc = (): Doc => { - Docs.Create.FreeformDocument(, ){ - - } - return new Doc; } get childFields(): Field[] { -- cgit v1.2.3-70-g09d2