diff options
author | usodhi <61431818+usodhi@users.noreply.github.com> | 2021-03-08 12:56:58 -0500 |
---|---|---|
committer | usodhi <61431818+usodhi@users.noreply.github.com> | 2021-03-08 12:56:58 -0500 |
commit | e7dd6dbdf8d01cef390ff65c0948e5e70ac232cf (patch) | |
tree | 10551b265cb02acb3e8ee23b5f03eb22bf7f31d1 /src/client/documents/Documents.ts | |
parent | d47c114193972dabf0d48e789bd58989cdeae605 (diff) | |
parent | 81cfcf5ab5caed1ab5cd052b3e8f00829631018f (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into filters
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r-- | src/client/documents/Documents.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index ca5ee9cbd..0da80d2c4 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -153,7 +153,7 @@ export class DocumentOptions { "_carousel-caption-yMargin"?: number; x?: number; y?: number; - z?: number; + z?: number; // whether document is in overlay (1) or not (0 or undefined) author?: string; layoutKey?: string; type?: string; @@ -260,9 +260,9 @@ export namespace Docs { const _docOptions = new DocumentOptions(); export async function setupFieldInfos() { - return await DocServer.GetRefField("FieldInfos7") as Doc ?? + return await DocServer.GetRefField("FieldInfos8") as Doc ?? runInAction(() => { - const infos = new Doc("FieldInfos7", true); + const infos = new Doc("FieldInfos8", true); const keys = Object.keys(new DocumentOptions()); for (const key of keys) { const options = (_docOptions as any)[key] as FInfo; @@ -728,7 +728,7 @@ export namespace Docs { } export function ComparisonDocument(options: DocumentOptions = { title: "Comparison Box" }) { - return InstanceFromProto(Prototypes.get(DocumentType.COMPARISON), "", { clipWidth: 50, _backgroundColor: "gray", targetDropAction: "alias", ...options }); + return InstanceFromProto(Prototypes.get(DocumentType.COMPARISON), "", { clipWidth: 50, backgroundColor: "gray", targetDropAction: "alias", ...options }); } export function AudioDocument(url: string, options: DocumentOptions = {}) { |