diff options
author | bob <bcz@cs.brown.edu> | 2019-11-13 14:48:57 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-11-13 14:48:57 -0500 |
commit | e87b4b99323875afce2d9847f3bddd4196b85b81 (patch) | |
tree | a38eb3b9147a25006a4a678a797db5c3577b165a /src/client/documents/Documents.ts | |
parent | a93ee99c9dd3b5ecc5160f98f9dffeb119b4dcce (diff) |
added a lockedTransform field to lock pan/zoom. fixed text scrollintoview to scroll only when necessary.
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r-- | src/client/documents/Documents.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index ba9f87025..1a9d67d83 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -76,7 +76,8 @@ export interface DocumentOptions { viewType?: number; backgroundColor?: string; ignoreClick?: boolean; - lockedPosition?: boolean; + lockedPosition?: boolean; // lock the x,y coordinates of the document so that it can't be dragged + lockedTransform?: boolean; // lock the panx,pany and scale parameters of the document so that it be panned/zoomed opacity?: number; defaultBackgroundColor?: string; dropAction?: dropActionType; |