|
|
@@ -249,7 +249,7 @@ export class TLDrawState extends StateManager<Data> {
|
|
249
|
249
|
children
|
|
250
|
250
|
.map((id) => page.shapes[id])
|
|
251
|
251
|
.filter(Boolean)
|
|
252
|
|
- .map((shape) => TLDR.getBounds(shape))
|
|
|
252
|
+ .map((shape) => TLDR.getRotatedBounds(shape))
|
|
253
|
253
|
)
|
|
254
|
254
|
|
|
255
|
255
|
page.shapes[group.id] = {
|
|
|
@@ -1423,7 +1423,11 @@ export class TLDrawState extends StateManager<Data> {
|
|
1423
|
1423
|
return this.startSession(new Sessions.RotateSession(this.state, point))
|
|
1424
|
1424
|
}
|
|
1425
|
1425
|
|
|
1426
|
|
- if (this.selectedIds.length === 1) {
|
|
|
1426
|
+ const idsToTransform = selectedIds.flatMap((id) =>
|
|
|
1427
|
+ TLDR.getDocumentBranch(this.state, id, this.currentPageId)
|
|
|
1428
|
+ )
|
|
|
1429
|
+
|
|
|
1430
|
+ if (idsToTransform.length === 1) {
|
|
1427
|
1431
|
return this.startSession(
|
|
1428
|
1432
|
new Sessions.TransformSingleSession(this.state, point, this.pointedBoundsHandle, commandId)
|
|
1429
|
1433
|
)
|