Merge remote-tracking branch 'origin/release' into danieljgeiger-mathjax-maint-stage

This commit is contained in:
Daniel J. Geiger 2023-09-08 10:31:19 -05:00
commit 1f9847ed98
97 changed files with 8978 additions and 3948 deletions

View file

@ -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));
}