@myoc/excalidraw 0.18.22 → 0.18.201-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/dev/index.js CHANGED
@@ -32651,6 +32651,16 @@ var App = class _App extends React43.Component {
32651
32651
  this.files = nextFiles;
32652
32652
  return { addedFiles };
32653
32653
  });
32654
+ /**
32655
+ * Myoc:
32656
+ *
32657
+ * Updates the elements in the scene without triggering an update event so that it doesn't interfere with the undo/redo stack.
32658
+ */
32659
+ __publicField(this, "updateElementsWithoutUpdate", (elements) => {
32660
+ if (elements) {
32661
+ this.scene.replaceAllElements(elements, true);
32662
+ }
32663
+ });
32654
32664
  __publicField(this, "updateScene", withBatchedUpdates(
32655
32665
  (sceneData) => {
32656
32666
  const { elements, appState, collaborators, captureUpdate } = sceneData;
@@ -36106,6 +36116,7 @@ var App = class _App extends React43.Component {
36106
36116
  this.history = new History(this.store);
36107
36117
  if (excalidrawAPI) {
36108
36118
  const api = {
36119
+ updateElementsWithoutUpdate: this.updateElementsWithoutUpdate,
36109
36120
  updateScene: this.updateScene,
36110
36121
  mutateElement: this.mutateElement,
36111
36122
  updateLibrary: this.library.updateLibrary,