mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Merge remote-tracking branch 'origin/release' into danieljgeiger-mathjax-maint-stage
This commit is contained in:
commit
1f9847ed98
97 changed files with 8978 additions and 3948 deletions
|
@ -20,7 +20,7 @@ import {
|
|||
getContainerElement,
|
||||
redrawTextBoundingBox,
|
||||
} from "./element/textElement";
|
||||
import { invalidateShapeForElement } from "./renderer/renderElement";
|
||||
import { ShapeCache } from "./scene/ShapeCache";
|
||||
|
||||
// Use "let" instead of "const" so we can dynamically add subtypes
|
||||
let subtypeNames: readonly Subtype[] = [];
|
||||
|
@ -458,7 +458,7 @@ export const checkRefreshOnSubtypeLoad = (
|
|||
// registered, update the element's dimensions, mark the
|
||||
// element for a re-render, and indicate the scene needs a refresh.
|
||||
if (hasSubtype(element)) {
|
||||
invalidateShapeForElement(element);
|
||||
ShapeCache.delete(element);
|
||||
if (isTextElement(element)) {
|
||||
redrawTextBoundingBox(element, getContainerElement(element));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue