diff options
author | kimdahey <claire_kim1@brown.edu> | 2019-10-02 17:21:38 -0400 |
---|---|---|
committer | kimdahey <claire_kim1@brown.edu> | 2019-10-02 17:21:38 -0400 |
commit | 49d90a9a2b1d799a3ffdddf8ab45dc0d5c4fdb5b (patch) | |
tree | 8ce177e1cdc399352bba50b5564e75b64b6658a8 /src/new_fields/Doc.ts | |
parent | a8f14c501cf676f6a2697b73d7f2a162d4100a9e (diff) | |
parent | a19210e7db3e625c0bfe38b4f13b5312cc0c6e53 (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into webcam_mohammad
Diffstat (limited to 'src/new_fields/Doc.ts')
-rw-r--r-- | src/new_fields/Doc.ts | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts index a68692732..aeffc81c4 100644 --- a/src/new_fields/Doc.ts +++ b/src/new_fields/Doc.ts @@ -144,14 +144,8 @@ export class Doc extends RefField { private [Self] = this; private [SelfProxy]: any; - public [WidthSym] = () => { - let animDims = this[SelfProxy].animateToDimensions ? Array.from(Cast(this[SelfProxy].animateToDimensions, listSpec("number"))!) : undefined; - return animDims ? animDims[0] : NumCast(this[SelfProxy].width); - } - public [HeightSym] = () => { - let animDims = this[SelfProxy].animateToDimensions ? Array.from(Cast(this[SelfProxy].animateToDimensions, listSpec("number"))!) : undefined; - return animDims ? animDims[1] : NumCast(this[SelfProxy].height); - } + public [WidthSym] = () => NumCast(this[SelfProxy].width); + public [HeightSym] = () => NumCast(this[SelfProxy].height); [ToScriptString]() { return "invalid"; |