mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
feat: add container to multiple text elements (#9348)
All checks were successful
Tests / test (push) Successful in 4m55s
All checks were successful
Tests / test (push) Successful in 4m55s
This commit is contained in:
parent
b3d5ba0567
commit
6e47fadb59
1 changed files with 2 additions and 2 deletions
|
@ -226,8 +226,8 @@ export const actionWrapTextInContainer = register({
|
|||
trackEvent: { category: "element" },
|
||||
predicate: (elements, appState, _, app) => {
|
||||
const selectedElements = app.scene.getSelectedElements(appState);
|
||||
const areTextElements = selectedElements.every((el) => isTextElement(el));
|
||||
return selectedElements.length > 0 && areTextElements;
|
||||
const someTextElements = selectedElements.some((el) => isTextElement(el));
|
||||
return selectedElements.length > 0 && someTextElements;
|
||||
},
|
||||
perform: (elements, appState, _, app) => {
|
||||
const selectedElements = app.scene.getSelectedElements(appState);
|
||||
|
|
Loading…
Add table
Reference in a new issue