Files
Mark Tolmacs ce5e0c3a49 fix(editor): don't duplicate deleted elements
Groups, frames and containers are collected from all elements, so
duplicating them also copied their deleted members. A copy of a deleted
element is born deleted and can never be restored; it only took up space
and got selected, which tripped the getSelectedElements invariant.

Also set the elements and the selection in one update in the z-index
tests, so no render pairs the new elements with the previous selection.
2026-12-04 09:44:56 +00:00
..
2026-12-01 22:17:47 +01:00
2026-12-01 22:17:47 +01:00

@excalidraw/element

Install

npm install @excalidraw/element

If you prefer Yarn over npm, use this command to install the Excalidraw utils package:

yarn add @excalidraw/element

With PNPM, similarly install the package with this command:

pnpm add @excalidraw/element