aboutsummaryrefslogtreecommitdiff
path: root/src/Utils.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-06-10 13:03:47 -0400
committerbob <bcz@cs.brown.edu>2019-06-10 13:03:47 -0400
commitc56851026c4054cde26ea36a9a24db14fac6c49c (patch)
treedba7d78e0d30a378d805a27c4f9b4360b822e812 /src/Utils.ts
parenta2742057084ac0c78ed5f360b1078b5b267eff1f (diff)
fixes for treeview highlighting, templates, field deletion, overlaytext box positioning
Diffstat (limited to 'src/Utils.ts')
-rw-r--r--src/Utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Utils.ts b/src/Utils.ts
index 611c61135..e8a80bdc3 100644
--- a/src/Utils.ts
+++ b/src/Utils.ts
@@ -15,7 +15,7 @@ export class Utils {
return v5(seed, v5.URL);
}
- public static GetScreenTransform(ele: HTMLElement): { scale: number, translateX: number, translateY: number } {
+ public static GetScreenTransform(ele?: HTMLElement): { scale: number, translateX: number, translateY: number } {
if (!ele) {
return { scale: 1, translateX: 1, translateY: 1 };
}