diff options
author | bob <bcz@cs.brown.edu> | 2019-02-11 17:37:03 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-02-11 17:37:03 -0500 |
commit | 9f8653ab3d7f82a5d82b925bf339bef8d6723f5c (patch) | |
tree | 2bfab025912bb9e14dc304302bf583915fcc871f /src/client/views/nodes/CollectionFreeFormDocumentView.tsx | |
parent | 400a14c03c10f07f3e4cfedd1df963d9263e98c8 (diff) |
added framework for annotation overlays -- see ImageBox
Diffstat (limited to 'src/client/views/nodes/CollectionFreeFormDocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/CollectionFreeFormDocumentView.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx index 1d53cedc4..a183db828 100644 --- a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx +++ b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx @@ -48,7 +48,7 @@ export class CollectionFreeFormDocumentView extends DocumentView { @computed get transform(): string { - return `translate(${this.x}px, ${this.y}px)`; + return `scale(${this.props.Scaling}, ${this.props.Scaling}) translate(${this.x}px, ${this.y}px)`; } @computed @@ -207,6 +207,7 @@ export class CollectionFreeFormDocumentView extends DocumentView { var freestyling = this.props.ContainingCollectionView instanceof CollectionFreeFormView; return ( <div className="node" ref={this._mainCont} style={{ + transformOrigin: "left top", transform: freestyling ? this.transform : "", width: freestyling ? this.width : "100%", height: freestyling ? this.height : "100%", |