diff options
author | andrewdkim <adkim414@gmail.com> | 2019-06-21 17:32:45 -0400 |
---|---|---|
committer | andrewdkim <adkim414@gmail.com> | 2019-06-21 17:32:45 -0400 |
commit | df5c4abc3acbf67db44384ef000c893c61270fcc (patch) | |
tree | 514e2a0c539c5b49f819ed4d0858bbb32072fd82 /src/client/views/nodes/DocumentView.tsx | |
parent | 1fa8e6c102b41bf99b7af9d803b6060284afc8b7 (diff) |
tick marks
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 280804630..247e3223b 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -89,7 +89,8 @@ const schema = createSchema({ nativeWidth: "number", nativeHeight: "number", backgroundColor: "string", - hidden: "boolean" + hidden: "boolean", + opacity: "number" }); export const positionSchema = createSchema({ @@ -559,7 +560,8 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu background: this.Document.backgroundColor || "", width: nativeWidth, height: nativeHeight, - transform: `scale(${scaling}, ${scaling})` + transform: `scale(${scaling}, ${scaling})`, + opacity: this.Document.opacity || 1 }} onDrop={this.onDrop} onContextMenu={this.onContextMenu} onPointerDown={this.onPointerDown} onClick={this.onClick} |