aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
authorA.J. Shulman <Shulman.aj@gmail.com>2024-12-18 20:34:33 -0500
committerA.J. Shulman <Shulman.aj@gmail.com>2024-12-18 20:34:33 -0500
commit57e3c9b9977228a561e8972a469a67f17f4bcd9c (patch)
tree1a4f23921e121ca891b3fa6a49a30a92ea76d233 /src/client/documents/Documents.ts
parentad1e0cf62187e0f8bbb19b4720b7681585361de9 (diff)
trying new image generation plus new implementaion of video and audio
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r--src/client/documents/Documents.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index e539e3c65..52cd36401 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -826,8 +826,8 @@ export namespace Docs {
...options,
});
}
- export function DiagramDocument(options: DocumentOptions = { title: '' }) {
- return InstanceFromProto(Prototypes.get(DocumentType.DIAGRAM), undefined, options);
+ export function DiagramDocument(data?: string, options: DocumentOptions = { title: '' }) {
+ return InstanceFromProto(Prototypes.get(DocumentType.DIAGRAM), data, options);
}
export function AudioDocument(url: string, options: DocumentOptions = {}, overwriteDoc?: Doc) {