aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx
diff options
context:
space:
mode:
authorNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-10-27 04:29:50 -0400
committerNathan-SR <144961007+Nathan-SR@users.noreply.github.com>2024-10-27 04:29:50 -0400
commitcfc160d7a777b5504b92ac14ac16052979418ce7 (patch)
tree0d94085acb9ee951400efb1fb395805151d6552b /src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx
parenta2802df5096cfea2d77371ed9025ce26c8eda222 (diff)
work on template refactor
Diffstat (limited to 'src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx')
-rw-r--r--src/client/views/nodes/DataVizBox/DocCreatorMenu/Template.tsx10
1 files changed, 1 insertions, 9 deletions
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[] {