mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
ensure editingLinearElement handles are rendered on top (#1967)
This commit is contained in:
parent
df4e903bd6
commit
f295550940
2 changed files with 19 additions and 10 deletions
|
@ -30,7 +30,6 @@ import { getSelectedElements } from "../scene/selection";
|
|||
|
||||
import { renderElement, renderElementToSvg } from "./renderElement";
|
||||
import { getClientColors } from "../clients";
|
||||
import { isLinearElement } from "../element/typeChecks";
|
||||
import { LinearElementEditor } from "../element/linearElementEditor";
|
||||
import {
|
||||
isSelectedViaGroup,
|
||||
|
@ -220,14 +219,16 @@ export const renderScene = (
|
|||
|
||||
visibleElements.forEach((element) => {
|
||||
renderElement(element, rc, context, renderOptimizations, sceneState);
|
||||
if (
|
||||
isLinearElement(element) &&
|
||||
appState.editingLinearElement &&
|
||||
appState.editingLinearElement.elementId === element.id
|
||||
) {
|
||||
});
|
||||
|
||||
if (appState.editingLinearElement) {
|
||||
const element = LinearElementEditor.getElement(
|
||||
appState.editingLinearElement.elementId,
|
||||
);
|
||||
if (element) {
|
||||
renderLinearPointHandles(context, appState, sceneState, element);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Paint selection element
|
||||
if (selectionElement) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue