aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2019-07-11 12:48:57 -0400
committerSam Wilkins <samwilkins333@gmail.com>2019-07-11 12:48:57 -0400
commit145bc737a6f234821c941a14e0a859a5c5eac307 (patch)
treea51d7363abbf614040bcfffb5d1c003c4d537ba2 /src/client/documents
parent79275265ddc04d8c590fc884eeccf00762c07384 (diff)
fixed image issue and added undo redo opacity changes
Diffstat (limited to 'src/client/documents')
-rw-r--r--src/client/documents/Documents.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index cda116570..62ec2f8bc 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -104,7 +104,7 @@ export namespace Docs {
background: HistogramBox.LayoutString()
}],
[DocumentType.IMG, {
- options: { height: 300, backgroundColor: "black" },
+ options: { nativeWidth: 600, curPage: 0 },
primary: CollectionView.LayoutString("annotations"),
background: ImageBox.LayoutString()
}],
@@ -202,7 +202,8 @@ export namespace Docs {
let primary = template.primary;
let background = template.background;
let upper = Suffix.toUpperCase();
- let options = { ...defaultOptions, ...(template.options || {}), title: prototypeId.toUpperCase().replace(upper, `_${upper}`) };
+ let title = prototypeId.toUpperCase().replace(upper, `_${upper}`);
+ let options = { title: title, type: type, ...defaultOptions, ...(template.options || {}) };
background && (options = { ...options, backgroundLayout: background, });
return Doc.assign(new Doc(prototypeId, true), { ...options, layout: primary, baseLayout: primary });
}