zsviczian / obsidian-excalidraw-plugin

A plugin to edit and view Excalidraw drawings in Obsidian
4.32k stars 234 forks source link

Background color spiil out free hand shapes #449

Open tchansun opened 2 years ago

tchansun commented 2 years ago

Only with hatch color (not solid color).

Screenshot_20220217_173618

zsviczian commented 2 years ago

I think that is by design. You can reduce this effect by setting the roughness of the freedraw shape to 0. You can do this either manually editing the excalidraw file, or with a simple script. You'd need to modify the Set Stroke Width script and replace .strokeWidth with .roughness.

tchansun commented 2 years ago

Thank you, but roughness already = 0 for the type "line" in the md file. Is there a way to draw freeshape so that the background doesn't spill over ?

zsviczian commented 2 years ago

This may be a solution: https://youtu.be/qbPIAZguJeo I am using these 3 Excalidraw scripts in the example:

With these scripts, you can also add color to unfinished shapes.

tchansun commented 2 years ago

Thank's a lot, I am very new to obsidian/excalidraw (I didn't know excalidraw could have plugins!) and I just realized that this issue is with lines and not with free drawing. Sorry for that! I have a lot to learn here! Regards.