diff options
author | madelinegr <mgriswold99@gmail.com> | 2019-06-05 17:29:43 -0400 |
---|---|---|
committer | madelinegr <mgriswold99@gmail.com> | 2019-06-05 17:29:43 -0400 |
commit | a54e3b99c2c6d4c39cbdd935978b5e78015956ab (patch) | |
tree | 008d43493f4e3f81fcac56f7334df612618d0530 /src/client/views/nodes/DocumentView.tsx | |
parent | 917c4f0ed9c61e52a06fce2872ffe3048b46099f (diff) |
Enums for buttons
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 984cac9b9..449fa76a7 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -83,6 +83,7 @@ const schema = createSchema({ nativeWidth: "number", nativeHeight: "number", backgroundColor: "string", + opacity: "number" }); export const positionSchema = createSchema({ @@ -464,7 +465,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: NumCast(this.props.Document.opacity, 1) }} onDrop={this.onDrop} onContextMenu={this.onContextMenu} onPointerDown={this.onPointerDown} onClick={this.onClick} |