diff options
| author | eleanor-park <eleanor_park@brown.edu> | 2024-07-25 23:36:52 -0400 |
|---|---|---|
| committer | eleanor-park <eleanor_park@brown.edu> | 2024-07-25 23:36:52 -0400 |
| commit | 8ca26551622d36b7856f5c1865498fa9e5d888b5 (patch) | |
| tree | 51521faf3dc5d1ebcf867d78e7938bbef8135e86 /src/client/documents | |
| parent | a763c4e80cec6aef5219a8c9fcfa2ddccbc10b0a (diff) | |
cleaned up smart draw & palette
Diffstat (limited to 'src/client/documents')
| -rw-r--r-- | src/client/documents/Documents.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index ff95e38bd..d311ad971 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -1009,6 +1009,10 @@ export namespace Docs { return InstanceFromProto(Prototypes.get(DocumentType.DATAVIZ), new CsvField(url), { title: 'Data Viz', type: 'dataviz', ...options }, undefined, undefined, undefined, overwriteDoc); } + export function AnnoPaletteDocument(options?: DocumentOptions) { + return InstanceFromProto(Prototypes.get(DocumentType.ANNOPALETTE), new List([Doc.MyAnnos]), { ...(options || {}) }); + } + export function DockDocument(documents: Array<Doc>, config: string, options: DocumentOptions, id?: string) { const ret = InstanceFromProto(Prototypes.get(DocumentType.COL), new List(documents), { treeView_FreezeChildren: 'remove|add', ...options, type_collection: CollectionViewType.Docking, dockingConfig: config }, id); documents.map(c => Doc.SetContainer(c, ret)); |
