feat: support unbinding bound text (#4686)

* feat: support unbinding text

* fix unbound text

* move the unbind option next to group action

* use boundTextElement.id when unbinding

* update original text so it takes same bounding box when unbind

* Add spec

* recompute measurements when unbinding
This commit is contained in:
Aakansha Doshi 2022-02-01 20:11:24 +05:30 committed by GitHub
parent 719ae7b72f
commit edfbac9d7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 100 additions and 4 deletions

View file

@ -103,7 +103,8 @@ export type ActionName =
| "exportWithDarkMode"
| "toggleTheme"
| "increaseFontSize"
| "decreaseFontSize";
| "decreaseFontSize"
| "unbindText";
export type PanelComponentProps = {
elements: readonly ExcalidrawElement[];