Open w8w8w8 opened 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:
I'm sorry but I don't really understand your issue.
lost the eye icon (V7.2)!
write the code fix it:
Because I made a lot of modifications and couldn't push, I wrote it here
src\editor\panels\LayersPanel.html `
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](https://github.com/SVG-Edit/svgedit/assets/4744039/81682274-bc50-412f-8055-85f3545fbf76)
I'm sorry but I don't really understand your issue.
lost the eye icon (V7.2)!
write the code fix it:![image](https://github.com/SVG-Edit/svgedit/assets/4744039/9c71b827-c210-48e5-b49d-c93203fb00d1)