aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/InkStrokeProperties.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-03-05 21:55:36 -0500
committerbobzel <zzzman@gmail.com>2021-03-05 21:55:36 -0500
commitb56d4f3c8774e059ed748dd4f831c1c743c7e40a (patch)
tree0c0f52045e92fb485941eb3ea97f9e66dc5b1d79 /src/client/views/InkStrokeProperties.ts
parent54c88f5bae9238a9182cc654ffa476a08797cd1b (diff)
started to clean up docdecorations and fix some ink rotation/sizing bugs.
Diffstat (limited to 'src/client/views/InkStrokeProperties.ts')
-rw-r--r--src/client/views/InkStrokeProperties.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/InkStrokeProperties.ts b/src/client/views/InkStrokeProperties.ts
index ce7f3d8d9..9257ee4e6 100644
--- a/src/client/views/InkStrokeProperties.ts
+++ b/src/client/views/InkStrokeProperties.ts
@@ -171,7 +171,7 @@ export class InkStrokeProperties {
SelectionManager.Views().forEach(action(inkView => {
const doc = Document(inkView.rootDoc);
if (doc.type === DocumentType.INK && doc.x && doc.y && doc._width && doc._height && doc.data) {
- doc.rotation = Number(doc.rotation) + Number(angle);
+ doc.rotation = NumCast(doc.rotation) + angle;
const ink = Cast(doc.data, InkField)?.inkData;
if (ink) {