Fixed:
- #292
- Error handling when the embedded image file is no longer available (link is broken). Excalidraw was not able to load the drawing.
New feature:
- Excalidraw Automate if the existing element is manipulated using Excalidraw Automate and added back to the scene,
addElementsToView
will handle this intelligently (i.e. update the existing element instead of adding a duplicate with the same id). Eg.: add a rectangle around the selected image. This script can be executed e.g. from QuickAdd.
ea = ExcalidrawAutomate;
ea.reset();
ea.setView("active");
img = ea.getViewSelectedElement();
id = ea.addRect(img.x,img.y,img.width,img.height);
ea.elementsDict[img.id]=img;
ea.addToGroup([id,img.id]);
ea.addElementsToView(false);