diff options
author | bobzel <zzzman@gmail.com> | 2022-02-10 17:12:19 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-02-10 17:12:19 -0500 |
commit | 956628a22c2d8ae21eb76c70f8f0a5a4edc9ae75 (patch) | |
tree | 535fd5b10420d579d5334d22c2e6374b12feecf2 /src/client/documents/Documents.ts | |
parent | a6d904bcd18a2c9962abfd9b5b325340f6b18b0d (diff) |
switched scripts to use a cache to avoid recompiling. simplified some things with documentView and zooming to avoid invalidations.
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r-- | src/client/documents/Documents.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index 0cb4f4c5e..12b57351d 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -235,7 +235,7 @@ export class DocumentOptions { docColorBtn?: string; userColorBtn?: string; canClick?: string; - script?: string; + script?: ScriptField; numBtnType?: string; numBtnMax?: number; numBtnMin?: number; @@ -594,7 +594,7 @@ export namespace Docs { const options: DocumentOptions = { system: true, _layoutKey: "layout", title, type, baseProto: true, x: 0, y: 0, _width: 300, ...(template.options || {}), layout: layout.view?.LayoutString(layout.dataField), data: template.data, layout_keyValue: KeyValueBox.LayoutString("") - } + }; Object.entries(options).map(pair => { if (typeof pair[1] === "string" && pair[1].startsWith("@")) { (options as any)[pair[0]] = ComputedField.MakeFunction(pair[1].substring(1)); |