mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
rewrite wysiwyg property updating (#1387)
* rewrite wysiwyg property updating * reuse existing class * fix case of focus being stolen by other UIs * revert mistake csp removal * ensure we don't run cleanup twice * fix opacity updating * add shape actions menu class to constants
This commit is contained in:
parent
d79c859cd9
commit
6771b505ad
9 changed files with 73 additions and 80 deletions
|
@ -14,7 +14,6 @@ import {
|
|||
handlerRectangles,
|
||||
getCommonBounds,
|
||||
canResizeMutlipleElements,
|
||||
isTextElement,
|
||||
} from "../element";
|
||||
|
||||
import { roundRect } from "./roundRect";
|
||||
|
@ -104,18 +103,6 @@ export function renderScene(
|
|||
return { atLeastOneVisibleElement: false };
|
||||
}
|
||||
|
||||
if (
|
||||
appState.wysiwygElement?.changeStyle &&
|
||||
isTextElement(appState.editingElement)
|
||||
) {
|
||||
appState.wysiwygElement.changeStyle({
|
||||
font: appState.editingElement.font,
|
||||
textAlign: appState.editingElement.textAlign,
|
||||
color: appState.editingElement.strokeColor,
|
||||
opacity: appState.editingElement.opacity,
|
||||
});
|
||||
}
|
||||
|
||||
const context = canvas.getContext("2d")!;
|
||||
context.scale(scale, scale);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue