SVG-Edit / svgedit

Powerful SVG-Editor for your browser
MIT License
6.33k stars 1.52k forks source link

fix not show/hide layers ICON #980

Open w8w8w8 opened 3 weeks ago

w8w8w8 commented 3 weeks ago

Because I made a lot of modifications and couldn't push, I wrote it here

src\editor\panels\LayersPanel.html `

        </table>`

src\editor\panels\LayersPanel.js

layerVis.className = (!drawing.getLayerVisibility(name)) ? 'layerinvis layervis' : 'layervis'

const _eye = document.createElement('img'); _eye.src="./images/eye.svg"; _eye.style.width = '14px'; _eye.style.width = '14px'; layerVis.appendChild(_eye);

result: image

jfhenon commented 3 weeks ago

I'm sorry but I don't really understand your issue.

w8w8w8 commented 3 weeks ago

image

lost the eye icon (V7.2)!

write the code fix it: image

Layer 1