diff options
author | bob <bcz@cs.brown.edu> | 2019-05-01 11:48:53 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-05-01 11:48:53 -0400 |
commit | d9f8faab10cc02d095df20eec7182b82d6575d68 (patch) | |
tree | 26bba1030abe7127ff1d656e979724427d4cdde5 /src | |
parent | a419ad773840611e6f1c43f892cb0ffab748f1e2 (diff) |
fixed default document scale based on zoom level
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/CollectionFreeFormDocumentView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx index b43571eb0..27928d00b 100644 --- a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx +++ b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx @@ -16,7 +16,7 @@ export interface CollectionFreeFormDocumentViewProps extends DocumentViewProps { } const schema = createSchema({ - zoom: "number", + zoomBasis: "number", zIndex: "number" }); @@ -36,7 +36,7 @@ export class CollectionFreeFormDocumentView extends DocComponent<CollectionFreeF @computed get X() { return FieldValue(this.Document.x, 0); } @computed get Y() { return FieldValue(this.Document.y, 0); } - @computed get zoom(): number { return 1 / FieldValue(this.Document.zoom, 1); } + @computed get zoom(): number { return 1 / FieldValue(this.Document.zoomBasis, 1); } @computed get nativeWidth(): number { return FieldValue(this.Document.nativeWidth, 0); } @computed get nativeHeight(): number { return FieldValue(this.Document.nativeHeight, 0); } @computed get width(): number { return FieldValue(this.Document.width, 0); } |