mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: rotate the text element when binding to a rotated container (#6477)
* Updated logic to update the bound child angle from the parent * update angle when generating text element * add test * remove * fix --------- Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
This commit is contained in:
parent
5ddb28d378
commit
851b9b7aec
2 changed files with 31 additions and 0 deletions
|
@ -2744,6 +2744,7 @@ class App extends React.Component<AppProps, AppState> {
|
|||
containerId: shouldBindToContainer ? container?.id : undefined,
|
||||
groupIds: container?.groupIds ?? [],
|
||||
lineHeight,
|
||||
angle: container?.angle ?? 0,
|
||||
});
|
||||
|
||||
if (!existingTextElement && shouldBindToContainer && container) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue