From 8ceb33fe779341205691a354451ae7672a0b162a Mon Sep 17 00:00:00 2001 From: Zachary Zhang Date: Mon, 6 May 2024 19:11:19 -0400 Subject: add docArray console.log --- src/client/views/nodes/DiagramBox.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/client/views/nodes/DiagramBox.tsx b/src/client/views/nodes/DiagramBox.tsx index 27f9d2a86..04dee5d23 100644 --- a/src/client/views/nodes/DiagramBox.tsx +++ b/src/client/views/nodes/DiagramBox.tsx @@ -56,6 +56,7 @@ export class DiagramBox extends ViewBoxAnnotatableComponent() im } this.renderMermaidAsync(this.chartContent) this.testInkingStroke() + } renderMermaid = async (str: string) => { try { @@ -181,8 +182,7 @@ export class DiagramBox extends ViewBoxAnnotatableComponent() im } } - console.log(this) - this.addDocument(Docs.Create.TextDocument("asd", { title:"hellotitle", x: 0, y: 0 })); + this.addDocument(Docs.Create.TextDocument("text", { title:"title", x: 0, y: 0 })); let docArray: Doc[] = DocListCast(this.Document.data); console.log(docArray.length) //console.log(mermaidCode) -- cgit v1.2.3-70-g09d2