zsviczian / obsidian-excalidraw-plugin

A plugin to edit and view Excalidraw drawings in Obsidian
4.11k stars 224 forks source link

Enhance eraser function to remove only drawing above an inserted images #2047

Open Leiyi548 opened 2 weeks ago

Leiyi548 commented 2 weeks ago

Is your feature request related to a problem? Please describe.

I am insert an image in obsidian-excalidraw, and i am doing some extra drawing in the images, when i make mistake and want to use eraser to erase some part of my drawing , it will also erase my inserted image, but i want to keep my insert image, only erase the drawing.

Describe the solution you'd like

i want to keep my insert image, only erase the drawing.

Real-life usage scenarios

No response

Describe alternatives you've considered

No response

Additional context

No response

zsviczian commented 2 weeks ago

agree, this would be a great feature. Please raise it on https://github.com/excalidraw/excalidraw/issues.

In the meantime you can lock the image then use the eraser, then unlock the image, or simply keep the images locked. This workaround could easily be converted into an Excalidraw script with a shortcut. 1) find images in the drawing, 2) set them to locked, 3) enable eraser. Another script could unlock all your images. I understand not ideal, but until the feature is implemented in Excalidraw.com, this is the workaround that came to mind...

Leiyi548 commented 2 weeks ago

Excalidraw

@zsviczian Thank you your answer. How to lock image in obsidian excalidraw?I not find this option.

zsviczian commented 2 weeks ago

Right click on the image and select lock