From 4d15bf1cf2e37d15214c3c57fbb59da5465f30c8 Mon Sep 17 00:00:00 2001
From: bobzel <zzzman@gmail.com>
Date: Mon, 20 Nov 2023 09:53:58 -0500
Subject: added rotation to transforms (partially done)

---
 src/client/views/nodes/CollectionFreeFormDocumentView.tsx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'src/client/views/nodes/CollectionFreeFormDocumentView.tsx')

diff --git a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx
index 5fbe5d0e3..ab124eede 100644
--- a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx
+++ b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx
@@ -226,7 +226,11 @@ export class CollectionFreeFormDocumentView extends DocComponent<CollectionFreeF
         this.props.Document.x = this.props.w_X() + x;
         this.props.Document.y = this.props.w_Y() + y;
     };
-    screenToLocalTransform = () => this.props.ScreenToLocalTransform().translate(-this.props.w_X(), -this.props.w_Y());
+    screenToLocalTransform = () =>
+        this.props
+            .ScreenToLocalTransform()
+            .translate(-this.props.w_X(), -this.props.w_Y())
+            .rotateDeg(this.props.w_Rotation?.() || 0);
     returnThis = () => this;
 
     /// this indicates whether the doc view is activated because of its relationshop to a group
-- 
cgit v1.2.3-70-g09d2

